Hi,
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, ...
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.
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.
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.