mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
A verify window the GPU never finished held the host in an unbounded cudaStreamSynchronize, and the serve watchdog then aborted the process with the window's spin kernel (wait_flag_ge / wait_flag_ge_or on a host-mapped flag) still resident - on Windows the GPU was left "lost" until a power cycle. - The final wait of Verifier::run polls cudaStreamQuery (the same wait while the window runs) and gives up after 20 s like the per-layer wait, through the existing error path. - Verifier::release_gpu_waits writes UINT32_MAX into the mapped flags M/A/B (past every ring, so each spin kernel returns; wait_flag_ge_or returns on its flag too), then waits for the streams up to 5 s; the verifier refuses later windows. Both timeouts run it before returning their error, and the serve watchdog and the expert pool's stall aborts run it (progress.hpp release_gpu_fn, every live verifier) before std::abort. - Test hook: STRATA_TEST_VERIFY_STALL=N withholds the last layer's flag in the N-th window; unset it is never taken. The normal path runs the same kernels in the same order. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0154bwiad8gY7wRehCXy27pN