当前位置: 代码迷 >> 综合 >> 【DeepLearning】【环境配置】 nvidia-smi 命令
  详细解决方案

【DeepLearning】【环境配置】 nvidia-smi 命令

热度:36   发布时间:2023-12-06 13:19:13.0

nvidia-smi

4. nvidia-smi 问题

$ 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

使用一段时间后,出现上述问题。可能由于更新了 Linux 内核,导致内核内的 nvidia 显卡 module 被覆写,使得 Linux 内核无法与 显卡驱动通信。
重新安装显卡驱动(1.2)即可。

sudo service lightdm stopsudo ./NVIDIA-Linux-x86_64-390.59.run -no-opengl-filessudo service lightdm restart
$ lshw -c video

看configurure字段有木有driver字样,若有内容,则表示对应的显卡驱动装好了。

https://blog.csdn.net/Siyuada/article/details/89423033
Menu will appear if you press and hold Shift during loading Grub, if you boot using BIOS. When your system boots using UEFI, press Esc.

For permanent change you’ll need to edit your /etc/default/grub file – place a “#” symbol at the start of line GRUB_HIDDEN_TIMEOUT=0.

Save changes and run sudo update-grub to apply changes.

  相关解决方案