Skip to content

Create multi-stage RISCV-32 build - #9845

Merged
GMNGeoffrey merged 11 commits into
iree-org:mainfrom
GMNGeoffrey:riscv
Jul 20, 2022
Merged

GMNGeoffrey merged 11 commits into
iree-org:mainfrom
GMNGeoffrey:riscv

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Jul 19, 2022 •

Copy link
Copy Markdown
Member

This replaces the Kokoro pipeline and demonstrates a slightly more
complex multi-stage build. The host tools build here should be reusable
for any other job that needs the host tools, though note that these
ones are built with asserts enabled and we'll probably want another job
that builds with them disabled (e.g. for benchmarking).

@GMNGeoffrey GMNGeoffrey changed the title Create build for host tools Create multi-stage RISCV-32 build Jul 19, 2022
@GMNGeoffrey
GMNGeoffrey force-pushed the riscv branch 6 times, most recently from 2c467e9 to b5a085d Compare July 20, 2022 00:11
@iree-github-actions-bot

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

Copy link
Copy Markdown
Contributor

Abbreviated Linux Benchmark Summary

@ commit 69b8a00329b561f946ddcac60ee668cef359c7d4 (vs. base 59c6678f7af9d64589dd525ead5c58f2c8908ebf)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MobileNetV2 [fp32,imagenet] (TFLite) 1-thread,full-inference,default-flags with IREE-Dylib @ GCP-c2-standard-16 (CPU-x86\_64-CascadeLake) 14 (vs. 13, 7.69%↑) 14 0
MobileSSD [fp32] (TFLite) full-inference,default-flags with IREE-Dylib-Sync @ GCP-c2-standard-16 (CPU-x86\_64-CascadeLake) 43 (vs. 40, 7.50%↑) 43 1

No improved or regressed compilation metrics 🏖️

For more information:

@GMNGeoffrey

Copy link
Copy Markdown
Member Author

Uuuuuh... I don't really understand how this could've improved compilation times and regressed run times. Assertions are turned off: https://buildkite.com/iree/iree-benchmark-linux/builds/810#01821d4a-4f74-45b1-ba61-9cde3ac02ef6/43-75

Linking with lld couldn't cause this, could it??

Wait, hang on. The pipeline actually rebuilds the benchmark tools separately from the host tools. So these regressions look spurious.

@GMNGeoffrey
GMNGeoffrey marked this pull request as ready for review July 20, 2022 21:30
@GMNGeoffrey
GMNGeoffrey requested a review from ScottTodd as a code owner July 20, 2022 21:30
@GMNGeoffrey

Copy link
Copy Markdown
Member Author

I'm guessing there has been some improvement on mainline in the meantime. I guess I can merge from main and find out. And then rerun all the tests...

@pzread

pzread commented Jul 20, 2022 •

Copy link
Copy Markdown
Contributor

The compilation time is measured when building the benchmark suites (vmfb): https://buildkite.com/iree/iree-benchmark-linux/builds/810#01821d4a-4f80-43ad-aa1b-1795a1d2108f It uses the iree-compile built from build_host_tools.sh. It shouldn't affect the compilation time, unless we configure iree-compile with different options.

It is not fine tuned yet (and the build machine is just a normal builder), so they might be just the noise or improvement from other places. The latency regression also looks random, might be the noise.

@GMNGeoffrey
GMNGeoffrey requested a review from hcindyl July 20, 2022 22:07
@GMNGeoffrey
GMNGeoffrey requested review from pzread and removed request for hcindyl July 20, 2022 22:07
@hcindyl

hcindyl commented Jul 20, 2022

Copy link
Copy Markdown
Contributor

nit: the title should be both RISCV-64 and RISCV-32 builds.

@GMNGeoffrey

Copy link
Copy Markdown
Member Author

nit: the title should be both RISCV-64 and RISCV-32 builds.

You mean the PR title? I didn't make a RISCV-64 build though. I just renamed its build script

@hcindyl

hcindyl commented Jul 20, 2022

Copy link
Copy Markdown
Contributor

nit: the title should be both RISCV-64 and RISCV-32 builds.

You mean the PR title? I didn't make a RISCV-64 build though. I just renamed its build script

ahh. I see. sorry I misread. Are we going to have a RISCV-64 github action added later?

@GMNGeoffrey

Copy link
Copy Markdown
Member Author

nit: the title should be both RISCV-64 and RISCV-32 builds.

You mean the PR title? I didn't make a RISCV-64 build though. I just renamed its build script

ahh. I see. sorry I misread. Are we going to have a RISCV-64 github action added later?

Yup 🙂 #9855

@GMNGeoffrey
GMNGeoffrey merged commit 53f31d1 into iree-org:main Jul 20, 2022
@GMNGeoffrey
GMNGeoffrey deleted the riscv branch July 20, 2022 22:53
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Jul 28, 2022
@GMNGeoffrey

Copy link
Copy Markdown
Member Author

Forgot to tag originally, but part of #9855

@GMNGeoffrey GMNGeoffrey mentioned this pull request Aug 1, 2022
42 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants