Repository navigation
[LLVMGPU] Add relayout combination behind a flag - #21076
Merged
Max191 merged 1 commit intoJun 13, 2025
Merged
Conversation
Max191
requested review from
Groverkss,
MaheshRavishankar,
kuhar and
qedawkins
as code owners
June 11, 2025 15:26
Signed-off-by: Max Dawkins <[email protected]>
Max191
force-pushed
the
add-relayout-combination-passes
branch
from
June 11, 2025 16:01
31d9583 to
09025e6
Compare
Max191
added a commit
that referenced
this pull request
Jun 12, 2025
Enables the map_scatter op e2e tests for rocm, the `iree-llvmgpu-test-combine-layout-transformation` flag (from #21076) is not needed, since the map_scatter op is present in the input IR. Signed-off-by: Max Dawkins <[email protected]>
MaheshRavishankar
requested changes
Jun 13, 2025
| // CHECK-NEXT: arith.truncf | ||
| // CHECK: %[[MAP_SCATTER:.+]] = iree_linalg_ext.map_scatter %[[COMPUTE_OP]] | ||
| // CHECK: iree_codegen.store_to_buffer %[[MAP_SCATTER]], %[[DEST_BUFFER]] | ||
| // CHECK: scf.forall |
Collaborator
There was a problem hiding this comment.
I am confused why there is an scf.forall after the store to buffer.
Contributor
Author
There was a problem hiding this comment.
This is for writing the padding values. It also needs to be distributed, so it gets distributed to workgroups and threads separately.
qedawkins
approved these changes
Jun 13, 2025
qedawkins
left a comment
Contributor
There was a problem hiding this comment.
Approving because this change in and of itself looks fine to me, but agree that the lit checks look strange
MaheshRavishankar
approved these changes
Jun 13, 2025
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Clarified after offline discussion with Max.
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
Enables the map_scatter op e2e tests for rocm, the `iree-llvmgpu-test-combine-layout-transformation` flag (from #21076) is not needed, since the map_scatter op is present in the input IR. Signed-off-by: Max Dawkins <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
Adds the `BufferizeDispatchTensorLoadStorePass` and the `GPUCombineLayoutTransformationPass` to the LLVMGPU configuration pipeline behind a new test flag, `iree-llvmgpu-test-combine-layout-transformation`. Also adds a pipeline test for the new configuration path. This will allow for enabling e2e tests for the map_scatter op, and some more complex data tiling fusions, while work for supporting map_scatter on the LLVMGPUVectorDistribute pipeline is in progress. Once the `LLVMGPUVectorDistribute` supports map_scatter, and the `LLVMGPUWarpReduction` pipeline is deprecated, then the flag can be flipped on by default. Signed-off-by: Max Dawkins <[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.
Adds the
BufferizeDispatchTensorLoadStorePassand theGPUCombineLayoutTransformationPassto the LLVMGPU configuration pipeline behind a new test flag,iree-llvmgpu-test-combine-layout-transformation. Also adds a pipeline test for the new configuration path.This will allow for enabling e2e tests for the map_scatter op, and some more complex data tiling fusions, while work for supporting map_scatter on the LLVMGPUVectorDistribute pipeline is in progress. Once the
LLVMGPUVectorDistributesupports map_scatter, and theLLVMGPUWarpReductionpipeline is deprecated, then the flag can be flipped on by default.