nx_f32_linear_simd.nx
buildroot/runtime/nx_f32_linear_simd.nx
about
nx_f32_linear_simd.nx -- SIMD f32 linear (__f32x8_dot) for the SANA-DiT projections, vs scalar: verify+speed.
The DiT block's compute bulk is dbl_linear: out[t,o] = Σ_i inp[t,i]*W[o,i]. With packed 4-byte f32, each
output is a chunked __f32x8_dot over the in-dim -> ~10x. Verified bit-close vs the i64-f32 scalar linear +
timed. This is the f32-SIMD accelerator for the SANA-DiT block's Q/K/V/O/FFN projections.
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
| none |
functions
| 17 | func dbl_linear_simd(inp_p: *u8, W_p: *u8, out: *i64, n: i64, id: i64, od: i64) -> i64 |
| 39 | func dbl_linear_scalar(inp: *i64, W: *i64, out: *i64, n: i64, id: i64, od: i64) -> i64 |
| 55 | func ls_emit(fd: i64, key: *u8, kl: i64, v: i64) -> i64 |
| 69 | func main() -> i64 |