Skip to content

Support new benchmark suite in Android benchmark tool - #13176

Merged
pzread merged 4 commits into
iree-org:mainfrom
pzread:bench-android-tool-migrate
May 3, 2023
Merged

pzread merged 4 commits into
iree-org:mainfrom
pzread:bench-android-tool-migrate

Conversation

@pzread

@pzread pzread commented Apr 19, 2023 •

Copy link
Copy Markdown
Contributor

Support running Android benchmark tool with the new benchmark suite.

Based on #13182 (the first commit), which needs to be reviewed first.

@pzread pzread added benchmarks:cuda Run default CUDA benchmarks benchmarks:x86_64 Run default x86_64 benchmarks labels Apr 19, 2023
@pzread
pzread force-pushed the bench-android-tool-migrate branch 6 times, most recently from 73f55c1 to dced33e Compare April 20, 2023 02:25
@github-actions

github-actions Bot commented Apr 20, 2023 •

Copy link
Copy Markdown

Abbreviated Benchmark Summary

@ commit c9ceb3fa2ceda0f6326dd8b6d6c2e6803b1c0d5d (vs. base c7a99d5611ac2da99a7b568661c68fd1e653ec37)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
BertLargeTF(tf\_v1) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][default-flags] local\_task(embedded\_elf)[8-thread,full-inference,default-flags] with zeros @ c2-standard-16[cpu] 1894.000 (vs. 1697.416, 11.58%↑) 1901.550 31.516

Improved Latencies 🎉

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MobileNetV3Small\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][default-flags] local\_sync(embedded\_elf)[full-inference,default-flags] with zeros @ c2-standard-16[cpu] 4.397 (vs. 5.529, 20.47%↓) 4.381 0.097
MobileNetV3Small\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][default-flags] local\_task(embedded\_elf)[1-thread,full-inference,default-flags] with zeros @ c2-standard-16[cpu] 4.515 (vs. 5.630, 19.80%↓) 4.444 0.149
EfficientNet\_int8(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][default-flags] local\_task(embedded\_elf)[8-thread,full-inference,default-flags] with zeros @ c2-standard-16[cpu] 7.833 (vs. 8.939, 12.38%↓) 7.815 0.153

[Top 3 out of 6 results showed]

No improved or regressed compilation metrics 🏖️

For more information:

Source Workflow Run

@iree-github-actions-bot

iree-github-actions-bot commented Apr 20, 2023 •

Copy link
Copy Markdown
Contributor

Abbreviated Android Benchmark Summary

@ commit c4cdad9b220291aa1f8ee87fe0548936c46357b8 (vs. base eb0d5f853c1d4865dd1ed58aab5a3eab71223e5b)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
PersonDetect [int8] (TFLite) full-inference,default-flags with IREE-Vulkan @ Pixel-6-Pro (GPU-Mali-G78) 2.702 (vs. 2.563, 5.46%↑) 2.712 0.059

For more information:

@pzread
pzread force-pushed the bench-android-tool-migrate branch 4 times, most recently from c62fce1 to b1ec9ca Compare April 20, 2023 05:53
@pzread pzread changed the title [WIP] Support new benchmark suite in Android benchmark tool Support new benchmark suite in Android benchmark tool Apr 20, 2023
@pzread
pzread marked this pull request as ready for review April 20, 2023 16:29
@pzread
pzread force-pushed the bench-android-tool-migrate branch from b1ec9ca to dc1d932 Compare April 20, 2023 16:31
@pzread pzread mentioned this pull request Apr 20, 2023
42 tasks done
@pzread
pzread force-pushed the bench-android-tool-migrate branch 2 times, most recently from e7e1432 to 750742d Compare April 25, 2023 17:43
"""Deduces the CPU mask according to device and execution config."""
exec_config = run_config.module_execution_config
single_thread = False
if exec_config.driver != iree_definitions.RuntimeDriver.LOCAL_TASK:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this instead be looking for LOCAL_SYNC?

@pzread pzread May 2, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The legacy logic also runs GPU benchmarks with the most performant core. Refactor to be more verbosely represent all the legacy cases, and fail if it falls outside those cases (at that point we should get rid of this legacy code first)

@pzread
pzread force-pushed the bench-android-tool-migrate branch 2 times, most recently from 08ae2bc to add4d57 Compare May 2, 2023 17:45
@pzread
pzread requested a review from GMNGeoffrey May 2, 2023 18:28
@pzread
pzread force-pushed the bench-android-tool-migrate branch from add4d57 to 770a64a Compare May 3, 2023 05:22
@pzread
pzread merged commit 68b2a8d into iree-org:main May 3, 2023
NatashaKnk pushed a commit to NatashaKnk/iree that referenced this pull request Jul 6, 2023
Support running Android benchmark tool with the new benchmark suite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarks:cuda Run default CUDA benchmarks benchmarks:x86_64 Run default x86_64 benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants