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

[DispatchCreation] Changes to dispatch region in preparation for horizontal fusion changes. #19876

Conversation

MaheshRavishankar
Copy link
Contributor

Current dispatch region formation handles consumer fusion by making the consumer the root of the DAG moved into dispatches. For cases where we have more than one consumer that dont have a direct dependency, this approach does not work. This changes dispatch region formation to keep the root operation as is, and move in consumers into the dispatch iteratively. This required a few additional changes

  1. Move the method moveOperandDefs into a utility function.
  2. Changes to how the dynamic dims of results of flow.dispatch.region created are resolved.

@MaheshRavishankar MaheshRavishankar force-pushed the noconcat_horizontal_fusion_dispatch_region branch 2 times, most recently from b2edb4d to 48e3cf5 Compare February 4, 2025 07:18
@MaheshRavishankar MaheshRavishankar marked this pull request as ready for review February 4, 2025 17:03
@MaheshRavishankar MaheshRavishankar force-pushed the noconcat_horizontal_fusion_dispatch_region branch from 48e3cf5 to 3b1709f Compare February 5, 2025 21:11
MaheshRavishankar added a commit to MaheshRavishankar/iree that referenced this pull request Feb 6, 2025
…zontal fusion changes.

This commit is mirror of iree-org#19876

Signed-off-by: MaheshRavishankar <[email protected]>
@MaheshRavishankar MaheshRavishankar force-pushed the noconcat_horizontal_fusion_dispatch_region branch 2 times, most recently from 0f9bd38 to cedc3d5 Compare February 9, 2025 23:17
Max191 pushed a commit that referenced this pull request Feb 10, 2025
…zontal fusion changes.

This commit is mirror of #19876

Signed-off-by: MaheshRavishankar <[email protected]>
MaheshRavishankar and others added 8 commits February 12, 2025 13:51
…zontal fusion changes.

Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
Signed-off-by: MaheshRavishankar <[email protected]>
@MaheshRavishankar MaheshRavishankar force-pushed the noconcat_horizontal_fusion_dispatch_region branch from cedc3d5 to e92f8aa Compare February 12, 2025 21:58
Copy link
Contributor

@IanWood1 IanWood1 left a comment

Choose a reason for hiding this comment

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

Looks good!

For future reference, this dispatch is the one that was causing issues. All the elementwise multiplications are multiplying different pre-mul weights.

@MaheshRavishankar MaheshRavishankar merged commit 78ec7f2 into iree-org:main Feb 13, 2025
40 checks passed
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.

2 participants