问题:
$ 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.
解决方案:
- 记录版本,如我这边是430.64;
ls /usr/src | grep nvidia
nvidia-430.64
- 安装dkms;
sudo apt install dkms
- 重新安装驱动,版本号改成自己的。
sudo dkms install -m nvidia -v 430.64
网友评论