Is it possible to stop all running processing using the GPU via CUDA, without restarting the machine?
Replacing the nvidia driver itself can indeed be done without reboot with "sudo rmmod nvidia" & "sudo nvidia-smi". You should anyway make sure that no current cuda processes are running.
The lsof utility will help with this. You can get a list of processes accessing your NVIDIA cards with:
lsof /dev/nvidia*
Then use kill or pkill to terminate the processes you want. Note that you may not want to kill X if it's running. On my desktop system, both X and kwin are also accessing the GPU.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With