NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
解决方法:
(1)
sudo apt-get install dkms
// 查看对应安装的驱动版本
cd /usr/src ls
(2)
重新生成对应nvidia的驱动模块
sudo dkms install -m nvidia -v +对应的驱动版本号(我是440.64)即为:
sudo dkms install -m nvidia -v 440.64
再次执行:NVIDIA-SMI 即可
补充:对于第一步可能会报错,按照具体提示进行操作即可。