tensorflow

GPU tensorflow

install NVIDIA-CUDA

http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation

$ wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb

$ sudo dpkg -i cuda-repo-ubuntu1604_9.1.85-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

vim .bashrc

# cuda 9.1
export PATH=/usr/local/cuda-9.1/bin${PATH:+:${PATH}}

create symlink for 9.0

$ cd /usr/local/cuda-9.1/lib64
$ sudo ln -s libcublas.so.9.1 libcublas.so.9.0
$ sudo ln -s libcusolver.so.9.1 libcusolver.so.9.0
$ sudo ln -s libcudart.so.9.1 libcudart.so.9.0
$ sudo ln -s libcufft.so.9.1 libcufft.so.9.0
$ sudo ln -s libcurand.so.9.1 libcurand.so.9.0

install cuDNN

http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html

download@local

Remove CUDA 9.1

Remove cuDNN for 9.1

Install CUDA9.0

https://developer.nvidia.com/cuda-90-download-archive

cuDNN 7

download 3 files @local

Last updated

Was this helpful?