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 / evidence / qmma-probe-rest-20261106 / README.md
| 1 | # QMMA probe residual migration — 2026-11-06 |
| 2 | |
| 3 | Base `feat/omega-codegen-a` at `af70a66cf94e`. |
| 4 | |
| 5 | IMPLEMENTED: mark recognition and little-endian reads use strong |
| 6 | `omega_qm_host`. Patch-selftest IR construction uses strong `omega_qm_self`, |
| 7 | which reuses the existing QMMA record initializer, allocator bookkeeping, |
| 8 | scheduler and packer. No existing instruction generator was ported again. |
| 9 | The selftest's opcode/mask checks and packed class counts run in Omega; |
| 10 | C retains buffers, replay/encode/patch calls, traversal and diagnostics. |
| 11 | Old hand-written computation remains only under default-OFF |
| 12 | `CUDAPP_MIGRATION_PENDING_C_QMMA_PROBE_REST=1`. Public API is unchanged. |
| 13 | The existing family differential explicitly enables the independent old oracle. |
| 14 | |
| 15 | Owned files: `om/codegen/qm_host.om`, `om/codegen/qm_self.om`, unit registry, |
| 16 | generated binding C/header/ident, `src/omega_blackwell_codegen_qmma.c`, |
| 17 | `mk/codegen-a.mk`, `tests/qmma_probe_rest_test.c`, |
| 18 | `tests/qmma_probe_rest_mutants.py`, oracle flag in the existing differential, |
| 19 | ROADMAP note and this receipt. Unit registration commit: `49b83714`. |
| 20 | |
| 21 | ## Commands and observed results |
| 22 | |
| 23 | All runtime commands use this required device-isolating prefix: |
| 24 | |
| 25 | ``` |
| 26 | bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 |
| 27 | ``` |
| 28 | |
| 29 | * `make -s -j3 test-qmma-probe-rest`: rc 0, |
| 30 | `QMMA-REST SELFTEST IR/ENCODED/CUBIN IDENTITY PASS`, |
| 31 | `QMMA-REST DIFF PASS cases=2949`; intentionally flipped result fails case 1, |
| 32 | then `QMMA-REST RED PASS`. |
| 33 | * With `OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc` and |
| 34 | `OMEGA_BRIDGE=~/work/cudastack/omega-bridge`, |
| 35 | `make -s -j3 test-qmma-probe-rest-mutants`: rc 0, |
| 36 | `QMMA-REST MUTANTS PASS (8 killed)` and both |
| 37 | `QMMA-REST STRONG-LINK host PASS` / `QMMA-REST STRONG-LINK self PASS`. |
| 38 | * `make -s -j3 test-codegen-qmma-diff test-codegen-qmma-host test-codegen-tgemm-sim`: |
| 39 | rc 0. QMMA host final `GPU_QMMA_PROBE: PASS` with zero failures; |
| 40 | family differential final `CODEGEN QMMA DIFF PASS (714275 cases)`, |
| 41 | including full cubin identity, 94-value exhaustive iteration bit-basis, |
| 42 | iteration-dependence mutant and flipped-record mutant caught. |
| 43 | Existing TGEMM host and simulator both end `GPU_TGEMM: PASS`; |
| 44 | all five simulator cases match both schedules and four mutants are caught. |
| 45 | The existing QMMA host gate checks its arithmetic model; there is no |
| 46 | QMMA warp-simulator option, so the adjacent existing codegen-family |
| 47 | TGEMM simulator gate is reported separately, not as QMMA chip execution. |
| 48 | |
| 49 | EXERCISED: spec partition, red control, eight source mutants, both link |
| 50 | controls, selftest/full-family cubin identity, family host/model and existing |
| 51 | TGEMM simulator PASS. QUALIFIED on chip: NOT_RUN. |
| 52 | |
| 53 | Partition axes include source opcode, immediate and word/mask transition |
| 54 | values v-1/v/v+1, zero and UINT32_MAX. Little-endian reads cover each byte |
| 55 | position at every byte value. Verification covers F2FP, QMMA, unmarked HMMA |
| 56 | and irrelevant instructions. The original C selftest's captured IR is |
| 57 | independently encoded, patched and packed, then compared byte-for-byte with |
| 58 | the Omega selftest's full cubin. Matching success text is also required. |
| 59 | |
| 60 | | Omega source mutation | Verdict | |
| 61 | | --- | --- | |
| 62 | | HMMA marker opcode 16 → 15 | KILLED | |
| 63 | | read byte shift 8 → 9 | KILLED | |
| 64 | | F2FP golden word -1 | KILLED | |
| 65 | | QMMA golden opcode +1 | KILLED | |
| 66 | | HMMA golden word +1 | KILLED | |
| 67 | | F2FP class count increment -1 | KILLED | |
| 68 | | selftest store offset 64 → 68 | KILLED | |
| 69 | | selftest F2FP source subregister 1 → 0 | KILLED | |
| 70 | |
| 71 | Converter or link errors are not mutant kills. The two strong-link controls |
| 72 | remove each implementation in turn and require its unresolved symbol. |
| 73 | The unchanged seeded compiler/converter pins are recorded by `om/units.sh`. |
| 74 | Compiler: `omega-mv e5b32567`, SHA-256 |
| 75 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. |
| 76 | |
| 77 | WolframLanguageEvaluator: |
| 78 | `{16^^ffff,16^^ffffff00,16^^723e,16^^048070ff,16^^727a,16^^2c00,16^^723c,16^^41800,2+1+256+65536,2^64-1}` |
| 79 | → `{65535,4294967040,29246,75526399,29306,11264,29244,268288,65795,18446744073709551615}`. |
| 80 | These are exact integer opcode masks/counts, not measured hardware figures. |
| 81 | |
| 82 | ## Chip runbook — NOT_RUN |
| 83 | |
| 84 | After an operator-authorized exclusive window, run the existing |
| 85 | `gpu_qmma_probe_test` hardware probe and peak sweep, recording this source |
| 86 | revision, seed, all model/layout/negative-control output and final verdict. |
| 87 | Do not use host selftests as chip qualification. No GPU device, live service, |
| 88 | module or GPU lock was touched here. Full `make test` is integrator-owned. |
| 89 | MERGED/DEPLOYED: no. |