An error occurred during: retrieving information about free memory. The CUDA error was: CUDA_ERROR_UNKNOWN.
1 view (last 30 days)
Show older comments
I have created an .m file in Matlab 2011a that it calls a CUDA kernel using the command
k = parallel.gpu.CUDAKernel('matlab_example.ptx', 'matlab_example.cu') and then the feval command. Till yesterday everything was working fine, but when I made some changes to my kernel and compiled it I get the same error again and again. The error is the following:
??? Error using ==> feval An error occurred during: waiting for a kernel invocation to complete. The CUDA error was: CUDA_ERROR_UNKNOWN.
Although I changed back my program I still get the same error. I also unplugged my PC (in order to discharge the GPU memory) but nothing changed.
Even when I try to run a simple example like this:
X = rand(10, 'single'); G = gpuArray(X);
I take the following error:
??? Error using ==> gpuArray at 28 An error occurred during: retrieving information about free memory after failed allocation. The CUDA error was: CUDA_ERROR_UNKNOWN.
Finally, it is really strange since I can still run a C program and call a CUDA kernel from the Visual Studio Command Prompt but in the MATLAB nothing changes!
I would be really grateful if you could answer my question since I tried to find a similar problem in the internet without any positive result!
Thanks in advance, Christos
2 Comments
Answers (0)
See Also
Categories
Find more on GPU Computing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!