Open jianyunchao opened 9 months ago
根因:找不到liboptiling.so动态链接库
解决方案:find对应so的路径,导出环境变量
source /your/path/Ascend/ascend-toolkit/set_env.sh
export LD_LIBRARY_PATH=/your/path/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling/lib/linux/`arch`/:$LD_LIBRARY_PATH
背景:官网下载社区版CANN没有安装在系统默认目录,使用mindspore报错
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. liboptiling.so: cannot open shared object file: No such file or directory Load dynamic library: libmindspore_ascend.so.1 failed. liboptiling.so: cannot open shared object file: No such file or directory
C++ Call Stack: (For framework developers)
mindspore/core/utils/ms_context.cc:355 SetDeviceTargetFromInner