安装cuda8.0中所遇到的问题-解决办法

正是申请季高峰,但还是被老师抓着干活。之前一直以为cuda已经装好,才知道是骗自己的。我的显卡是640,ubuntu14.4, 比较low。

我是按照这个教程走的,http://m.blog.csdn.net/article/details?id=51882183,当走到sudo sh cuda_7.5.18_linux.run这步时,出现了一个bug:

 An NVIDIA kernel module 'nvidia' appears to already be loaded in your

         kernel.  This may be because it is in use (for example, by the X
         server), but may also happen if your kernel was configured without
         support for module unloading.  Please be sure you have exited X
         before attempting to upgrade your driver.  If you have exited X, know
         that your kernel supports module unloading, and still receive this
         message, then an error may have occured that has corrupted the NVIDIA
         kernel module's usage count; the simplest remedy is to reboot your
         computer.
当时就懵了,sudo service lightdm stop 肯定能把X Server关闭了,那第二个可能性就可能是罪魁祸首啦,an error may have occured that has corrupted the NVIDIA kernel module's usage count。
大概意思就是跟NVIDIA有关,要删除以前旧的驱动,然后装新驱动,其实我也是半知半解,但我找到了一个帖子解决了 我的问题  http://askubuntu.com/questions/830916/how-to-install-cuda-8-0-on-ubuntu-16-04-with-nvidia-geforce-gtx-1080
关键的命令:
sudo apt-get purge nvidia-cuda*
sudo apt-get purge nvidia-*
详情参考帖子原文。
 
由于时间很紧,写的比较乱,由于每个人的配置不尽相同,能用这个方法解决当然最好,不行的话,也不能勉强。

转载于:https://www.cnblogs.com/cxyxbk/p/6024610.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值