Last active
August 10, 2023 11:23
-
-
Save andreinechaev/c7b853dd4da31d0b17e1be73315bdb21 to your computer and use it in GitHub Desktop.
Installing CUDA (nvcc) on Google Colab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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