<?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: Error with GPUmat</title>
		<link>http://www.k-wave.org/forum/topic/error-with-gpumat</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:00:14 +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/error-with-gpumat" rel="self" type="application/rss+xml" />

		<item>
			<title>bISHOP on "Error with GPUmat"</title>
			<link>http://www.k-wave.org/forum/topic/error-with-gpumat#post-27</link>
			<pubDate>Wed, 21 Jul 2010 07:47:28 +0000</pubDate>
			<dc:creator>bISHOP</dc:creator>
			<guid isPermaLink="false">27@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thank you. Interpolating to nearest has worked.&#60;/p&#62;
&#60;p&#62;I think I´m going to be a regular user of this forum with exclusive attention.&#60;/p&#62;
&#60;p&#62;Great job!&#60;/p&#62;
&#60;p&#62;Daniel.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Error with GPUmat"</title>
			<link>http://www.k-wave.org/forum/topic/error-with-gpumat#post-26</link>
			<pubDate>Tue, 20 Jul 2010 13:07:34 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">26@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Daniel,&#60;/p&#62;
&#60;p&#62;Thanks for your feedback and post. Unfortunately, the function which calculates the pressure at sensor points which are defined in Cartesian space using linear interpolation (&#60;code&#62;gridDataFast&#60;/code&#62;) does not currently support execution on the GPU. Hopefully this will be fixed by the next release. To get around this in the meantime, you can either set the interpolation mode to nearest neighbour, e.g., &#60;/p&#62;
&#60;p&#62;&#60;code&#62;sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor, &#38;#39;DataCast&#38;#39;, &#38;#39;GPUsingle&#38;#39;, &#38;#39;CartInterp&#38;#39;, &#38;#39;nearest&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;or you can use a binary sensor mask as in the second photoacoustic example.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bISHOP on "Error with GPUmat"</title>
			<link>http://www.k-wave.org/forum/topic/error-with-gpumat#post-25</link>
			<pubDate>Tue, 20 Jul 2010 12:12:34 +0000</pubDate>
			<dc:creator>bISHOP</dc:creator>
			<guid isPermaLink="false">25@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi.&#60;/p&#62;
&#60;p&#62;I´m sorry about being first to post... an error, but I´m glad to help with this fantastic tool you have developed. I´ve followed the steps to install CUDA, GPUmat and k-Wave and everything seemed to be allright until I tried the homogeneus propagation medium (the first one, at &#60;a href=&#34;http://www.k-wave.org/documentation/example_ps_homogeneous_medium.php&#34; rel=&#34;nofollow&#34;&#62;http://www.k-wave.org/documentation/example_ps_homogeneous_medium.php&#60;/a&#62; ) with 'Datacast', 'GPUsingle' in the kspaceFirstOrder2D call. MATLAB is not happy. MATLAB disagrees with my code this way:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Running k-space simulation...
  dt: 20ns, t_end: 12.06us, time steps: 604
  input grid size: 128 by 128 pixels (12.8 by 12.8mm)
  maximum supported frequency: 7.5MHz
  smoothing p0 distribution...
  calculating Delaunay triangulation...
  casting variables to kWaveGPUsingle type...
  precomputation completed in 2.2222s
  starting time loop...
??? Error using ==&#38;gt; times
Operations between Matlab arrays and GPU arrays are not supported.
(ERROR code 5)

Error in ==&#38;gt; gridDataFast at 96
zi = sum(z(tri) .* w,2);

Error in ==&#38;gt; kspaceFirstOrder2D at 1194
                sensor_data(:, t_index) = gridDataFast(kgrid.z, kgrid.x, p,
sensor_z, sensor_x, del_tri);

Error in ==&#38;gt; ej211 at 40
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor,
&#38;#39;DataCast&#38;#39;, &#38;#39;GPUsingle&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The only modifications are two addpath lines at the beggining and the DataCast parameter. &#60;/p&#62;
&#60;p&#62;I´m using a Intel Core2 Quad (Q6600, 2.4Ghz) with 2GB RAM, Windows XP SP3, MATLAB 7.7.0 (R2008b), CUDA 3.1, GPUmat 0.251 and k-Wave Version B.0.2&#60;/p&#62;
&#60;p&#62;Thank you and I hope it is an error of mine.&#60;/p&#62;
&#60;p&#62;Daniel.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
