Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR #19026: [NVIDIA GPU] LHS enhancement for multiple collective resources #19289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Nov 13, 2024

PR #19026: [NVIDIA GPU] LHS enhancement for multiple collective resources

Imported from GitHub PR #19026

With #17749, we can let LHS schedule for multiple collective resources. There are some cases that two collectives cannot be overlapped. When two collectives on different stream share at least 2 ranks, they can form cyclic dependency because the execution order of NCCL kernels can be different on each rank. This PR refactored LHS to expose the comparator to backend, and enforced above constraint for GPU backend.
Copybara import of the project:

--
14362ea by Terry Sun [email protected]:

LHS deadlock avoidance

--
e027794 by Terry Sun [email protected]:

minor fix

--
430db3f by Terry Sun [email protected]:

address nit

Merging this change closes #19026

FUTURE_COPYBARA_INTEGRATE_REVIEW=#19026 from terryysun:terryysun/overlapping_collectives 430db3f

@copybara-service copybara-service bot force-pushed the test_696020313 branch 5 times, most recently from 59a4b25 to 000fa90 Compare November 18, 2024 21:56
…rces

Imported from GitHub PR #19026

With #17749, we can let LHS schedule for multiple collective resources. There are some cases that two collectives cannot be overlapped. When two collectives on different stream share at least 2 ranks, they can form cyclic dependency because the execution order of NCCL kernels can be different on each rank. This PR refactored LHS to expose the comparator to backend, and enforced above constraint for GPU backend.
Copybara import of the project:

--
14362ea by Terry Sun <[email protected]>:

LHS deadlock avoidance

--
e027794 by Terry Sun <[email protected]>:

minor fix

--
430db3f by Terry Sun <[email protected]>:

address nit

Merging this change closes #19026

FUTURE_COPYBARA_INTEGRATE_REVIEW=#19026 from terryysun:terryysun/overlapping_collectives 430db3f
PiperOrigin-RevId: 696020313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant