Archived
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:
1 parent
0c813784a0
commit
0d2b502d51
13 files changed
+201
-6
No files matched your search
+2
-1
@@ -681,7 +681,8 @@ int rad_issue(RadCtx* c, rad_op op, const RadOperand* opd, int n_opd, int64_t n)
|
||||
* the all-reduce numbers its scratch slots per launch and the ranks must agree; a kernel with a
|
||||
* device-wide arrival counter must key it on the stream (libr4d's split-K GEMM does), or it may
|
||||
* not run here; and every buffer the second lane touches must be named to rad_buf_concurrent,
|
||||
* because the planner packs transients from one linear order. */
|
||||
* because the planner packs transients from one linear order (live for the whole program, or across
|
||||
* the second lane's window where the architecture declares one, abi/rad_builder.h). */
|
||||
int rad_lane(RadCtx* c, int lane);
|
||||
int rad_lane_join(RadCtx* c, int from, int to);
|
||||
|
||||
|
||||
Reference in new issue
Block a user