第一次停电,NVIDIA-SMI就出错用不了,于是我重装了显卡驱动。第二次停电,又NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver,但这次换个方法同样解决了问题。
自从在Unbuntu跑大模型,每次遭遇断电就会导致NVIDIA-SMI命令失效,报错如下:
root@ss:/home/ssss# 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.
每一次笔者是乖乖地重装了显卡驱动,第二次停电又坏了。越想越不合理,不至于每次必坏吧,于是网上搜索了另一个方法成功解决了问题。
1306 ls /usr/src | grep nvidia #查看本机的驱动版本
1307 apt install dkms
1308 dkms install -m nvidia -v 550.54.15
1309 nvidia-smi #成功
本文《unbuntu 每次停电必坏,NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver》由爱思考吧 isres.com 分享,转载请注明出处。本文网址:https://www.isres.com/jingyan2/NVIDIA-SMI.html
本站主要收集测评能够节省时间和提升效率的软件工具并分享使用与学习的过程和感受,任何情况下用户都需遵守所使用软件资源的相关协议。与《unbuntu 每次停电必坏,NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver》有关的本站文章及资源仅供个人学习交流使用,相关资源请下载后24小时内删除,请勿用于其它用途,因此产生的任何问题由您自行承担。