已合并
feat: 为 PassPluginLoader Load/Unload 补充 active_users_ 日志 #4409
feat: 为 PassPluginLoader Load/Unload 补充 active_users_ 日志 #4409
已合并
why you创建于 22 天前
why you成员
22 天前

Pull Request

描述

对齐 Custom Op 侧 runtime/custom_op/custom_op_loader.cc 的日志风格,在 compiler/graph/fusion/pass/pass_plugin_loader.ccPassPluginLoader::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

如何测试

  1. 配置 Debug 日志级别后加载模型触发 pass 插件加载,确认日志中出现 LoadPassPlugins active_users_=1
  2. 反复加载/卸载,确认计数正确增减并打印

核对清单

其他信息

日志级别使用 GELOGD 与 Custom Op 侧现有日志保持一致,仅在 Debug 级别下输出,不会影响正常运行日志体量。

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 why you 的贡献)
Wwhy you成员
22 天前 创建了 pull request,commit 646346ab
atomgit-bot
atomgit-bot
22 天前 评论:

变更摘要

该 PR 主要对齐 Custom Op 侧 runtime/custom_op/custom_op_loader.cc 的日志风格,在 compiler/graph/fusion/pass/pass_plugin_loader.ccPassPluginLoader::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 插件卸载后的活跃用户计数。
likedislike
不准确?
atomgit-bot
atomgit-bot
22 天前 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
22 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robot成员
22 天前 评论:

CLA Signature Pass

Dazhou_Cao, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robot成员
22 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
CANN-robotCANN-robot成员
22 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,fu-jun2,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为审查人
why you成员
22 天前 评论:

compile

likedislike
Wwhy you成员
22 天前 update merge request[project id: 8824148, iid: 4409, commit_id: 32452e4344e9d8ed05e951717cad7d72dce7426d] virtual merging success
CANN-robotCANN-robot成员
22 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robotCANN-robot成员
22 天前 添加了label:api-check-pass
CANN-robotCANN-robot成员
22 天前 删除了label:api-check-pass
CANN-robotCANN-robot成员
22 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
22 天前 添加了label:ci-pipeline-passed
GengChao
GengChao成员
22 天前 评论:

/lgtm

likedislike
夏国正成员
22 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
22 天前 添加了label:lgtm
张德鹏成员
22 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
22 天前 添加了label:approved
CANN-robotCANN-robot成员
22 天前 合入了pull request