diff --git a/sycl/src/core/verify.cpp b/sycl/src/core/verify.cpp index b7cf147a..1d7501f1 100644 --- a/sycl/src/core/verify.cpp +++ b/sycl/src/core/verify.cpp @@ -798,7 +798,10 @@ bool Verifier::record_window(int T, dpct::queue_ptr cs, std::string &err) { // combine and the answers are the same kernels on the same data. static const bool lean_env = [] { const char* v = std::getenv("STRATA_VERIFY_LEAN"); return !(v && v[0] == '0'); }(); static const bool no_host_env = [] { const char* v = std::getenv("STRATA_VERIFY_NO_HOST"); return v && *v && std::strcmp(v, "0") != 0; }(); - const bool lean = lean_env && no_host_env && device_plan_ && !step_hook_ && !step_hook2_ && !remote_opt_ && !always_publish_ && !g_stepped; + // Not for a batch window (batch_rec_): unless the stage is all-resident, run_slot_rows / batch_poll wait for each + // layer's doorbell, so a lean batch graph finishes with the ring silent ("verify batch: layer 0 never rang (graph + // finished)", then the engine dies). Batch windows keep the doorbell nodes; the solo window stays lean. + const bool lean = lean_env && no_host_env && device_plan_ && !batch_rec_ && !step_hook_ && !step_hook2_ && !remote_opt_ && !always_publish_ && !g_stepped; const WeightTable& wt = *wt_; SessionState& ss = *ss_; const int64_t N = g.n_embd, HC = g.hc, K = ss.k, C = g.ssm_conv_channels, ZV = g.ssm_value_dim;