已关闭
[Bug-Report|缺陷反馈]: 【2026 HCCL通信库创新大赛-粤港澳赛区】【Triple水木】AllReduce Sequence2Die RoundUp 警告误用 Mesh1DTwoShot 模板前缀 #441
dubai712创建于  7月24日关闭于  18 天前
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 / 必填)

InsV2AllReduceSequence2DieExecutor::RoundUp() 在除数为 0 时返回原始被除数并记录 WARNING,但日志前缀错误地使用了另一个模板类 InsTempAllReduceMesh1DTwoShot

u64 InsV2AllReduceSequence2DieExecutor<...>::RoundUp(
    const u64 dividend, const u64 divisor) const
{
    if (divisor == 0) {
        HCCL_WARNING("[InsTempAllReduceMesh1DTwoShot][RoundUp] divisor is 0.");
        return dividend;
    }
    return (dividend + divisor - 1) / divisor;
}

问题位置:

  • src/ops/all_reduce/executor/ins_v2_allreduce_sequence2die_executor.cc:143-150
  • 基线:2c87cc1937bab23b8574ef24017c03572d3340e2(2026-07-09)

函数限定名明确属于 InsV2AllReduceSequence2DieExecutor,同文件的 CalcResOrchestrate 等日志也使用该 executor 前缀。InsTempAllReduceMesh1DTwoShot 在此文件中仅出现于这一条警告,可确认是从其他实现复制后未更新的日志前缀。

一旦边界条件触发,日志会把 Sequence2Die executor 的切片计算问题归到 Mesh1DTwoShot 模板,误导故障定位。

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

  • 仓库:cann/hccl
  • 分支:competition/campus-2026
  • 基线:2c87cc1937bab23b8574ef24017c03572d3340e2
  • 模块:AllReduce / Sequence2Die Executor / RoundUp
  • 发现与验证方式:固定基线成员函数限定名与文件内日志前缀交叉核对
  • 本问题只涉及警告日志前缀,无需编译环境或 NPU

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

  1. 打开 src/ops/all_reduce/executor/ins_v2_allreduce_sequence2die_executor.cc
  2. 定位 InsV2AllReduceSequence2DieExecutor::RoundUp()
  3. 查看 divisor == 0 分支中的 HCCL_WARNING
  4. 对照函数限定名,可见警告使用了无关的 InsTempAllReduceMesh1DTwoShot 前缀。
  5. 全文件搜索该模板名,确认只有这一处。
rg -n -C 6 'InsTempAllReduceMesh1DTwoShot' \
  src/ops/all_reduce/executor/ins_v2_allreduce_sequence2die_executor.cc

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

警告应使用当前 executor 和函数名称:

HCCL_WARNING("[InsV2AllReduceSequence2DieExecutor][RoundUp] divisor is 0.");

修复只替换日志前缀,不改变除数为零时的既有返回策略。

当前日志:

[InsTempAllReduceMesh1DTwoShot][RoundUp] divisor is 0.

预期日志:

[InsV2AllReduceSequence2DieExecutor][RoundUp] divisor is 0.

本问题为日志模块归属错误,不涉及 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水木】AllReduce Sequence2Die RoundUp 警告误用 Mesh1DTwoShot 模板前缀
黄建波
黄建波成员
18 天前 评论:

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

likedislike
黄建波黄建波成员
18 天前 issue状态由 进行中 改变为 已完成
黄建波黄建波成员
18 天前 关闭了 issue
黄建波黄建波成员
18 天前 将 muzhiyu6 设为负责人
黄建波黄建波成员
18 天前 移除了负责人 dubai712
LLeewis成员
2 天前 移除了看板:HCCL