nx_f32x8_dot_bench.nx
buildroot/runtime/nx_f32x8_dot_bench.nx
about
nx_f32x8_dot_bench.nx -- x86 f32 SIMD dot (__f32x8_dot, AVX vmulps) vs scalar: verify + speedup.
Complements the integer vpmaddwd win: the f32 side (DiT projections + linear attention) accelerates via
__f32x8_dot (8 f32 mul-adds per call). A 4096-wide dot = 512 __f32x8_dot chunk calls. Verified vs scalar
f32 + timed. f32 packed as 4-byte f32 in memory (the intrinsic's layout).
license_tier: ORIGINAL
dependencies 8 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_strconv.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_clock.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
| 15 | const K_MAGIC_4096: i64 = 4096 |
| 16 | const K_MAGIC_20000: i64 = 20000 |
functions
| 18 | func fb_emit(fd: i64, key: *u8, kl: i64, v: i64) -> i64 |
| 32 | func main() -> i64 |