Created
June 12, 2018 09:06
-
-
Save DonghoonPark12/9cc25275c580892e84859a9dc7a11092 to your computer and use it in GitHub Desktop.
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
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run | |
sudo sh cuda_8.0.61_375.26_linux.run --override --silent --toolkit # install cuda in /usr/local/cuda | |
cd /usr/local/cuda | |
tar -xzvf cudnn-8.0-linux-x64-v6.0.tgz | |
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* | |
#add environment variables | |
echo >> .bashrc | |
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64" >> .bashrc | |
echo "export CUDA_HOME=/usr/local/cuda" >> .bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment