【ubuntu】解决Unable to determine the device handle for GPU 0000:02:00.0: Unknown Error
一、问题现象
打开应用突然打不开了,一个docker应用依赖显卡
报错:failed to create shim task: OCI runtime create failed:xxxxxx
二、定位处理
1、查看显示情况
$ nvidia-smi Unable to determine the device handle for GPU 0000:02:00.0: Unknown Error
2、查看是不是有显卡
lspci | grep -i nvidia
$ lspci| grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 5GB] (rev ff)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev ff)
显卡是在的,但是rev ff
就是显卡关闭了。
三、处理方法
使用了sudo nvidia-smi -pm 1
然后重启电脑
再次查看
$ lspci| grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 5GB] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)
显卡已经是打开状态
参考链接:
https://blog.csdn.net/qq_54478153/article/details/128202846
https://blog.csdn.net/weixin_42792088/article/details/134176781