Skip to content

Instantly share code, notes, and snippets.

@bcambel
Forked from albertstartup/steps.sh
Last active December 26, 2017 21:21
Show Gist options
  • Save bcambel/aa5905fb3c1e234974e64592c274a08d to your computer and use it in GitHub Desktop.
Save bcambel/aa5905fb3c1e234974e64592c274a08d to your computer and use it in GitHub Desktop.
aws gpu, ubuntu 16.04, nvidia driver 367, cuda 8,
# Required downloads:
sudo wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.44-1_amd64.deb
# NVIDIA-Linux-x86_64-367.27.run
# cuda_8.0.27_linux.run
# cudnn-8.0-linux-x64-v5.0-ga.tgz
sudo apt-get install build-essential
sudo apt-get install linux-image-extra-`uname -r`
sudo ./NVIDIA-Linux-x86_64-367.27.run
./cuda_8.0.27_linux.run --extract=`pwd`/extracts
sudo ./extracts/cuda-linux64-rel-8.0.27-20733550.run
echo -e "export CUDA_HOME=/usr/local/cuda\nexport PATH=\$PATH:\$CUDA_HOME/bin\nexport LD_LIBRARY_PATH=\$LD_LINKER_PATH:\$CUDA_HOME/lib64" >> ~/.bashrc
tar xf cudnn-8.0-linux-x64-v5.0-ga.tgz
cd cuda
sudo cp lib64/* /usr/local/cuda/lib64/
sudo cp include/cudnn.h /usr/local/cuda/include/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment