×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

mlu270 docker 使用mm.Device()报错 待解决 whcjb2023-08-03 16:16:10 回复 3 查看 技术答疑 使用求助
mlu270 docker 使用mm.Device()报错
分享到:

2023-08-03 08:13:40.581982: [cnrtError] [291] [Card : 0] Error occurred during calling 'cnInit' in CNDrv interface.

2023-08-03 08:13:40.581995: [cnrtError] [291] [Card : 0] Return value is 100004, CN_ERROR_NO_DEVICE, means that "No useful mlu device"

2023-08-03 08:13:40.581998: [cnrtError] [291] [Card : 0] Failed to initialize CNDrv.

2023-08-03 08:13:40.582003: [cnrtError] [291] [Card : 0] Error occurred during calling 'cnDeviceGetCount' in CNDrv interface.

2023-08-03 08:13:40.582006: [cnrtError] [291] [Card : 0] Return value is 100002, CN_ERROR_NOT_INITIALIZED, means that "initialization error"

2023-08-03 08:13:40.582010: [cnrtError] [291] [Card : 0] get device count failed!

2023-08-03 08:13:40.582040: [cnrtError] [291] [Card : 0] Failed to initialize CNRT 632015

2023-08-03 08:13:40.582088: [cnrtError] [291] [Card : 0] Set the current device ordinal failed.

2023-08-03 08:13:40.582101: INFO:  magicmind/runtime/resource/cn_device.cc:29] [CNRT] Runtime Error(100006 : invalid argument.)


docker 

yellow.hub.cambricon.com/magicmind/release/x86_64/magicmind:1.1.0-x86_64-ubuntu20.04-py_3_7


代码

       with mm.System() as sys:

            # create device

            dev = mm.Device()

            dev.id = 0

            assert dev.active().ok()


版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