Created
April 20, 2018 14:56
-
-
Save saranjsr/42bf81ee2ad9f3dde0d2cd4527302991 to your computer and use it in GitHub Desktop.
install cuda 8 with cudnn version 6 on 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
Installation | |
#wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
#sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
#sudo apt-get update | |
#sudo apt-get install cuda-8.0 -y | |
Reboot the server and add below lines in .bashrc file. | |
export CUDA_ROOT=/usr/local/cuda | |
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
#source .bashrc | |
# install cuDNN v6.0 | |
CUDNN_TAR_FILE="cudnn-8.0-linux-x64-v6.0.tgz" | |
wget http://developer.download.nvidia.com/compute/redist/cudnn/v6.0/${CUDNN_TAR_FILE} | |
tar -xzvf ${CUDNN_TAR_FILE} | |
sudo cp -P cuda/include/cudnn.h /usr/local/cuda-8.0/include | |
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-8.0/lib64/ | |
sudo chmod a+r /usr/local/cuda-8.0/lib64/libcudnn* | |
#nvcc --version | |
nvcc: NVIDIA (R) Cuda compiler driver | |
Copyright (c) 2005-2016 NVIDIA Corporation | |
Built on Tue_Jan_10_13:22:03_CST_2017 | |
Cuda compilation tools, release 8.0, V8.0.61 | |
#nvidia-smi | |
Sat May 27 08:17:59 2017 | |
+-----------------------------------------------------------------------------+ | |
| NVIDIA-SMI 375.51 Driver Version: 375.51 | | |
|-------------------------------+----------------------+----------------------+ | |
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | |
|===============================+======================+======================| | |
| 0 GRID K520 Off | 0000:00:03.0 Off | N/A | | |
| N/A 43C P0 44W / 125W | 0MiB / 4036MiB | 0% Default | | |
+-------------------------------+----------------------+----------------------+ | |
+-----------------------------------------------------------------------------+ | |
| Processes: GPU Memory | | |
| GPU PID Type Process name Usage | | |
|=============================================================================| | |
| No running processes found | | |
+-----------------------------------------------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment