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 / codegen-fixture-verify-20261106 / README.md
| 1 | # Codegen fixture verification — 2026-11-06 |
| 2 | |
| 3 | ## Scope and verdicts |
| 4 | |
| 5 | IMPLEMENTED / EXERCISED on `feat/codegen-fixture-verify-om`, based on |
| 6 | `feat/checkers-rest-om` at `cd44785cc000` (PR #338). The seven exported |
| 7 | `omega_blackwell_verify_codegen_fixtures*` functions delegate comparison, |
| 8 | refusal/error-index arithmetic, optional-word policy, BF16 relations, BFLY bits, |
| 9 | control-word assembly and selection to `om/codegen/fixture_verify.om`. |
| 10 | C still invokes encoders, copies their four words, and controls fixture order. |
| 11 | The public API is unchanged. The C reference is default-OFF behind |
| 12 | `CUDAPP_MIGRATION_PENDING_C_ENGINE_FIXTURE_REST`. |
| 13 | |
| 14 | | Tier | Verdict | |
| 15 | | --- | --- | |
| 16 | | Host source-partition C/Omega differential | PASS | |
| 17 | | All seven exported verifier invocations, C/Omega | PASS | |
| 18 | | Missing strong unit link | PASS: undefined-reference link failure required | |
| 19 | | Corrupted golden-data red control | PASS: verifier returned failure | |
| 20 | | Recompiled Omega mutants | PASS: 7/7 killed | |
| 21 | | Hosted/freestanding golden fixtures and buffer contract | PASS | |
| 22 | | Hosted/freestanding encoded fixture dump comparison | PASS: byte-identical | |
| 23 | | Freestanding undefined-symbol allowlist and malloc red | PASS | |
| 24 | | Existing replay-limit host gate | PASS | |
| 25 | | Unrelated exhaustive BF16 conversion sweep | NOT_RUN | |
| 26 | | Hardware / live RM / VFIO / chip qualification | NOT_RUN | |
| 27 | | MERGED / DEPLOYED | NO | |
| 28 | |
| 29 | ## Pins and reproduction |
| 30 | |
| 31 | Compiler: omega-mv `e5b32567`, `seed/out/omc` SHA-256 |
| 32 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. |
| 33 | Use this base's existing runtime-view bridge pin `/tmp/bridge-73-apiviews` |
| 34 | (toc `d84fd6eb`, frontend `a3a455bd`) and |
| 35 | `OMEGA_SEED=~/work/cudastack/omega-bridge/build/bootstrap/omc`. |
| 36 | The scalar-only freestanding profile produces |
| 37 | `src/cudapp_freest_fixture_verify.c`; it introduces no hosted runtime into the |
| 38 | freestanding build. Generated C is bridge output, not a second implementation. |
| 39 | The first lane commit registers the unit; subsequent changes finish its scalar |
| 40 | ABI and callers. No bridge/compiler pin, external dependency or API is changed. |
| 41 | |
| 42 | Every command below ran under the device-free prefix: |
| 43 | |
| 44 | ```sh |
| 45 | bwrap --dev-bind / / --dev /dev --proc /proc -- \ |
| 46 | taskset -c 10-14 nice -n 10 COMMAND |
| 47 | ``` |
| 48 | |
| 49 | | COMMAND (inside that prefix) | rc | Observed final result | |
| 50 | | --- | --- | --- | |
| 51 | | `python3 tests/om_fixture_verify_test.py` | 0 | `PASS seven exported fixtures; red golden-data control; mutants 7/7 KILLED; HW NOT_RUN` | |
| 52 | | `make -j3 build/test_codegen_hosted build/test_codegen_freestanding test-gpu-fs-allowlist-control` | 0 | `allowlist control: a malloc caller is refused by the nm -u check (as required)` | |
| 53 | | `./build/test_codegen_hosted --golden` | 0 | `PASS: hosted golden-word fixtures through the .om encoder (0 failing checks)` | |
| 54 | | `./build/test_codegen_freestanding --no-sweep` | 0 | `PASS: freestanding codegen contract (14 fixtures, 0 failing checks)` | |
| 55 | | `./build/test_codegen_hosted --dump` and `./build/test_codegen_freestanding --dump` | 0 each | Captured outputs compared byte-for-byte equal by the acceptance driver | |
| 56 | | `make -j3 test-om-ir-limit` | 0 | `PASS replay-limit zero/default, boundaries, pre-mutation refusals, pressure` | |
| 57 | |
| 58 | The `--no-sweep` argument excludes only the unrelated exhaustive conversion |
| 59 | sweep; all golden verifiers and the complete existing buffer contract ran. |
| 60 | The acceptance runner records exact compiler/generator commands and return |
| 61 | codes in `commands.tsv`. Selected text receipts accompany this file. Encoded |
| 62 | machine-code dumps, compiled binaries and mutant binaries are not committed. |
| 63 | Paths in filed receipts replace the local home directory with `~`. |
| 64 | |
| 65 | ## Source-derived partitions |
| 66 | |
| 67 | `tests/om_fixture_verify_test.c` compares every extracted operation and wrapper |
| 68 | with the retained C reference. For the seven caller families (main, intops, |
| 69 | fragment MMA, reconvergence, BFLY/F2FP, atomf32, fb1cut4), the real exported |
| 70 | functions also run against all their existing golden encodings. |
| 71 | |
| 72 | - All four word positions, each mask 0 through 15, equal words and mismatches; |
| 73 | optional word 3 with zero and nonzero expected word. |
| 74 | - Error indices at zero, instruction/shift/word boundaries and UINT32/UINT64 |
| 75 | extremes; positive and negative status values; zero/nonzero refusal classes. |
| 76 | - BF16 changed-word XOR around the required `0x40000` bit, retained-word |
| 77 | equality/mismatch; BFLY's required bit and independent second-pair mismatches. |
| 78 | - Word boundaries at 0/1, 7/8, 15/16/17, 31/32/33, 255/256, |
| 79 | 262143/262144/262145, 67108863/67108864/67108865, INT32_MAX, |
| 80 | UINT32_MAX-1/UINT32_MAX/UINT32_MAX+1, INT64_MAX and UINT64_MAX. |
| 81 | - Source shifts are exercised at 0, 1, 15, 16, 17, 23, 24, 25, 31, 32 and 63; |
| 82 | the shift-count domain is 0..63, matching defined C shifts. Arbitrary larger |
| 83 | shift counts are not claimed as a differential contract. |
| 84 | - Equality selection takes both arms. Float fixtures compare encoded integer |
| 85 | words, not arithmetic float values; no new floating-input computation exists. |
| 86 | |
| 87 | `gcov.log` records the C reference header at 97.30% lines, 100.00% branches |
| 88 | executed, 96.88% branches taken. The unexecuted branch is the invalid-opcode |
| 89 | trap, outside the private operation domain. This is coverage evidence, not a |
| 90 | hardware qualification claim. |
| 91 | |
| 92 | | Fresh `.om` mutant | Fault | Result | |
| 93 | | --- | --- | --- | |
| 94 | | word_equal | invert selected word equality | KILLED | |
| 95 | | error_index | change error-index arithmetic | KILLED | |
| 96 | | status_equal | invert expected status class | KILLED | |
| 97 | | bf16_bit | change BF16 relation bit | KILLED | |
| 98 | | bfly_bit | change required BFLY bit | KILLED | |
| 99 | | shift_count | change source shift | KILLED | |
| 100 | | optional_mask | require/ignore wrong optional word | KILLED | |
| 101 | |
| 102 | Separately, corrupting golden `0x00027308U` to `0x00027309U` in a private caller |
| 103 | copy makes the actual exported verifier fail (rc 1). Omitting the strong unit |
| 104 | makes the synthetic caller fail to link (rc 1). Neither control is accepted as |
| 105 | a successful answer or a fallback. |
| 106 | |
| 107 | ## Wolfram calculations used in extraction |
| 108 | |
| 109 | WolframLanguageEvaluator: |
| 110 | `{2^23,Mod[-2^23,2^32],Mod[-3,2^32]}` -> |
| 111 | `{8388608,4286578688,4294967293}`. |
| 112 | |
| 113 | WolframLanguageEvaluator: |
| 114 | `{BitShiftLeft[16^^04000000,32],BitAnd[BitShiftLeft[16^^380,6],16^^00ffff00],BitAnd[BitShiftLeft[16^^358,5],16^^00ffff00]}` |
| 115 | -> `{288230376151711744,57344,27392}`. |
| 116 | These are encoded integer fields, not measured chip results. |
| 117 | |
| 118 | ## Chip runbook — NOT_RUN |
| 119 | |
| 120 | No hardware fixture or GPU path was executed. Before any future hardware run, |
| 121 | the operator must grant the current exclusive chip window and approve the exact |
| 122 | revision and normal family runbook. First repeat this host acceptance under the |
| 123 | no-device wrapper, confirm the generated unit pin and freestanding allowlist, |
| 124 | then run the existing encoding/launch qualification for each affected family |
| 125 | inside that authorized window. Record exact revision, commands, positive golden |
| 126 | results and a deliberately refused/corrupted fixture in a new evidence receipt. |
| 127 | Do not infer permission to stop a service, open a device, alter modules, clear a |
| 128 | lock or run VFIO from this document. Until such a receipt exists, chip/live-RM/ |
| 129 | VFIO qualification remains NOT_RUN; no roadmap status row is upgraded. |