Repository navigation
Conversation
|
This will need to merge before PR 4/4 can be opened, but it can be viewed here: AaronStGeorge#2 |
egebeysel
left a comment
There was a problem hiding this comment.
was interested in the issue from the beginning, so self appointing myself to review if you don't mind :) a few nits but cool to see this almost being fully merged!
MaheshRavishankar
left a comment
There was a problem hiding this comment.
Thanks @AaronStGeorge . If you are interested, you can try to add a generic tileProducersAndFuseConsumers method in MLIR that could become the basis of this pass. We do this a couple of places, and a utility method upstream would be useful common place for this.
There was a problem hiding this comment.
I think Mahesh/Prashant/Quinn is the best person to review the change, so I'd wait an approval from them.
RE war: I feel that we start building things on top of workaround, and it is not a good sign. We need to fix it, and I think Mahesh has a plan in his mind. (We had a small chat offline before, IIRC.)
EDIT: I'll help the review, but I'll be traveling next week.
478ca9e to
a2c794e
Compare
I'd definitely be interested @MaheshRavishankar! First step would probably be getting the underlying issue necessitating the |
Currently, it selects the last operation which has workgroup level tile sizes due to legacy reasons.
…eDispatchUsingForall
…tiling with `scf.forall` This PR is part of a larger change moving `LLVMCPUTileRootAndFuseProducerConsumer`'s tiling of parallel dimensions to use `scf.forall` rather than `scf.for`; allowing us to take advantage of some canonicalization patterns available on scf.forall. The patterns available prevent redundant stack allocations seen in iree-org#20792. Tiling parallel dimensions with `scf.forall` rather than `scf.for` could also be said to be semantically cleaner. As part of that change, this PR intrudes an option to TileRootAndFuseProducerConsumer for tiling with `scf.forall`. PR 3/4 addressing iree-org#20792
a2c794e to
292e806
Compare
292e806 to
2ddf7a9
Compare
Co-authored-by: Han-Chung Wang <[email protected]>
…g with `scf.forall` (#21009) This PR is part of a larger change moving `LLVMCPUTileRootAndFuseProducerConsumer`'s tiling of parallel dimensions to use `scf.forall` rather than `scf.for`; allowing us to take advantage of some canonicalization patterns available on scf.forall. The patterns available prevent redundant stack allocations seen in #20792. Tiling parallel dimensions with `scf.forall` rather than `scf.for` could also be said to be semantically cleaner. As part of that change, this PR intrudes an option to `TileRootAndFuseProducerConsumer` for tiling with `scf.forall`. PR 3/4 addressing #20792 --------- Co-authored-by: Prashant Kumar <[email protected]> Co-authored-by: Han-Chung Wang <[email protected]>
This PR is part of a larger change moving
LLVMCPUTileRootAndFuseProducerConsumer's tiling of parallel dimensions to usescf.forallrather thanscf.for; allowing us to take advantage of some canonicalization patterns available on scf.forall. The patterns available prevent redundant stack allocations seen in #20792. Tiling parallel dimensions withscf.forallrather thanscf.forcould also be said to be semantically cleaner.As part of that change, this PR intrudes an option to
TileRootAndFuseProducerConsumerfor tiling withscf.forall.PR 3/4 addressing #20792