Skip to content

Instantly share code, notes, and snippets.

View RaymondDixon's full-sized avatar

Raymond Dixon RaymondDixon

View GitHub Profile
@zhreshold
zhreshold / cuda9_2.sh
Last active October 26, 2018 08:24
CUDA 9 and CUDNN 7
sudo apt update
sudo apt-get -y install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev libgfortran3
wget 'https://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda_9.2.148_396.37_linux' -O cuda92.run
wget 'https://developer.nvidia.com/compute/cuda/9.2/Prod2/patches/1/cuda_9.2.148.1_linux' -O patch1.run
sudo sh cuda92.run
sudo sh patch1.run
echo "# CUDA9.2" >> ~/.bashrc
echo "export PATH=/usr/local/cuda/bin:\$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64:\$LD_LIBRARY_PATH" >> ~/.bashrc