Archived
pipelined prefill: review fixes
The parts of the series' review rounds that concern the pipelined prefill and the second lane, carried over when the series was split: - qwen35_fp8: a trunk whose norms write rotated int8 codes (qwen35_w8a8 where libr4d serves the `_had_quant_i8g` forms) prefills serially -- the boundary norms on the second lane issue the E4M3 pair only, and before the fix libr4d refused them for the int8 op, failing every one-sequence prefill step of 1024 rows or more; a pipelined step whose bounds have no storage fails the step rather than falling back on one rank only. - The three- and eight-rank overlap all-reduce rows accept every tunable pin their wide rows accept (r4d_selftest checks it). - rad_builder.h: the window joins lane 1 into lane 0 at its end only, so an op declared before it must not be issued again while lane 1 has work pending. - tests: arch_test for the w8a8 trunk; plugin_test's lane-row comment. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
48e41fda1e
commit
4ec175549c
6 files changed
+87
-8
No files matched your search
+2
-1
@@ -5057,10 +5057,11 @@ static int64_t ar_lane38_nblocks() {
|
||||
return e && e[0] == '1' && !e[1] ? 4 : 0;
|
||||
}
|
||||
static const RadTunable tArTs38Lane[] = {
|
||||
{ "nblocks", kArNblocksLane4, NELEM(kArNblocksLane4), ar_lane38_nblocks(), "blocks in the grid. 0 = scale with the message and clamp (the wide rows' launch, the default); 4 under R4D_AR_LANE_3_8=1" },
|
||||
{ "nblocks", kArNblocks, NELEM(kArNblocks), ar_lane38_nblocks(), "blocks in the grid. 0 = scale with the message and clamp (the wide rows' launch, the default); 4 under R4D_AR_LANE_3_8=1" },
|
||||
{ "nthreads", kArNthreads, NELEM(kArNthreads), 1024, "threads per block" },
|
||||
{ "drain", kArDrain, NELEM(kArDrain), 3, "store-drain wait before the flag: 3 = s_wait_storecnt, 1 = vmcnt" },
|
||||
{ "acq", kArAcq, NELEM(kArAcq), 0, "acquire fence after the flag read" },
|
||||
{ "ts_min", kArTsMin, NELEM(kArTsMin), 32768, "unused here (tAr says why it is declared)" },
|
||||
};
|
||||
/* The same axes with narrow defaults, for a collective issued beside compute (`overlap` 1). The
|
||||
* wide launch (up to 24 blocks of 1024 threads spinning on peer flags) suits an all-reduce that has
|
||||
|
||||
Reference in new issue
Block a user