Files
Strata/engine/include/strata/kernels
Niko1221 edef565b90 CPU pool: STRATA_POOL_DEP=1 runs a native layer call as one batch with per-expert dependencies (opt-in, off by default)
The two row phases of run_split_multi_native (gate/up, then down) end in a barrier: every worker waits for the slowest task of the phase, and the host quantizes the intermediate between them. With STRATA_POOL_DEP=1 the layer call is one batch (mode 7): the experts' gate/up row ranges first (expert-major), then the experts' down row ranges. A down task waits only for its own expert's gate/up tasks (a counter), and the first thread that gets there quantizes that expert's intermediate once. Every gate/up task has a lower index than every down task and waits for nothing, so a waiting down task always waits for a running task. The rows are computed by the same kernels from the same bytes: the outputs are the two-phase batch's bits (bwg_pool_bench hashes equal for Q4_K/Q5_1 and Q4_K/Q8_0 experts, 1-3 tokens, tasks 0 / 41 / 132, 1 and 3 workers). Not used under the NUMA split or for Q2_0 down rows.
2026-11-19 12:37:34 +01:00
..