mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2106] [CLOSED] sycl verify: complete STRATA_VERIFY_EAGER for the commit path #3863
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#3863
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/2106
Author: @demetree
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:intel-eager-commit📝 Commits (1)
8cd3ed5sycl verify: complete STRATA_VERIFY_EAGER for the commit path📊 Changes
2 files changed (+31 additions, -6 deletions)
View changed files
📝
sycl/include/strata/core/verify.hpp(+3 -0)📝
sycl/src/core/verify.cpp(+28 -6)📄 Description
Completes the
STRATA_VERIFY_EAGERpath for the verify window's commit.The gap
The eager path is already half-built for the window:
capture()returns early underSTRATA_VERIFY_EAGER,run()replays the body throughrecord_window, the stage table branches on the flag, and the stepped-mode check excludes it.prepare_chain()inmtp.cppdocuments the state of the rest out loud:The commit is the missing half:
capture_commit()records a command graph andcommit()launches it, so a backend with no graph extension cannot get through a window's commit at all. That is not a hypothetical - the OpenCL UR adapter has no command-graph backend, which is whyrun()already carries the window replay.The change
capture_commit's body is nowVerifier::record_commit, and the two callers are:The body refreshes everything it reads - the mapped
commit_upload first, then the layer snapshots - so a replay sees the same inputs the graph would have, and it is safe to run once per window.h_commit_is written bycommit()before the launch, exactly as before.What it leaves alone
The graph path records the same kernels in the same order and finalizes them the same way - only the body moved into a function the eager path can call.
record_window, the MTP drafter's replays and the one-token self-commit are untouched.On "is this a bug?"
On
maintoday the same state is refused, not broken:run()callsif (!capture(T, err) || !capture_commit(err)) return false;, socapture_commit()fails atbegin_recording()andrun()bails with "verify: begin commit capture failed". I hit the null-commit_exec_case only after a Windows/OpenCL port of mine had started answering "captured" without building a graph. So this is a completion, not a fix for a crash reachable on main - and I would rather say that plainly than dress it up as a crash report.Measurements
Arc Pro B70, 32 GB, Windows 11 24H2, engine 0.1.43, coder-IQ1_M, 2047-token prompt,
--spec 4 --spec-min-p 0.5,--max-context 131072,--kv int8 --kv-resident 32768,--stream-experts --vram-reserve-mib 2048, greedy, withSTRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1 STRATA_VERIFY_EAGER=1 STRATA_MIRROR_MIB=4096:What I could not verify
STRATA_VERIFY_EAGERis set.pinned.dp.cppuses the CUDA runtime API under an unguarded#ifdef _WIN32;verify_kernels.dp.cpphits theOUTmacro). My numbers come from a tree that also carries those repairs. If you want a patch that builds standalone here, that is a separate change.Suggested review order
capture_commit()- is answering "captured" under eager the right contract, and does it belong here rather than in the caller?record_commit()- the body refresh is unchanged, but it is now called per-window instead of once at capture.commit()- theelseI added around the existing graph launch.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.