本文主要是介绍【E20002】RuntimeError: call aclnnAddmm failed,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错如下:
RuntimeError: call aclnnAddmm failed, detail:E20002: Value [/usr/local/Ascend/nnrt/7.0.0/opp/] for environment variable [ASCEND_OPP_PATH] is invalid when load buildin op store.Solution: Reset the environment variable by referring to the installation guide.TraceBack (most recent call last):[GraphOpt][Init] Failed to build OpsStoreInfo Vector.[FUNC:Initialize][FILE:configuration.cc][LINE:280][FusionMngr][Init] Failed to initialize configuration, return status is [53608462][FUNC:Initialize][FILE:fusion_manager.cc][LINE:110]PluginManager InvokeAll failed.[FUNC:Initialize][FILE:ops_kernel_manager.cc][LINE:96]OpsManager initialize failed.[FUNC:InnerInitialize][FILE:gelib.cc][LINE:237]GELib::InnerInitialize failed.[FUNC:Initialize][FILE:gelib.cc][LINE:165][Initialize][Ge]GEInitialize failed. ge result = 4294967295[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161][Init][Compiler]Init compiler failed[FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145][Set][Options]OpCompileProcessor init failed![FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145]Dir /usr/local/Ascend/nnrt/latest/opp/built-in/op_impl/ai_core/tbe/config/ascend910/ is invalid.Failed to read dir: /usr/local/Ascend/nnrt/latest/opp/built-in/op_impl/ai_core/tbe/config/ascend910/Initialize OpKernelLib failed.Failed to Prepare.AclOpKernelInit failed opTypeCannot parse json for config file [mul.json].Failed to parse kernel in mul.json.Cannot parse json for config file [not_equal.json].Failed to parse kernel in not_equal.json.Cannot parse json for config file [cast.json].Failed to parse kernel in cast.json.Cannot parse json for config file [cumsum.json].Failed to parse kernel in cumsum.json.Cannot parse json for config file [add.json].Failed to parse kernel in add.json.Op Mul does not has any binary.Kernel GetWorkspace failed. opType: 174Op Cast does not has any binary.Kernel GetWorkspace failed. opType: 49Op Add does not has any binary.Kernel GetWorkspace failed. opType: 9Cannot parse json for config file [gather_v2.json].Failed to parse kernel in gather_v2.json.Op GatherV2 does not has any binary.Kernel GetWorkspace failed. opType: 97Cannot parse json for config file [layer_norm_v3.json].Failed to parse kernel in layer_norm_v3.json.Cannot parse json for config file [muls.json].Failed to parse kernel in muls.json.Op has no infershape func, opType: TransDataInfer Shape failed.InferShape failed.Segmentation fault (core dumped)
报错原因:
ascend-toolkit
不能和nnrt
同时安装
解决方案:
rm -rf /usr/local/Ascend/nnrt
并且在~/.bashrc
中去掉source /usr/local/Ascend/nnrt/set_env.sh
保留如下几个即可
source /usr/local/Ascend/ascend-toolkit/set_env.sh
source /usr/local/Ascend/nnae/set_env.sh
source /usr/local/Ascend/atb/set_env.sh
source /usr/local/Ascend/aie/set_env.sh
这篇关于【E20002】RuntimeError: call aclnnAddmm failed的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!