Repository navigation
Don't set a device per rank for gloo tensor-parallel tests - #49636
Merged
Merged
Conversation
Gloo ranks run on CPU, and the single-GPU runner has fewer devices than ranks: rank 1 failed with an invalid device ordinal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vasqu
reviewed
Oct 15, 2026
Comment on lines
+126
to
+127
| if backend != "gloo": | ||
| _set_rank_device(rank) |
Collaborator
There was a problem hiding this comment.
hmm im surprised because set rank device should already check whether gloo / cpu is there
Member
Author
There was a problem hiding this comment.
it checks the device type, not the backend, so on the gpu runner it still did set_device_index(rank) for this gloo test → invalid device ordinal on rank 1. moved the guard into _set_rank_device (takes the backend now) so it lives in one place
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vasqu
approved these changes
Oct 15, 2026
Contributor
CI recapDashboard: View test results in Grafana |
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Oct 15, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 15, 2026
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.
Fixes
test_dispatch_hands_experts_the_received_rowsin today's daily CI (bisected to #49421).The test spawns 2 gloo ranks on CPU, but
_global_wrapperstill sets the accelerator device to the rank index, so rank 1 fails withinvalid device ordinalon the single-GPU runner. Gloo ranks now skip it.Reproduced with
CUDA_VISIBLE_DEVICES=0: fails on main, passes with this.🤖 Generated with Claude Code