linux下安装cuda 7,centos7.x安装cuda遇到的问题

1.首先下载cuda,记得下载对应操作系统的cuda版本.我这里下载的 cuda_8.0.61_375.26_linux-run

2.修改cuda的权限.chmod u+x cuda_8.0.61_375.26_linux-run

3.安装:sudo ./cuda_8.0.61_375.26_linux-run.

在操作完安装流程之后,如果遇到

A system reboot is required to continue installation. Please reboot

then run the installer again. An attmept has been made to disable

Nouveau. If this message persists after reboot, please see the display

driver log file at /var/log/nvidia-installer.log for more information.

查看/var/log/nvidia-installer.log显示

Please consult the NVIDIA driver README and your Linux distribution"s

documentation for details on how to correctly disable the Nouveau

kernel drive

解决方案:

1.在/usr/lib/modprobe.d/dist-blacklist.conf中添加两行内容:

blacklist nouveau

options nouveau modeset=0

2.给当前镜像做备份

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak

3.建立新的镜像

dracut /boot/initramfs-$(uname -r).img $(uname -r)

4.重新启动

sudo init 6

然后你就可以按照前面的三步再来一遍了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值