Need help with Cuda on Matlab - CUDA_ERROR_UNKNOWN

Hi there,

I use Matlab 2011a and the command parallel.gpu.CUDAKernel() to call my .cu kernel with variables and matrices created in matlab as gpuArrays. Till yesterday, everything was fine but when I made a tiny change in my kernel my gpu crashed.

I restarted Matlab and I changed back my kernel to its previous version but from that time I can not execute my code. I get the same error:

??? Error using ==> feval
An error occurred during: waiting for a kernel
invocation to complete. The CUDA error was:
CUDA_ERROR_UNKNOWN.

I tried to find similar problems in the internet but with no success. I executed also the command

reset(parallel.gpu.GPUDevice.current())

but nothing changed. Moreover, I shut down the PC, I removed the gpu grom the motherboard (in order to empty the memory) and I still get the same error. The most wierd issue is that even when I moved my gpu to an other machine with a fresh installation of Matlab 2011a I got the same error. So, I assume that it is something wrong on the gpu (hardware). Is there a way to clear everything on the gpu and reset it to its initial state?

PLEASE SEE THE ATTACHMENT FOR MORE INFO REGARDING THE ERROR I TAKE FROM MATLAB

I really need your help. I cannot figure the source of this problem!

Have you tried Jacket? Anyone doing substantive GPU work in MATLAB is either writing their own low-level CUDA or using Jacket, for the very reasons you describe.
-John

I would like to second the problems seen here, as I’m seeing the exact same error. Did you try Jacket and have it work for you? Does anybody else have any idea?

Thanks

I had this error in the past but I solve it updating the Driver of my GPU and updating to CUDA 4.1 driver and toolkit. I hope it works for you.

Now I have “An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_UNKNOWN.”