使用 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.
安装过程出现错误
ERROR (dkms apport): binary package for nvidia: ..* not found
Error! Bad return status for module build on kernel: 5.13.0-51-generic (x86_64)
一、 nvcc -V
二、 ls /usr/src | grep nvidia
三、 安装dkms
sudo apt-get install dkms
四、 安装nvidia dkms
sudo dkms install -m nvidia -