-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[Backend] Add a shared layout for padding #7212
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
4173051
[Backend] Add a PaddedSharedEncodingAttr definition
antiagainst 8e8bb88
Support PaddedSharedEncodingAttr in LLVM lowering
antiagainst ddebf3c
Add new padded shared layout attr builder
antiagainst 03b802a
Fix LLVM lowering issues
antiagainst 3bdcc7e
Fix more llvm lowering issues
antiagainst ae67bba
Add allocation tests
antiagainst fbb041e
Fix a bunch of small issues
antiagainst d59edb8
Add linear layout conversion test
antiagainst b622870
Wire up StreamPipeline usage
antiagainst 961ecc4
Revert "Wire up StreamPipeline usage"
antiagainst eafb2fd
Merge remote-tracking branch 'origin/main' into padded-shared
antiagainst b1c6f94
Add some more tests
antiagainst 017b888
Improve PaddedLinearLayout a bit
antiagainst c0f88a8
Fix lit test
antiagainst a66fa0d
Move builder out to cpp
antiagainst b5f258e
Improve wording for PaddedLinearLayout once more
antiagainst 2de5b2f
Rename to SwizzledOrPaddedLayout
antiagainst 89d069d
Revert "Rename to SwizzledOrPaddedLayout"
antiagainst 28c3428
Revert "Improve wording for PaddedLinearLayout once more"
antiagainst 0637bc5
Revert "Improve PaddedLinearLayout a bit"
antiagainst 8fa8d8d
Drop PaddedLinearLayout
antiagainst e176ed3
Use reshapeOuts
antiagainst cd9fbad
Merge remote-tracking branch 'origin/main' into padded-shared
antiagainst 25221f4
Drop a builder for now
antiagainst c068a7f
Drop not used code
antiagainst 72a1f56
Merge remote-tracking branch 'origin/main' into padded-shared
antiagainst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better to do it inside
getAllocationShapePerCTAThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually was trying to do that. Then I realized it's not that compatible--
getAllocationShapePerCTAassumes the original ranked shape, while after factoring in padding fundamentally we only have a 1-D size. AlsogetAllocationShapePerCTAis used quite a few places that assumes original rank. So ends up I'm doing it this way given only when doing allocation or the final pointer indexing we care about the exact physical memory.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually makes sense.