Add a verifier for CatOp#9996
Merged
Merged
Conversation
This was referenced Apr 10, 2026
Contributor
|
@Mogball what happened with your PR to make this op just a composition of join reshape and trans? |
Collaborator
Author
peterbell10
reviewed
Apr 14, 2026
ThomasRaoux
approved these changes
Apr 14, 2026
16d268e to
74ee3ea
Compare
8420ab9 to
199e660
Compare
isExpensiveCat does not reflect the constraint we have in lowering, which is that the number of unique result elements per thread must be equal to the total number of unique operand elements per thread. This means that we can sometimes fold `CatOp` into layout conversions that have destination layouts that violate this requirement. Rename it to `isLegalCatEncoding` to reflect that it is actually a correctness requirement, and update it to reflect the actual constraint.
Check that the shapes and encodings of CatOp are valid and can be lowered.
74ee3ea to
2675aa1
Compare
199e660 to
d6951d3
Compare
raymondtay
pushed a commit
to raymondtay/triton
that referenced
this pull request
Apr 18, 2026
Check that the shapes and encodings of CatOp are valid and can be lowered.
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.
Check that the shapes and encodings of CatOp are valid and can be
lowered.