Skip to content

Instantly share code, notes, and snippets.

@fvarno
Created August 28, 2023 13:38
Show Gist options
  • Select an option

  • Save fvarno/13a2c59c02c6aefaa7706bf1b7072dc5 to your computer and use it in GitHub Desktop.

Select an option

Save fvarno/13a2c59c02c6aefaa7706bf1b7072dc5 to your computer and use it in GitHub Desktop.
Fix GCP error "NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver."
sudo apt-get purge nvidia-*
sudo apt-get update
sudo apt-get autoremove
# then stop and start the VM again
curl https://raw.githubusercontent.com/GoogleCloudPlatform/compute-gpu-installation/main/linux/install_gpu_driver.py --output install_gpu_driver.py
sudo python3 install_gpu_driver.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment