Skip to content

Instantly share code, notes, and snippets.

@thien
Created February 3, 2019 00:32
Show Gist options
  • Save thien/8beb00734f52e084f852ed391eade23c to your computer and use it in GitHub Desktop.
Save thien/8beb00734f52e084f852ed391eade23c to your computer and use it in GitHub Desktop.
Tensorflow GPU installation for Ubuntu 18.04
# nicked from https://medium.com/@cjanze/how-to-install-tensorflow-with-gpu-support-on-ubuntu-18-04-lts-with-cuda-10-nvidia-gpu-312a693744b5
# Part 1
sudo apt update
sudo apt install gcc build-essential freeglut3 freeglut3-dev libxi-dev libxmu-dev python3-dev python3-pip python3 curl wget
cd ~/Downloads
# download nvidia driver
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/410.93/NVIDIA-Linux-x86_64-410.93.run
# download cuda
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux.run
# install nvidia driver
sh ./NVIDIA-Linux-x86_64-410.93.run
# install cuda driver
# sh ./cuda_10.0.130_410.48_linux.run
## add this to your bashrc
# export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
# export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# reload:
# source ~/.bashrc
# check that cuda is installed
# nvcc -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment