Files
6gbvram---16gb-ram/crates
DexNom e205498c64 GPU: a background fence wait reports what went wrong instead of carrying on
Two helper threads wait on the host fence with `SetEventOnCompletion` and
`WaitForSingleObject`. Both ignored a failed call: the late helper then went
straight to the landing step with nothing run, settling flights off a value
the card never reached, and the relay slept 1 ms and tried again. A removed
device was worse than either: `GetCompletedValue` answers `u64::MAX`, which
compares greater than every target, so every wait and every landing check
passed at once while the card had run nothing.

`wait_host_fence` checks the completion call, the wait's result and the
fence value, and fails with a named context; `fence_reached` treats
`u64::MAX` as "never reached". The relay's device-removal read is checked
too, before it lands anything.

Ported from DexNom/VIctory d036cea (pull request #1366), GPL-3.0.

(cherry picked from commit 671e25f9850abca01266bab096fed096b7fd0606)
2026-11-27 17:29:36 -08:00
..