Verify window: bounded final wait; release the GPU's flag waits before the engine ends (#267)
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.
This commit is contained in:
1 parent
00ec1d081d
commit
50b4fadb08
5 files changed
+100
-4
No files matched your search
@@ -4106,6 +4106,7 @@ int main(int argc, char** argv) {
|
||||
"the engine so the server starts it again (issue #29)\n",
|
||||
limit, p.where.load(), (long long) p.detail.load());
|
||||
stall_report(stderr, p.ticks.load() - ticks_at);
|
||||
strata::core::release_gpu_waits(stderr); // #267: no spin kernel outlives the process
|
||||
std::fflush(stderr);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user