Skip to content

Instantly share code, notes, and snippets.

@MittalShruti
Last active February 4, 2022 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MittalShruti/1eab8a81d8bb494a7eca37fd83229ec9 to your computer and use it in GitHub Desktop.
Save MittalShruti/1eab8a81d8bb494a7eca37fd83229ec9 to your computer and use it in GitHub Desktop.
install CUDA 10.0
#Get PPA repo drivers and Install CUDA 10.0
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda-10-0 cuda-drivers -y
#Set the environment for cuda 10.0
nano ~/.bashrc
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}$
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
source ~/.bashrc
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment