当前位置:   article > 正文

查看英伟达显卡信息,解决nvidia-smi命令报错_nvidia-smi: no such file or directory

nvidia-smi: no such file or directory

跑训练的时候,提示cuda不存在,nvidia-smi报错:

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

装过nvidia 显卡驱动了,nvidia-smi报错,避免重装驱动的繁琐,找到以下解决方案:

先查看自己之前安装的驱动版本

  1. ls /usr/src | grep nvidia
  2. nvidia-418-418.39

我的驱动版本是nvidia-418-418.39,在终端输入命令:

  1. sudo apt install dkms
  2. sudo dkms install -m nvidia -v 418.39

解决!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/397982
推荐阅读
相关标签
  

闽ICP备14008679号