Skip to content

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 MasterJH5574 and cyx-6 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
@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