Merged
[Bugfix] Support explicit Gloo groups for static kernel compilation #3946
[Bugfix] Support explicit Gloo groups for static kernel compilation #3946
Merged
GanonAdd on 20 days ago
Ganon
GanonCollaborators
20 days ago

PR功能描述 / 为什么需要这个合入

只有子域 A 的成员进入静态编译时,按整机创建辅助 Gloo 组会超时,并可能使后建子域 B 的组编号不一致。新增 static_kernel_compile_group 配置,复用调用方已创建的节点内 Gloo 组。组大小、根 rank、JSON 汇总、广播和同步均使用指定组,显式路径不依赖 LOCAL_WORLD_SIZE。

安装进程区分自有目录与当前使用目录,接收其他组的安装路径后,退出时只清理自有目录。显式组提交完整 JSON 集合,通过已有 run 包缓存复用产物。文档补充 HCCL 业务组与 Gloo 辅助组的配置示例。

该PR关联的issue

暂未关联。

希望检视人员了解

  • 显式 Gloo 组由调用方管理生命周期。组成员须恰好覆盖本节点本轮编译参与者,并能访问 JSON 及安装路径。
  • 在原有 hcom_static_kernel_test.py 中增加正向用例 test_static_kernel_explicit_subgroups,验证 A=[1] 完成静态编译后晚建 B=[0,1],B AllReduce 与真实编译推理均正常,并断言共生成两份 run 包。
  • 已在 CANN 9.3.0、两个 Gloo 进程共享一张 910B3 的环境运行该用例,约 52 秒通过。
  • 测试命令:python npugraph_ex/tests/smoke/hcom_static_kernel_test.py HcomStaticKernelTest.test_static_kernel_explicit_subgroups -v
  • 完整 pre-commit 检查通过。多卡 HCCL 已验证。
likedislike
Pull Request has been successfully merged by ascend-robot.
(Thank you for Ganon's contribution.)
GanonGanonCollaborators
20 days ago Created pull request, commit ebf6bd78
ascend-robotascend-robotCollaborators
20 days ago Added label: ai-co-authored
ascend-robotascend-robotCollaborators
20 days ago Added label: needs-issue
ascend-robotascend-robotCollaborators
20 days ago Added label: ascend-cla/yes
ascend-robot
ascend-robotCollaborators
20 days ago Comments:

Linking Issue Notice

@ganon0327 , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

likedislike
117 messages are collapsed here。 See more
ascend-robotascend-robotCollaborators
19 days ago Closed associated issue
ascend-robotascend-robotCollaborators
19 days ago Merged pull request
ascend-robot
ascend-robotCollaborators
19 days ago Comments:

Pull Request 已合并或已关闭。

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike
ascend-robot
ascend-robotCollaborators
19 days ago Comments:

Pull Request 已合并或已关闭。

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike
ascend-robot
ascend-robotCollaborators
19 days ago Comments:

AI Declaration Check Failed

@ascend-robot, the PR description is missing the AI tool usage declaration. Please add the AI tool and model used. ⚠️

likedislike