Skip to content

Data-tiling: never use a generic fallback tile size - #15469

Merged
bjacob merged 2 commits into
iree-org:mainfrom
bjacob:no-generic-tile
Nov 8, 2023
Merged

bjacob merged 2 commits into
iree-org:mainfrom
bjacob:no-generic-tile

Conversation

@bjacob

@bjacob bjacob commented Nov 7, 2023 •

Copy link
Copy Markdown
Collaborator

Since @hanhanW 's recent changes (around #15450), we can let MaterializeEncoding just fail and fall back to undoing the encodings. This is generally much better than going ahead with an arbitrary "generic" tile size, which we had been doing, so this PR switches to doing that consistently.

@bjacob bjacob added benchmarks:x86_64 Run default x86_64 benchmarks benchmarks:android-cpu Run default Android CPU benchmarks labels Nov 7, 2023
@github-actions

github-actions Bot commented Nov 7, 2023 •

Copy link
Copy Markdown

Abbreviated Benchmark Summary

@ commit a49cfa2d5853e73d8226ca00840f672eef43a015 (vs. base d5090963ac70299b4185aee4698fc2d387b21458)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MobileBertSquad\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][default-flags] local\_task(embedded\_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-16[cpu] 57.829 (vs. 49.434, 16.98%↑) 58.831 3.277
DeepLabV3\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,data-tiling,ukernel] local\_task(embedded\_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-16[cpu] 12.547 (vs. 11.293, 11.10%↑) 12.585 0.188

Improved Latencies 🎉

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
BertLargeTF(stablehlo) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,data-tiling,ukernel] local\_task(embedded\_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-16[cpu] 413.833 (vs. 465.021, 11.01%↓) 413.541 1.169
MobileNetV2\_fp32(tflite) [vmvx-generic-vmvx-vmvx][experimental-flags] local\_task(vmvx\_module)[4-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-core] 4755.210 (vs. 5087.618, 6.53%↓) 4805.870 167.147
MobileBertSquad\_fp32(tflite) [armv8.2-a-generic-linux\_android29-llvm\_cpu][experimental-flags,data-tiling,ukernel] local\_task(embedded\_elf)[4-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-core] 179.968 (vs. 192.056, 6.29%↓) 180.325 6.339

[Top 3 out of 6 results showed]

Regressed Total Dispatch Sizes 🚩

Benchmark Name Total Dispatch Size (bytes)
GPT2\_117M\_TF\_1X1XI32(stablehlo) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,data-tiling,ukernel,compile-stats] 41552 (vs. 39360, 5.57%↑)

Improved Total Dispatch Sizes 🎉

Benchmark Name Total Dispatch Size (bytes)
BertLargeTF(stablehlo) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,data-tiling,ukernel,compile-stats] 85256 (vs. 91848, 7.18%↓)
MobileBertSquad\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,data-tiling,ukernel,compile-stats] 98904 (vs. 105480, 6.23%↓)

For more information:

Source Workflow Run

@bjacob
bjacob marked this pull request as ready for review November 8, 2023 03:40
@bjacob bjacob removed benchmarks:x86_64 Run default x86_64 benchmarks benchmarks:android-cpu Run default Android CPU benchmarks labels Nov 8, 2023
@bjacob
bjacob enabled auto-merge (squash) November 8, 2023 11:59
@bjacob
bjacob merged commit e604f9d into iree-org:main Nov 8, 2023
ramiro050 pushed a commit to ramiro050/iree that referenced this pull request Dec 19, 2023
Since @hanhanW 's recent changes (around
iree-org#15450), we can let
MaterializeEncoding just fail and fall back to undoing the encodings.
This is generally much better than going ahead with an arbitrary
"generic" tile size, which we had been doing, so this PR switches to
doing that consistently.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants