Repository navigation
Fix peer semaphore indexing in the host-offloaded allgather test - #979
Open
Changho Hwang (chhwang) wants to merge 1 commit into
Open
Changho Hwang (chhwang) wants to merge 1 commit into
Changho Hwang (chhwang) wants to merge 1 commit into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Changho Hwang (chhwang)
marked this pull request as ready for review
November 26, 2026 06:39
Changho Hwang (chhwang)
requested review from
Binyang Li (Binyang2014)
and
a balanced review from Copilot
and removed request for
Copilot
November 26, 2026 06:39
Copilot stopped reviewing on behalf of
Changho Hwang (chhwang) due to an error
November 26, 2026 06:40
This branch has not been deployed
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.
MyProxyServiceappends a null entry for the local rank before it appends any peer semaphores. The handle getters and the proxy both index those vectors by peer rank. With two ranks, rank 1 therefore looks up peer 0 in slot 0, which is null, and crashes inHost2DeviceSemaphore::deviceHandle()before its first kernel launch.Size both semaphore vectors to
world_sizeand assign each peer's semaphore to slotr, as the test already does for connections. Only the self slot remains null. This changes only the test's semaphore construction; it leaves the data check and benchmark unchanged.Validation:
git diff --check, formatting, and focused local rank-mapping checks for both vectors. No GPU run was performed on this PR or its base (215f073). On the earlier4dab9f5baseline, the two-rank test exited 139. A broader local candidate on that earlier base, containing the same indexing fix and a separate correctness-verdict change, completed the 65,536-byte test on two GB200 GPUs with no reported mismatches. The verdict change is not in this PR.