Pull Request已成功合入, 合并人@CANN-robot
(感谢 tang-haojie 的贡献)变更摘要
此 PR 主要包含两项变更:移除 aclgrphCalibration 相关的校准代码(净删除约 131 行),以及为 rt2 运行时内部线程设置可辨识的线程名称,便于调试和问题定位。
主要改动
- 移除 aclgrphCalibration 校准模块:从 3 个文件中删除了约 131 行代码,涉及
aclgrphCalibration相关的校准逻辑,简化了运行时代码。 - 设置 rt2 运行时线程名称:在
HybridModelAsyncExecutor::RunInternal()中添加了SET_THREAD_NAME(pthread_self(), "ge_rt2_mdlrun")调用,将 rt2 模型运行的内部线程命名为ge_rt2_mdlrun,便于在调试器中识别该线程。


代码审查
审查总结
本次 PR 共涉及 4 个文件变更(含 1 个删除),审查结果如下:
| 优先级 | 数量 |
|---|---|
| P0 | 1 |
| P1 | 0 |
| P2 | 0 |
| P3 | 0 |
各文件审查结论:
runtime/v1/hybrid/executor/hybrid_model_async_executor.cc:发现 1 个 P0 问题 — 新增SET_THREAD_NAME调用但缺少必要的#include "common/compile_profiling/ge_call_wrapper.h",将导致编译失败。docs/zh/api/graph_engine_api/README.md:仅从目录中移除对已删除文件的引用,无问题。docs/zh/api/graph_engine_api/cpp/ge/aclgrphCalibration.md:整个文件被删除,属于 API 移除的配套清理,无问题。docs/zh/user_guides/graph_dev/more_features/quantization.md:移除"自动量化"章节及其对aclgrphCalibration的引用,全文无残留引用,无问题。
整体风险评估: 该 PR 的主要风险在于 C++ 编译失败(P0),需在合入前补充缺失的头文件引用。文档变更部分干净无副作用。
| 类型 | 数量 |
|---|---|
| 🔴 阻塞 | 1 |
| 🟡 建议 | 0 |
⛔ 需要修改


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/ge | ✅ zhanj, Mexyy, yuht9 (3/2) | ✅ zhanj (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
tang-haojie, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [9c30c3aff6934df59876430697ef9c21][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck_Pr | ✅ SUCCESS | ||
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| codecheck_dt | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-07-16 17:06:59] CI执行结束


compile


流水线任务触发成功
任务链接 [c841ed78a8c941699c27ba109a4a27be][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_ARM_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-07-16 17:15:19] CI执行结束


流水线任务触发成功
任务链接 [47cbfc308f8d4c92ad3c05b45fe59aef][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_X86_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_dflow | ✅ SUCCESS | ||
| UT_Test_ge_common | ✅ SUCCESS | ||
| UT_Test_parser | ✅ SUCCESS | ||
| UT_Test_python | ✅ SUCCESS | >>>>> | |
| UT_Test_rt | ✅ SUCCESS | ||
| UT_Test_acl | ✅ SUCCESS | ||
| UT_Test_autofuse | ✅ SUCCESS | ||
| UT_Test_executor | ✅ SUCCESS | ||
| UT_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_dflow | ✅ SUCCESS | ||
| ST_Test_ge_common | ✅ SUCCESS | ||
| ST_Test_parser | ✅ SUCCESS | ||
| ST_Test_python | ✅ SUCCESS | >>>>> | |
| ST_Test_rt | ✅ SUCCESS | ||
| ST_Test_autofuse | ✅ SUCCESS | ||
| ST_Test_executor | ✅ SUCCESS | ||
| ST_Test_hetero | ✅ SUCCESS | ||
| ST_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_autofuse_e2e | ✅ SUCCESS | ||
| UT_Test_fe | ✅ SUCCESS | ||
| UT_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_fe | ✅ SUCCESS | ||
| ST_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_ge_common_atc | ✅ SUCCESS | ||
| UT_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_fe | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_fe | ✅ SUCCESS | >>>>> |
[2026-07-16 17:21:40] CI执行结束


流水线任务触发成功
任务链接 [d74826d95129465094c867bba1c3b058][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck_Pr | ✅ SUCCESS | ||
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| codecheck_dt | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-07-16 17:13:25] CI执行结束


🔴 Critical
在 RunInternal() 方法中新增了对 SET_THREAD_NAME(pthread_self(), "ge_rt2_mdlrun") 的调用(第 233 行),但该文件未引入定义该宏的头文件 common/compile_profiling/ge_call_wrapper.h。
通过检查项目内其他使用 SET_THREAD_NAME 的文件(model_executor.cc、davinci_model.cc、rt_v2_stage_state.cc、hybrid_model_rt_v2_executor.cc 等),它们均显式 #include "common/compile_profiling/ge_call_wrapper.h"。当前文件仅引入了 common/profiling_definitions.h,该头文件不包含 ge_call_wrapper.h,也未通过其他包含链间接引入。
后果:编译时 SET_THREAD_NAME 为未定义标识符,导致编译失败。
建议:在文件头部 #include 区域添加对 ge_call_wrapper.h 的引用,参照其他使用 SET_THREAD_NAME 的文件的标准做法。建议加在 #include "common/profiling_definitions.h" 之后。


/approve


Pull Request
描述
aclgrphCalibration接口不在ge仓,相关docs和readme也删除。
HybridModelAsyncExecutor::RunInternal这个线程函数没有设置线程名,此次加上
变更类型
请选择本次引入的变更类型:
关联的Issue
如何测试
描述测试此变更的步骤和前提条件:
1.
2.
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。