Skip to content

tools: one entry point for the engine#612 demo - #645

Merged
bong-water-water-bong merged 2 commits into
mainfrom
i612-showcase
Oct 30, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
i612-showcase

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Item 4 of engine#612: one entry point for the demo, so "reproduce the table" is one command per row
instead of three reconstructed command lines.

$ tools/showcase-612.sh rows
row            script                              build                                    device
npu-streams    tools/showcase-612-npu-streams.sh   -DONEBIT_NPU=ON (needs the NPU runtime)   accel0 (NPU)
hrx-batched    tools/showcase-612-hrx.sh           -DONEBIT_HRX=ON (TheRock)                HRX0 (iGPU)
hybrid         docs/hybrid.md "Status"             -DONEBIT_HRX=ON .. --prefill-provider    HRX0 + a prefill provider

Deliberately a dispatcher and not a fourth copy of the measurement code: each row needs a different
build (NPU runtime vs TheRock/HRX) and a different device, and both row scripts are already committed
with the records they produced. Until those pull requests merge, a missing row script says which PR
carries it rather than pretending the row exists.

The issue comment with the full table (pin stamped on every row) is on #612; this PR is only the
entry point.

Refs #612.

The demo is three rows with three builds and two devices, so the reproducible
thing is one command per row plus a table of what each row proves. This drives
them: `rows` prints the table, and each row execs the script that measured it
(tools/showcase-612-npu-streams.sh from #640, tools/showcase-612-hrx.sh from
#643) so a row is one command and its output carries its own pin, repeat count
and timestamp. The hybrid row has no script of its own and says why.

Refs #612.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT: READY (posted as a comment: GitHub refuses --request-changes/--approve on a PR owned by the same account), merge after #640 and #643.

Ran it on this box at 2ab3c1d: bash -n clean, shellcheck -S warning silent.

$ ./tools/showcase-612.sh rows
row            script                              build                                    device
npu-streams    tools/showcase-612-npu-streams.sh   -DONEBIT_NPU=ON (needs the NPU runtime)   accel0 (NPU)
hrx-batched    tools/showcase-612-hrx.sh           -DONEBIT_HRX=ON (TheRock)                HRX0 (iGPU)
hybrid         docs/hybrid.md "Status"             -DONEBIT_HRX=ON .. --prefill-provider    HRX0 + a prefill provider
$ ./tools/showcase-612.sh npu-streams   # -> "no ./tools/showcase-612-npu-streams.sh: it is in pull request #640 ..."; rc=1
$ ./tools/showcase-612.sh hrx-batched 2 # -> "no ./tools/showcase-612-hrx.sh: it is in pull request #643 ..."; rc=1
$ ./tools/showcase-612.sh hybrid        # -> the "no script of its own" paragraph; rc=0
$ ./tools/showcase-612.sh bogus         # -> "unknown row 'bogus'"; rc=1

docs/hybrid.md does have the ## Status heading this points at. The ordering is the only constraint: until #640 and #643 are in, two of the four rows print the "which PR" message, which is what the script says it does. No set -e, so a row script's non-zero exit is the dispatcher's exit through exec, which is what you want from a thin front door.

@bong-water-water-bong
bong-water-water-bong merged commit 369f687 into main Oct 30, 2026
7 of 8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the i612-showcase branch October 30, 2026 14:41
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.

1 participant