nvidia-smi has failed because it couldn't communicate with the nvidia driver

1.在终端输入命令nvidia-smi,报错

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

2.查看已经安装驱动的版本信息

 ls /usr/src | grep nvidia 

会出现版本号,例如450.82

3.输入以下命令

sudo apt-get install dkms

sudo dkms install -m nvidia -v 450.82

根据自己的版本号输入,之后再输入nvidia-smi,就会出现GPU的使用状态了

上一篇:Jenkins中构建时提示:Couldn‘t find any revision to build. Verify the repository and branch config


下一篇:NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver. Make sure that the lat