踩坑1-NIDIA驱动失效简单解决方案:NVIDIA-SMI has failed because it could‘t communicate with the NVIDIA driver.

1.打开之前安装的window+ubuntu双系统,发现之前安装的NIVDIA显卡失败具体如下在

终端中输入

sudo 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.

 2使用nvcc -V检查驱动与cuda

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130

3.查看驱动版本信息

ls /usr/src | grep nvidia

 

4.执行一下命令进行,注意版本号与实际安装版本号一致

sudo apt-get install dkms

sudo dkms install -m nvidia -v 430.50

 

5.输入nvidia-smi,ok!

 

 

posted @ 2022-02-18 17:06  ID是菜鸟  阅读(835)  评论(0编辑  收藏  举报