-
Notifications
You must be signed in to change notification settings - Fork 79
Generalize CombineMulSum as MatmulPatterns #2272
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
33 commits
Select commit
Hold shift + click to select a range
58687ad
Generalize CombineMulSum as MatmulPatterns
jacobhinkle a583d40
Remove MatmulOp stuff.
jacobhinkle f5ec534
Fix multiple-broadcasts test.
jacobhinkle d74c7c0
Merge branch 'main' into matmul_patterns
jacobhinkle 1a0fdb9
Remove bcast output test
jacobhinkle 9e6447d
Remove canScheduleCompileTime check for ExprEval
jacobhinkle 1cfac85
Fix gcc build failure due to unused variable
jacobhinkle 7aad387
Fix signed/unsigned compare
jacobhinkle e4ef03e
Merge branch 'main' into matmul_patterns
jacobhinkle 36a72dc
Allow multiple M, N, or K dims in pattern match
jacobhinkle 1f713d3
Update csrc/scheduler/mma_utils.cpp
jacobhinkle 361389a
Merge branch 'main' into matmul_patterns
jacobhinkle 6937ff8
Add comment about why casts are often present
jacobhinkle f54c51b
Merge remote-tracking branch 'origin/main' into matmul_patterns
jacobhinkle 345b025
Remove getProblemIterDomains
jacobhinkle 142f366
Rename group_to_domain -> dim_roles
jacobhinkle 8bfd292
Update csrc/scheduler/matmul.cpp
jacobhinkle 57974a3
Update csrc/scheduler/matmul.cpp
jacobhinkle e0619cf
Rename most occurences of roles_map -> tensor_roles
jacobhinkle b0fa936
Remove getProblemLayout(Fusion*, const MatmulPattern&)
jacobhinkle 76eb037
Uncomment getProblemLayout
jacobhinkle e1044d9
Replace bitwise assignment ops
jacobhinkle 990f2be
Rename dim_to_domain -> dim_roles
jacobhinkle 4df6b11
Merge remote-tracking branch 'origin/main' into matmul_patterns
jacobhinkle c3753cb
Add comment describing isMatmulFusionDefinitionSupported
jacobhinkle 4fac4fb
Use lambda to simplify getTensorsRoles
jacobhinkle 9d31a90
Rename getTensorsRoles -> getTensorRoles
jacobhinkle a99c9ae
Assume alloc=rfactor to determine M, N and A, B
jacobhinkle bd6517c
Test that dim role mapping survives swap
jacobhinkle 8dc6948
Rename ValGroupPresence to DimPresence
jacobhinkle 71128e4
Use std::variant<std::string, UnitDim> for error
jacobhinkle 71ba8a2
clang-tidy fix
jacobhinkle 0deb0bf
Use noReductions/noBroadcasts to simplify hasTrivialAllocationDomain
jacobhinkle 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.
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.
The intention of this utility is to generalize
!tv->hasAllocation()to cases where an allocation domain is provided, but it actually corresponds to the no-reductions rfactor domain (ignoring broadcasts).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.
Thanks! Would it be possible to add this as a comment in the header file.