Repository navigation
[CodeGen] Plumb conv vectorization through flow.dispatch.workgroups - #4999
Merged
Merged
Conversation
This commit adds all necessary plumbing to connet 2-D convolution vectorization inside flow.dispatch.workgroups. This includes: * Let 2-D convolution be recognized as a root op during dispatch region formation. * Add a pass to concretize the abstract tiling and distribution during flow dispatch region formation. It subsitutes symbolic ops with concrete values from CodeGen policy. * Recognize `hal.interface.workgroup.id` ops when folding GPU processor ID uses. * Recognize `hal.interface.binding.subspan` when vectorizing memrefs for better memory access.
benvanik
reviewed
Mar 4, 2021
benvanik
reviewed
Mar 4, 2021
MaheshRavishankar
requested changes
Mar 4, 2021
Member
Author
|
This now depends on https://reviews.llvm.org/D98171 so it will fail tests. |
MaheshRavishankar
requested changes
Mar 8, 2021
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Pushing partial review. This is looking great so far! Thanks for the refactoring folded into this. I need to review the DispatchLinalgOnTensors file, but left one comment on removing unit-trip count loops in the time being.
MaheshRavishankar
requested changes
Mar 9, 2021
MaheshRavishankar
requested changes
Mar 10, 2021
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Just one last comment to address, and I think we can land this and address after that.
MaheshRavishankar
requested changes
Mar 10, 2021
MaheshRavishankar
approved these changes
Mar 10, 2021
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Ok thanks. Lets land this and then try to fix the hard edges here.
GMNGeoffrey
added a commit
to GMNGeoffrey/iree
that referenced
this pull request
Mar 11, 2021
Midair collision between iree-org#4999 and iree-org#5063
GMNGeoffrey
added a commit
that referenced
this pull request
Mar 11, 2021
Merged
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 commit adds all necessary plumbing to connect 2-D (depthwise)
convolution vectorization inside flow.dispatch.workgroups. This includes:
during dispatch region formation.
during flow dispatch region formation. It substitutes symbolic
ops with concrete values from CodeGen policy.
hal.interface.workgroup.idops when folding GPUprocessor ID uses.
hal.interface.binding.subspanwhen vectorizingmemrefs for better memory access.