Computation on GPU (CUDA) causes black screen.

Hallo guys,
I am using Matlab 2016b in a Windows 7 machine. I have installed a Palit GTX 1080 on it with the latest drivers installed. Microsoft Visual Studio Professional 2013 is also installed and Cuda 7.5 .
I have my screen connected to the graphics cards and while I am running a reconstruction code on my GPU after some time my screen turns black for a few seconds and then it turns back on with matlab crushed (most of the times).
I have tried to change my monitors timeout but it only helped for a few runs and then again the same problem. I think that if I use my screen through the on board graphics it will solve the problem but then I will not be able to use the graphics cards for 3D programms such as Inventor or other 3D design software.
Is there anything that you can suggest me to try?
Thanks, Antonis

6 Comments

I run it again and the message that I get is the following: display driver nvidia windows kernel mode driver version 384.76 stopped responding and successfully recovered
Any idea how to solve this?
You appear to be hitting a kernel timeout of the form I linked to.
I have changed the value of TdrDelay to 500 and I still get the same problem. This link https://www.mathworks.com/matlabcentral/answers/344933-cuda-out-of-memory, was not helpful to me. Is there anything else I could do?
On the regedit I had created a 64-bit Word instead of a 32-bit Word for the TdrDelay and I was still getting the problem. I just changed to a 32-bit Word and so far so good. Can this play a role there?
The cuda out of memory post discusses changing batch sizes in order to reduce the GPU load -- which could be important for preventing timeouts.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!