SYCL verify: batch windows keep the doorbell nodes under the lean window
0.1.43 made the decode window lean under STRATA_VERIFY_NO_HOST with the device
plan (46a77907): the doorbell publish, flag waits and plan copy are dropped
because no host answers them. capture_batch() records batch windows through the
same record_window(), so a batch graph was also recorded lean, but the host batch
path (run_slot_rows / batch_poll) still waits for each layer's doorbell unless the
stage is all-resident. On a stage with mirrored experts the graph finished with
the ring silent: "verify batch: layer 0 never rang (graph finished)", then
UR_RESULT_ERROR_UNINITIALIZED and exit 139 at the first shared window.
Leave lean off while recording a batch window (batch_rec_). The solo window
stays lean. Batch tokens are identical to a run with STRATA_VERIFY_LEAN=00.
This commit is contained in:
1 parent
9de548d198
commit
fde1d795ef
1 file changed
+4
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user