Repository navigation
Enable tile + distribute of tensor.insert_slice. - #7243
Merged
MaheshRavishankar merged 1 commit intoOct 4, 2021
Merged
Conversation
This patch adds the external model for implementing `TiledOpInterface` into IREE during initialization so that it is always available. This allows tile + distribute of this operation at the flow level. To get the distribution to work correctly, the arguments for the destination and result in the dispatch region op need to be tied. The current logic for legalization of dispatch region and tie-ing operands does not support this. So this PR also reworks all of that to be more robust.
benvanik
approved these changes
Oct 1, 2021
benvanik
left a comment
Collaborator
There was a problem hiding this comment.
lgtm for the tie stuff - I was thinking the other day about adding a flow.tensor.undefined or something to let us express initialization memory (like linalg.init_tensor but shape aware and such), which would be useful for this (tied operands today will always be initialized as we can't know that they are never read)
Contributor
This was
linked to
issues
Nov 2, 2021
This was
unlinked from
issues
Nov 2, 2021
Collaborator
Author
|
Issue #5045 |
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.
This patch adds the external model for implementing
TiledOpInterfaceinto IREE during initialization so that it is always available. This
allows tile + distribute of this operation at the flow level.
To get the distribution to work correctly, the arguments for the
destination and result in the dispatch region op need to be tied. The
current logic for legalization of dispatch region and tie-ing operands
does not support this. So this PR also reworks all of that to be more
robust.