DrvMngGetConsoleLogLevel failed. (g_conLogLevel=3) dcmi model initialized failed,because the device is used.ret is -8020
收藏回复举报
DrvMngGetConsoleLogLevel failed. (g_conLogLevel=3) dcmi model initialized failed,because the device is used.ret is -8020
t('forum.solved') 已解决
发表于2024-02-27 10:53:26
0 查看

由于单张Ascend 300V 卡挂载了多个Docker容器,在某一个Docker容器内部执行 npu-smi info时好时坏,好的情况是容器内执行该命令有回显,该容器可以使用卡。坏的情况是,容器内执行该命令报错:DrvMngGetConsoleLogLevel failed. (g_conLogLevel=3) dcmi model initialized failed,because the device is used.ret is -8020

注意到之前有人讨论过这个问题:https://www.hiascend.com/forum/thread-0262138371315184060-1-1.html

如果只有一个容器挂载到卡上就没问题,如果有多个容器挂载到同一张卡上进入容器运行npu-smi info就会 dcmi model initialized failed, because the device is used, -8020; 

在上面的链接讨论中,官方给出了“设置所有芯片的容器共享模式”链接:https://www.hiascend.com/document/detail/zh/Atlas%20200I%20A2/23.0.RC3/re/npu/npusmi_088.html

我想知道的是,如果设置了所有芯片的容器共享模式,是否意味着多个容器可以同时使用单张卡执行推理;还是说仅仅是非占用芯片的容器也能查询芯片状态,但实际上使用的时候只能被第一个占用卡的容器使用,直至该容器释放对应芯片?

我要发帖子