<?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: GPUmat: Essential Functions missing?</title>
		<link>http://www.k-wave.org/forum/topic/gpumat-essential-functions-missing</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:20:41 +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/gpumat-essential-functions-missing" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "GPUmat: Essential Functions missing?"</title>
			<link>http://www.k-wave.org/forum/topic/gpumat-essential-functions-missing#post-1019</link>
			<pubDate>Fri, 16 Nov 2012 23:49:40 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">1019@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi KHO,&#60;/p&#62;
&#60;p&#62;Thanks for the update, and for managing to find the missing functions! I'm sure others will find this useful. It seems the DeconvNetToolbox2 also includes precompiled mex files for 64-bit linux in the &#34;/modules/mdz/other/@GPUtype folder&#34;, although I haven't tried using these yet.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>KHO on "GPUmat: Essential Functions missing?"</title>
			<link>http://www.k-wave.org/forum/topic/gpumat-essential-functions-missing#post-1013</link>
			<pubDate>Fri, 16 Nov 2012 12:06:34 +0000</pubDate>
			<dc:creator>KHO</dc:creator>
			<guid isPermaLink="false">1013@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;actually using the DeconvNetToolbox2 Modules, I was at least able to get it to run on a linux machine, yesterday. Within this box, max, min and some other useful functions are defined that can be integrated into GPUmat. I am not familiar enough with CUDA to figure out why this did not work on windows because in my opinion this should make no difference for the program code.&#60;/p&#62;
&#60;p&#62;The toolbox (i didn't use anything except for the GPUmat module &#34;other&#34;):&#60;br /&#62;
&#60;a href=&#34;http://www.matthewzeiler.com/software/DeconvNetToolbox2/&#34; rel=&#34;nofollow&#34;&#62;http://www.matthewzeiler.com/software/DeconvNetToolbox2/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This pretty much only has to be copied to the modules directory of GPUmat on a 64 bit machine though it's possible that I had to modify a few include paths for the compilation. They include a matlab make script to use (I believe I had to modify that a little for the CUDA Paths).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "GPUmat: Essential Functions missing?"</title>
			<link>http://www.k-wave.org/forum/topic/gpumat-essential-functions-missing#post-1007</link>
			<pubDate>Wed, 14 Nov 2012 23:16:04 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">1007@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi KHO,&#60;/p&#62;
&#60;p&#62;Thanks for your feedback and sharing your efforts to get it working. Unfortunately we don't have a simple solution to the missing functions. From my testing notes, these are the current restrictions with using k-Wave and GPUmat:&#60;/p&#62;
&#60;p&#62;- the option &#60;code&#62;&#38;#39;PlotLayout&#60;/code&#62;' must be set to &#60;code&#62;false&#60;/code&#62; (no max/min functions)&#60;br /&#62;
- the &#60;code&#62;&#38;#39;p_max&#38;#39;&#60;/code&#62; and &#60;code&#62;&#38;#39;u_max&#38;#39;&#60;/code&#62; options for &#60;code&#62;sensor.record&#60;/code&#62; don't work (no max/min functions)&#60;br /&#62;
- if using a Cartesian sensor mask with nearest neighbour interpolation, &#60;code&#62;&#38;#39;DataRecast&#38;#39;&#60;/code&#62; must be set to &#60;code&#62;true&#60;/code&#62; (re-ordering enlarges the output matrix on the fly which is not supported)&#60;/p&#62;
&#60;p&#62;Perhaps you have also noticed others? &#60;/p&#62;
&#60;p&#62;The GPUmat toolbox is no longer being actively developed, but the codes have been released open-source (GPL). If you're familiar with CUDA, one option would be to try and add the missing functions to the toolbox.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>KHO on "GPUmat: Essential Functions missing?"</title>
			<link>http://www.k-wave.org/forum/topic/gpumat-essential-functions-missing#post-1004</link>
			<pubDate>Wed, 14 Nov 2012 16:11:59 +0000</pubDate>
			<dc:creator>KHO</dc:creator>
			<guid isPermaLink="false">1004@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I tried using the k-Wave Toolbox with GPUmat. Part of it already runs without any problems but now I came across a missing GPUmat function that seems to break the code. Matlab complains about knowing no function max for data type GPUsingle. When I had a closer look at GPUmat it seemed that there really were a few essential functions missing, i.e. max, min, isnan, isinf, ...&#60;/p&#62;
&#60;p&#62;So I tried to find a module for GPUmat that would include these, but couldn't really come up with one. I found the DeconvNetToolbox2, which includes GPUmat modules (which also include the missing functions), but even though I could get it to compile the module, it causes Matlab to crash with a Segmentation Fault, when I try using it.&#60;/p&#62;
&#60;p&#62;How did you solve this problem? One could probably convert to double, do the max(), and then convert back, but that is a rather bad and inefficient solution.&#60;/p&#62;
&#60;p&#62;This was using Matlab R2011a on Win64 (but I don't think that is the actual problem) and the code was linked to CUDA Toolkit Version 4.2.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
