Repository navigation
PR #38932: [xla:gpu] Add rendezvous before AND after first collective call - #111968
Merged
Merged
Conversation
copybara-service
Bot
force-pushed
the
exported_pr_881031754
branch
from
March 10, 2026 12:04
7436912 to
c3e78d4
Compare
Reverts changelist 881077358 PiperOrigin-RevId: 881389959
copybara-service
Bot
force-pushed
the
exported_pr_881031754
branch
from
March 10, 2026 13:32
c3e78d4 to
6e38277
Compare
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.
PR #38932: [xla:gpu] Add rendezvous before AND after first collective call
Imported from GitHub PR openxla/xla#38932
Some times NCCL call can race with a cuBLAS initialization that happens before the collective operation, and this leads to deadlocks inside CUDA driver. The problem is a known bug in CUDA when lazy loading kernels can deadlock in done concurrently with other operations. Adding a rendezvous before and after first call to collective operations guarantees that NCCL and cuBLAS initialization doesn't race during the first call to XLA program. After the first execution all state is correctly initialized and all thunks can be executed concurrently.
Copybara import of the project:
--
37a1c5d4123ad8dd337f933692b57374eca71407 by Eugene Zhulenev [email protected]:
[xla:gpu] Add rendezvous before AND after first collective call
Merging this change closes #38932
Reverts changelist 881077358
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#38932 from ezhulenev:rendezvous-around-collective-call 37a1c5d4123ad8dd337f933692b57374eca71407