Skip to content

Instantly share code, notes, and snippets.

@InnovArul
Created April 29, 2025 20:41
Show Gist options
  • Save InnovArul/620df960f22d03fa30b5a0e3b3f9c1a2 to your computer and use it in GitHub Desktop.
Save InnovArul/620df960f22d03fa30b5a0e3b3f9c1a2 to your computer and use it in GitHub Desktop.
overcomes issue: RuntimeError: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero.
sudo rmmod nvidia_uvm
sudo modprobe nvidia_uvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment