已合并
feat: 为 PassPluginLoader Load/Unload 补充 active_users_ 日志 #4409
why you创建于 22 天前
feat: 为 PassPluginLoader Load/Unload 补充 active_users_ 日志 #4409
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 why you 的贡献)atomgit-bot
22 天前 评论:
22 天前 评论:
变更摘要
该 PR 主要对齐 Custom Op 侧 runtime/custom_op/custom_op_loader.cc 的日志风格,在 compiler/graph/fusion/pass/pass_plugin_loader.cc 的 PassPluginLoader::Load() 与 PassPluginLoader::Unload() 中,为 active_users_ 计数增减后的状态补充 GELOGD 调试日志,便于 pass 插件加载/卸载链路的问题定位。
主要改动
Load()新增计数日志: 在active_users_++之后新增GELOGD("LoadPassPlugins active_users_=%zu", active_users_),用于记录 pass 插件加载后的活跃用户计数。Unload()新增计数日志: 在active_users_--之后新增GELOGD("UnloadPassPlugins active_users_=%zu", active_users_),用于记录 pass 插件卸载后的活跃用户计数。


不准确?
atomgit-bot
22 天前 评论:
22 天前 评论:
22 天前 添加了label:cann-cla/yes
CANN-robot
22 天前 评论:
22 天前 评论:
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.
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/ge | ✅ 张德鹏, kobemini, Mexyy (3/2) | ✅ 张德鹏 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


CANN-robot
22 天前 评论:
22 天前 评论:
22 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
22 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
22 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为审查人
22 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为审查人
22 天前 添加了label:ci-pipeline-running
CANN-robot
22 天前 评论:
22 天前 评论:
流水线任务触发成功
任务链接 [714ca242539e49cbb3e560dea4b48b31][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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-08-17 10:18:35] CI执行结束


CANN-robot
22 天前 评论:
22 天前 评论:
流水线任务触发成功
任务链接 [112e0df0d7fa463fa68599520fa7b906][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_ARM_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-08-17 10:11:09] CI执行结束


CANN-robot
22 天前 评论:
22 天前 评论:
流水线任务触发成功
任务链接 [56a32bc7349b4ee2bc335cc0b6259af7][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck_Pr | ✅ 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-08-17 10:09:07] CI执行结束


22 天前 添加了label:api-check-pass
22 天前 删除了label:api-check-pass
22 天前 删除了label:ci-pipeline-running
22 天前 添加了label:ci-pipeline-passed
GengChao
22 天前 评论:
22 天前 评论:
/lgtm


22 天前 添加了label:lgtm
22 天前 添加了label:approved
22 天前 合入了pull request
Pull Request
描述
对齐 Custom Op 侧
runtime/custom_op/custom_op_loader.cc的日志风格,在compiler/graph/fusion/pass/pass_plugin_loader.cc的PassPluginLoader::Load()和PassPluginLoader::Unload()中,于active_users_计数增减后补充GELOGD日志,便于 pass 插件加载/卸载链路的问题定位。变更点:
Load():active_users_++后新增GELOGD("LoadPassPlugins active_users_=%zu", active_users_)Unload():active_users_--后新增GELOGD("UnloadPassPlugins active_users_=%zu", active_users_)变更类型
关联的Issue
如何测试
LoadPassPlugins active_users_=1核对清单
其他信息
日志级别使用
GELOGD与 Custom Op 侧现有日志保持一致,仅在 Debug 级别下输出,不会影响正常运行日志体量。