CUDAKernel Object crashes GPU
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I am running some calculation using Matlab on the GPU using CUDAKernel Object.
It was working fine with a grid size of 41x41, but with different grid sizes the GPU crashes. Yet, it does not seem like a problem of memory since it is working with 61x61, but with 55x55 is crashes. The calculations are fine (I compared it to a CPU calculation).
When I loaded all my data to the GPU , I saw before the Kernel execution that I have left around 1.5GB out of its 2GB from 'Dedicated GPU Memory'.
Does the size of the "Result" vector that I sent to the GPU change during the calculation? I sent all zeros and then each thread is calculating a value for different cell in the vector.
The error message i get when I close Matlab is:
NVIDIA OpenGL Driver Unable to recover from a kernel exception. The application must close.
Error code: 3 (subcode 2)
I tried to change the settings of NVIDIA control panel Gloabl settings to 3D App - Visual Simulation.
This trick worked with the 55x55 grid, but did not solve the problem for other sizes such as 71x71 which makes me thing it is only in the right direction but not quiet sufficient.
Thank you very much, I am looking forward for your help.
8 Kommentare
Joss Knight
am 6 Okt. 2018
Sorry, I can't interpret all that. Please just display the CUDAKernel object so I can see all its properties, show the line of code where you call feval, call size on all the array input arguments and show me the results, and give me the value of all the scalar input arguments ( mWidth, mHeight, colShift, SizeSparse, numReplica ).
Antworten (0)
Siehe auch
Kategorien
Mehr zu GPU Computing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!