其他分享
首页 > 其他分享> > Nvidia-smi报错NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver.

Nvidia-smi报错NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver.

作者:互联网

断电或重启后,在linux下查看nvidia-smi报错:

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

可能的原因是,在ubuntu系统中系统内核升级了,导致新版本内核和原来显卡驱动不匹配

解决方法:

利用命令

ll /usr/src/

可查看下面有一个nvidia-4xx.xx/文件夹,记录这个驱动版本号,之后

sudo apt-get install dkms
sudo dkms install -m nvidia -v 4xx.xx(4xx.xx表示的是驱动版本号)

标签:because,nvidia,NVIDIA,driver,xx,报错,4xx
来源: https://blog.csdn.net/dbdxwyl/article/details/118271462