服务器断电后,重启后显卡驱动经常失效。(遇到很多次了)
输入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.
解决方法很简单:
1. 检查驱动
nvcc -V
2. 查看已安装驱动的版本信息
ls /usr/src | grep nvidia
3. 依次输入以下命令
sudo apt-get install dkms (安装过dkms的可以省略)
sudo dkms install -m nvidia -v {} (方括号是自己的版本,如465.19.01)