本文主要是介绍Google Colab里安装cuda9.0(或者cuda 8.0),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
转载自:https://blog.csdn.net/Xu_Claire/article/details/103112076
查看当前cuda版本
!cat /usr/local/cuda/version.txt
安装cuda10.01
!wget https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
!dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
!apt-key add /var/cuda-repo-10-1-local-10.1.105-418.39/7fa2af80.pub
!apt-get update
!apt-get install cuda
安装cuda9.0
# 现在系统升级了,应该是ubuntu1804
!wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb
!dpkg -i cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb
!apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub
!apt-get update
!apt-get install cuda=9.0.176-1
安装cuda8.0
!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
!apt-get update
!apt-get install cuda=8.0.61-1
这篇关于Google Colab里安装cuda9.0(或者cuda 8.0)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!