已合并
feat: migrate aicpu opdef json payloads to cpp defs #4390
zhaowenrui创建于 4月28日
feat: migrate aicpu opdef json payloads to cpp defs #4390
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhaowenrui 的贡献)4月28日 创建了 pull request,commit cfebd3b4
CANN-robot
4月28日 评论:
4月28日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| activation | ✅ 陈琦, 范其瑞 (2/2) | ✅ 陈琦 (1/1) |
| cmake | ✅ 范其瑞, 陈琦 (2/2) | ✅ 陈琦 (1/1) |
| common | ✅ 陈琦, 范其瑞 (2/2) | ✅ 陈琦 (1/1) |
| control | ✅ 范其瑞, 陈琦 (2/2) | ✅ 陈琦 (1/1) |
| index | ✅ 陈琦, 范其瑞 (2/2) | ✅ 陈琦 (1/1) |
| scripts | ✅ 范其瑞, 陈琦 (2/2) | ✅ 陈琦 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zhaowenrui666, thanks for your pull request. All authors of the commits have signed the CLA. 👍


4月28日 添加了label:cann-cla/yes
4月28日 将chenfeng61,FelixTang7,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liu-wei,liubo75,tangweiwei2,zhangyuxiang0119,liujie12345678,Chen_HaoWen,wangyongguang,zhang-wu设为评审人
4月28日 将chenfeng61,FelixTang7,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liu-wei,liubo75,tangweiwei2,zhangyuxiang0119,liujie12345678,Chen_HaoWen,wangyongguang,zhang-wu设为评审人
4月28日 将chenfeng61,FelixTang7,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liu-wei,liubo75,tangweiwei2,zhangyuxiang0119,liujie12345678,Chen_HaoWen,wangyongguang,zhang-wu设为审查人
4月28日 将chenfeng61,FelixTang7,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liu-wei,liubo75,tangweiwei2,zhangyuxiang0119,liujie12345678,Chen_HaoWen,wangyongguang,zhang-wu设为审查人
此处折叠了161条消息 查看更多
5月18日 添加了label:lgtmapproved
CANN-robot
5月18日 评论:
5月18日 评论:
5月18日 关闭了关联的issue
5月18日 合入了pull request
描述
当前部分 AICPU 算子的 opdef 仍以 JSON 形式维护,构建时需要额外收集 JSON 文件,算子定义入口和维护方式不统一,不利于后续持续迁移和统一管理。
本次 PR 做了什么:
common/inc/aicpu/aicpu_op_def.h,补充 AICPU opdef 的公共声明。CMakeLists.txt以及cmake/opbuild.cmake、cmake/symbol.cmake,支持*_aicpu_def.cpp的统一收集和构建。scripts/kernel/binary_script/aicpu_parser_ini_to_json.py,补齐相关脚本能力。关联的Issue
测试
08453e64840072937d255e0ad154825266439ba4。cmake -S /home/jiumao/open/ops-nn -B /home/jiumao/open/ops-nn/build_custom,完成build_custom配置刷新。cmake --build /home/jiumao/open/ops-nn/build_custom --target gen_aicpu_json_from_opdef -j8,重新生成build_custom/autogen/aicpu_kernel.ini、build_custom/aicpu_opdef_kernel.json、build_custom/cust_aicpu_kernel.json。python3 scripts/kernel/binary_script/aicpu_parser_ini_to_json.py build_custom/autogen/aicpu_kernel.ini /tmp/ops_nn_aicpu_verify.json,输出Compile op info cfg successfully.。python3 -m unittest tests/scripts/parser_ini_guard/test_aicpu_parser_ini_to_json.py,6/6用例通过。parser_ini.py,因此 AICore before/after 回归按口径豁免。文档更新
无
类型标签