Forked from humandotlearning/cuda_driver_install.sh
Created
September 19, 2019 10:53
-
-
Save saksham789/d66dc8f96ec9d58f928c4172372c022a to your computer and use it in GitHub Desktop.
all drivers related to cuda are installed
This file contains 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
#!/bin/bash | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb | |
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb | |
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb | |
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl2_2.1.4-1+cuda9.0_amd64.deb | |
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl-dev_2.1.4-1+cuda9.0_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb | |
sudo dpkg -i libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb | |
sudo dpkg -i libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb | |
sudo dpkg -i libnccl2_2.1.4-1+cuda9.0_amd64.deb | |
sudo dpkg -i libnccl-dev_2.1.4-1+cuda9.0_amd64.deb | |
sudo apt-get update | |
sudo apt-get install cuda=9.0.176-1 | |
sudo apt-get install libcudnn7-dev | |
sudo apt-get install libnccl-dev | |
echo "export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}" >> ~/.bashrc | |
echo "export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> ~/.bashrc | |
source ~/.bashrc |
This file contains 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
#!/bin/bash | |
sudo apt-get purge cuda | |
sudo apt-get purge libcudnn6 | |
sudo apt-get purge libcudnn6-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment