Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhengfeiteng 的贡献)变更摘要
这是一个重构性质的 PR,核心目的是将 protobuf 生成逻辑从仓库内自带的 CMake 函数切换为工程(cann-cmake)提供的通用函数:删除本地 cmake/func.cmake 中自定义的 protobuf_generate 函数定义,并把各 CMake 调用点改为调用 generate_cann_protobuf;同时升级 cann-cmake 依赖版本以保证新函数可用。PR 的测试方式为对比修改前后的 runtime 包一致性。
主要改动
- 升级
cann-cmake依赖:cmake/fetch_cann_cmake.cmake中将CANN_CMAKE_TAG由master-049升级为master-053,并同步更新了对应的URL_HASHSHA256 校验值。 - 移除本地
protobuf_generate函数:cmake/func.cmake中删除了自定义的protobuf_generate函数定义(含 proto 文件遍历、选择host_protoc/PROTOC_PROGRAM、通过add_custom_command生成.pb.cc/.pb.h等逻辑),不再在仓库内维护该实现。 - 切换调用点为工程函数:
src/dfx/adump/adump/adump_ascend031/ascend_dump.cmake中原先调用protobuf_generate的语句改为调用generate_cann_protobuf,参数(组件名、源文件变量、头文件变量、proto 文件列表及TARGET)保持不变,行为与原先保持一致。


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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/runtime | ✅ 王涛, 侯延保 (2/2) | ✅ 王涛 (1/1) |
| src/aicpu_sched | ✅ ZhaiPeiChao, 侯延保 (2/2) | ✅ ZhaiPeiChao (1/1) |
| src/dfx | ✅ newstarzj, 侯延保 (2/2) | ✅ newstarzj (1/1) |
| src/platform | ✅ jason_yuan_ye, 侯延保 (2/2) | ✅ jason_yuan_ye (1/1) |
| src/queue_schedule | ✅ ZhaiPeiChao, 侯延保 (2/2) | ✅ ZhaiPeiChao (1/1) |
| src/tsd | ✅ ZhaiPeiChao, 侯延保 (2/2) | ✅ ZhaiPeiChao (1/1) |
| tests/ut/adump | ✅ newstarzj, 侯延保 (2/2) | ✅ newstarzj (1/1) |
| tests/ut/aicpu_sched | ✅ ZhaiPeiChao, 侯延保 (2/2) | ✅ ZhaiPeiChao (1/1) |
| tests/ut/msprof | ✅ newstarzj, 侯延保 (2/2) | ✅ newstarzj (1/1) |
| tests/ut/platform | ✅ jason_yuan_ye, 侯延保 (2/2) | ✅ jason_yuan_ye (1/1) |
| tests/ut/queue_schedule | ✅ ZhaiPeiChao, 侯延保 (2/2) | ✅ ZhaiPeiChao (1/1) |
| tests/ut/tsd | ✅ ZhaiPeiChao, 侯延保 (2/2) | ✅ ZhaiPeiChao (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zhengfeiteng, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


/ai review


流水线任务触发成功
任务链接 [40acc84516f54183bf3fc02837d923f7][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_acl | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_v201 | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_c | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_david | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_910b | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_common | ✅ SUCCESS | >>>>> | |
| UT_Test_platform | ✅ SUCCESS | >>>>> | |
| UT_Test_qs | ✅ SUCCESS | >>>>> | |
| UT_Test_aicpusd | ✅ SUCCESS | >>>>> | |
| UT_Test_tsd | ✅ SUCCESS | >>>>> | |
| UT_Test_error_manager | ✅ SUCCESS | >>>>> | |
| UT_Test_slog | ✅ SUCCESS | >>>>> | |
| UT_Test_atrace | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_part1 | ✅ SUCCESS | ||
| UT_Test_msprof_part2 | ✅ SUCCESS | ||
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| UT_Test_camodel_check | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_report | ✅ SUCCESS | >>>>> |
[2026-08-27 16:47:50] CI执行结束


流水线任务触发成功
任务链接 [b40dabdc457543ec8ca746c158fa38af][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Check_Pr | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-08-27 16:18:25] CI执行结束


compile


流水线任务触发成功
任务链接 [0aa7ede0fb3040f0997d96b342d13306][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_acl | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_v201 | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_c | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_david | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_910b | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_common | ✅ SUCCESS | >>>>> | |
| UT_Test_platform | ✅ SUCCESS | >>>>> | |
| UT_Test_qs | ✅ SUCCESS | >>>>> | |
| UT_Test_aicpusd | ✅ SUCCESS | >>>>> | |
| UT_Test_tsd | ✅ SUCCESS | >>>>> | |
| UT_Test_error_manager | ✅ SUCCESS | >>>>> | |
| UT_Test_slog | ✅ SUCCESS | >>>>> | |
| UT_Test_atrace | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_part1 | ✅ SUCCESS | ||
| UT_Test_msprof_part2 | ✅ SUCCESS | ||
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| UT_Test_camodel_check | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_report | ✅ SUCCESS | >>>>> |
[2026-08-31 10:10:31] CI执行结束


/lgtm


/approve


/lgtm
/approve


/approve


Pull Request
描述
请清晰准确地描述本次 Pull Request 的意图和变更内容。
变更类型
请选择本次引入的变更类型:
关联的Issue
如何测试
描述测试此变更的步骤和前提条件:
1.对比修改前后runtime包,一致。
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。