Repository navigation
[VectorDistribution] Plumb the VectorDistribute pipeline to support reduction operations (3/4) - #18822
[VectorDistribution] Plumb the VectorDistribute pipeline to support reduction operations (3/4)#18822bangtianliu wants to merge 9 commits into
Conversation
kuhar
left a comment
There was a problem hiding this comment.
Why do we need the new pipeline option?
A temporary solution to support reductions in the VectorDistribute pipeline, where reductions are currently converted to contractions by default in the linalg vectorization part. |
|
What would it take to detect this automatically so that we don't need the new option? |
|
Two possible solutions:
|
|
I'd strongly prefer not to add new options -- these tend to explode in complexity over time |
Sure, I will see how to avoid this. |
|
I added the implementation to distribute the vector.contract operation, thereby eliminating the need for the extract pipeline option. |
|
This is looking much nicer with the vector.contract distribution. Can you move that to a seperate patch if possible? |
474143a to
2ea7339
Compare
371dc11 to
2f71934
Compare
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
… operations Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
Signed-off-by: Bangtian Liu <[email protected]>
ba80d40 to
43c865b
Compare
…Op (#18952) Depends on #18822 This patch adds support for distributing vector::ContractionOp when contraction op is generated from reduction and mfma instruction is not used. --------- Signed-off-by: Bangtian Liu <[email protected]>
…Op (iree-org#18952) Depends on iree-org#18822 This patch adds support for distributing vector::ContractionOp when contraction op is generated from reduction and mfma instruction is not used. --------- Signed-off-by: Bangtian Liu <[email protected]>
…Op (iree-org#18952) Depends on iree-org#18822 This patch adds support for distributing vector::ContractionOp when contraction op is generated from reduction and mfma instruction is not used. --------- Signed-off-by: Bangtian Liu <[email protected]> Signed-off-by: Giacomo Serafini <[email protected]>
Splitting #18519 into four patches.
Depends #18784 and #18800.
This is the third patch, including changes along the VectorDistribute pipeline to support reduction operations.
Additionally, a relevant test has been added, demonstrating how the reduction IR can be transformed through the VectorDistribute pipeline using the provided translation information and lowering configurations.
A separate patch #18952 about supporting vector.contract is created to avoid the hacks on pipeline option.
The upcoming and final patch will focus on setting configurations required by VectorDistribute pipeline for the reduction ops.