-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Flow] Enable softmax-like fusion under aggressive fusion. #17747
Conversation
Oops. Sorry push the branch to upstream repo instead of my fork and broke the naming convention. Will delete branch after it lands. |
Under aggressive fusion, drop the restriction of consumer iteration space being same dimensionality as the producer iteration space. Typically this can lead to large vectors if not handled properly. So this is guarded under `--iree-flow-enable-aggressive-fusion` flag. Signed-off-by: MaheshRavishankar <[email protected]>
10c3216
to
a62dd5a
Compare
Abbreviated Benchmark Summary@ commit b8a2701f5d91366e7318dcfdb76cdba464bab8d3 (vs. base 4294a5b0ebaec6dcca483bf16f5918108b09ea0a) Data-Tiling Comparison TableClick to show
Regressed Latencies 🚩
Improved Latencies 🎉
[Top 3 out of 7 results showed] No improved or regressed compilation metrics 🏖️ For more information: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, just one question
@@ -1,4 +1,4 @@ | |||
// RUN: iree-opt --pass-pipeline="builtin.module(util.func(iree-flow-form-dispatch-regions))" --split-input-file %s | FileCheck %s | |||
// RUN: iree-opt --pass-pipeline="builtin.module(util.func(iree-flow-form-dispatch-regions{aggressive-fusion=true}))" --split-input-file %s | FileCheck %s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to miss the tests for default path? Do we add a new mlir file to test aggressive-fusion=true
? I don't suggest to add an additional FileCheck
in this file because some of tests seem redundant to the aggressive fusion.
oh, my bad.. I did not notice that there is auto-merge.. |
…17747) Under aggressive fusion, drop the restriction of consumer iteration space being same dimensionality as the producer iteration space. Typically this can lead to large vectors if not handled properly. So this is guarded under `--iree-flow-enable-aggressive-fusion` flag. Fixes nod-ai/SHARK-ModelDev#749 Signed-off-by: MaheshRavishankar <[email protected]> Signed-off-by: Lubo Litchev <[email protected]>
Under aggressive fusion, drop the restriction of consumer iteration space being same dimensionality as the producer iteration space. Typically this can lead to large vectors if not handled properly. So this is guarded under
--iree-flow-enable-aggressive-fusion
flag.Fixes nod-ai/SHARK-ModelDev#749