Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/evidence/CHIP-BATTERY-20261025/RECEIPT.md # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / evidence / CHIP-BATTERY-20261025 / RECEIPT.md` 85 lines · 5823 bytes Raw Blame History Rendered 1 # Chip battery, 2026-10-25: CUDA++ on the DGX Spark, with the live 35B left running 2 3 What this is: a full pass over CUDA++ on the GB10 — host suite, every chip gate, the zero-CUDA 4 gate, the artifact export, and a real inference check against the resident 35B — plus one defect 5 found on the way and fixed. Correctness and value checks only: no exclusive window was taken, no 6 speed is claimed from these runs (the machine was shared with the live model the whole time). 7 8 - Machine: DGX Spark, NVIDIA GB10 (sm_121, PCI 000f:01:00.0), Linux 7.0.0-1019-nvidia aarch64, 9 open kernel module 580.173.02, no CUDA user-space library used by any program here. 10 - Source: CUDApp ``60d6c57`` (branch `feat/device-trace-emitter`, 38 commits ahead of local `main`), 11 then `fix/qmd-shared-cap-32k` for the fix below. 12 - Live model: `aien-serve-http` pid `3906455`, 42.5 GiB, port 18091 (`qwen3.6-35b-a3b-fp8`). It was 13 serving before, during and after every run in this folder; nothing here stopped, restarted or 14 reconfigured it. 15 16 ## Results 17 18 | Check | Command | Result | 19 | --- | --- | --- | 20 | Build | `make -j8` | clean, `-Wall -Wextra -Werror` | 21 | Machine readiness | `make doctor` | READY: module 580.173.02, GB10 qualified, 58.9 GiB available | 22 | Host suite | `make test` | `CUDA++ HOST TESTS PASS (33 targets)`, rc 0, 417 s (before the fix); see `hosttest-after.log` for the re-run with the new target | 23 | Zero-CUDA gate | `make zero-cuda-gate` | PASS + self-test (a stub `libcudart` probe is rejected) | 24 | Artifact export | `make test-native-artifact` | 47 checks, 0 failed | 25 | First kernel | `make hello-gpu` | PASS, `1048576`/`1048576` elements, 0 wrong, 0 never written, machine-code digest printed (see `hello-gpu.log`) | 26 | Chip battery (12 gates) | `run-chip-battery.sh` | 12/12 PASS, 46 s wall (see `battery.txt` and the per-gate `*.json`) | 27 | Prefill / quant gates | `gpu_pf_mem_test`, `gpu_pfgemm_test --chip`, `gpu_qgemm_test --chip`, `gpu_pfhost_test --chip` | PASS | 28 | L2 staleness | `gpu_l2_stale_test --mode rewrite|realloc --cached 0|1` | 4/4 FRESH (0 stale or undecoded lines) | 29 | Inference (live model) | `curl /v1/chat/completions` | answers tokens, greedy; `live-infer.json` has the reply and usage | 30 31 Chip battery gates and their verdict lines (`battery.txt`): elementwise 35, matmul_api 97, 32 attention 219, decode_attn 29, router 17, bf16_gemv 12, fp8gemm 36, moe_window 143, cmdlist 31, 33 decode_graph 13, tcgemm PASS, prefill_attn 164 checks — 0 failed in every gate. 34 35 ## Inference on the hardware, and what it is running 36 37 The 35B on 18091 is the strongest available proof that inference runs on the chip through CUDA++: 38 its process has **no CUDA library at all** mapped (only `libc.so.6`, `libm.so.6`, `libgcc_s.so.1` 39 and the loader), and its build directory carries the archive it was linked against: 40 41 ``` 42 `036b7491d85a2d0781360c194402f345ad2f63720dab1b8f6d0cbc5c09f87d3e` libomega_gpu.a 43 `cc45f45e6abb482d8bb1b4d1c9bf5a30ccb4e854063f8c783a7826ca8deab27e` aien-serve-http 44 ``` 45 46 `BUILD.txt` in that directory names omega ``a647b6a9``, physics ``048e5f5e``, aienos ``b84c0a67``, and 47 `native-artifacts.lock` records that archive digest against omega ``a647b6a9``. The CUDApp commit 48 those sources came from is **not** recorded anywhere on this box: ``048e5f5e`` is a commit in the 49 `physics` repository (driver client only, no `omega_*` sources), and the digest of the library 50 built from this repository's ``60d6c57`` is ``e464fa05`…`, not ``036b7491`…`. So the live server runs a 51 CUDA++ snapshot that no file identifies. That is a provenance gap, not a defect in this tree; 52 closing it needs a revision string inside `libomega_gpu.a` and a line in the build recipe. 53 54 ## The defect this pass found 55 56 `./build/gpu_pfgemm_test --chip` failed on **all four** production shapes at 57 `qmd build (shared_bytes)` (`gpu_pfgemm_test.log`). The tensor-core FP8 grouped GEMM asks 58 `omega_tc2_shared_bytes = 4096 * rt` bytes of shared memory — 32768 at the shipped `rt` 8 — and 59 `OMEGA_BW_QMD_MAX_SHARED_BYTES` was 16384, so `omega_gpu_pf_gemm()` was refused before any device 60 work: the whole device-resident prefill GEMM path could not launch. 61 62 The cap was not the field. `NVCEC0_QMDV05_00_SHARED_MEMORY_SIZE_SHIFTED7` is `MW(1162:1152)` 63 (clcec0qmd.h, NVIDIA's open-gpu-doc tree): 11 bits in 128-byte units, up to 262016 bytes. Word 36 64 already declares `TARGET_SM_CONFIG_SHARED_MEM_SIZE` 9 = 32 KiB and `MAX` 26 = 100 KiB under Mesa 65 NVK's `size_kb / 4 + 1` rule (`gv100_smem_size_to_hw`, `nak/qmd.rs`). The cap now equals that 66 declared target (32768); going beyond it needs `MIN_`/`TARGET_` raised the way NVK's 67 `gv100_pick_smem_size_kb` does, which the header now says. 68 69 Fix (`fix/qmd-shared-cap-32k`): cap 16384 → 32768; new host test `test-gpu-qmd-shared` (encoding of 70 0/1024/4096/16384/32768 bytes, the SM-config fields unchanged, every other QMD word unchanged, and 71 a negative control one byte over the cap); `gpu_prefill_attn_test` and `gpu_decode_attn_test` check 72 the macro instead of a literal; stale "QMD cap 16384" comments in `codegen_pattn.h`, 73 `codegen_moe2.c` and `codegen_qg.c` corrected; `docs/runtime/API.md` states the cap. 74 75 After the fix, same chip, same live model running (`pfgemm-fixed.log`): all four shapes PASS, 76 bit-identity on 48 sampled rows, mutants 1–4 caught, and the 12-gate battery still 12/12. 77 78 ## What is not claimed 79 80 - No speed number. These runs share the machine with a 42.5 GiB model; `hello_gpu` printed 939 us 81 against a 64.5 us floor and the pfgemm medians moved between runs. A timing receipt needs a 82 `spark-window` and is not in this folder. 83 - Not a qualification of the fix beyond the gates listed: no window, no signed bundle. 84 - The pinned live archive (``036b7491`…`) was not rebuilt or re-tested here; it is a different source 85 snapshot from ``60d6c57`` and its CUDApp commit is unidentified.