已关闭
[Bug-Report|缺陷反馈]: 【2026 HCCL通信库创新大赛-粤港澳赛区】【Triple水木】ReduceScatter OmniPipe 结束日志误用 AllGather 模板前缀 #439
dubai712创建于  7月24日关闭于  23 天前
dubai712
7月24日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

InsTempReduceScatterOmniPipeNHR::KernelRun() 的开始日志使用正确的 ReduceScatter 模板前缀,但函数成功结束时错误地使用了 AllGather 模板名:

HCCL_INFO("[InsTempReduceScatterOmniPipeNHR] GenExtIns start");

// ...执行 ReduceScatter NHR 流程...

HCCL_INFO("[InsTempAllGatherOmniPipeNHR] Run End");
return HcclResult::HCCL_SUCCESS;

问题位置:

  • src/ops/reduce_scatter/template/aicpu/ins_temp_reduce_scatter_omnipipe_nhr.cc:66
  • 对照位置:同文件 :36-37:73
  • 基线:2c87cc1937bab23b8574ef24017c03572d3340e2(2026-07-09)

当前类、KernelRun() 函数限定名、开始日志和后续 DoLocalCopy 日志均明确属于 InsTempReduceScatterOmniPipeNHRInsTempAllGatherOmniPipeNHR 在该文件中仅出现一次,可确认结束日志是跨算子 copy-paste 残留。

该错误会使 ReduceScatter 成功结束事件被归入 AllGather,造成 ReduceScatter 日志链条缺少结束标记,并在 AllGather 日志中产生虚假记录。

Environment / 环境信息 (Mandatory / 必填)

  • 仓库:cann/hccl
  • 分支:competition/campus-2026
  • 基线:2c87cc1937bab23b8574ef24017c03572d3340e2
  • 模块:ReduceScatter / AICPU / OmniPipe NHR Template
  • 发现与验证方式:固定基线函数限定名、开始/结束日志和同文件前缀交叉核对
  • 本问题只涉及日志模块前缀,无需编译环境或 NPU

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. 打开 src/ops/reduce_scatter/template/aicpu/ins_temp_reduce_scatter_omnipipe_nhr.cc
  2. 定位 InsTempReduceScatterOmniPipeNHR::KernelRun()
  3. 查看函数开始日志,确认前缀为 InsTempReduceScatterOmniPipeNHR
  4. 查看返回成功前的结束日志,确认前缀变为 InsTempAllGatherOmniPipeNHR
  5. 对照同文件其他成员函数日志,可静态确认结束日志类名错误。
rg -n 'InsTemp(AllGather|ReduceScatter)OmniPipeNHR' \
  src/ops/reduce_scatter/template/aicpu/ins_temp_reduce_scatter_omnipipe_nhr.cc

Describe the expected behavior / 预期结果 (Mandatory / 必填)

结束日志应使用当前 ReduceScatter 模板类名:

HCCL_INFO("[InsTempReduceScatterOmniPipeNHR] Run End");

修复后,该 ReduceScatter 文件中不应再出现 InsTempAllGatherOmniPipeNHR,通信流程和返回值保持不变。

当前日志:

[InsTempAllGatherOmniPipeNHR] Run End

预期日志:

[InsTempReduceScatterOmniPipeNHR] Run End

本问题为日志算子归属错误,不涉及 UI,无需截图或运行日志。

Special notes for this issue/备注 (Optional / 选填)

Issue 类别

问题修复(非功能问题:日志不规范,建议 1 分)

参赛信息

  • 参赛团队:Triple水木
  • 所属赛区:粤港澳赛区
  • 关联仓库:cann/hccl
likedislike
Leewis成员
7月25日 评论:

感谢对于社区的关注与反馈,当前反馈的问题已收到,欢迎提交pr解决该问题;提交pr前需要签署CLA协议;提交pr后需要线上编译;详情请参见 https://gitcode.com/cann/hccl/wiki/2026 HCCL通信库创新大赛 Issue%2F2026 HCCL通信库创新大赛.md

likedislike
LLeewis成员
7月25日 将 dubai712 设为负责人
LLeewis成员
7月25日 添加了label:Accepted
LLeewis成员
7月25日 关联了看板:HCCL
Ddubai712
7月30日 关联了pull request:【2026 HCCL通信库创新大赛-粤港澳赛区】【Triple水木】ReduceScatter OmniPipe 结束日志误用 AllGather 模板前缀
黄建波黄建波成员
23 天前 将 muzhiyu6 设为负责人
黄建波黄建波成员
23 天前 移除了负责人 dubai712
黄建波
黄建波成员
23 天前 评论:

@dubai712 您好,该问题已合入,PR链接: https://gitcode.com/cann/hccl/pull/2627

likedislike
黄建波黄建波成员
23 天前 issue状态由 进行中 改变为 已完成
黄建波黄建波成员
23 天前 关闭了 issue
LLeewis成员
7 天前 移除了看板:HCCL