Created
May 9, 2020 12:21
-
-
Save MittalShruti/ee472685ac984ece698af7dd27ef8614 to your computer and use it in GitHub Desktop.
Install CUDA 10.0 cuDNN 7.6.5 Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
#Install cuda-compatibility 10.0 | |
sudo nvidia-smi -pm 1 | |
sudo apt-get install cuda-compat-10.0 | |
sudo apt-get update | |
#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 | |
#Fetch cuDNN | |
CUDNN_TAR_FILE="cudnn-10.0-linux-x64-v7.6.5.32.tgz" | |
wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.0_20191031/cudnn-10.0-linux-x64-v7.6.5.32.tgz | |
sudo tar -xzvf ${CUDNN_TAR_FILE} | |
#copy the files in cuda toolkit directory | |
sudo cp cuda/include/cudnn.h /usr/local/cuda/include | |
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 | |
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* | |
## To verify the installation | |
nvcc -V # this should print the CUDA version installed on the system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment