<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: Problem running linear transducer</title>
		<link>http://www.k-wave.org/forum/topic/problem-running-linear-transducer</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 03:45:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/problem-running-linear-transducer" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Problem running linear transducer"</title>
			<link>http://www.k-wave.org/forum/topic/problem-running-linear-transducer#post-4161</link>
			<pubDate>Sat, 30 Nov 2013 10:59:14 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4161@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;It would seem that way. The functions need to be renamed from &#60;code&#62;.txt&#60;/code&#62; to &#60;code&#62;.m&#60;/code&#62; and placed in the root @GPUtype folder in the GPUmat toolbox. The GPUmat toolbox also needs to be added to the MATLAB path. I hope you manage to get it to work.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SergioGwirc on "Problem running linear transducer"</title>
			<link>http://www.k-wave.org/forum/topic/problem-running-linear-transducer#post-4160</link>
			<pubDate>Fri, 29 Nov 2013 20:25:59 +0000</pubDate>
			<dc:creator>SergioGwirc</dc:creator>
			<guid isPermaLink="false">4160@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad&#60;/p&#62;
&#60;p&#62;It does not work.&#60;br /&#62;
That means that I made a mistake when I have renamed functions fftn, ifftn, and bsxfun and placed in the folder /@GPUtype ?&#60;/p&#62;
&#60;p&#62;Sergio
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Problem running linear transducer"</title>
			<link>http://www.k-wave.org/forum/topic/problem-running-linear-transducer#post-4157</link>
			<pubDate>Fri, 29 Nov 2013 16:52:25 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4157@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Sergio,&#60;/p&#62;
&#60;p&#62;If you cast a 3D matrix to the GPU from the command line, do the &#60;code&#62;fftn&#60;/code&#62; and &#60;code&#62;ifftn&#60;/code&#62; functions work? i.e., something like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;x = GPUsingle(rand(64, 64, 64));
y = fftn(x);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SergioGwirc on "Problem running linear transducer"</title>
			<link>http://www.k-wave.org/forum/topic/problem-running-linear-transducer#post-4156</link>
			<pubDate>Fri, 29 Nov 2013 16:16:27 +0000</pubDate>
			<dc:creator>SergioGwirc</dc:creator>
			<guid isPermaLink="false">4156@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad&#60;/p&#62;
&#60;p&#62;Thank you for your answer.&#60;/p&#62;
&#60;p&#62;I renamed the functions and placed in /@GPUtype folder when I installed the GPUmat, but the errors remain. I followed a bit the program and the problem seems to be with bsxfun in kspaceFirstOrder3D (line 822). What I don't understand is that the program stops when  bsxfun is used for the third time in line 822. &#60;/p&#62;
&#60;p&#62;Sergio
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Problem running linear transducer"</title>
			<link>http://www.k-wave.org/forum/topic/problem-running-linear-transducer#post-4155</link>
			<pubDate>Fri, 29 Nov 2013 11:15:28 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">4155@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi SergioGwirc&#60;/p&#62;
&#60;p&#62;If using the GPUmat toolbox with k-Wave, the functions &#60;code&#62;fftn&#60;/code&#62;, &#60;code&#62;ifftn&#60;/code&#62;, and &#60;code&#62;bsxfun&#60;/code&#62; from the other/GPUmat&#34; folder within the k-Wave Toolbox should be renamed to have &#60;code&#62;.m&#60;/code&#62; extensions and placed in the /@GPUtype&#34; folder within the GPUmat toolbox directory.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SergioGwirc on "Problem running linear transducer"</title>
			<link>http://www.k-wave.org/forum/topic/problem-running-linear-transducer#post-4152</link>
			<pubDate>Thu, 28 Nov 2013 18:24:16 +0000</pubDate>
			<dc:creator>SergioGwirc</dc:creator>
			<guid isPermaLink="false">4152@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear Sir&#60;/p&#62;
