gpu-head-to-head
aien-dev/gpu-head-to-head
Brought by drakestapleton
gpu-head-to-head / results / coldstart / 20261029T221603Z / RESULTS.md
| 1 | # Cold-start study, session 20261029T221603Z: RESULTS |
| 2 | |
| 3 | Evidence label: MEASURED on this DGX Spark (GB10) in one spark-window. Chip-level microbenchmark under |
| 4 | [coldstart/PROTOCOL.md](../../../coldstart/PROTOCOL.md) (PROTOCOL.md amendment A7). Not part of the main |
| 5 | results table `results/RESULTS.md`. |
| 6 | |
| 7 | ## Session |
| 8 | |
| 9 | | Item | Value | |
| 10 | |------|-------| |
| 11 | | Protocol commit (predeclaration) | `63855ab4822eea6fec4e488f23b62bc976469c8c`, pushed to `protocol/a6-cold-start` 2026-10-29T22:15:13Z | |
| 12 | | spark-window | `20261029T221538Z-ed5493`, `--gb10 exclusive --quiet exclusive --lease 20`; opened 22:15:41Z (waited 3 s), closed 22:19:51Z, held 253 s, spark-window verdict `quiet machine` | |
| 13 | | run.py | started 22:16:03Z, finished 22:19:46Z, verdict `MEASURED`, `complete: true`, 90 measured processes | |
| 14 | | Quiet gate | `bench/quiet.py` 60 s ending 22:17:03Z: `quiet: true`, load1 1.2, busy `[]` | |
| 15 | | GPU compute apps | none before, none after | |
| 16 | | Cores | arm core 9; driver core 12; nvidia-modeset kthreads on cpu 4 | |
| 17 | | Measured load1 range | 0.92 to 3.38 (Wolfram `MinMax[csRows[[All, 4]]] -> {0.92, 3.38}`) | |
| 18 | | Environment | `CUDA_CACHE_DISABLE=1`, `CUDA_MODULE_LOADING` unset | |
| 19 | |
| 20 | Pins as predeclared (coldstart/PROTOCOL.md section 3): CUDApp `cc0908bdc0a0377f2166e9328dcf1d985457e27f`, |
| 21 | gcc 13.3.0, CUDA 13.0 (NVRTC 13.0.88, nvPTXCompiler 13.0), driver 580.173.02 (`cuDriverGetVersion` |
| 22 | 13000). `session.json` carries `build.txt` verbatim; the driver's sha256 check of all three arm binaries |
| 23 | and `vecadd.ptx` against it passed. |
| 24 | |
| 25 | ## Controls (all passed, `control_failures: []`) |
| 26 | |
| 27 | | Control | CUDAPP | PTXC | NVRTC | |
| 28 | |---------|--------|------|-------| |
| 29 | | code sha256 (`code.<ARM>.bin`) | `9e28bd9c...` (512 B), equals `hello_gpu --sim` | `691edc87...` (5600 B) | `691edc87...` (5600 B), identical to PTXC | |
| 30 | | `--skip-run` (negative) | exit 1, wrong = unwritten = 1048576 | exit 1, 1048576 / 1048576 | exit 1, 1048576 / 1048576 | |
| 31 | | maps (`maps.<ARM>.txt`) | no NVIDIA user library, 12 `/dev/nvidia` mappings | `libcuda` present | `libcuda` present | |
| 32 | | output FNV-1a (maps runs) | `e8aa66742b796a3d` | `e8aa66742b796a3d` | `e8aa66742b796a3d` | |
| 33 | |
| 34 | ## Validity |
| 35 | |
| 36 | Every arm: 30 measured rows, 30 valid, 0 failed, 0 excluded for load (`rows_valid` in |
| 37 | `wolfram.out.json`). All arms valid (at least 28 of 30 required). Session not void: verdict `MEASURED`, |
| 38 | lease not exceeded, no chip-watchdog action during the window. |
| 39 | |
| 40 | ## Headline metrics (microseconds, valid rows, n = 30 per arm) |
| 41 | |
| 42 | Median (Q1 to Q3), IQR. Source: `wolfram.table.out.txt` (rounded to 0.1 us by Wolfram); unrounded in |
| 43 | `wolfram.out.json`. |
| 44 | |
| 45 | | Metric | CUDAPP | PTXC | NVRTC | |
| 46 | |--------|--------|------|-------| |
| 47 | | H1 build | 77.7 (75.0 to 85.4), IQR 10.4 | 7029.6 (6027.1 to 7143.9), IQR 1116.8 | 119047.8 (98378.3 to 141661.8), IQR 43283.5 | |
| 48 | | H3 firstResult | 96774.1 (95517.6 to 102370.2), IQR 6852.6 | 263653.7 (259361.2 to 305322.0), IQR 45960.8 | 302786.4 (278044.6 to 325938.8), IQR 47894.3 | |
| 49 | | H4 proc | 154374.2 (144943.3 to 189373.1), IQR 44429.9 | 423561.1 (418338.3 to 466366.7), IQR 48028.4 | 481722.4 (441550.3 to 487635.4), IQR 46085.2 | |
| 50 | |
| 51 | Verdicts (section 7, non-overlapping IQRs): |
| 52 | |
| 53 | | Headline | CUDAPP vs PTXC | CUDAPP vs NVRTC | |
| 54 | |----------|----------------|-----------------| |
| 55 | | H1 build | CUDAPP_LOWER, median ratio 90.45 | CUDAPP_LOWER, median ratio 1531.74 | |
| 56 | | H3 firstResult | CUDAPP_LOWER, 2.72 | CUDAPP_LOWER, 3.13 | |
| 57 | | H4 proc | CUDAPP_LOWER, 2.74 | CUDAPP_LOWER, 3.12 | |
| 58 | |
| 59 | Ratios are other arm median over CUDAPP median, descriptive only. |
| 60 | |
| 61 | ## Descriptive metrics |
| 62 | |
| 63 | | Metric | CUDAPP | PTXC | NVRTC | Calls (vs PTXC / vs NVRTC) | |
| 64 | |--------|--------|------|-------|----------------------------| |
| 65 | | H2 ready | 87150.7 (85946.8 to 93097.3) | 249194.6 (245828.0 to 290059.2) | 284483.7 (261889.2 to 307408.3) | CUDAPP_LOWER 2.86 / CUDAPP_LOWER 3.26 | |
| 66 | | E exec | 2609.7 (2524.7 to 2801.1) | 3878.2 (3649.3 to 4012.7) | 6611.2 (6328.0 to 6828.9) | CUDAPP_LOWER 1.49 / CUDAPP_LOWER 2.53 | |
| 67 | | W warm build (10 per-process medians) | 5.16 (5.144 to 5.192) | 3162.57 (3137.27 to 3176.66) | 16353.48 (16296.44 to 16385.04) | CUDAPP_LOWER 612.90 / CUDAPP_LOWER 3169.28 | |
| 68 | |
| 69 | W calls: `wolfram.warm-call.out.txt` (`{"PTXC" -> {"CUDAPP_LOWER", 612.9013081395348}, "NVRTC" -> |
| 70 | {"CUDAPP_LOWER", 3169.279360465116}}`). |
| 71 | |
| 72 | Phase medians, not predeclared, added as a description of where each arm spends its time |
| 73 | (`wolfram.phases.out.txt`, Wolfram `Median` per phase over the 30 measured rows, us): |
| 74 | |
| 75 | | Phase | CUDAPP | PTXC | NVRTC | |
| 76 | |-------|--------|------|-------| |
| 77 | | prep | 3537.2 | 3601.5 | 4670.8 | |
| 78 | | build | 77.7 | 7029.6 | 119047.8 | |
| 79 | | open | 86983.2 | 242130.8 | 163547.1 | |
| 80 | | load | 68.1 | 23.9 | 23.5 | |
| 81 | | data | 1675.8 | 900.6 | 898.3 | |
| 82 | | run | 844.7 | 60.1 | 61.7 | |
| 83 | | check | 519.8 | 5726.2 | 5480.1 | |
| 84 | | close | 50298.2 | 87451.5 | 87378.1 | |
| 85 | |
| 86 | ## Reading |
| 87 | |
| 88 | - Every headline is CUDAPP_LOWER against both arms with non-overlapping IQRs, in this one session. |
| 89 | - The build gap is the largest; after build, opening the GPU dominates every arm. CUDApp's |
| 90 | `omega_gpu_session_open` has a median of 86983.2 us, nearly all of its firstResult. The NVIDIA arms' |
| 91 | open covers `cuInit` and primary context creation. |
| 92 | - Per phase, the NVIDIA arms are faster where the GPU itself works: run 60.1 and 61.7 us against |
| 93 | CUDApp's 844.7 us, and data 900.6 and 898.3 us against 1675.8 us. Their load (23.9, 23.5 us) is |
| 94 | near zero because CUDA 13 loads modules lazily; check holds their device to host copy. |
| 95 | - NVRTC's build median 119047.8 us sits between two groups (`wolfram.nvrtc-build-sorted.out.txt`): |
| 96 | 15 builds from 96662 to 101962 us and 15 from 136134 to 145481 us. Its IQR (43283.5) reflects that split. |
| 97 | - PTXC and NVRTC loaded the same cubin; their open medians differ (242130.8 against 163547.1 us). The |
| 98 | phase table does not explain that difference. |
| 99 | |
| 100 | ## Caveats |
| 101 | |
| 102 | As predeclared (coldstart/PROTOCOL.md section 8): the builds differ in scope (`ptxas` optimizes a |
| 103 | general description; CUDApp lowers one fixed IR program to 32 instructions); process spawn and binary |
| 104 | size are inside exec, firstResult and proc for every arm; one session, one machine, one date. The |
| 105 | pre-protocol pilot and the host dry run are disclosed there and are not results. |
| 106 | |
| 107 | ## Files |
| 108 | |
| 109 | `raw.jsonl` (every process, controls and warmups included), `session.json`, `rows.wl`, `code.*.bin`, |
| 110 | `maps.*.txt`, `wolfram.query.wl` with `wolfram.out.json` (csAnalyse), `wolfram.table.*`, |
| 111 | `wolfram.warm-call.*`, `wolfram.phases.*`. |
| 112 | |
| 113 | Zero-CUDA proof of `hello_gpu` taken in the same window before run.py (not part of the protocol): |
| 114 | `/home/drakestapleton/handoffs/cudapp-video-20261029/{hello.stdout,maps.txt,openat.txt,ldd.txt}`. |