GPU: confirm relay readback fence completion #69
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DexNom--VIctory!69
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-69"
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?
@kyle7908 on GitHub · 2026-11-26 04:36 UTC · original
kyle7908:fix/dexnom-relay-readback-fence→main· +129 −1 · 2 files · 1 commits · openProblem
The direct-queue relay readback path discards the result of WaitForSingleObject. It can then read mapped bytes, merge the result, and retire tracking before completion is established. In RayTime, the same wait also precedes a diagnostic timestamp readback. Device removal can signal pending fence events and causes GetCompletedValue to report UINT64_MAX.
Change
Require WAIT_OBJECT_0 and a completed fence value at or beyond the submitted value, with a separate check for UINT64_MAX. Preserve the native Win32 error on WAIT_FAILED. An unconfirmed completion takes the existing fatal path before timing data, mapped bytes, or tracking are consumed. Queue ordering and RayTime's packed readback and capture bookkeeping are preserved.
Reproduction and validation
64bd58f, a test-only version that modeled the unchecked wait by returning success passed the success control and failed all four negative cases. A failed wait, a nonsignaled wait, an incomplete fence, and the removal sentinel all advanced the synthetic readback and retirement markers.Actual GPU device-loss behavior has not been verified end to end. The negative cases use native Win32 event results and synthetic fence values. Validation used public source, authorized dependencies, and synthetic fixtures.
AI disclosure
OpenAI Codex assisted with reproduction, implementation, validation, and independent pre-submission review.
@Artking175 on GitHub · 2026-11-26 05:24 UTC · original
Independent Windows 10 check of
80f89c2. The fivehost::relay_fetchtests passed with diagnostics disabled and all five passed again with diagnostics enabled. This exercised the native Win32 event results and synthetic fence values, including the removal sentinel and preservation of the Win32 error. Actual device removal and relay throughput were outside this test.@kyle7908 on GitHub · 2026-11-26 05:49 UTC · original
@Artking175 Thanks for taking the time to independently verify this on Windows 10! Really appreciate the additional validation across both diagnostics configurations.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.