Forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
Created
October 8, 2022 03:18
-
-
Save ndinh215/bdf996e3ace71d1e84e497f159a91f90 to your computer and use it in GitHub Desktop.
Revisions
-
Mahedi-61 revised this gist
May 6, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -49,7 +49,7 @@ source ~/.bashrc sudo ldconfig # install cuDNN v11.3 # First register here: https://developer.nvidia.com/developer-program/signup CUDNN_TAR_FILE="cudnn-11.3-linux-x64-v8.2.1.32.tgz" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.2.1.32/11.3_06072021/cudnn-11.3-linux-x64-v8.2.1.32.tgz -
Mahedi-61 renamed this gist
May 6, 2022 . 1 changed file with 15 additions and 15 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -33,36 +33,36 @@ sudo apt install libnvidia-common-470 sudo apt install libnvidia-gl-470 sudo apt install nvidia-driver-470 wget 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/3bf863cc.pub sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /" sudo apt-get update # installing CUDA-11.3 sudo apt install cuda-11-3 # setup your paths echo 'export PATH=/usr/local/cuda-11.3/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-11.3/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc sudo ldconfig # install cuDNN v11.3 # For downloading cuDNN v11.2 you have to be regeistered here https://developer.nvidia.com/developer-program/signup CUDNN_TAR_FILE="cudnn-11.3-linux-x64-v8.2.1.32.tgz" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.2.1.32/11.3_06072021/cudnn-11.3-linux-x64-v8.2.1.32.tgz tar -xzvf ${CUDNN_TAR_FILE} # copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-11.3/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-11.3/lib64/ sudo chmod a+r /usr/local/cuda-11.3/lib64/libcudnn* # Finally, to verify the installation, check nvidia-smi nvcc -V # install Pytorch (an open source machine learning framework) pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 -
Mahedi-61 revised this gist
Dec 17, 2021 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -47,7 +47,7 @@ source ~/.bashrc sudo ldconfig # install cuDNN v11.2 # For downloading cuDNN v11.2 you have to be regeistered here https://developer.nvidia.com/developer-program/signup CUDNN_TAR_FILE="cudnn-11.2-linux-x64-v8.1.1.33.tgz" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.1.1.33/11.2_20210301/cudnn-11.2-linux-x64-v8.1.1.33.tgz @@ -63,6 +63,6 @@ nvidia-smi nvcc -V # install Pytorch (an open source machine learning framework) # I choose version 1.8.1 because it is stable and compatible with CUDA 11.2 Toolkit and cuDNN 8.1 pip3 install torch==1.8.1 torchvision==0.9.1 -
Mahedi-61 revised this gist
Dec 17, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -65,4 +65,4 @@ nvcc -V # install Pytorch (an open source machine learning framework) # I choose version 1.8.0 because it is stable and compatible with CUDA 11.2 Toolkit and cuDNN 8.1 pip3 install torch==1.8.0 torchvision==0.9.0 -
Mahedi-61 revised this gist
Dec 17, 2021 . 1 changed file with 6 additions and 17 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ #!/bin/bash ### steps #### # verify the system has a cuda-capable gpu @@ -8,29 +7,23 @@ # verify the installation ### ### to verify your gpu is cuda enable check lspci | grep -i nvidia ### If you have previous installation remove it first. sudo apt-get purge nvidia* sudo apt remove nvidia-* sudo rm /etc/apt/sources.list.d/cuda* sudo apt-get autoremove && sudo apt-get autoclean sudo rm -rf /usr/local/cuda* # system update sudo apt-get update sudo apt-get upgrade # install other import packages sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update @@ -40,30 +33,26 @@ sudo apt install libnvidia-common-470 sudo apt install libnvidia-gl-470 sudo apt install nvidia-driver-470 sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list sudo apt-get update # installing CUDA-11.2 sudo apt install cuda-11-2 # setup your paths echo 'export PATH=/usr/local/cuda-11.2/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc sudo ldconfig # install cuDNN v11.2 # For downloading cuDNN v8.1 you have to be regeistered here https://developer.nvidia.com/developer-program/signup CUDNN_TAR_FILE="cudnn-11.2-linux-x64-v8.1.1.33.tgz" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.1.1.33/11.2_20210301/cudnn-11.2-linux-x64-v8.1.1.33.tgz tar -xzvf ${CUDNN_TAR_FILE} # copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-11.2/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-11.2/lib64/ @@ -76,4 +65,4 @@ nvcc -V # install Pytorch (an open source machine learning framework) # I choose version 1.8.0 because it is stable and compatible with CUDA 11.2 Toolkit and cuDNN 8.1 pip3 install pytorch==1.8.0 torchvision==0.9.0 -
Mahedi-61 revised this gist
Nov 11, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash ## This gist contains instructions about cuda v11.2 and cudnn8.1 installation in Ubuntu 20.04 for Pytorch 1.8 & Tensorflow 2.7.0 ### steps #### # verify the system has a cuda-capable gpu @@ -37,7 +37,7 @@ sudo apt update # install nvidia driver with dependencies sudo apt install libnvidia-common-470 sudo apt install libnvidia-gl-470 sudo apt install nvidia-driver-470 -
Mahedi-61 revised this gist
Sep 25, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash ## This gist contains instructions about cuda v11.2 and cudnn8.1 installation in Ubuntu 20.04 for Pytorch 1.8 ### steps #### # verify the system has a cuda-capable gpu -
Mahedi-61 renamed this gist
Sep 25, 2021 . 1 changed file with 24 additions and 16 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -33,39 +33,47 @@ sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev lib # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update # install nvidia driver with dependencies sudo apt install libnvidia-common-470 sudo apt install libnividia-gl-470 sudo apt install nvidia-driver-470 sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list sudo apt-get update # installing CUDA-11.2 sudo apt install cuda-11-2 # setup your paths echo 'export PATH=/usr/local/cuda-11.2/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc sudo ldconfig # install cuDNN v8.1 # in order to download cuDNN you have to be regeistered here https://developer.nvidia.com/developer-program/signup # then download cuDNN v8.1 form https://developer.nvidia.com/cudnn CUDNN_TAR_FILE="cudnn-11.2-linux-x64-v8.1.1.33.tgz" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.1.1.33/11.2_20210301/cudnn-11.2-linux-x64-v8.1.1.33.tgz tar -xzvf ${CUDNN_TAR_FILE} # copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-11.2/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-11.2/lib64/ sudo chmod a+r /usr/local/cuda-11.2/lib64/libcudnn* # Finally, to verify the installation, check nvidia-smi nvcc -V # install Pytorch (an open source machine learning framework) # I choose version 1.8.0 because it is stable and compatible with CUDA 11.2 Toolkit and cuDNN 8.1 pip3 install pytorch==1.8.0 torchvision==0.9.0 -
Mahedi-61 revised this gist
May 4, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -35,6 +35,7 @@ sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev lib sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list sudo apt-get update # installing CUDA-10.1 sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda-10-1 cuda-drivers -
Mahedi-61 revised this gist
Apr 29, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -67,4 +67,4 @@ nvcc -V # install Tensorflow (an open source machine learning framework) # I choose version 2.1.0 because it is stable and compatible with CUDA 10.1 Toolkit and cuDNN 7.6 sudo pip3 install --user tensorflow-gpu==2.1.0 -
Mahedi-61 revised this gist
Mar 19, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -65,6 +65,6 @@ nvidia-smi nvcc -V # install Tensorflow (an open source machine learning framework) # I choose version 2.1.0 because it is stable and compatible with CUDA 10.1 Toolkit and cuDNN 7.6 pip3 install --user tensorflow-gpu==2.1.0 -
Mahedi-61 renamed this gist
Mar 19, 2020 . 1 changed file with 13 additions and 13 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash ## This gist contains instructions about cuda v10.1 and cudnn 7.6 installation in Ubuntu 18.04 for Tensorflow 2.1.0 ### steps #### # verify the system has a cuda-capable gpu @@ -36,29 +36,29 @@ sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list # installing CUDA-10.1 sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda-10-1 cuda-drivers # setup your paths echo 'export PATH=/usr/local/cuda-10.1/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc sudo ldconfig # install cuDNN v7.6 # in order to download cuDNN you have to be regeistered here https://developer.nvidia.com/developer-program/signup # then download cuDNN v7.6 form https://developer.nvidia.com/cudnn CUDNN_TAR_FILE="cudnn-10.1-linux-x64-v7.6.5.32.tgz" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.1_20191031/cudnn-10.1-linux-x64-v7.6.5.32.tgz tar -xzvf ${CUDNN_TAR_FILE} # copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-10.1/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-10.1/lib64/ sudo chmod a+r /usr/local/cuda-10.1/lib64/libcudnn* # Finally, to verify the installation, check nvidia-smi @@ -67,4 +67,4 @@ nvcc -V # install Tensorflow (an open source machine learning framework) # I choose version 1.13.1 because it is stable and compatible with CUDA 10.0 Toolkit and cuDNN 7.5 pip3 install --user tensorflow-gpu==2.1.0 -
Mahedi-61 revised this gist
Dec 27, 2019 . No changes.There are no files selected for viewing
-
Mahedi-61 revised this gist
Aug 11, 2019 . 1 changed file with 1 addition and 9 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,24 +30,16 @@ sudo apt-get upgrade # install other import packages sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list # installing CUDA-10.0 sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda-10-0 cuda-drivers # setup your paths echo 'export PATH=/usr/local/cuda-10.0/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc -
Mahedi-61 revised this gist
Aug 10, 2019 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,6 @@ sudo apt install g++-6 # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list @@ -50,8 +49,8 @@ sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++ # setup your paths echo 'export PATH=/usr/local/cuda-10.0/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc sudo ldconfig -
Mahedi-61 renamed this gist
Aug 10, 2019 . 1 changed file with 35 additions and 21 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash ## This gist contains step by step instructions to install cuda v10.0 and cudnn 7.5 in Ubuntu 18.04 ### steps #### # verify the system has a cuda-capable gpu @@ -8,17 +8,24 @@ # verify the installation ### ### If you have previous installation remove it first. sudo apt-get purge nvidia* sudo apt remove nvidia-* sudo rm /etc/apt/sources.list.d/cuda* sudo apt-get autoremove && sudo apt-get autoclean sudo rm -rf /usr/local/cuda* ### to verify your gpu is cuda enable check lspci | grep -i nvidia ### gcc compiler is required for development using the cuda toolkit. to verify the version of gcc install enter gcc --version # system update sudo apt-get update sudo apt-get upgrade # install other import packages sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev @@ -27,17 +34,16 @@ sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev lib sudo apt install gcc-6 sudo apt install g++-6 # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list sudo apt-get -o Dpkg::Options::="--force-overwrite" install cuda-10-0 cuda-drivers # set up symlinks for gcc/g++ sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc @@ -47,19 +53,27 @@ sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++ echo 'export PATH=/usr/local/cuda-9.0/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc sudo ldconfig # install cuDNN v7.5 # in order to download cuDNN you have to be regeistered here https://developer.nvidia.com/developer-program/signup # then download cuDNN v7.5 form https://developer.nvidia.com/cudnn CUDNN_TAR_FILE="cudnn-10.0-linux-x64-v7.5.0.56" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.5.0.56/prod/10.0_20190219/cudnn-10.0-linux-x64-v7.5.0.56.tgz tar -xzvf ${CUDNN_TAR_FILE} # copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-10.0/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-10.0/lib64/ sudo chmod a+r /usr/local/cuda-10.0/lib64/libcudnn* # Finally, to verify the installation, check nvidia-smi nvcc -V # install Tensorflow (an open source machine learning framework) # I choose version 1.13.1 because it is stable and compatible with CUDA 10.0 Toolkit and cuDNN 7.5 pip3 install --user tensorflow-gpu==1.13.1 -
Mahedi-61 revised this gist
Oct 10, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -31,8 +31,8 @@ sudo apt install g++-6 wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run # make the download file executable chmod +x cuda_9.0.176_384.81_linux.run sudo ./cuda_9.0.176_384.81_linux.run --override # answer following questions while installation begin # You are attempting to install on an unsupported configuration. Do you wish to continue? y @@ -49,7 +49,7 @@ echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' >> ~/.b source ~/.bashrc # install cuDNN v7.2 # in order to download cuDNN you have to be regeistered here https://developer.nvidia.com/developer-program/signup # then download cuDNN v7.2 form https://developer.nvidia.com/cudnn CUDNN_TAR_FILE="cudnn-9.0-linux-x64-v7.2.1.38" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.2.1/prod/9.0_20180806/${CUDNN_TAR_FILE} @@ -60,6 +60,6 @@ sudo cp -P cuda/include/cudnn.h /usr/local/cuda-9.0/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-9.0/lib64/ sudo chmod a+r /usr/local/cuda-9.0/lib64/libcudnn* # Finally, to verify the installation, check nvidia-smi nvcc -V -
Mahedi-61 revised this gist
Aug 13, 2018 . 1 changed file with 8 additions and 11 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,11 @@ #!/bin/bash ## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04 ### steps #### # verify the system has a cuda-capable gpu # download and install the nvidia cuda toolkit and cudnn # setup environmental variables # verify the installation ### ### to verify your gpu is cuda enable check @@ -50,19 +48,18 @@ echo 'export PATH=/usr/local/cuda-9.0/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc # install cuDNN v7.2 # in order to download cuDNN you have to regeistered here https://developer.nvidia.com/developer-program/signup # then download cuDNN v7.2 form https://developer.nvidia.com/cudnn CUDNN_TAR_FILE="cudnn-9.0-linux-x64-v7.2.1.38" wget https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.2.1/prod/9.0_20180806/${CUDNN_TAR_FILE} tar -xzvf ${CUDNN_TAR_FILE} # copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-9.0/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-9.0/lib64/ sudo chmod a+r /usr/local/cuda-9.0/lib64/libcudnn* # finally, to verify the installation, check nvidia-smi nvcc -V -
Mahedi-61 revised this gist
Jul 24, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -62,7 +62,7 @@ sudo cp -P cuda/include/cudnn.h /usr/local/cuda-9.0/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-9.0/lib64/ sudo chmod a+r /usr/local/cuda-9.0/lib64/libcudnn* # to verify the system, check nvidia-smi nvcc -V -
Mahedi-61 revised this gist
Jul 24, 2018 . 1 changed file with 8 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,16 @@ #!/bin/bash ## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.1 in ubuntu 18.04 ## see official guide: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html ### steps #### # verify the system has a cuda-capable gpu # verify the system has gcc installed # download and install the nvidia cuda toolkit and cudnn # setup environment variables # verify the system ### ### to verify your gpu is cuda enable check lspci | grep -i nvidia ### gcc compiler is required for development using the cuda toolkit. to verify the version of gcc install enter @@ -38,7 +36,7 @@ wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9. chmod +x cuda_9.0.176_384.81_linux-run sudo ./cuda_9.0.176_384.81_linux-run --override # answer following questions while installation begin # You are attempting to install on an unsupported configuration. Do you wish to continue? y # Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81? n # Install the CUDA 9.0 Toolkit? y @@ -59,9 +57,12 @@ CUDNN_TAR_FILE="cudnn-9.0-linux-x64-v7.1" wget http://developer.download.nvidia.com/compute/redist/cudnn/v7.1/${CUDNN_TAR_FILE} tar -xzvf ${CUDNN_TAR_FILE} # copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-9.0/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-9.0/lib64/ sudo chmod a+r /usr/local/cuda-9.0/lib64/libcudnn* # to verify the system, type nvidia-smi nvcc -V -
Mahedi-61 revised this gist
Jul 9, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/bash ## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.1 in ubuntu 18.04 ## official guide: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html ### steps #### -
Mahedi-61 revised this gist
Jul 9, 2018 . 1 changed file with 20 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,23 @@ #!/bin/bash ## This gist is a step by step instructions to install cuda v9.0 and cudnn 7.1 on ubuntu 18.04 ## official guide: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html ### steps #### # verify the system has a cuda-capable gpu # verify the system has gcc installed # download and install the nvidia cuda toolkit # download cudnn # setup environment variables # verify the system ### ### checking your NVIDIA gpu is cuda enable or not got to https://developer.nvidia.com/cuda-gpus ### to verify your gpu is cuda enable enter in to the comman line lspci | grep -i nvidia ### gcc compiler is required for development using the cuda toolkit. to verify the version of gcc install enter gcc --version # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa -
Mahedi-61 revised this gist
Jul 9, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa # install nvidia driver sudo apt install nvidia-384 nvidia-384-dev # install other import packages @@ -29,7 +29,7 @@ sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++ # setup your paths echo 'export PATH=/usr/local/cuda-9.0/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc source ~/.bashrc # install cuDNN v7.1 -
Mahedi-61 revised this gist
Jun 3, 2018 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -32,4 +32,16 @@ echo 'export PATH=/usr/local/cuda-9.0/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' >> ~/.bash.rc source ~/.bashrc # install cuDNN v7.1 # in order to download cuDNN you have to regeistered here https://developer.nvidia.com/developer-program/signup # then download cuDNN v7.1 form https://developer.nvidia.com/cudnn CUDNN_TAR_FILE="cudnn-9.0-linux-x64-v7.1" wget http://developer.download.nvidia.com/compute/redist/cudnn/v7.1/${CUDNN_TAR_FILE} tar -xzvf ${CUDNN_TAR_FILE} #copy the following files into the cuda toolkit directory. sudo cp -P cuda/include/cudnn.h /usr/local/cuda-9.0/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-9.0/lib64/ sudo chmod a+r /usr/local/cuda-9.0/lib64/libcudnn* -
Mahedi-61 created this gist
Jun 3, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ # first get the PPA repository driver sudo add-apt-repository ppa:graphics-drivers/ppa # install nvidai driver sudo apt install nvidia-384 nvidia-384-dev # install other import packages sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev # CUDA 9 requires gcc 6 sudo apt install gcc-6 sudo apt install g++-6 # downoad one of the "runfile (local)" installation packages from cuda toolkit archive wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run # make the download file executable chmod +x cuda_9.0.176_384.81_linux-run sudo ./cuda_9.0.176_384.81_linux-run --override # Answer questions following while installation begin # You are attempting to install on an unsupported configuration. Do you wish to continue? y # Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81? n # Install the CUDA 9.0 Toolkit? y # set up symlinks for gcc/g++ sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g++ # setup your paths echo 'export PATH=/usr/local/cuda-9.0/bin:$PATH' >> ~/.bashrc echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' >> ~/.bash.rc source ~/.bashrc