登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
开源项目
>
人工智能
>
AI-人工智能
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
224
Star
1.3K
Fork
1.1K
Ascend
/
samples
代码
Issues
41
Pull Requests
99
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
Ascend310B4 运行 4_addn_frameworklaunch 时报错 No such file or directory:CustomOp/build_out/op_kernel/binary/ascend310b/binary_info_config.json
DONE
#IC2FR1
缺陷
XlinW
创建于
2025-04-19 18:28
一、问题现象(附报错日志上下文): ``` 2025-04-19 18:12:03 (12264) - [INFO] Start to generate AI Core operator files. 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the ir template:/root/learning_code/self_samples/4_addn_frameworklaunch/AddnCustom.json 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the op: AddnCustom 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the input_desc: srcList 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the output_desc: dst 2025-04-19 18:12:03 (12264) - [WARNING] The "attr" value is invalid or no "attr" exists in the map. 2025-04-19 18:12:03 (12264) - [INFO] Start to check the type and format between the inputs/outputs in IR template. 2025-04-19 18:12:03 (12264) - [INFO] Start to generate a new project. 2025-04-19 18:12:03 (12264) - [WARNING] File config.cmake lack of ASCEND_FRAMEWORK_TYPE. Please check your config env. 2025-04-19 18:12:03 (12264) - [WARNING] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/config.cmake already exists and will be overwrite! 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/config.cmake generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/op_host/addn_custom_tiling.h generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/op_host/addn_custom.cpp generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/op_kernel/addn_custom.cpp generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/framework/tf_plugin/tensorflow_addn_custom_plugin.cc generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/framework/tf_plugin/CMakeLists.txt generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] Generation completed. using ASCEND_HOME_PATH: /usr/local/Ascend/ascend-toolkit/latest Preset CMake variables: ASCEND_CANN_PACKAGE_PATH:PATH="/usr/local/Ascend/ascend-toolkit/latest" ASCEND_COMPUTE_UNIT:STRING="ascend310b" ASCEND_PACK_SHARED_LIBRARY:BOOL="False" ASCEND_PYTHON_EXECUTABLE:STRING="python3" CMAKE_BUILD_TYPE:STRING="Release" CMAKE_CROSS_PLATFORM_COMPILER:PATH="/usr/bin/aarch64-linux-gnu-g++" CMAKE_INSTALL_PREFIX:PATH="/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out" ENABLE_BINARY_PACKAGE:BOOL="True" ENABLE_CROSS_COMPILE:BOOL="False" ENABLE_SOURCE_PACKAGE:BOOL="True" ENABLE_TEST:BOOL="True" vendor_name:STRING="customize" -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Opbuild generating sources -- Opbuild generating sources - done -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CROSS_PLATFORM_COMPILER -- Build files have been written to: /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out Traceback (most recent call last): File "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/util/ascendc_ops_config.py", line 291, in <module> main() File "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/util/ascendc_ops_config.py", line 287, in main gen_all_config(args.path, args.soc, out_dir, args.skip_binary_info_config) File "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/util/ascendc_ops_config.py", line 235, in gen_all_config with os.fdopen(os.open(cfg_file, const_var.WFLAGS, const_var.WMODES), 'w') as fd: FileNotFoundError: [Errno 2] No such file or directory: '/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310b/binary_info_config.json' gmake[3]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend310b_gen_ops_config.dir/build.make:71: op_kernel/CMakeFiles/ascendc_bin_ascend310b_gen_ops_config] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:397: op_kernel/CMakeFiles/ascendc_bin_ascend310b_gen_ops_config.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:378: op_kernel/CMakeFiles/binary.dir/rule] Error 2 gmake: *** [Makefile:293: binary] Error 2 [ 16%] Building CXX object framework/tf_plugin/CMakeFiles/cust_tf_parsers.dir/tensorflow_addn_custom_plugin.cc.o [ 16%] Generating scripts/install.sh, scripts/upgrade.sh [ 16%] Built target gen_version_info [ 25%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/addn_custom.cpp.o [ 25%] Built target modify_vendor [ 33%] Building CXX object op_host/CMakeFiles/cust_optiling.dir/addn_custom.cpp.o [ 41%] Linking CXX shared library libcust_tf_parsers.so [ 41%] Built target cust_tf_parsers [ 50%] Building CXX object op_host/CMakeFiles/cust_opapi.dir/__/autogen/aclnn_addn_custom.cpp.o [ 58%] Linking CXX shared library libcust_opapi.so [ 58%] Built target cust_opapi [ 66%] Generating tbe/op_info_cfg/ai_core/ascend310b/aic-ascend310b-ops-info.json [ 66%] Built target ops_info_gen_ascend310b [ 75%] Generating tbe/op_info_cfg/ai_core/npu_supported_ops.json /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/autogen /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/tbe/op_info_cfg/ai_core [INFO] Succed generated /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/tbe/op_info_cfg/ai_core/npu_supported_ops.json [ 75%] Built target npu_supported_ops [ 83%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/__/autogen/op_proto.cc.o [ 91%] Linking CXX shared library libcust_opmaster_rt2.0.so [ 91%] Built target cust_optiling [ 91%] Built target optiling_compat [100%] Linking CXX shared library libcust_opsproto_rt2.0.so [100%] Built target cust_op_proto Run CPack packaging tool... CPack: Create package using External CPack: Install projects CPack: - Run preinstall target for: opp CPack: - Install project: opp [] CMake Error at /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/cmake_install.cmake:46 (file): file INSTALL cannot find "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/tbe/op_info_cfg/ai_core/ascend310b/aic-ascend310b-ops-info.json": No such file or directory. Call Stack (most recent call first): /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/cmake_install.cmake:57 (include) CMake Error at /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/cmake_install.cmake:58 (file): file INSTALL cannot find "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310b": No such file or directory. Call Stack (most recent call first): /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/cmake_install.cmake:57 (include) CMake Error at /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/cmake_install.cmake:62 (file): file INSTALL cannot find "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/binary/config": No such file or directory. Call Stack (most recent call first): /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/cmake_install.cmake:57 (include) CPack Error: Error when generating package: opp gmake: *** [Makefile:71: package] Error 1 ``` 二、软件版本: -- CANN 版本 (CANN 8.1.RC1.alpha002): --操作系统版本 (Linux orangepiaipro 5.10.0+ #1 SMP Tue Nov 26 15:45:36 CST 2024 aarch64 aarch64 aarch64 GNU/Linux): 三、测试步骤: ``` cd /root/learning_code/self_samples/4_addn_frameworklaunch bash install.sh -v Ascend310B4 ``` 四、日志信息: 用香橙派官网的镜像运行 **1_add_frameworklaunch** 会报错 ``` gmake[2]: *** No rule to make target 'autogen/aic-ascend310b4-ops-info.ini', needed by 'op_kernel/tbe/.impl_timestamp'. Stop. gmake[1]: *** [CMakeFiles/Makefile2:374: op_kernel/CMakeFiles/ascendc_impl_gen.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... ``` 在按照 ``` https://www.mindspore.cn/docs/zh-CN/r2.4.10/orange_pi/environment_setup.html#21-toolkit%E5%8D%87%E7%BA%A7 ``` 教程更新驱动,还是没有解决。 然后没有用vscode的终端,改用MobaXterm才编译运行成功。 ``` cd ../1_add_frameworklaunch/ bash install.sh -v Ascend310B4 cd CustomOp/build_out/ ./custom_opp_ubuntu_aarch64.run cd ../../AclNNInvocation bash run.sh ``` 但是在 **4_addn_frameworklaunch** 会出现找不到文件的问题。
一、问题现象(附报错日志上下文): ``` 2025-04-19 18:12:03 (12264) - [INFO] Start to generate AI Core operator files. 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the ir template:/root/learning_code/self_samples/4_addn_frameworklaunch/AddnCustom.json 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the op: AddnCustom 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the input_desc: srcList 2025-04-19 18:12:03 (12264) - [INFO] Start to parse the output_desc: dst 2025-04-19 18:12:03 (12264) - [WARNING] The "attr" value is invalid or no "attr" exists in the map. 2025-04-19 18:12:03 (12264) - [INFO] Start to check the type and format between the inputs/outputs in IR template. 2025-04-19 18:12:03 (12264) - [INFO] Start to generate a new project. 2025-04-19 18:12:03 (12264) - [WARNING] File config.cmake lack of ASCEND_FRAMEWORK_TYPE. Please check your config env. 2025-04-19 18:12:03 (12264) - [WARNING] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/config.cmake already exists and will be overwrite! 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/config.cmake generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/op_host/addn_custom_tiling.h generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/op_host/addn_custom.cpp generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/op_kernel/addn_custom.cpp generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/framework/tf_plugin/tensorflow_addn_custom_plugin.cc generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] File /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/framework/tf_plugin/CMakeLists.txt generated successfully. 2025-04-19 18:12:03 (12264) - [INFO] Generation completed. using ASCEND_HOME_PATH: /usr/local/Ascend/ascend-toolkit/latest Preset CMake variables: ASCEND_CANN_PACKAGE_PATH:PATH="/usr/local/Ascend/ascend-toolkit/latest" ASCEND_COMPUTE_UNIT:STRING="ascend310b" ASCEND_PACK_SHARED_LIBRARY:BOOL="False" ASCEND_PYTHON_EXECUTABLE:STRING="python3" CMAKE_BUILD_TYPE:STRING="Release" CMAKE_CROSS_PLATFORM_COMPILER:PATH="/usr/bin/aarch64-linux-gnu-g++" CMAKE_INSTALL_PREFIX:PATH="/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out" ENABLE_BINARY_PACKAGE:BOOL="True" ENABLE_CROSS_COMPILE:BOOL="False" ENABLE_SOURCE_PACKAGE:BOOL="True" ENABLE_TEST:BOOL="True" vendor_name:STRING="customize" -- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Opbuild generating sources -- Opbuild generating sources - done -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CROSS_PLATFORM_COMPILER -- Build files have been written to: /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out Traceback (most recent call last): File "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/util/ascendc_ops_config.py", line 291, in <module> main() File "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/util/ascendc_ops_config.py", line 287, in main gen_all_config(args.path, args.soc, out_dir, args.skip_binary_info_config) File "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/cmake/util/ascendc_ops_config.py", line 235, in gen_all_config with os.fdopen(os.open(cfg_file, const_var.WFLAGS, const_var.WMODES), 'w') as fd: FileNotFoundError: [Errno 2] No such file or directory: '/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310b/binary_info_config.json' gmake[3]: *** [op_kernel/CMakeFiles/ascendc_bin_ascend310b_gen_ops_config.dir/build.make:71: op_kernel/CMakeFiles/ascendc_bin_ascend310b_gen_ops_config] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:397: op_kernel/CMakeFiles/ascendc_bin_ascend310b_gen_ops_config.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:378: op_kernel/CMakeFiles/binary.dir/rule] Error 2 gmake: *** [Makefile:293: binary] Error 2 [ 16%] Building CXX object framework/tf_plugin/CMakeFiles/cust_tf_parsers.dir/tensorflow_addn_custom_plugin.cc.o [ 16%] Generating scripts/install.sh, scripts/upgrade.sh [ 16%] Built target gen_version_info [ 25%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/addn_custom.cpp.o [ 25%] Built target modify_vendor [ 33%] Building CXX object op_host/CMakeFiles/cust_optiling.dir/addn_custom.cpp.o [ 41%] Linking CXX shared library libcust_tf_parsers.so [ 41%] Built target cust_tf_parsers [ 50%] Building CXX object op_host/CMakeFiles/cust_opapi.dir/__/autogen/aclnn_addn_custom.cpp.o [ 58%] Linking CXX shared library libcust_opapi.so [ 58%] Built target cust_opapi [ 66%] Generating tbe/op_info_cfg/ai_core/ascend310b/aic-ascend310b-ops-info.json [ 66%] Built target ops_info_gen_ascend310b [ 75%] Generating tbe/op_info_cfg/ai_core/npu_supported_ops.json /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/autogen /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/tbe/op_info_cfg/ai_core [INFO] Succed generated /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/tbe/op_info_cfg/ai_core/npu_supported_ops.json [ 75%] Built target npu_supported_ops [ 83%] Building CXX object op_host/CMakeFiles/cust_op_proto.dir/__/autogen/op_proto.cc.o [ 91%] Linking CXX shared library libcust_opmaster_rt2.0.so [ 91%] Built target cust_optiling [ 91%] Built target optiling_compat [100%] Linking CXX shared library libcust_opsproto_rt2.0.so [100%] Built target cust_op_proto Run CPack packaging tool... CPack: Create package using External CPack: Install projects CPack: - Run preinstall target for: opp CPack: - Install project: opp [] CMake Error at /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/cmake_install.cmake:46 (file): file INSTALL cannot find "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/tbe/op_info_cfg/ai_core/ascend310b/aic-ascend310b-ops-info.json": No such file or directory. Call Stack (most recent call first): /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/cmake_install.cmake:57 (include) CMake Error at /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/cmake_install.cmake:58 (file): file INSTALL cannot find "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/binary/ascend310b": No such file or directory. Call Stack (most recent call first): /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/cmake_install.cmake:57 (include) CMake Error at /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/cmake_install.cmake:62 (file): file INSTALL cannot find "/root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/op_kernel/binary/config": No such file or directory. Call Stack (most recent call first): /root/learning_code/self_samples/4_addn_frameworklaunch/CustomOp/build_out/cmake_install.cmake:57 (include) CPack Error: Error when generating package: opp gmake: *** [Makefile:71: package] Error 1 ``` 二、软件版本: -- CANN 版本 (CANN 8.1.RC1.alpha002): --操作系统版本 (Linux orangepiaipro 5.10.0+ #1 SMP Tue Nov 26 15:45:36 CST 2024 aarch64 aarch64 aarch64 GNU/Linux): 三、测试步骤: ``` cd /root/learning_code/self_samples/4_addn_frameworklaunch bash install.sh -v Ascend310B4 ``` 四、日志信息: 用香橙派官网的镜像运行 **1_add_frameworklaunch** 会报错 ``` gmake[2]: *** No rule to make target 'autogen/aic-ascend310b4-ops-info.ini', needed by 'op_kernel/tbe/.impl_timestamp'. Stop. gmake[1]: *** [CMakeFiles/Makefile2:374: op_kernel/CMakeFiles/ascendc_impl_gen.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... ``` 在按照 ``` https://www.mindspore.cn/docs/zh-CN/r2.4.10/orange_pi/environment_setup.html#21-toolkit%E5%8D%87%E7%BA%A7 ``` 教程更新驱动,还是没有解决。 然后没有用vscode的终端,改用MobaXterm才编译运行成功。 ``` cd ../1_add_frameworklaunch/ bash install.sh -v Ascend310B4 cd CustomOp/build_out/ ./custom_opp_ubuntu_aarch64.run cd ../../AclNNInvocation bash run.sh ``` 但是在 **4_addn_frameworklaunch** 会出现找不到文件的问题。
评论 (
8
)
登录
后才可以发表评论
状态
DONE
TODO
WIP
DONE
CLOSED
REJECTED
负责人
未设置
Ch_confuse
ch-confuse
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
1
https://gitee.com/ascend/samples.git
git@gitee.com:ascend/samples.git
ascend
samples
samples
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册