jianyunchao / mindlearning

MindSpore learning from scratch.
0 stars 0 forks source link

【Ascend】CANN社区商用包安装在个人用户目录环境变量设置 #12

Open jianyunchao opened 9 months ago

jianyunchao commented 9 months ago

背景:官网下载社区版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".



jianyunchao commented 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