命令: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.
解决方法:
找到显卡对应的运行文件,执行以下命令,等待自动重启后就可以了
sudo sh NVIDIA-Linux-x86_64-470.xx.xx.run --dkms
参考教程:Nvidia