Repository navigation
[flow] Move CloneProducersIntoDispatchRegions into its own pass - #12375
Merged
Merged
Conversation
By cloning producers into dispatch regions in its own pass before the main FormDispatchWorkgroupsPass, we can enable running additional transformations afterwards that would need the full dispatch content but don't want to handle explicit captures as materialized as dispatch workgroup operands and block arguments. This forms a nice structure together with FormDispatchRegionsPass, where we only moves the root compute op into the dispatch region, so that we can run additional transformations afterwards with a simple region and without bothering producers.
antiagainst
requested review from
MaheshRavishankar and
hanhanW
as code owners
February 25, 2023 16:34
benvanik
approved these changes
Feb 25, 2023
benvanik
left a comment
Collaborator
There was a problem hiding this comment.
(lgtm but mahesh may want to look before merging!)
Collaborator
|
Looks good to me. Unfortunately we don't have good tracking of dispatch region count in CI yet (we have been doing this manually). @pzread can you help make sure this doesn't cause regressions. |
Contributor
Will do later today and post results here |
Contributor
|
There is no change in the number of dispatches before and after this patch (measured from |
MaheshRavishankar
approved these changes
Mar 9, 2023
Member
Author
|
Thanks @pzread! |
qedawkins
pushed a commit
to nod-ai/SRT
that referenced
this pull request
Mar 10, 2023
…-org#12375) By cloning producers into dispatch regions in its own pass before the main FormDispatchWorkgroupsPass, we can enable running additional transformations afterwards that would need the full dispatch content but don't want to handle explicit captures as materialized as dispatch workgroup operands and block arguments. This forms a nice structure together with FormDispatchRegionsPass, where we only moves the root compute op into the dispatch region, so that we can run additional transformations afterwards with a simple region and without bothering producers. Progress towards iree-org#12230
qedawkins
pushed a commit
to qedawkins/iree
that referenced
this pull request
Apr 2, 2023
…-org#12375) By cloning producers into dispatch regions in its own pass before the main FormDispatchWorkgroupsPass, we can enable running additional transformations afterwards that would need the full dispatch content but don't want to handle explicit captures as materialized as dispatch workgroup operands and block arguments. This forms a nice structure together with FormDispatchRegionsPass, where we only moves the root compute op into the dispatch region, so that we can run additional transformations afterwards with a simple region and without bothering producers. Progress towards iree-org#12230
Merged
jpienaar
pushed a commit
that referenced
this pull request
May 1, 2023
By cloning producers into dispatch regions in its own pass before the main FormDispatchWorkgroupsPass, we can enable running additional transformations afterwards that would need the full dispatch content but don't want to handle explicit captures as materialized as dispatch workgroup operands and block arguments. This forms a nice structure together with FormDispatchRegionsPass, where we only moves the root compute op into the dispatch region, so that we can run additional transformations afterwards with a simple region and without bothering producers. Progress towards #12230
rengolin
pushed a commit
to plaidml/iree
that referenced
this pull request
May 2, 2023
…-org#12375) By cloning producers into dispatch regions in its own pass before the main FormDispatchWorkgroupsPass, we can enable running additional transformations afterwards that would need the full dispatch content but don't want to handle explicit captures as materialized as dispatch workgroup operands and block arguments. This forms a nice structure together with FormDispatchRegionsPass, where we only moves the root compute op into the dispatch region, so that we can run additional transformations afterwards with a simple region and without bothering producers. Progress towards iree-org#12230
NatashaKnk
pushed a commit
to NatashaKnk/iree
that referenced
this pull request
Jul 6, 2023
…-org#12375) By cloning producers into dispatch regions in its own pass before the main FormDispatchWorkgroupsPass, we can enable running additional transformations afterwards that would need the full dispatch content but don't want to handle explicit captures as materialized as dispatch workgroup operands and block arguments. This forms a nice structure together with FormDispatchRegionsPass, where we only moves the root compute op into the dispatch region, so that we can run additional transformations afterwards with a simple region and without bothering producers. Progress towards iree-org#12230
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By cloning producers into dispatch regions in its own pass before the main FormDispatchWorkgroupsPass, we can enable running additional transformations afterwards that would need the full dispatch content but don't want to handle explicit captures as materialized as dispatch workgroup operands and block arguments.
This forms a nice structure together with FormDispatchRegionsPass, where we only moves the root compute op into the dispatch region, so that we can run additional transformations afterwards with a simple region and without bothering producers.
Progress towards #12230