<?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: Getting started with GPUmat (updated 6-Jun-2013)</title>
		<link>http://www.k-wave.org/forum/topic/getting-started-with-gpumat</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 21:36:18 +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/getting-started-with-gpumat" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Getting started with GPUmat (updated 6-Jun-2013)"</title>
			<link>http://www.k-wave.org/forum/topic/getting-started-with-gpumat#post-24</link>
			<pubDate>Mon, 24 May 2010 10:56:15 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">24@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;UPDATE: Since release B.0.4, the wavenumber and PML variables in k-Wave have been stored as vectors (instead of replicated matrices) and then applied using &#60;code&#62;bsxfun&#60;/code&#62;. This function is not natively supported by GPUmat and the performance of the replacement version (see below) may not be optimal.&#60;/p&#62;
&#60;p&#62;To get started using the k-Wave Toolbox with a graphics processing unit (GPU)&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Check you have a &#60;a href=&#34;http://www.nvidia.com/object/cuda_gpus.html&#34;&#62;CUDA-enabled GPU&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;Install the latest &#60;a href=&#34;http://www.nvidia.com/drivers&#34;&#62;drivers&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;Install the &#60;a href=&#34;http://developer.nvidia.com/category/zone/cuda-zone&#34;&#62;CUDA Toolkit&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;Download the &#60;a href=&#34;http://sourceforge.net/projects/gpumat/&#34;&#62;GPUmat Toolbox&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;Copy the functions from the &#60;code&#62;k-Wave Toolbox\Other\GPUmat&#60;/code&#62; folder to the &#60;code&#62;GPUmat\@GPUtype&#60;/code&#62; folder, renaming their extensions from &#60;code&#62;.txt&#60;/code&#62; to &#60;code&#62;.m&#60;/code&#62; (these are wrapper functions for &#60;code&#62;bsxfun&#60;/code&#62;, &#60;code&#62;fft3&#60;/code&#62;, and &#60;code&#62;ifft3&#60;/code&#62; in the GPUmat toolbox)&#60;/li&#62;
&#60;li&#62;Make sure both the k-Wave and GPUmat toolboxes are on your MATLAB path, then try running&#60;br /&#62;
&#60;code&#62;&#38;gt;&#38;gt; GPUstart&#60;/code&#62;&#60;br /&#62;
and then&#60;br /&#62;
&#60;code&#62;&#38;gt;&#38;gt; tic; fft2(GPUsingle(rand(100, 100))); toc;&#60;/code&#62;&#60;br /&#62;
to check the GPU is working&#60;/li&#62;
&#60;li&#62;Try running a k-Wave simulation with the optional input &#60;code&#62;&#38;#39;DataCast&#38;#39;, &#38;#39;GPUsingle&#38;#39;&#60;/code&#62;&#60;/li&#62;
&#60;/ol&#62;</description>
		</item>

	</channel>
</rss>
