Skip to content

Instantly share code, notes, and snippets.

@Huangxt57
Created September 11, 2022 05:33
Show Gist options
  • Save Huangxt57/523da9d64121c49e17cfe4aa1b237732 to your computer and use it in GitHub Desktop.
Save Huangxt57/523da9d64121c49e17cfe4aa1b237732 to your computer and use it in GitHub Desktop.
Reload NVIDIA kernel module
#/bin/bash
lsmod | grep nvidia
rmmod nvidia_uvm
rmmod nvidia_drm
rmmod nvidia_modeset
rmmod nvidia
# Check processes using the kernel module
lsof /dev/nvidia*
modprobe nvidia_drm
modprobe nvidia_modeset
modprobe nvidia_uvm
modprobe nvidia
lsmod | grep nvidia
nvidia-smi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment