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

[Transform][Relax] Handle is_group argument in IPC AllReduce #17201

Merged

Conversation

Lunderberg
Copy link
Contributor

The relax.transform.IPCAllReduceRewrite pass rewrites calls to "runtime.disco.allreduce" to instead call an optimized "runtime.disco.cuda_ipc.custom_allreduce" version. When the legalization of R.ccl.allreduce was updated in #17180 to provide an in_group argument, the IPCAllReduceRewrite pass was not updated.

This commit updates the IPCAllReduceRewrite to be handle the additional in_group argument.

The `relax.transform.IPCAllReduceRewrite` pass rewrites calls to
`"runtime.disco.allreduce"` to instead call an optimized
`"runtime.disco.cuda_ipc.custom_allreduce"` version.  When the
legalization of `R.ccl.allreduce` was updated in
apache#17180 to provide an `in_group`
argument, the `IPCAllReduceRewrite` pass was not updated.

This commit updates the `IPCAllReduceRewrite` to be handle the
additional `in_group` argument.
@Lunderberg Lunderberg requested review from cyx-6 and MasterJH5574 July 26, 2024 15:21
Copy link
Contributor

@MasterJH5574 MasterJH5574 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Lunderberg for catching this!

@tqchen tqchen merged commit 16f8822 into apache:main Jul 31, 2024
18 checks passed
@Lunderberg Lunderberg deleted the disco_update_ipc_allreduce_pass_for_group_op branch July 31, 2024 13:41
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.

3 participants