and Install Ubuntu 14.04 or 16.04 Install CUDA 8: Instantly Share Code, Notes, and Snippets
and Install Ubuntu 14.04 or 16.04 Install CUDA 8: Instantly Share Code, Notes, and Snippets
04 · GitHub
vbalnt / cuda-ubuntu.md
Last active 11 days ago
cuda-ubuntu.md
This document describes how to install the combination of 14.04 + CUDA 7.5 + Tensorflow. This combination is the easiest to
install without anything like compilation from sources etc.
Install CUDA 8
This way below installs CUDA and all the related things (e.g. drivers needed).
Go to https://developer.nvidia.com/cuda-downloads
Choose Linux -> x86_64 -> Ubuntu -> 14.04 or 16.04 -> deb (local)
Press download
the dpkg -i cuda-repo-ubuntu1404-8-0-local_8.0.44-1_amd64.deb might differ (check the download name - or use tab for
autocomplete)
Navigate to https://developer.nvidia.com/cudnn and register for an account (it's free). After you make your account, login and
go to downloads.
Choose the following Download cuDNN v5.1 (August 10, 2016), for CUDA 8 cuDNN v5.1 Library for Linux
after it is downloaded navigate to Downloads and extract the tar file. You will get a folder called cuda . Open a terminal and
run the following to navigate to this folder and put the cudnn files to your system folders.
cd ~/Downloads/cuda
sudo cp lib64/* /usr/local/cuda/lib64/
sudo cp include/cudnn.h /usr/local/cuda/include/
https://gist.github.com/vbalnt/a0f789d788a99bfb62b61cb809246d64 1/2
11/30/2017 Installation of CUDA & Tensorflow in Ubuntu 14.04 or 16.04 · GitHub
gedit ~/.bashrc
Install tensorflow
Open a terminal and write
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc2-cp27-none-linux_x86_64.
sudo pip install --upgrade $TF_BINARY_URL
https://gist.github.com/vbalnt/a0f789d788a99bfb62b61cb809246d64 2/2