I’m having a problem if I accidentally write some dubious Cuda code that puts the GPU into an infinite loop :blink: . When this happens I recover by kill -9 the cuda process. However, once I regain control of my PC, no Cuda code will run, as it just hangs when it initialises memory on the GPU. The only way to restore my system is to reboot. Is there a way to restart the GPU or atleast flush its memory?