已关闭
[Bug-Report|缺陷反馈]: 销毁 team/window 后通信内存未反注册,重新创建时报 already registered #765
yuqitao创建于  8月17日关闭于  7 天前
yuqitao
8月17日 创建

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

DeepEP Ascend 会在同一个 HCCL communicator 中重复创建和销毁 ElasticBuffer。第一轮通信正常,销毁 buffer 后再次创建时,HcclTeamWindowRegister 返回错误。

HCOMM 日志显示,上一轮注册的 CommMems tag 仍然存在。新一轮注册相同内存时被判断为已经注册,说明 window 或 team 的销毁流程没有完整解除通信内存注册。

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

  • 节点:NPU8P 950,device 6、7
  • CANN:9.2.0
  • HCOMM:weekly 20260814
  • Python:3.10.20

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

  1. 创建 HCCL process group 和 ElasticBuffer
  2. 执行一次通信,确认第一轮正常。
  3. 销毁 ElasticBuffer,保留原 HCCL process group。
  4. 再次创建 ElasticBuffer
  5. 第二次调用 HcclTeamWindowRegister 时返回错误。

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

HcclTeamWindowDeregisterHcclTeamDestroy 完成后,应解除对应的 CommMems 注册。保留 HCCL communicator 的情况下,后续仍应能正常创建新的 team、window 和 channel。

任务:task_20260817_060516_342397724857,退出码 1。

HCOMM plog:

[ERROR] HCCL(3446821,python):2026-08-17-06:10:26.993.759 [comm_mems.cc:117] [3446821][CommRegMem] memTag[__hccl_team_usermem__group_name_0_addr_0x120068800000_size_2097152] already registered: old addr[0x120068800000] size[2097152], new addr[0x120068800000] size[2097152].                                                                                                                                                                                                                                        
[ERROR] HCCL(3446821,python):2026-08-17-06:10:26.993.771 [hccl_team_c_adpt.cc:348] [3446821][CreateNewWindow] register localMem failed, comm[group_name_0] ret[1]                                                                                           
[ERROR] HCCL(3446821,python):2026-08-17-06:10:26.993.787 [hccl_team_c_adpt.cc:395] [3446821][HcclTeamWindowRegister]call trace: hcclRet -> 1                                                                                                                

上层报错:

[rank0]: RuntimeError: DeepEP Ascend backend: register_symmetric_window failed on rank 0 with backend error 1: CANN host transport call failed                                                                                                              
[rank1]: RuntimeError: DeepEP Ascend backend: register_symmetric_window failed on rank 1 with backend error 1: CANN host transport call failed                                                                                                              

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

likedislike
Yyuqitao
8月17日 修改了issue 的描述
Leewis成员
8月17日 评论:

感谢对于社区的关注与反馈,当前问题已收到,待问题明确后给出反馈,thx;

likedislike
Leewis成员
8月17日 评论:

/assign @rockethcgs

likedislike
CANN-robotCANN-robot成员
8月17日 将 rockethcgs 设为负责人
LLeewis成员
8月17日 将 Leewis 设为负责人
LLeewis成员
8月19日 issue类型由 任务 改变为 缺陷
LLeewis成员
8月19日 添加了label:bug
LLeewis成员
20 天前 关联了看板:HCCL
LLeewis成员
20 天前 关联了看板:HCOMM
RocketHcgsRocketHcgs成员
12 天前 关联了pull request:[refactor] AIN控制面API重构
RocketHcgsRocketHcgs成员
12 天前 关联了pull request:[fix docs] AIN相关文档更新
RocketHcgs
RocketHcgs成员
12 天前 评论:

你好,当前issue所提问题在关联PR中已经修复,最新文档中有重构后的AIN控制面接口调用示例,请查阅

likedislike
LLeewis成员
7 天前 issue状态由 待办的 改变为 已解决
LLeewis成员
7 天前 关闭了 issue
CANN-robotCANN-robot成员
7 天前 添加了label:resolved
LLeewis成员
5 天前 移除了看板:HCOMM