the second lane's window (rad_lane1_window_begin / _end): concurrent buffers live across it, not the whole program

rad_buf_concurrent held a buffer for the whole program because the planner cannot tell when lane 1
runs. An architecture whose lane-1 work lies in one stretch of its declared ops now declares it, and
its concurrent buffers live across that window and their own uses, so the drafter's and the heads'
buffers share their bytes again. Ctx holds it: an op on lane 1 outside the window fails the step by
name, and the first lane-0 op past it joins lane 1 first when work is pending there. qwen35_fp8 and
gemma3 declare it from the embedding's all-reduce to the final norm. Qwen3.8 + DFlash2 at 64
sequences with speculation: activation arena 633.99 -> 526.32 MiB a card, upstream's exactly (with
the second lane's own scratch region, KV 86208 -> 93856 tokens against upstream's 95520).
arch_test's fake builder applies the window too, so the pinned steps check every plugin touches its
concurrent buffers only inside it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
mici81andClaude Opus 5.5 authored and StillDeadcode committed 2026-10-24 11:10:08 +02:00
1 parent 0c813784a0
commit 0d2b502d51
13 files changed
+201 -6

No files matched your search

+3
View File
@@ -463,6 +463,9 @@ public:
* with any other transient buffer never runs there; one naming no transient buffer counts.
* At most scratch_bytes; -1 (a program not built by the Builder) means scratch_bytes. */
int64_t scratch_bytes_lane1 = -1;
/* The second lane's window (rad_lane1_window_begin): the first and last op handle lane 1 may run;
* -1 when the architecture declared none (concurrent buffers then live for the whole program). */
int32_t lane1_w0 = -1, lane1_w1 = -1;
/* Everything that resolved to nothing, reported whole rather than stopping at the first
* failure (spec §3.1). Structured because the domains are reported differently: a device miss