-
-
Save zaaath/6213bad74dcddda9557eca45ba9a2efc to your computer and use it in GitHub Desktop.
Initialise CUDA environment on Google Colab
This file contains hidden or 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
!apt-get --purge remove cuda nvidia* libnvidia-* | |
!dpkg -l | grep cuda- | awk '{print $2}' | xargs -n1 dpkg --purge | |
!apt-get remove cuda-* | |
!apt autoremove | |
!apt-get update | |
!wget https://developer.nvidia.com/compute/cuda/9.2/Prod/local_installers/cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64 -O cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb | |
!dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb | |
!apt-key add /var/cuda-repo-9-2-local/7fa2af80.pub | |
!apt-get update | |
!apt-get install cuda-9.2 | |
!pip install git+git://github.com/andreinechaev/nvcc4jupyter.git | |
%load_ext nvcc_plugin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment