Skip to content

Commit

Permalink
add gpu drivers for gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyoracle committed Oct 25, 2020
1 parent 2ab39fb commit a24b7cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,14 @@ echo "Add the following at the end of /etc/fstab"
echo "/swapfile swap swap defaults 0 0"


echo "Installing GPU Drivers"
read -p "Press enter to continue"
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt update
sudo apt install -y cuda

echo "Rebooting system in 5s. Please login again after some time..."
sleep 5; sudo reboot -h now

0 comments on commit a24b7cb

Please sign in to comment.