Skip to content

Instantly share code, notes, and snippets.

@moraisaugusto
Created September 29, 2020 09:17
Show Gist options
  • Save moraisaugusto/869d75772d048e060b20bac676ea9e14 to your computer and use it in GitHub Desktop.
Save moraisaugusto/869d75772d048e060b20bac676ea9e14 to your computer and use it in GitHub Desktop.
reload nvidia driver after sleep mode
#!/usr/bin/env sh
# It seems to have some cuda issues with sleep/suspend
# I had this with pytorch
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