centos: NVIDIA

阅读: 评论:0

centos: NVIDIA

centos: NVIDIA

ubuntu: NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
centos: NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.

重启服务器之后就出现连接不上NVIDIA驱动的情况。

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

解决方法:
查看之前安装 nvidia 驱动的版本号

ls -l /usr/src/

输出

输入

sudo dkms install -m nvidia -v 440.95.01

输出报错:

有可能是 nouveau模块没有禁用

  • 打开如下文件:vim /usr/lib/modprobe.f
    新增以下两行内容:
blacklist nouveau
options nouveau modeset=0
  • 备份当前的镜像:mv /boot/initramfs- ( u n a m e − r ) . i m g / b o o t / i n i t r a m f s − (uname -r).img /boot/initramfs- (uname−r).img/boot/initramfs−(uname -r).img.bak
  • 建立新的镜像:dracut /boot/initramfs-$(uname -r).img $(uname -r)、
  • 然后重启 sudo reboot

再输入nvidia-smi

问题解决

本文发布于:2024-01-28 14:46:22,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/17064243878184.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:centos   NVIDIA
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23