Repository navigation
fix(bench): compare tiered simulators by total completion time - #2462
Conversation
|
This pull request is part of a Mergify stack:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
5b44073 to
90ee7b5
Compare
f591ca9 to
0a5fcab
Compare
Revision history
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f591ca907a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const total = ns(row, "reported_elapsed_ns"); | ||
| if (compile + execute > total) throw new Error(`${key}: startup and execution exceed total`); | ||
| return [milliseconds(`${base}_startup`, compile), milliseconds(`${base}_execution`, execute), milliseconds(`${base}_end_to_end`, total)]; | ||
| return [milliseconds(`${base}_end_to_end`, total)]; |
There was a problem hiding this comment.
Update the partial-publication test for total-only tiered metrics
The existing publishes each successful backend without requiring comparison partners test in scripts/publish-heliodor-bench.test.mjs still expects three metrics for each tiered runner and unconditionally reads its _execution metric. Returning only _end_to_end now makes that test fail with 1 !== 3; changing the count alone would subsequently fail on the removed execution metric. I reproduced this with node --test scripts/publish-heliodor-bench.test.mjs. Because .github/workflows/ci.yml runs node --test scripts/*.test.mjs in the repository-script check, this blocks CI. Update that consumer test to assert the tiered total's name and value while retaining the synchronous assertions.
Useful? React with 👍 / 👎.
0a5fcab to
d47f889
Compare
90ee7b5 to
f078fc6
Compare
d47f889 to
88ea6d8
Compare
f078fc6 to
3982ee7
Compare
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Publish only total workload time for tiered circuit and Heliodor comparisons. Keep startup and execution intervals in diagnostic reports, and hide historical phase-only tiered charts. Background compilation is part of the measured run, so a phase boundary must not determine the performance ranking. Circuit totals cover process launch through exit, including compilation, stimulus, resets and assertions. Heliodor totals cover analysis through the fixed Linux completion marker. Synchronous backend measurements retain their separate compilation and execution charts. Validation: publication and runner tests, Heliodor conversion fixtures, and VitePress production build. No large Heliodor workload was run. Change-Id: I94c190fb3c6e7dfd3a06a821826f90037451365a
3982ee7 to
a26c0a4
Compare
88ea6d8 to
544ca13
Compare
Land the Veryl testbench execution stack as one queue entry; its members are not merged into master individually. Lower Veryl testbench expressions and resumable processes into shared SIR before optimization and state layout, and run them through the native, interpreter, Cranelift and Wasm backends, so tiered execution promotes DUT and TB kernels together. The separate TB VM, Cranelift compiler, scalar assembler and runtime loop evaluator are removed. Concurrent TB continuation dispatch, clock waits and multi-clock time progression are generated as ordinary SIR composed with the shared compiled clock-domain scheduler, so process arithmetic, settlement and eligible clock slots execute together between host services and tiering safe points. The shared scheduler no longer invalidates clean combinational state for unchanged clocks and internal clock-alias notifications. Native SIR/MIR traces now include process entries, including compiled testbench and scheduler code. Tiered circuit and Heliodor comparisons publish only total workload time; startup and execution intervals stay in diagnostic reports. The tree is identical to #2483 at the SHA below. The source PRs are held with release:hold while this rollup is active. Their changes are squashed here; they close automatically when this PR lands on master. If a source head changes, rebuild the rollup before queueing it. Removing this rollup requires releasing those holds before resuming individual stack merges. Source PRs and pinned heads: - #2445: a26c0a4 — perf(testbench)!: compile Veryl testbenches through the HDL backends - #2462: 544ca13 — fix(bench): compare tiered simulators by total completion time - #2482: 7a0ee19 — fix(trace): include native process kernels in codegen traces - #2483: 387fb86 — perf(testbench)!: compile concurrent Veryl scheduling through SIR Validation (from the source PRs, same tree as #2483): - 281 Celox library tests; 98 native TB tests (1 existing ignored); 9 native MIR tests including a native testbench process trace; 8 native image tests; 5 completion tests; 8 slot-observer tests; 6 tiered tests. - 81 runtime and 28 testbench library tests; affected-crate all-target Clippy with systemverilog, cranelift, veryl-reference and wasm-runtime; compiler-only, WASI and ARM64 code-generation checks; formatting and the default-dependency guard. - SHA-256, FFT and LZ77 pass both positive and deliberately broken oracle qualification. Rica completes all 16 replays with identical cycle and retirement counts. - Benchmark publication and runner tests, Heliodor conversion fixtures, and the VitePress production build. Performance status: no end-to-end speedup over Veryl simulator has been established; this rollup makes no performance claim. No large Heliodor workload was run. BREAKING CHANGE: CompiledExpr no longer evaluates expressions against a raw memory pointer; compile testbenches with the simulator pipeline and invoke their bound backend kernels. Serialized testbench metadata gains scheduler state, and appended native images use container version 55 and must be regenerated. Change-Id: If61ef7bfc9c47ddc0c3bf3e81cf6bdbce4d62a28
|
Landed on master as part of the rollup #2484. |
Publish only total workload time for tiered circuit and Heliodor comparisons. Keep startup and execution intervals in diagnostic reports, and hide historical phase-only tiered charts. Background compilation is part of the measured run, so a phase boundary must not determine the performance ranking.
Circuit totals cover process launch through exit, including compilation, stimulus, resets and assertions. Heliodor totals cover analysis through the fixed Linux completion marker. Synchronous backend measurements retain their separate compilation and execution charts.
Validation: publication and runner tests, Heliodor conversion fixtures, and VitePress production build. No large Heliodor workload was run.
Depends-On: #2445