Skip to content

Add new aggressive fusion heuristics to DispatchLinalgOnTensorsPass - #10472

Merged
pzread merged 20 commits into
iree-org:mainfrom
pzread:push-dispatch-fusion
Sep 22, 2022
Merged

pzread merged 20 commits into
iree-org:mainfrom
pzread:push-dispatch-fusion

Conversation

@pzread

@pzread pzread commented Sep 19, 2022 •

Copy link
Copy Markdown
Contributor

Add the aggressive fusion heuristics to DispatchLinalgOnTensorsPass and guard it by the flag. Verified the numbers of dispatches are same on the benchmark suites when the flag is disabled (by default).

Currently the e2e compilation will fail when enabled due to backend issues.

Comparison on the benchmark suites w/ and w/o aggressive fusion heuristics:

  # of dispatches (disabled) # of dispatches (enabled)
PersonDetect_int8 75 74
PoseNet_fp32 48 48
MiniLML12H384Uncased 221 184
MobileNetV2_fp32 74 73
DeepLabV3_fp32 79 79
MobileBertSquad_int8 1472 1447
EfficientNet_int8 121 120
MobileBertSquad_fp16 752 727
MobileSSD_fp32 121 121
MobileBertSquad_fp32 752 703
MobileNetV3Small_fp32 96 96
MobileNetV1_fp32 58 57

@iree-github-actions-bot

iree-github-actions-bot commented Sep 20, 2022 •

Copy link
Copy Markdown
Contributor

Abbreviated Linux Benchmark Summary

@ commit 435b55d97bbf5031a02ea8bc0717bd79905df2b5 (vs. base d27d6b461e75b217c143c6eda66cd5a1ee6da8e2)

No improved or regressed benchmarks 🏖️

Improved Compilation Times 🎉

Benchmark Name Compilation Time (ms)
PoseNet [fp32] (TFLite) CPU-x86\_64-CascadeLake 8-thread,full-inference,default-flags 9755 (vs. 12228, 20.22%↓)
PoseNet [fp32] (TFLite) CPU-x86\_64-CascadeLake full-inference,default-flags 9755 (vs. 12228, 20.22%↓)
PoseNet [fp32] (TFLite) CPU-x86\_64-CascadeLake 4-thread,full-inference,default-flags 9755 (vs. 12228, 20.22%↓)

[Top 3 out of 39 results showed]

For more information:

@iree-github-actions-bot

iree-github-actions-bot commented Sep 20, 2022 •

Copy link
Copy Markdown
Contributor

Abbreviated Benchmark Summary

@ commit 435b55d97bbf5031a02ea8bc0717bd79905df2b5 (vs. base d27d6b461e75b217c143c6eda66cd5a1ee6da8e2)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MobileNetV3Small [fp32,imagenet] (TFLite) big-core,full-inference,experimental-flags with IREE-LLVM-CPU-Sync @ Pixel-4 (CPU-ARMv8.2-A) 14.395 (vs. 12.929, 11.34%↑) 14.392 0.023
DeepLabV3 [fp32] (TFLite) little-core,full-inference,experimental-flags with IREE-LLVM-CPU-Sync @ Pixel-6-Pro (CPU-ARMv8.2-A) 381.910 (vs. 355.200, 7.52%↑) 381.953 2.428
MobileBertSquad [fp32] (TFLite) little-core,full-inference,experimental-flags with IREE-LLVM-CPU-Sync @ Pixel-6-Pro (CPU-ARMv8.2-A) 2978.602 (vs. 2821.129, 5.58%↑) 2973.910 12.785

[Top 3 out of 5 results showed]

No improved or regressed compilation metrics 🏖️

For more information:

@pzread
pzread force-pushed the push-dispatch-fusion branch from 490f01b to f7e0726 Compare September 20, 2022 21:01
@pzread
pzread force-pushed the push-dispatch-fusion branch 3 times, most recently from 78c1ca3 to 130ff85 Compare September 20, 2022 23:25
@pzread
pzread force-pushed the push-dispatch-fusion branch from 703eb4a to f87526b Compare September 21, 2022 20:22
@pzread
pzread marked this pull request as ready for review September 21, 2022 21:17

@MaheshRavishankar MaheshRavishankar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pzread !

@pzread
pzread merged commit 896d63c into iree-org:main Sep 22, 2022
@GMNGeoffrey GMNGeoffrey added the codegen Shared code generation infrastructure and dialects label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen Shared code generation infrastructure and dialects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants