After restarting the computer, the nvidia-smi command is incorrect and the graphics card driver cannot be found.

After restarting the computer, the nvidia-smi command is incorrect and the graphics card driver cannot be found.

Many computers (servers) will fail to find the nvidia graphics driver after shutting down or restarting, that is, the following error message: NVIDIA- SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.Insert image description here Maybe many people choose to reinstall the driver, but duck doesn't have to. Please refer to the solution to solve it. Reference blog: https://blog.csdn.net/weixin_44119674/article/details/106851411

solution

1. 2. 3. Check the corresponding installed driver version 4. Regenerate the driver module corresponding to nvidia sudo dkms install -m nvidia -v + the corresponding driver version number (mine is 460.32.03), that is, run the command: 5. Execute again : A familiar screen can appearsudo apt-get install dkms
cd /usr/src
lsCheck driver version


sudo dkms install -m nvidia -v 460.32.03
nvidia-smi
Insert image description here

Guess you like

Origin blog.csdn.net/fovever_/article/details/114015983