Skip to content

Add --compatible-only option to benchmark tools - #13198

Merged
pzread merged 8 commits into
iree-org:mainfrom
pzread:bench-direct-mode
May 17, 2023
Merged

pzread merged 8 commits into
iree-org:mainfrom
pzread:bench-direct-mode

Conversation

@pzread

@pzread pzread commented Apr 20, 2023 •

Copy link
Copy Markdown
Contributor

This option enables the compatible benchmark filtering based on the detected device information. And we disable the compatible filter by default.

With the new benchmark suite, we provide a list of benchmarks to run. And the benchmark tools only run benchmarks of the target device specified by --target_device_name. This means the list of benchmarks has been filtered for a specific device. Therefore, by default we can disable the compatible benchmark filtering (based on detected devices) and let users to enable it when needed.

This will give the benchmark tools a simpler behavior (no auto-filtering) and more visible errors (failures) when trying to run incompatible benchmarks.

@pzread pzread added benchmarks:cuda Run default CUDA benchmarks benchmarks:x86_64 Run default x86_64 benchmarks labels Apr 20, 2023
@github-actions

github-actions Bot commented Apr 20, 2023 •

Copy link
Copy Markdown

Abbreviated Benchmark Summary

@ commit e4505275377a70a9fca7cb872ef9a1dea3470cfd (vs. base 4912ec61c8e66cd62c5151b134efe7ae639a223f)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
PersonDetect\_int8(tflite) [arm-valhall-vulkan\_android31-vulkan\_spirv][experimental-flags,fuse-padding,repeated-kernel] vulkan(none)[full-inference,experimental-flags] with zeros @ pixel-6-pro[gpu] 2.708 (vs. 2.552, 6.09%↑) 2.726 0.054
MobileBertSquad\_fp32(tflite) [armv8.2-a-generic-linux\_android29-llvm\_cpu][default-flags] local\_sync(embedded\_elf)[full-inference,default-flags] with zeros @ pixel-6-pro[little-core] 3937.546 (vs. 3743.916, 5.17%↑) 3937.832 3.504

Improved Latencies 🎉

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MobileNetV3Small\_fp32(tflite) [vmvx-generic-vmvx-vmvx][experimental-flags] local\_task(vmvx\_module)[4-thread,full-inference,system-scheduling] with zeros @ pixel-6-pro[big-core] 979.895 (vs. 1171.443, 16.35%↓) 982.322 34.771
MobileNetV2\_fp32(tflite) [vmvx-generic-vmvx-vmvx][experimental-flags] local\_task(vmvx\_module)[4-thread,full-inference,system-scheduling] with zeros @ pixel-6-pro[big-core] 4783.596 (vs. 5548.842, 13.79%↓) 4834.105 156.143
EfficientNet\_int8(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,fuse-padding] local\_task(embedded\_elf)[8-thread,full-inference,default-flags] with zeros @ c2-standard-16[cpu] 7.418 (vs. 8.525, 12.98%↓) 7.399 0.071

[Top 3 out of 19 results showed]

No improved or regressed compilation metrics 🏖️

For more information:

Source Workflow Run

@pzread
pzread force-pushed the bench-direct-mode branch 2 times, most recently from c65caaa to 5f31b92 Compare May 3, 2023 16:32
@pzread pzread changed the title Add --disable_compatible_filter option to benchmark tools Add --compatible-only option to benchmark tools May 3, 2023
@pzread
pzread force-pushed the bench-direct-mode branch from 5f31b92 to ab1044a Compare May 3, 2023 16:45
@pzread
pzread marked this pull request as ready for review May 3, 2023 16:48
@pzread
pzread requested a review from antiagainst as a code owner May 3, 2023 16:48
@pzread
pzread force-pushed the bench-direct-mode branch from ab1044a to 0b9d4b8 Compare May 4, 2023 17:10
@pzread
pzread requested a review from GMNGeoffrey May 4, 2023 17:38
@pzread

pzread commented May 12, 2023

Copy link
Copy Markdown
Contributor Author

Kindly ping

@GMNGeoffrey GMNGeoffrey left a comment

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.

Ugh sorry, I had a comment written and didn't hit send, I think. Too many things...

@pzread
pzread force-pushed the bench-direct-mode branch from 06a94fa to 9af4222 Compare May 16, 2023 20:34
@pzread pzread added benchmarks:comp-stats Run default compilation statistics benchmarks benchmarks:android-cpu Run default Android CPU benchmarks benchmarks:android-gpu Run default Android GPU benchmarks benchmarks:vulkan-nvidia Run default Vulkan benchmarks on NVIDIA GPU labels May 16, 2023
@pzread
pzread enabled auto-merge (squash) May 16, 2023 20:44
@pzread
pzread disabled auto-merge May 16, 2023 20:52
@pzread
pzread merged commit 6fca458 into iree-org:main May 17, 2023
NatashaKnk pushed a commit to NatashaKnk/iree that referenced this pull request Jul 6, 2023
This option enables the compatible benchmark filtering based on the
detected device information. And we disable the compatible filter by
default.

Co-authored-by: Geoffrey Martin-Noble <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarks:android-cpu Run default Android CPU benchmarks benchmarks:android-gpu Run default Android GPU benchmarks benchmarks:comp-stats Run default compilation statistics benchmarks benchmarks:cuda Run default CUDA benchmarks benchmarks:vulkan-nvidia Run default Vulkan benchmarks on NVIDIA GPU benchmarks:x86_64 Run default x86_64 benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants