Repository navigation
[LinalgExt] add TilingInterface support for ArgCompareOp - #21077
Merged
Merged
Conversation
bangtianliu
marked this pull request as draft
June 11, 2025 16:10
bangtianliu
force-pushed
the
argmax_tiling
branch
2 times, most recently
from
June 12, 2025 20:54
babdd5c to
4003960
Compare
bangtianliu
marked this pull request as ready for review
June 12, 2025 21:00
kuhar
reviewed
Jun 12, 2025
MaheshRavishankar
requested changes
Jun 13, 2025
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Yeah, I am not sure the current op definition allows you to tile appropriately. See #21021 (comment) . Let me know if you want to chat more offline.
Contributor
Author
Yes, the operation is tileable. I plan to add support for regions and the global start index in a follow-up PR. My mindset with was to keep the initial implementation simple to make it easier to review (I sent a detailed reply below your comment). Happy to discuss more offline whenever it is convenient for you. |
kuhar
reviewed
Jun 13, 2025
bangtianliu
force-pushed
the
argmax_tiling
branch
from
June 13, 2025 19:11
755a91d to
08c548a
Compare
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
bangtianliu
force-pushed
the
argmax_tiling
branch
from
June 25, 2025 05:04
08c548a to
5f6623d
Compare
IanWood1
reviewed
Jun 25, 2025
Signed-off-by: Bangtian Liu <[email protected]>
IanWood1
approved these changes
Jun 25, 2025
MaheshRavishankar
approved these changes
Jun 26, 2025
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Nice! Thanks!
bangtianliu
added a commit
that referenced
this pull request
Jun 27, 2025
Per discussion here: #21077 (comment) Due to `assert false` here for default branch: https://github.com/iree-org/iree/blob/d867a94aaf35d551905786253c4912a914312a12/compiler/src/iree/compiler/Dialect/LinalgExt/Utils/Utils.cpp#L89-L105, the failure failing afterward is not required and can be removed. Signed-off-by: Bangtian Liu <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
This PR adds tiling support for the `iree_linalg_ext.argmax` operation by implementing the tiling interface. The following methods are introduced: - `getLoopIteratorTypes` - `getResultTilePosition` - `getTiledImplementation` - `generateResultTileValue` Additionally, corresponding test cases are provided to verify the tiling behavior for both tensor and memref cases. --------- Signed-off-by: Bangtian Liu <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
Per discussion here: #21077 (comment) Due to `assert false` here for default branch: https://github.com/iree-org/iree/blob/d867a94aaf35d551905786253c4912a914312a12/compiler/src/iree/compiler/Dialect/LinalgExt/Utils/Utils.cpp#L89-L105, the failure failing afterward is not required and can be removed. Signed-off-by: Bangtian Liu <[email protected]>
bangtianliu
added a commit
that referenced
this pull request
Jan 19, 2026
…de (#23193) This PR extends the tiling interface implementation for `ArgCompareOp` to support explicit-index mode (2 inputs: value + pre-computed indices), which was introduced in PR #23153. **Key changes:** - Extended `getTiledImplementation` (introduced in PR #21077) to slice both value and index inputs in explicit-index mode - Extended `generateScalarImplementation` (convert_to_loops) (introduced in PR #21138) to load indices from input instead of computing from iteration variables in explicit-index mode Signed-off-by: Bangtian Liu <[email protected]>
keshavvinayak01
pushed a commit
that referenced
this pull request
Jan 27, 2026
…de (#23193) This PR extends the tiling interface implementation for `ArgCompareOp` to support explicit-index mode (2 inputs: value + pre-computed indices), which was introduced in PR #23153. **Key changes:** - Extended `getTiledImplementation` (introduced in PR #21077) to slice both value and index inputs in explicit-index mode - Extended `generateScalarImplementation` (convert_to_loops) (introduced in PR #21138) to load indices from input instead of computing from iteration variables in explicit-index mode Signed-off-by: Bangtian Liu <[email protected]> Signed-off-by: Keshav Vinayak Jha <[email protected]>
MaheshRavishankar
pushed a commit
to MaheshRavishankar/iree
that referenced
this pull request
Feb 24, 2026
…de (iree-org#23193) This PR extends the tiling interface implementation for `ArgCompareOp` to support explicit-index mode (2 inputs: value + pre-computed indices), which was introduced in PR iree-org#23153. **Key changes:** - Extended `getTiledImplementation` (introduced in PR iree-org#21077) to slice both value and index inputs in explicit-index mode - Extended `generateScalarImplementation` (convert_to_loops) (introduced in PR iree-org#21138) to load indices from input instead of computing from iteration variables in explicit-index mode Signed-off-by: Bangtian Liu <[email protected]>
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 PR adds tiling support for the
iree_linalg_ext.argmaxoperation by implementing the tiling interface. The following methods are introduced:getLoopIteratorTypesgetResultTilePositiongetTiledImplementationgenerateResultTileValueAdditionally, corresponding test cases are provided to verify the tiling behavior for both tensor and memref cases.