nx_natmm_bench.nx
buildroot/runtime/nx_natmm_bench.nx
about
nx_natmm_bench.nx -- ISOLATED native Q8 matmul: serial (_st) vs fork-join (_pteam).
No LLM, no load, no block ops -- just the kernel, looped, so external best-of-3
timing is clean. MODE 0=serial, 1=pteam. NG=n (outputs), MK=k (hidden).
Answers: does native fork-join speed up the memory-bound Q8 matmul, isolated?
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_f32.nxnx_f32_lazy_weight.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const NX_MM_MODE: i64 = 1 // 0 = serial (_st) ; 1 = fork-join (_pteam) |
| 11 | const NX_MM_ITER: i64 = 30 |
| 12 | const NX_MM_NG: i64 = 151936 // n = vocab (lm_head) -- the biggest matmul |
| 13 | const NX_MM_MK: i64 = 896 // k = hidden |
functions
| 15 | func main() -> i64 |