Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to reset or restart the GPU

Tags:

cuda

gpgpu

gpu

I am doing some programming with cuda. I screw up with the GPU memory somehow and the following is what I see on my screen, which is driving me crazy!! Have anybody ever came across a similar problem before. Is there a way to fix the problem other than restarting the computer?

As I am debugging, I don't want to restart my computer ever single time I launch the program. I will appreciate whatever advice you can provide.

By the way, the black and white dots are flashing like stars! And that's making me very dizzy!!

enter image description here

like image 462
Yuchen Avatar asked Feb 24 '14 22:02

Yuchen


People also ask

Is there a way to reset the GPU?

Show activity on this post. In general, under windows, there is no mechanism for ordinary user access to reset or restart of the GPU. However if you have not modified the windows vista/7/8 TDR mechanism on your machine, you may be able to take advantage of it in this case to force a GPU reset by the OS.

How to reset graphics card on Windows 10?

Reset Graphics Card on Windows 1 Open Task Manager 2 Restart Graphics Card 3 Reboot 4 Update or Reinstall Display Drivers

How to restart your PC’s graphics drivers?

How to Restart Your PC’s Graphics Drivers. To restart your graphics drivers, press Win + Ctrl + Shift + B on your keyboard. Your screen will go black for a split second and you’ll hear a beep. Everything will then reappear just as it was before you pressed the hotkey. All your current applications remain open, and you won’t lose any work.

What to do when GPU driver is not working?

Try cleaning GPU driver with DDU in safe mode. Reinstall driver after reboot. I recommend using the driver released with cod mw. Remember to disable windows automatic driver installation before doing above steps.


2 Answers

In general, under windows, there is no mechanism for ordinary user access to reset or restart of the GPU.

However if you have not modified the windows vista/7/8 TDR mechanism on your machine, you may be able to take advantage of it in this case to force a GPU reset by the OS.

You should be able to write a CUDA program that spins forever (e.g. a while loop that never exits). Compile it to an executable. Make a shortcut to that executable on your desktop. Whenever your display gets corrupted like this, try running that executable. It should cause the display to freeze, which will trigger the Windows TDR mechanism, which will cause a GPU reset and driver reload.

like image 180
Robert Crovella Avatar answered Sep 20 '22 19:09

Robert Crovella


I had a similar problem under Linux today. As I couldn't find a way to do it properly without terminating my current graphical session, I just put my computer to sleep and restarted. It worked, and should probably work the same regardless of the operating system.

like image 44
MayeulC Avatar answered Sep 21 '22 19:09

MayeulC