mindspore-lab/mindyolo

RuntimeError: Unsupported device target Ascend.

Closed this issue · 7 comments

运行demo/predict.py 报错

self._context_handle.set_param(param, value)

RuntimeError: Unsupported device target Ascend. This process only supports one of the ['CPU']. Please check whether the Ascend environment is installed and configured correctly, and check whether current mindspore wheel package was built with "-e Ascend". For details, please refer to "Device load error message".


  • Device load error message:

Load dynamic library: libmindspore_ascend.so.2 failed. libge_runner.so: cannot open shared object file: No such file or directory
Load dynamic library: libmindspore_ascend.so.1 failed. libge_runner.so: cannot open shared object file: No such file or directory


  • C++ Call Stack: (For framework developers)

mindspore/core/utils/ms_context.cc:327 SetDeviceTargetFromInner

看起来是mindspore和cann安装的问题,可以尝试运行以下代码check mindspore是否能正常调用ascend

>>> import mindspore as ms;ms.run_check()
ms.run_check()

image

这是算有问题吗

是的 看起来mindspore无法检测到ascend,只能调用到cpu
image

可以尝试按照 官网 的流程进行MindSpore和CANN的安装,如果仍然有问题可以到Ascend官网和 MindSpore开源仓 上提交issue

可以尝试按照 官网 的流程进行MindSpore和CANN的安装,如果仍然有问题可以到Ascend官网和 MindSpore开源仓 上提交issue

嗯谢谢,这边MindSpore就是官网步骤安装的
39bd4f589241997f4d6d38bb0226151e_f18f7af1_13585450

请问下后续有解决吗,我也遇到类似的问题