The nvidia driver needs to be reinstalled, so the previous version needs to be uninstalled.
view version
lspci | grep -i nvidia
Due to driver problems, the specific model of the graphics card cannot be displayed. Enter 2504 in the URL below, and you can see that the graphics card model is
GeForce GTX 1080 Ti
method :
1. View installed nvidia module commands
rpm -qa|grep -i nvid|sort
2. Delete related modules
yum remove kmod-nvidia-*
3. Completely uninstall the nvidia driver
yum remove "*nvidia*"
4. Completely uninstall CUDA TOOLKIT
yum remove "*cublas*" "cuda*"
5. Be sure to restart after uninstalling the driver
sudo reboot
Important:
Uninstall the previously loaded driver (temporarily valid, once the computer is restarted, there will still be Driver/library version mismatch problems
sudo lsof /dev/nvidia*
sudo kill -9 7707
若有多个使用nvidia的进程,则kill后面加上相关的PID号
The process of installing cuda and cudnn is the same as my other blog
Reference:
Linux, centos7 successfully installed the graphics card driver
Reference:
The version correspondence between cuda and cudnn can refer to:
The version correspondence between cuda and cudnn