Skip to content

Instantly share code, notes, and snippets.

@mGalarnyk
Last active February 23, 2017 02:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mGalarnyk/f3b78fb90ca58855bba01738dd88ef2c to your computer and use it in GitHub Desktop.
Save mGalarnyk/f3b78fb90ca58855bba01738dd88ef2c to your computer and use it in GitHub Desktop.
# http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
rm cuda-repo-ubuntu1404_7.5-18_amd64.deb
echo 'export CUDA_HOME=/usr/local/cuda
export CUDA_ROOT=/usr/local/cuda
export PATH=$PATH:$CUDA_ROOT/bin:$HOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_ROOT/lib64
' >> ~/.bashrc
# Let terminal know of the changes to the .bashrc file
source .bashrc
sudo apt-get update
# y flag just says yes to all prompts
sudo apt-get install -y cuda
# Check if installation is successful by running the next line
# nvcc -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment