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 #18838: [NVIDIA GPU] Support multi-operand collective-permute #20302

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

Conversation

copybara-service[bot]
Copy link

PR #18838: [NVIDIA GPU] Support multi-operand collective-permute

Imported from GitHub PR #18838

For collective-permutes with small message sizes, it is beneficial to combine them into a single collective because

  1. it gets rid of some kernel launch overhead, and allows NCCL to do some message fusion;
  2. fewer collectives make it easier for LHS to make better decision.

In order to support combining collective-permutes, we need to support multi-operand collective-permute first, a.k.a. the combined collective-permute. This PR extends the existing CP interface by overloading it, so that a CP can have multiple operands.
Copybara import of the project:

--
5e10aba by Terry Sun [email protected]:

support multi-operand cp

--
170fead by Terry Sun [email protected]:

minor refactoring

--
0d85070 by Terry Sun [email protected]:

update python interface

--
9812a10 by Terry Sun [email protected]:

polish python interface

--
3a1552c by Terry Sun [email protected]:

formatting

--
d3657f8 by Terry Sun [email protected]:

formatting

--
9caacb4 by Terry Sun [email protected]:

refactor overloading

--
0aff5e0 by Terry Sun [email protected]:

minor refactor

--
20a0e3d by Terry Sun [email protected]:

add parser test

Merging this change closes #18838

FUTURE_COPYBARA_INTEGRATE_REVIEW=#18838 from terryysun:terryysun/grouped_cp a32d5aa

@copybara-service copybara-service bot force-pushed the test_704206076 branch 2 times, most recently from 05397ed to d7dadbf Compare December 9, 2024 12:39
Imported from GitHub PR #18838

For collective-permutes with small message sizes, it is beneficial to combine them into a single collective because
1. it gets rid of some kernel launch overhead, and allows NCCL to do some message fusion;
2. fewer collectives make it easier for LHS to make better decision.

In order to support combining collective-permutes, we need to support multi-operand collective-permute first, a.k.a. the combined collective-permute. This PR extends the existing CP interface by overloading it, so that a CP can have multiple operands.
Copybara import of the project:

--
5e10aba by Terry Sun <[email protected]>:

support multi-operand cp

--
170fead by Terry Sun <[email protected]>:

minor refactoring

--
0d85070 by Terry Sun <[email protected]>:

update python interface

--
9812a10 by Terry Sun <[email protected]>:

polish python interface

--
3a1552c by Terry Sun <[email protected]>:

formatting

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

formatting

--
9caacb4 by Terry Sun <[email protected]>:

refactor overloading

--
0aff5e0 by Terry Sun <[email protected]>:

minor refactor

--
20a0e3d by Terry Sun <[email protected]>:

add parser test

Merging this change closes #18838

FUTURE_COPYBARA_INTEGRATE_REVIEW=#18838 from terryysun:terryysun/grouped_cp a32d5aa
PiperOrigin-RevId: 704206076
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