Skip to content

Instantly share code, notes, and snippets.

@hokiegeek2
Created October 26, 2022 13:21
Show Gist options
  • Select an option

  • Save hokiegeek2/4fa6f1d73c702d5b9f0380625ace37b5 to your computer and use it in GitHub Desktop.

Select an option

Save hokiegeek2/4fa6f1d73c702d5b9f0380625ace37b5 to your computer and use it in GitHub Desktop.
fixing NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
# Purge all NVIDIA libs from system
sudo apt-get remove --purge '^nvidia-.*'
sudo apt-get remove --purge '^libnvidia-.*'
sudo apt-get remove --purge '^cuda-.*'
# Update linux-headers
sudo apt-get install linux-headers-$(uname -r)
# autoremove all unneeded dependent llibs
sudo apt autoremove
# Get and run latest cuda installer
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
sh cuda_11.8.0_520.61.05_linux.run
@hokiegeek2
Copy link
Copy Markdown
Author

This is based upon the excellent work located here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment