Previously the owner push path ran serially on the comm stream as BARR -> PUSH -> READY(spin) with an all-rank barrier before every push, so one slow owner serialized all subsequent pushes on the critical path.
Change
Drop the per-push all-rank barrier; the comm stream now batch-issues all owner pushes back to back (LPlusBOwnerPushOnly).
Add a dedicated _owner_ready_stream (same priority) performing wait_event(push_done) -> LPlusBOwnerWaitReady(epoch = ordinal + 1) -> record_event(); the recorded event becomes the slot's peer_visible, so ready waits no longer occupy the comm stream.
Epoch increases monotonically to avoid deadlock.
Correctness: source readiness via AsyncLane producer-stream event ordering; slot reuse safety via peer-final-use release collective; peer visibility via kernel trailing quiet + owner-ready signal.
scripts/validate_async.py poison target moved to the push-only op.
Validation (8-card Ascend950DT, same 30-step traced recipe)
metric (8 ranks total)
baseline
decoupled
delta
step avg
242.7 ms
230.4 ms
-5.1%
step max
247.1 ms
235.9 ms
-4.5%
barrier kernel
416 / 699.98 ms
352 / 448.71 ms
-35.9%
push kernels
64 / 67.07 ms
64 / 68.70 ms
flat
ready kernels
64 / 159.11 ms
64 / 185.88 ms
+16.8% (off critical path)
Barrier count per rank drops 52 -> 44, exactly the removed per-step pre-push barrier. Expert-path numerical checks (accum/sgd_delta fc1/fc2, output, route_prob) are exact 0.0 on all ranks. The only failing check (main_grad/layers.0.self_attention.linear_qkv.weight) reproduces identically on stock code (control run: same check, same bf16-quantum error magnitude, different ranks), i.e. pre-existing machine noise unrelated to this change.
Motivation
Previously the owner push path ran serially on the comm stream as
BARR -> PUSH -> READY(spin)with an all-rank barrier before every push, so one slow owner serialized all subsequent pushes on the critical path.Change
LPlusBOwnerPushOnly)._owner_ready_stream(same priority) performingwait_event(push_done) -> LPlusBOwnerWaitReady(epoch = ordinal + 1) -> record_event(); the recorded event becomes the slot'speer_visible, so ready waits no longer occupy the comm stream.scripts/validate_async.pypoison target moved to the push-only op.Validation (8-card Ascend950DT, same 30-step traced recipe)
Barrier count per rank drops 52 -> 44, exactly the removed per-step pre-push barrier. Expert-path numerical checks (accum/sgd_delta fc1/fc2, output, route_prob) are exact 0.0 on all ranks. The only failing check (
main_grad/layers.0.self_attention.linear_qkv.weight) reproduces identically on stock code (control run: same check, same bf16-quantum error magnitude, different ranks), i.e. pre-existing machine noise unrelated to this change.