CUDApp
CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
Brought by drakestapleton
CUDApp / tools / latmeas / template.md
| 1 | # GB10 (sm_121) measured latencies vs NAK |
| 2 | |
| 3 | Chip: NVIDIA GB10 (DGX Spark), sm_121 |
| 4 | Driver: NVIDIA open kernel module <version>, no NVIDIA user-space libraries |
| 5 | Method: dependent-chain timing kernel. Each instruction consumes the previous result, chain length N = <n>, cycles read with <clock source>, median of <k> runs, <warps/occupancy>. |
| 6 | Source: <link to the kernel(s) in aien-dev/CUDApp> |
| 7 | How to rerun: <one-line command> |
| 8 | |
| 9 | NAK reference: `nak/sm120_instr_latencies.rs` plus `latencies/sm100/*.csv` at Mesa commit <sha> |
| 10 | |
| 11 | ## Priority 1: values CUDA++ currently borrows from NAK (needs independent measurement) |
| 12 | |
| 13 | | Writer -> reader | NAK value | NAK source line | GB10 measured | Delta | Runs / spread | Kernel | |
| 14 | |---|---|---|---|---|---|---| |
| 15 | | ALU -> ALU (GPR RAW) | 4 + 1 | | | | | | |
| 16 | | FMA -> FMA (GPR RAW) | 4 + 1 | | | | | | |
| 17 | | Mixed ALU <-> FMA (GPR RAW) | 5 + 1 | | | | | | |
| 18 | | Predicate write -> guard | 13 + 1 = 14 | `latencies/sm100/pred_raw.csv` | | | | | |
| 19 | |
| 20 | ## Priority 2: instructions where CUDA++ (nvcc-derived) and NAK disagree |
| 21 | |
| 22 | | Instruction / pair | NAK value | nvcc sm_121 stall | GB10 measured | Agrees with | Kernel | |
| 23 | |---|---|---|---|---|---| |
| 24 | | | | | | NAK / nvcc / neither | | |
| 25 | |
| 26 | ## Notes |
| 27 | - Anything not fixed-latency (LDG/LDS, scoreboard waits) is out of scope for this table. |
| 28 | - Confidence notes and anomalies go here. |
| 29 | |
| 30 | The filled copy is written by `tools/latmeas/fill_template.py` into the output directory. This file stays blank: it is the form, not a result. |