Repository navigation
[Bugfix] Allocate dynamic HCCL listener ports on v0.3.14 - #14
Merged
ShuweiShen772 merged 1 commit intoNov 13, 2026
Merged
Conversation
Signed-off-by: ShuweiShen772 <shenshuwei.3@jd.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
按版本升级计划,将 PR #13 的动态设备端口修复移植到
v0.3.14_xllm_patch。基线:
ff3258bbd3051c212653d75850a4e3e0f43808e4。修复旧 Ascend/HCCL 后端固定监听
16666,导致共享测试机上的并行 PR 相互冲突的问题:GetLocalPort()。RankInfo.devicePort,沿用现有 segment 元数据发布实际端口。DeInit()回滚后重新申请,最多尝试 32 次;仅监听阶段的HCCL_E_UNAVAIL进入端口重试。本 PR 与 #13 分别面向 0.14 和 0.12 版本分支,保留两条版本的独立合入路径;与 deferred cleanup PR #11、HCCL retirement PR #10 的代码修改相互独立。
配套 xllm 动态测试端口适配:https://coding.jd.com/xLLM_AI/xllm/merges/807 。按约定,在 Mooncake GitHub 合入并同步 GitCode 后补充 xllm 依赖指针。
Suggested Merge Priority
Module
mooncake-transfer-engine)Type of Change
How Has This Been Tested?
在 0.14 工作树重新编译和运行:
hccl_device_listener_test:3 项,通过。ASAN_OPTIONS=detect_leaks=1:halt_on_error=1、UBSAN_OPTIONS=halt_on_error=1,全部通过。git diff --check,通过。测试直接调用本 PR 的生产端口选择 helper,使用真实 POSIX bind/listen 和 SDK HCCL 状态枚举;Socket 边界以两组 loopback 地址模拟 NIC/VNIC。真实 NPU 设备监听和完整 legacy 后端构建由对应硬件 CI 验收。
Test results:
Checklist
AI Assistance Disclosure