已合并
feat: 构建系统新增 *_fallback.cpp 编译支持,并更新 opbase 版本依赖 #3394
tianqiguang创建于 6月17日
feat: 构建系统新增 *_fallback.cpp 编译支持,并更新 opbase 版本依赖 #3394
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 tianqiguang 的贡献)6月17日 创建了 pull request,commit 752c7c04
6月17日 添加了label:cann-cla/yes
CANN-robot
6月17日 评论:
6月17日 评论:
CANN-robot
6月17日 评论:
6月17日 评论:
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 |
|---|---|---|
| repo-cann/ops-math | ✅ 宋凯, 张磊 (2/2) | ✅ 宋凯, 张磊 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


tianqiguang
6月17日 评论:
6月17日 评论:
compile


Ttianqiguang
6月17日 update merge request[project id: 7649531, iid: 3394, commit_id: 08cb5551c9891d99f852d6a5ae43db026ab97fb9] virtual merging success
6月17日 update merge request[project id: 7649531, iid: 3394, commit_id: 08cb5551c9891d99f852d6a5ae43db026ab97fb9] virtual merging success
6月17日 添加了label:ci-pipeline-running
CANN-robot
6月17日 评论:
6月17日 评论:
流水线任务触发成功
任务链接 [bf81c762c7cb4846a457c8707be97113][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| UT_Test_experimental | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-06-17 15:57:01] CI执行结束


CANN-robot
6月17日 评论:
6月17日 评论:
流水线任务触发成功
任务链接 [f47f363205274df399163a18d8560086][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Pr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> |
[2026-06-17 15:43:39] CI执行结束


6月17日 添加了label:api-check-pass
6月17日 删除了label:ci-pipeline-running
6月17日 添加了label:ci-pipeline-passed
6月18日 修改标题为 “feat: 构建系统新增 *_fallback.cpp 编译支持,并更新 opbase 版本依赖”,原标题为“新增支持fallback内容编译”
6月18日 修改了pull request 的描述
songkai111
6月18日 评论:
6月18日 评论:
/lgtm
/approve


6月18日 添加了label:approved
6月18日 添加了label:lgtm
6月18日 关闭了关联的issue
6月18日 合入了pull request
描述
构建系统新增算子 Fallback 实现文件(
*_fallback.cpp)的自动编译支持,并更新 opbase 依赖版本以引入op_fallback.h接口。改动原因
算子 Fallback 实现文件(如
foreach_add_list_fallback.cpp)需要被编译系统自动收录,此前file(GLOB ...)仅匹配*_graph_*.cpp模式,无法自动编译 fallback 文件。同时 opbase 需更新至包含 fallback 接口的版本。改动方法
cmake/func.cmake:在add_all_modules_sources()和add_graph_plugin_sources()两个宏的file(GLOB OP_GRAPH_SRCS ...)中新增*_fallback.cpp匹配模式cmake/third_party/opbase.cmake:更新OPBASE_TAG_ID至包含include/op_common/op_graph/op_fallback.h和op_fallback_internal.h的 opbase 版本关联的Issue
测试
本地编译通过,确认
*_fallback.cpp文件可被正确编译链接。文档更新
无
类型标签
Related Roadmap: https://gitcode.com/cann/ops-math/issues/1253