nx_dequant_bench_test.nx
buildroot/runtime/nx_dequant_bench_test.nx
about
nx_dequant_bench_test.nx -- the throughput-measurement smoke.
Builds a synthetic Q4_K buffer of NX_DB_N_BLOCKS super-blocks
(NX_DB_N_BLOCKS * 256 values per run, NX_DB_N_BLOCKS * 144 bytes
input), runs nx_gguf_dequant_q4_k NX_DB_K_RUNS times, measures
wall-clock time via sys_clock_gettime_mono, computes ns/value and
MB/s, writes to /tmp/nx_dequant_bench.tsv for the smoke wrapper to
cat back to the operator.
Pass condition: smoke exits 0 if dequant completes without OOM,
timing values are positive, no output value stuck at the INF_SAT
clamp (no catastrophic overflow). The MEASURED NUMBERS are
reported via the side-channel TSV; the smoke does NOT assert a
throughput threshold (that would be aspirational without a known
reference for this hardware).
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_le.nxnx_strconv.nxnx_gguf.nxnx_gguf_load.nxnx_dequant_bench.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
| 27 | func _emit_kv(fd: i64, key: *u8, key_len: nx_int, value: i64) -> i64 |
| 43 | func main() -> i64 |