You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hrx-ops-test: mutable_host_input_after_writeback no longer has a deferred host writeback to test (writer stages no download on be41cdd60) #3402
Split out of the engine#2774 cleanup (fork #499, review by cl-buildenv).
What: on fork be41cdd60 (strixhalo, both builds), hrx-ops-test's mutable_host_input_after_writeback.{cpu,hrx} fails at its first structural assert: graph_replay_state.has_pending_host_writebacks() is false right after ggml_backend_graph_compute_async(writer).
The case exists to prove that a reader sees a new host input while the writer's host writeback is still deferred. Its value check still passes, but with no writeback pending the case no longer reaches that state, so a pass means nothing.
Where deferral happens:runtime/command-program-executor.cpp. add_host_writeback is reached only when the prepared program has a host_staging entry with download set; the copy then goes through a mapped staging buffer. So the writer graph (ggml_scale_inplace(input, 1.0f) on a CPU-host or HRX-host input) no longer stages a download. Candidates, not checked on the device:
the host input is now bound directly (host-visible / imported), so no staging copy is needed;
the in-place scale by 1.0 is elided, so the writer writes nothing.
The case also asserts the timeline advanced at least 2 while graph replay is on, and that assert passes, which suggests work is still submitted.
Next step: with GGML_HRX_LOG_DISPATCH=1, run the writer graph and check whether it still has host_staging downloads. Then rebuild the case on a graph that really stages one, for example a non-identity scale or an input in a non-importable host buffer, so the deferred-writeback window is covered again.
Until then: fork #499 labels both rows known_fail_device_case with this issue, and keeps the original asserts unchanged.
Cause found, both parts by design. Fix in fork #501.
Fork b4e751594: a graph input is never written back to the caller's tensor, and the old writer wrote its own input.
Fork 1c1153316 (engine#1251): a staged writeback is published before the compute returns, so nothing can be pending afterwards.
What #501 changes: the case writes a host-bound output instead, which really stages a download (trace: download=1). It now asserts the publish-before-return guarantee: nothing pending, the host bytes already exact. The reader-sees-new-input check is unchanged.
Measured: 10/10 on both builds; add-on suite 399 / 0 / 9 known-fail.
Activity
bong-water-water-bong commentedon Nov 23, 2026
Cause found, both parts by design. Fix in fork #501.
b4e751594: a graph input is never written back to the caller's tensor, and the old writer wrote its own input.1c1153316(engine#1251): a staged writeback is published before the compute returns, so nothing can be pending afterwards.What #501 changes: the case writes a host-bound output instead, which really stages a download (trace:
download=1). It now asserts the publish-before-return guarantee: nothing pending, the host bytes already exact. The reader-sees-new-input check is unchanged.Measured: 10/10 on both builds; add-on suite 399 / 0 / 9 known-fail.
🤖 Generated with Claude Code