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.

Revisions

  1. fvarno created this gist Aug 28, 2023.
    8 changes: 8 additions & 0 deletions fix_gcp_nvidia_fail.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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