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()
这是算有问题吗
可以尝试按照 官网 的流程进行MindSpore和CANN的安装,如果仍然有问题可以到Ascend官网和 MindSpore开源仓 上提交issue
可以尝试按照 官网 的流程进行MindSpore和CANN的安装,如果仍然有问题可以到Ascend官网和 MindSpore开源仓 上提交issue
请问下后续有解决吗,我也遇到类似的问题