Skip to content

Instantly share code, notes, and snippets.

@cgarciae
Last active April 19, 2018 01:26
Show Gist options
  • Save cgarciae/8454c205bcd49aa56e66916dc53b856c to your computer and use it in GitHub Desktop.
Save cgarciae/8454c205bcd49aa56e66916dc53b856c to your computer and use it in GitHub Desktop.
cudnn-install-tensorflow

cudnn install ubuntu + tensorflow

  1. Install cuda
  2. Export variables in ~/.bashrc or ~/.zshrc.
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CUDA_HOME=/usr/local/cuda
  1. Download cudnn. Note: check TensorFlow install guide for the correct version.
  2. Extract cudnn, this extracts a folder named cuda, cd into it.
  3. Execute
sudo cp -P include/cudnn.h /usr/local/cuda/include
sudo cp -P lib64/libcudnn* /usr/local/cuda/lib64

Uninstall

sudo apt-get remove cuda
suda apt-get purge cuda
sudo apt autoremove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment