Repository navigation
Fuse pad with its producers. - #10184
MaheshRavishankar wants to merge 2 commits into
Conversation
|
https://reviews.llvm.org/D132720 are the upstream changes needed for this PR. |
a746db7 to
284f087
Compare
|
Currently blocked by #11273 |
284f087 to
e8ee5e0
Compare
This is a WIP PR that shows first attempt for data tiling for GPUs. It implementes materialization for the encoding. Note that, PR cannot compile any program. Because it generates `tensor.pad` and we don't know how to tile it yet. iree-org#10184 can be enabled to tile `tensor.pad`, but then it results bufferization problem iree-org#11273
e8ee5e0 to
c4967c0
Compare
|
@KoolJBlack . Rebased on main... can you share the input model you have. |
83818d8 to
54a9c3e
Compare
0f1d9f6 to
4be1235
Compare
a80e4b4 to
81338a4
Compare
22ee8e7 to
0f6569c
Compare
93b47bd to
4db592a
Compare
4db592a to
1939f81
Compare
Abbreviated Benchmark Summary@ commit 2498eb73dcf8aba2a22bec339bc4e657d33ed39d (vs. base 644820ca43e915efcb9ba79373af64b33bfb49d7) No improved or regressed benchmarks 🏖️ Regressed Compilation Times 🚩
For more information: |
Abbreviated Android Benchmark Summary@ commit 1939f8132b31a4fb2e226982ab4974d501998d64 (vs. base df166ed8d89ef3fe4103a27cb5f5e6f20fbc2599) Regressed Latencies 🚩
Improved Latencies 🎉
For more information: |
|
@nicolasvasilache looks like this is in a landable state from within IREE. It gets you what you were looking for with #13042 . Current draft of this PR changes the tiling interface implementation of |
I don't grok all the details of the IREE workarounds but the upstream change is incorrect and will potentially miscompile to OOB code for all possible users of the PadOp. "Knowing" that you can take only the else branch because one 1) has done something else before or 2) will do something else after, is an injection of user information. In particular, note that on GPUs, the assumption you are always making that "tile size is always greater than amount of padding" quickly fails to hold as one distributes the most minor dimension to threadIdx.x with In my case of interest, I have additional information related to 2) that is able to handle this properly. Can't you just refactor the functionality you need and use it in the particular place you need it? Also @qcolombet with whom we discussed some of this, and #13042, earlier. |
There is no workaround here. This is handling pad operations (and fusion with producers and consumers) without having special carve outs for pad op. The issue is the generation of the
I dont see why using that is better. It is generating the Still there are footguns here that makes me uncomfortable to land (I ran the benchmarks here to just check if this assertion holds today... and it seems to, but it is very easy to fall into this hole). I think the |
|
Superceded by #13133 |
Fixes #2783