<?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: Shear Wave simulation in 3D by GPU</title>
		<link>http://www.k-wave.org/forum/topic/shear-wave-simulation-in-3d-by-gpu</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:25:07 +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/shear-wave-simulation-in-3d-by-gpu" rel="self" type="application/rss+xml" />

		<item>
			<title>Patrick on "Shear Wave simulation in 3D by GPU"</title>
			<link>http://www.k-wave.org/forum/topic/shear-wave-simulation-in-3d-by-gpu#post-7062</link>
			<pubDate>Sat, 28 Sep 2019 20:56:25 +0000</pubDate>
			<dc:creator>Patrick</dc:creator>
			<guid isPermaLink="false">7062@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Elliot,&#60;/p&#62;
&#60;p&#62;Usually &#60;code&#62;pstdElastic3D&#60;/code&#62; is called like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;sensor_data = pstdElastic3D(kgrid, medium, source, sensor)&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To run it on the GPU, define an &#60;code&#62;input_args&#60;/code&#62; cell array with &#60;code&#62;DataCast&#60;/code&#62; set to &#60;code&#62;gpuArray-single&#60;/code&#62; and give it to &#60;code&#62;pstdElastic3D&#60;/code&#62;, like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;input_args = {&#38;#39;DataCast&#38;#39;,&#38;#39;gpuArray-single&#38;#39;};
sensor_data = pstdElastic3D(kgrid, medium, source, sensor, input_args{:});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I recommend reading the k-Wave documentation/examples, which has this information and more (&#60;a href=&#34;http://www.k-wave.org/documentation/pstdElastic3D.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/pstdElastic3D.php&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;---&#60;/p&#62;
&#60;p&#62;Additionally, to change the GPU you are running the simulation on, MATLAB's parallel computing toolbox has a function called &#60;code&#62;gpuDevice&#60;/code&#62;, which indexes devices differently than usual: it starts at 1 instead of 0. So to set your device to the zeroth Nvidia device, use:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;gpuDevice(1);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elliotP on "Shear Wave simulation in 3D by GPU"</title>
			<link>http://www.k-wave.org/forum/topic/shear-wave-simulation-in-3d-by-gpu#post-7060</link>
			<pubDate>Fri, 27 Sep 2019 01:10:34 +0000</pubDate>
			<dc:creator>elliotP</dc:creator>
			<guid isPermaLink="false">7060@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Patrick,&#60;/p&#62;
&#60;p&#62;I am not familiar with the MATLAB parallel computing toolbox. How can I use the DataCast option setting 'gpuArray-single' to running pstElastic3D on the GPU? Can you recommend any document for me?&#60;/p&#62;
&#60;p&#62;Thank you,&#60;br /&#62;
Michael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>saturnnan on "Shear Wave simulation in 3D by GPU"</title>
			<link>http://www.k-wave.org/forum/topic/shear-wave-simulation-in-3d-by-gpu#post-7055</link>
			<pubDate>Fri, 20 Sep 2019 08:21:09 +0000</pubDate>
			<dc:creator>saturnnan</dc:creator>
			<guid isPermaLink="false">7055@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,Patrick:&#60;br /&#62;
Thanks a lot!&#60;br /&#62;
That is really helpful to me.The time consumption of simulation reduced by 35%.&#60;br /&#62;
The computational efficiency of this function does not seem to be as efficient as the kspaceFirstOrder3DG.&#60;br /&#62;
Can not wait for the cuda version of pstElastic3D :)&#60;/p&#62;
&#60;p&#62;Thanks again!&#60;/p&#62;
&#60;p&#62;Hank
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Patrick on "Shear Wave simulation in 3D by GPU"</title>
			<link>http://www.k-wave.org/forum/topic/shear-wave-simulation-in-3d-by-gpu#post-7054</link>
			<pubDate>Thu, 19 Sep 2019 18:44:14 +0000</pubDate>
			<dc:creator>Patrick</dc:creator>
			<guid isPermaLink="false">7054@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;You can use the DataCast option set to 'gpuArray-single' to run pstElastic3D on the GPU. This requires the MATLAB parallel computing toolbox.&#60;/p&#62;
&#60;p&#62;Hope this helps,&#60;/p&#62;
&#60;p&#62;PC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>saturnnan on "Shear Wave simulation in 3D by GPU"</title>
			<link>http://www.k-wave.org/forum/topic/shear-wave-simulation-in-3d-by-gpu#post-7052</link>
			<pubDate>Thu, 19 Sep 2019 03:41:03 +0000</pubDate>
			<dc:creator>saturnnan</dc:creator>
			<guid isPermaLink="false">7052@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello, everyone:&#60;br /&#62;
 I am trying to simulate acoustic shear wave propagation using k-wave pstdElastic3D function.It took a long time for one simualtion.&#60;br /&#62;
 Is there any method or related function that makes this simulation work on the GPU?&#60;/p&#62;
&#60;p&#62;Thanks a lot!&#60;/p&#62;
&#60;p&#62;Hank
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
