欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

解决 NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.

程序员文章站 2022-05-27 12:46:48
...

错误:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. 
Make sure that the latest NVIDIA driver is installed and running.

 

情况:

  •         CUDA:确实装过
  •          nvcc -V :有信息出现

 

解决:

      1)查询当前使用的 nvidia 驱动 版本号

ls /usr/src | grep nvidia

#假如 输出是 nvidia-450.57

      2)安装相关工具

sudo apt install dkms

      3)重新安装驱动

sudo dkms install -m nvidia -v 450.57

 

 

相关标签: Linux