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 #19424

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 18, 2024

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

--
c9202fa by Terry Sun [email protected]:

fix minor issues

Merging this change closes #18838

FUTURE_COPYBARA_INTEGRATE_REVIEW=#18838 from terryysun:terryysun/grouped_cp c9202fa

@copybara-service copybara-service bot force-pushed the test_693728463 branch 11 times, most recently from 27350e4 to eb2d013 Compare November 19, 2024 10:28
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

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

fix minor issues

Merging this change closes #18838

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