Skip to content

Instantly share code, notes, and snippets.

@andreinechaev
Last active August 10, 2023 11:23
Show Gist options
  • Save andreinechaev/c7b853dd4da31d0b17e1be73315bdb21 to your computer and use it in GitHub Desktop.
Save andreinechaev/c7b853dd4da31d0b17e1be73315bdb21 to your computer and use it in GitHub Desktop.
Installing CUDA (nvcc) on Google Colab
/opt/bin/nvidia-smi
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb 2> /dev/null
apt-key add /var/cuda-repo-8-0-local-ga2/7fa2af80.pub
apt-get update
apt-get install -qq cuda gcc-5 g++-5 -y
ln -s /usr/bin/gcc-5 /usr/local/cuda/bin/gcc
ln -s /usr/bin/g++-5 /usr/local/cuda/bin/g++
/usr/local/cuda/bin/nvcc --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment