centos7.x安装cuda遇到的问题

前端之家收集整理的这篇文章主要介绍了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

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

猜你在找的CentOS相关文章