NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver

安装了cuda驱动的Ubuntu机器重启后,执行nvdia-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.

网上搜索一阵,发现只要执行如下几句就可以恢复正常

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

利用命令 ll /usr/src/ 可查看下面有一个nvidia-410.79文件夹,版本号安装的nvidia驱动而异,比如 nvidia-470.82.00

发生这样问题的本质是Linux核心被更新了,禁止更新核心就好。

Popularity: 2% [?]

Random Posts

Comments

Comments are closed.