&#60;p&#62;I intalled k-wave and trying to use with GPUmat and NVIDIA CUDA GTX 660.&#60;br /&#62;
When I run the example &#34;example_us_bmode_linear_transducer&#34; after the GPUstart it gives an error and I not understand why. Could you help me?&#60;br /&#62;
The command windows is as follows:&#60;/p&#62;
&#60;p&#62;Starting GPU&#60;br /&#62;
- GPUmat version: 0.280&#60;br /&#62;
- Required CUDA version: 5.0&#60;br /&#62;
There is 1 device supporting CUDA&#60;br /&#62;
CUDA Driver Version:                           5.0&#60;br /&#62;
CUDA Runtime Version:                          5.0&#60;/p&#62;
&#60;p&#62;Device 0: &#34;GeForce GTX 660&#34;&#60;br /&#62;
  CUDA Capability Major revision number:         3&#60;br /&#62;
  CUDA Capability Minor revision number:         0&#60;br /&#62;
  Total amount of global memory:                 2147483648 bytes&#60;br /&#62;
  - CUDA compute capability 3.0&#60;br /&#62;
...done&#60;br /&#62;
- Loading module EXAMPLES_CODEOPT&#60;br /&#62;
- Loading module EXAMPLES_NUMERICS&#60;br /&#62;
  -&#38;gt; numerics30.cubin&#60;br /&#62;
- Loading module NUMERICS&#60;br /&#62;
  -&#38;gt; numerics30.cubin&#60;br /&#62;
- Loading module RAND&#60;br /&#62;
&#38;gt;&#38;gt; example_us_bmode_linear_transducer&#60;/p&#62;
&#60;p&#62;k-Wave Transducer Properties&#60;br /&#62;
  transducer position:       [1  22  42]&#60;br /&#62;
  transducer width:          11.8519mm (64 grid points)&#60;br /&#62;
  number of elements:        32&#60;br /&#62;
  number of active elements: 32 (elements 1 to 32)&#60;br /&#62;
  element width:             370.3704um (2 grid points)&#60;br /&#62;
  element spacing (kerf):    0ym (0 grid points)&#60;br /&#62;
  element pitch:             370.3704um (2 grid points)&#60;br /&#62;
  element length:            4.4444mm (24 grid points)&#60;br /&#62;
  sound speed:               1540m/s&#60;br /&#62;
  focus distance:            20mm&#60;br /&#62;
  elevation focus distance:  19mm&#60;br /&#62;
  steering angle:            0 degrees&#60;br /&#62;
  steering angle max:        auto degrees&#60;br /&#62;
Computing scan line 1 of 96&#60;br /&#62;
Running k-Wave simulation...&#60;br /&#62;
  start time: 28-Nov-2013 14:08:11&#60;br /&#62;
  reference sound speed: 1600m/s&#60;br /&#62;
  prepending transducer.input_signal with 17 leading zeros&#60;br /&#62;
  appending transducer.input_signal with 17 trailing zeros&#60;br /&#62;
  dt: 36.075ns, t_end: 57.1429us, time steps: 1585&#60;br /&#62;
  input grid size: 216 by 108 by 108 grid points (40 by 20 by 20mm)&#60;br /&#62;
  maximum supported frequency: 3.78MHz&#60;br /&#62;
  expanding computational grid...&#60;br /&#62;
  computational grid size: 256 by 128 by 128 grid points&#60;br /&#62;
  casting variables to kWaveGPUsingle type...&#60;br /&#62;
  precomputation completed in 4.5368s&#60;br /&#62;
  starting time loop...&#60;br /&#62;
Undefined function 'ifftn' for input arguments of type 'GPUsingle'.&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder3D (line 822)&#60;br /&#62;
    ux_sgx = bsxfun(@times, pml_x_sgx, ...&#60;/p&#62;
&#60;p&#62;Error in example_us_bmode_linear_transducer (line 240)&#60;br /&#62;
        sensor_data = kspaceFirstOrder3D(kgrid, medium, transducer, transducer, input_args{:});
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
