Archived
qwen35_fp8, gemma3: the weight reads beside the all-reduces are switched off by RADIANCE_PREFETCH_BESIDE=0
1.12.0 dropped RADIANCE_PREFETCH; the reads are now issued, or not, by prefetch_beside's own switch. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
de53cd18c1
commit
8998349eec
2 files changed
+2
-2
No files matched your search
@@ -1373,7 +1373,7 @@ static int declare(RadBuilder* b, const RadModelMeta* meta, const RadBuildCtx* c
|
|||||||
m.fuse_mx_ar = ar;
|
m.fuse_mx_ar = ar;
|
||||||
}
|
}
|
||||||
/* ---- the weight reads beside the decode all-reduces (prefetch_beside, rad_arch.h). Only at
|
/* ---- the weight reads beside the decode all-reduces (prefetch_beside, rad_arch.h). Only at
|
||||||
* more than one rank; RADIANCE_PREFETCH=0 declares none (decl_prefetch). */
|
* more than one rank; RADIANCE_PREFETCH_BESIDE=0 issues none (prefetch_beside). */
|
||||||
if (g.world > 1 && rad_op_declared(b, "prefetch")) {
|
if (g.world > 1 && rad_op_declared(b, "prefetch")) {
|
||||||
for (int64_t l = 0; l < g.n_layer; ++l) {
|
for (int64_t l = 0; l < g.n_layer; ++l) {
|
||||||
Layer& lay = m.layers[(size_t)l];
|
Layer& lay = m.layers[(size_t)l];
|
||||||
|
|||||||
@@ -1052,7 +1052,7 @@ static int declare(RadBuilder* b, const RadModelMeta* meta, const RadBuildCtx* c
|
|||||||
* so the GEMM behind it has its weight's leading bytes read into the on-die cache there: gate_up
|
* so the GEMM behind it has its weight's leading bytes read into the on-die cache there: gate_up
|
||||||
* behind the mixer's reduction, the next layer's first projection (the delta net's in-projection,
|
* behind the mixer's reduction, the next layer's first projection (the delta net's in-projection,
|
||||||
* an attention layer's q|gate) behind the feed-forward's. Only at more than one rank;
|
* an attention layer's q|gate) behind the feed-forward's. Only at more than one rank;
|
||||||
* RADIANCE_PREFETCH=0 declares none (decl_prefetch). */
|
* RADIANCE_PREFETCH_BESIDE=0 issues none (prefetch_beside). */
|
||||||
if (g.world > 1 && rad_op_declared(b, "prefetch")) {
|
if (g.world > 1 && rad_op_declared(b, "prefetch")) {
|
||||||
for (int64_t l = 0; l < m.n_main; ++l) {
|
for (int64_t l = 0; l < m.n_main; ++l) {
|
||||||
Layer& lay = m.layers[(size_t)l];
|
Layer& lay = m.layers[(size_t)l];
|
||||||
|
|||||||
Reference in new issue
Block a user