mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1864] [CLOSED] [Engine] Show adaptive waits in the serial decode timing sum #3725
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3725
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1864
Author: @SanghunYun
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:decode-timing📝 Commits (1)
4f78949Include adaptive waits in the serial decode timing sum📊 Changes
2 files changed (+36 additions, -10 deletions)
View changed files
📝
docs/DETAILS.md(+9 -0)📝
src/program/generate.cpp(+27 -10)📄 Description
Problem and result
With
STRATA_DECODE_TIMING=1, the serial decode line adds upverify + commit/emit + draft. Main already times the adaptive wait before verify and the join after draft, but those values come after the sum, so the named sections do not add up toms/window. On v0.1.42 this gap was about 12 ms/window on a 4,489-token prompt.After this change, the serial line lists the existing counters in the order they run, plus a remainder:
otheris the total minus the named sections, not a separate timer.Related discussion
#1863 reported this gap on 2026-10-11;
1aa0abf6added the wait/join counters citing it. This PR puts them into the sum. You said in this thread on 2026-10-17 that a small rebased PR would be accepted.Approach
Only the timing-report block and
docs/DETAILS.mdchange. No new timers or clock reads are added, and the values are the samedt_adapt_wait/dt_adapt_joinas before. The pipeline line (--pipeline-windows) keeps its current format. With timing off, nothing is printed, as before.Compatibility: a script that parses the serial line from
ms/window = verifymust acceptms/window = adapt wait. No parser in this repository reads it.Validation
Passed:
011c9e60(= main today); applies without conflicts, the commit is unchanged (git range-diff).strataon Linux, v0.2.2 + this commit, link; no warnings in the changed block.-Wformat=2 -Werror=formatand run on fixtures: serial order, sum and swaps/window (4, including a negative remainder), pipeline output byte-identical to main (4), no output with timing off or zero windows (8).generate.cppis byte-identical to v0.2.2.STRATA_DECODE_TIMINGunset): the changed block is not entered (the fixtures above) and nothing outside it changes (the byte comparison), so the engine runs exactly as v0.2.2.Failed: none observed.
Not run: model inference on this revision; SYCL (it builds its own copy of
generate.cpp, which this PR does not touch); Windows; HIP on a GPU.Limits
Batch slots are not covered. The times are host wall time, not GPU copy time.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.