Skip to content

Migrate tests and benchmarks from --iree-llvmcpu-enable-microkernels to --iree-llvmcpu-enable-ukernels - #15584

Merged
bjacob merged 1 commit into
iree-org:mainfrom
bjacob:microkernel-flag-migration
Nov 14, 2023
Merged

bjacob merged 1 commit into
iree-org:mainfrom
bjacob:microkernel-flag-migration

Conversation

@bjacob

@bjacob bjacob commented Nov 14, 2023

Copy link
Copy Markdown
Collaborator

Following #15571, we migrate existing tests and benchmarks from the old deprecated flag to the new one.

This will allow us to drop --iree-llvmcpu-enable-microkernels in a future PR.

@bjacob

bjacob commented Nov 14, 2023

Copy link
Copy Markdown
Collaborator Author

@pzread @mariecwhite @dcaballe @hanhanW , FYI.

@bjacob
bjacob marked this pull request as ready for review November 14, 2023 15:48
@bjacob
bjacob requested a review from pzread as a code owner November 14, 2023 15:49

@hanhanW hanhanW left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Maybe we should get a review from @pzread who knows the benchmarking infra better.

@pzread pzread added the benchmarks:x86_64 Run default x86_64 benchmarks label Nov 14, 2023
@pzread

pzread commented Nov 14, 2023 •

Copy link
Copy Markdown
Contributor

Triggered x86_64 benchmarks to double check if the flag works correctly

@hanhanW

hanhanW commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

Triggered x86_64 benchmarks to double check if the flag works correctly

The flag is also used by arm experimental-flags, should we check that?

@pzread pzread added the benchmarks:android-cpu Run default Android CPU benchmarks label Nov 14, 2023
@pzread

pzread commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

Triggered x86_64 benchmarks to double check if the flag works correctly

The flag is also used by arm experimental-flags, should we check that?

Added.

@github-actions

Copy link
Copy Markdown

Abbreviated Benchmark Summary

@ commit c231a5e5ae0a3fd435899c67463eff9f0450073e (vs. base ef0f1a405783c9cf673487a61fda8fca8e83e8c1)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
GPT2\_117M\_TF\_1X1XI32(stablehlo) [armv8.2-a-generic-linux\_android29-llvm\_cpu][default-flags] local\_task(embedded\_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 174.122 (vs. 143.693, 21.18%↑) 174.047 0.390

Improved Latencies 🎉

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MiniLML12H384Uncased(stablehlo) [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] 19.598 (vs. 22.381, 12.44%↓) 19.493 0.263
MobileBertSquad\_int8(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] 113.838 (vs. 127.614, 10.80%↓) 111.871 4.286
MobileNetV2\_fp32(tflite) [vmvx-generic-vmvx-vmvx][experimental-flags] local\_task(vmvx\_module)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 7269.525 (vs. 7842.245, 7.30%↓) 7326.387 142.317

[Top 3 out of 5 results showed]

No improved or regressed compilation metrics 🏖️

For more information:

Source Workflow Run

@pzread

pzread commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

Abbreviated Benchmark Summary

@ commit c231a5e5ae0a3fd435899c67463eff9f0450073e (vs. base ef0f1a405783c9cf673487a61fda8fca8e83e8c1)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
GPT2_117M_TF_1X1XI32(stablehlo) [armv8.2-a-generic-linux_android29-llvm_cpu][default-flags] local_task(embedded_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 174.122 (vs. 143.693, 21.18%↑) 174.047 0.390

Improved Latencies 🎉

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MiniLML12H384Uncased(stablehlo) [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] 19.598 (vs. 22.381, 12.44%↓) 19.493 0.263
MobileBertSquad_int8(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] 113.838 (vs. 127.614, 10.80%↓) 111.871 4.286
MobileNetV2_fp32(tflite) [vmvx-generic-vmvx-vmvx][experimental-flags] local_task(vmvx_module)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 7269.525 (vs. 7842.245, 7.30%↓) 7326.387 142.317
[Top 3 out of 5 results showed]

No improved or regressed compilation metrics 🏖️

For more information:

Source Workflow Run

Regression seems to be noise as it is compiled without the UK. LGTM

@bjacob
bjacob merged commit 2eda767 into iree-org:main Nov 14, 2023
ramiro050 pushed a commit to ramiro050/iree that referenced this pull request Dec 19, 2023
…` to `--iree-llvmcpu-enable-ukernels` (iree-org#15584)

Following iree-org#15571, we migrate
existing tests and benchmarks from the old deprecated flag to the new
one.

This will allow us to drop `--iree-llvmcpu-enable-microkernels` in a
future PR.
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:x86_64 Run default x86_64 benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants