<?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: &#039;example_tvsp_3D_simulation&#039; on GPU</title>
		<link>http://www.k-wave.org/forum/topic/example_tvsp_3d_simulation-on-gpu</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 02:30:29 +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/example_tvsp_3d_simulation-on-gpu" rel="self" type="application/rss+xml" />

		<item>
			<title>mdgreef on "&#039;example_tvsp_3D_simulation&#039; on GPU"</title>
			<link>http://www.k-wave.org/forum/topic/example_tvsp_3d_simulation-on-gpu#post-3722</link>
			<pubDate>Mon, 17 Jun 2013 09:14:54 +0000</pubDate>
			<dc:creator>mdgreef</dc:creator>
			<guid isPermaLink="false">3722@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;Sorry for coming back to this just now. Indeed, I overlooked this part in the manual. Copying/renaming the mentioned files did the trick.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Martijn
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "&#039;example_tvsp_3D_simulation&#039; on GPU"</title>
			<link>http://www.k-wave.org/forum/topic/example_tvsp_3d_simulation-on-gpu#post-3698</link>
			<pubDate>Wed, 05 Jun 2013 19:51:48 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">3698@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Martijn,&#60;/p&#62;
&#60;p&#62;I just tried running the same example with the modifications you mention, but I'm unable to reproduce the error (it runs correctly). I tried on a system running 64-bit Windows 7, MATLAB 2012a, and CUDA 4.2 with a clean install of k-Wave 1.0 and GPUmat. &#60;/p&#62;
&#60;p&#62;Just to double check - did you copy (and rename) the files in the k-Wave Toolbox/other/GPUmat folder to the GPUmat/@GPUtype folder?&#60;/p&#62;
&#60;p&#62;Are you able to run any other examples (for example in 2D) or use the GPUmat toolbox independently of k-Wave?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mdgreef on "&#039;example_tvsp_3D_simulation&#039; on GPU"</title>
			<link>http://www.k-wave.org/forum/topic/example_tvsp_3d_simulation-on-gpu#post-3694</link>
			<pubDate>Tue, 04 Jun 2013 09:28:06 +0000</pubDate>
			<dc:creator>mdgreef</dc:creator>
			<guid isPermaLink="false">3694@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi All,&#60;/p&#62;
&#60;p&#62;I just discovered the k-wave toolbox and I must say that I am really impressed by its capabilities.&#60;/p&#62;
&#60;p&#62;I am trying to modify the example 'example_tvsp_3D_simulation' so that it runs on the GPU. For this I am using GPUMat. The input parameters are adjusted as follows:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
input_args = {'DisplayMask', source.p_mask, 'DataCast', 'GPUsingle',...&#60;br /&#62;
                'CartInterp', 'nearest','DataRecast',true};&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and this is the only adjustment made.&#60;/p&#62;
&#60;p&#62;Running this example then gives&#60;/p&#62;
&#60;p&#62;&#60;em&#62;Error using  .*&#60;br /&#62;
Number of array dimensions must match for binary array operation. (ERROR code 15)&#60;/p&#62;
&#60;p&#62;Error in GPUtype/bsxfun (line 19)&#60;br /&#62;
y = feval(f,a,b);&#60;br /&#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_tvsp_3D_simulation (line 80)&#60;br /&#62;
sensor_data = kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:}); &#60;/p&#62;
&#60;p&#62;&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Any help would be appreciated.&#60;/p&#62;
&#60;p&#62;Martijn
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
