Closed
[Bug-Report|缺陷反馈]: [AI 识别] AddExample 算子 run_example 运行失败 error 161001 (aclnnAddExampleGetWorkspaceSize) #693
StoneChan_Add on Aug 4Closed at Aug 5
Aug 4 Added label: bug-report
Aug 4 Assign liu-wei as responsible person
liu-wei
Aug 4 Comments:
Aug 4 Comments:
感谢反馈。经在本仓环境复现,确认该问题可重现,根因为编译时 --soc 取值与实际硬件 SoC 版本不匹配,建议在run_example增加soc跟编译时候一致性说明。
bash build.sh --run_example add_example eager cust --vendor_name=custom
注意:运行样例时需确保编译算子包使用的
--soc与实际硬件 SoC 版本一致,否则可能报error 161001。如遇此错误,请回到第 2 节核对--soc取值后重新编译安装。
预期输出:打印算子AddExample的加法计算结果,表明算子已成功部署并正确执行。
add_example first input[0] is: 1.000000, second input[0] is: 1.000000, result[0] is: 2.000000


Aug 5 changed custom state from 进行中 to 已完成
Aug 5 Close issue
Describe the current behavior / 问题描述 (Mandatory / 必填)
按 QUICKSTART 第 5 步执行
bash build.sh --run_example add_example eager cust --vendor_name=custom后,算子运行失败,报 error 161001(aclnnAddExampleGetWorkspaceSize failed)。编译和安装均已成功,但运行样例时无法获取 workspace。Environment / 环境信息 (Mandatory / 必填)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
bash build.sh --pkg --soc=ascend950 --ops=add_example -j16(成功)sudo -E --force ./build_out/cann-ops-cv-*linux*.run(成功)export LD_LIBRARY_PATH=${ASCEND_HOME_PATH}/opp/vendors/custom_cv/op_api/lib:${LD_LIBRARY_PATH}bash build.sh --run_example add_example eager cust --vendor_name=customDescribe the expected behavior / 预期结果 (Mandatory / 必填)
按 QUICKSTART 预期,应打印 AddExample 的加法计算结果:
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
Special notes for this issue / 备注 (Optional / 选填)
--soc参数,可能导致编译产物与运行环境 SoC 不匹配(见 issue-5)。