已开启
fix: 增大 STEP_SYNC_TIMEOUT 至 180000 #2768
cann_wangyq创建于 1 天前
fix: 增大 STEP_SYNC_TIMEOUT 至 180000 #2768
已开启
cann_wangyq创建于 1 天前
cann_wangyq成员
1 天前

描述

关联的Issue

测试

文档更新

类型标签

likedislike
合并受阻
Ccann_wangyq成员
1 天前 创建了 pull request,commit 1f22e0fd
atomgit-bot
atomgit-bot
1 天前 评论:

变更摘要

本 PR 针对 NHR 优化的 dpu_alg_nhr_opt_wrapper.h 头文件,将 step 同步的超时时间常量 STEP_SYNC_TIMEOUT18000 增大至 180000(10 倍),以放宽 step 同步等待的时间窗口,降低同步超时触发的概率。本次改动仅涉及常量取值的调整,不影响接口签名、数据结构或函数逻辑。

主要改动

  • 调整 STEP_SYNC_TIMEOUT 取值: 将 src/ops/op_common/template/wrapper/dpu_alg_nhr_opt_wrapper.h 中 step 同步专用 notify(NOTIFY_IDX_STEP_SYNC)的超时时间常量由 18000 增大为 180000,使同步等待更宽松。
  • 同步注释保持对应: 该常量所在处用于 step 同步的注释(不与 ACK(0)/DATA(1)/FIN_ACK(2) 冲突的 notify 索引说明)保持不变,仅常量值变更,无接口或行为逻辑层面的其他改动。
likedislike
atomgit-bot
atomgit-bot
1 天前 评论:

代码审查

✅ 未发现问题

likedislike
CANN-robotCANN-robot成员
1 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
1 天前 评论:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
9.1.0 ❌ (0/2)(You can also ask: 陈轲, 严正行, 李标智, 杨邵华, 钟琴) ❌ (0/1)(You can also ask: gcw_kUomxQ2l, Andy-lb, hanxiaolong, jiangtao_rts, 陈娇)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robot成员
1 天前 评论:

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
1 天前 将leabclove,yanglianxiang2,linyf950,yanzhenghang,chenliang267,TianXL,yanyefeng,jiangtao_rts,chenhao_,hanxiaolong,dingweiqin_57,songmingyang,wenxuemin,gcw_kUomxQ2l,yangxiaoyuan,Andy-lb,laodazhao1,yangshaohua,chenke2026,zhongqin2020,bz_lee,Innoecho,chenyia,temper7620,zhangxp1030,lilin_137,hulk1997,ouyangxizi,one_random设为评审人
CANN-robotCANN-robot成员
1 天前 将TianXL,jiangtao_rts,hanxiaolong,gcw_kUomxQ2l,Andy-lb设为审查人
57_Viking
57_Viking成员23 小时前进行代码检视1
src/ops/op_common/template/wrapper/dpu_alg_nhr_opt_wrapper.h
@@ -19,3 +19,3 @@
1919// 用于 step 同步的专用 notify 索引(不与 ACK(0)/DATA(1)/FIN_ACK(2) 冲突)
2020constexpr u32 NOTIFY_IDX_STEP_SYNC = 0;
21-constexpr u32 STEP_SYNC_TIMEOUT = 18000;
21+constexpr u32 STEP_SYNC_TIMEOUT = 180000;
57_Viking
57_Viking23 小时前评论:

[检视] 🟡 Medium — 资源管理

STEP_SYNC_TIMEOUT 从 18000 增大到 180000(10 倍)。

超时时间增大 10 倍意味着同步失败时等待时间从 18 秒延长到 180 秒(3 分钟)。这会显著影响故障检测的及时性——如果某个 rank 挂死,其他 rank 需要等 3 分钟才能超时返回。

反证:如果 DPU 侧 step 同步确实需要更长时间(如大规模集群或高延迟网络),增大超时是合理的。

建议:确认增大的原因。建议通过环境变量(如 HCCL_STEP_SYNC_TIMEOUT)配置,而非硬编码,让用户根据集群规模调整。

likedislike