interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / evidence / codegen-fixture-verify-20261106

aff44b8 test(codegen): record byte-identical fixture unit regeneration Drake Stapleton committed 2026-11-06
..
README.md7153
REGENERATION.md386
calls-oracle.log144
calls.log144
commands.tsv22923
existing-build.log9060
freestanding-contract.log68
gcov.log426
hosted-golden.log77
ir-limit.log2873
missing-link.log702
red-calls.log138
units-check.log4146

README.md

Codegen fixture verification — 2026-11-06

Scope and verdicts

IMPLEMENTED / EXERCISED on feat/codegen-fixture-verify-om, based on feat/checkers-rest-om at cd44785cc000 (PR #338). The seven exported omega_blackwell_verify_codegen_fixtures* functions delegate comparison, refusal/error-index arithmetic, optional-word policy, BF16 relations, BFLY bits, control-word assembly and selection to om/codegen/fixture_verify.om. C still invokes encoders, copies their four words, and controls fixture order. The public API is unchanged. The C reference is default-OFF behind CUDAPP_MIGRATION_PENDING_C_ENGINE_FIXTURE_REST.

TierVerdict
Host source-partition C/Omega differentialPASS
All seven exported verifier invocations, C/OmegaPASS
Missing strong unit linkPASS: undefined-reference link failure required
Corrupted golden-data red controlPASS: verifier returned failure
Recompiled Omega mutantsPASS: 7/7 killed
Hosted/freestanding golden fixtures and buffer contractPASS
Hosted/freestanding encoded fixture dump comparisonPASS: byte-identical
Freestanding undefined-symbol allowlist and malloc redPASS
Existing replay-limit host gatePASS
Unrelated exhaustive BF16 conversion sweepNOT_RUN
Hardware / live RM / VFIO / chip qualificationNOT_RUN
MERGED / DEPLOYEDNO

Pins and reproduction

Compiler: omega-mv e5b32567, seed/out/omc SHA-256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. Use this base's existing runtime-view bridge pin /tmp/bridge-73-apiviews (toc d84fd6eb, frontend a3a455bd) and OMEGA_SEED=~/work/cudastack/omega-bridge/build/bootstrap/omc. The scalar-only freestanding profile produces src/cudapp_freest_fixture_verify.c; it introduces no hosted runtime into the freestanding build. Generated C is bridge output, not a second implementation. The first lane commit registers the unit; subsequent changes finish its scalar ABI and callers. No bridge/compiler pin, external dependency or API is changed.

Every command below ran under the device-free prefix:

bwrap --dev-bind / / --dev /dev --proc /proc -- \
  taskset -c 10-14 nice -n 10 COMMAND
COMMAND (inside that prefix)rcObserved final result
python3 tests/om_fixture_verify_test.py0PASS seven exported fixtures; red golden-data control; mutants 7/7 KILLED; HW NOT_RUN
make -j3 build/test_codegen_hosted build/test_codegen_freestanding test-gpu-fs-allowlist-control0allowlist control: a malloc caller is refused by the nm -u check (as required)
./build/test_codegen_hosted --golden0PASS: hosted golden-word fixtures through the .om encoder (0 failing checks)
./build/test_codegen_freestanding --no-sweep0PASS: freestanding codegen contract (14 fixtures, 0 failing checks)
./build/test_codegen_hosted --dump and ./build/test_codegen_freestanding --dump0 eachCaptured outputs compared byte-for-byte equal by the acceptance driver
make -j3 test-om-ir-limit0PASS replay-limit zero/default, boundaries, pre-mutation refusals, pressure

The --no-sweep argument excludes only the unrelated exhaustive conversion sweep; all golden verifiers and the complete existing buffer contract ran. The acceptance runner records exact compiler/generator commands and return codes in commands.tsv. Selected text receipts accompany this file. Encoded machine-code dumps, compiled binaries and mutant binaries are not committed. Paths in filed receipts replace the local home directory with ~.

Source-derived partitions

tests/om_fixture_verify_test.c compares every extracted operation and wrapper with the retained C reference. For the seven caller families (main, intops, fragment MMA, reconvergence, BFLY/F2FP, atomf32, fb1cut4), the real exported functions also run against all their existing golden encodings.

  • All four word positions, each mask 0 through 15, equal words and mismatches; optional word 3 with zero and nonzero expected word.
  • Error indices at zero, instruction/shift/word boundaries and UINT32/UINT64 extremes; positive and negative status values; zero/nonzero refusal classes.
  • BF16 changed-word XOR around the required 0x40000 bit, retained-word equality/mismatch; BFLY's required bit and independent second-pair mismatches.
  • Word boundaries at 0/1, 7/8, 15/16/17, 31/32/33, 255/256, 262143/262144/262145, 67108863/67108864/67108865, INT32_MAX, UINT32_MAX-1/UINT32_MAX/UINT32_MAX+1, INT64_MAX and UINT64_MAX.
  • Source shifts are exercised at 0, 1, 15, 16, 17, 23, 24, 25, 31, 32 and 63; the shift-count domain is 0..63, matching defined C shifts. Arbitrary larger shift counts are not claimed as a differential contract.
  • Equality selection takes both arms. Float fixtures compare encoded integer words, not arithmetic float values; no new floating-input computation exists.

gcov.log records the C reference header at 97.30% lines, 100.00% branches executed, 96.88% branches taken. The unexecuted branch is the invalid-opcode trap, outside the private operation domain. This is coverage evidence, not a hardware qualification claim.

Fresh .om mutantFaultResult
word_equalinvert selected word equalityKILLED
error_indexchange error-index arithmeticKILLED
status_equalinvert expected status classKILLED
bf16_bitchange BF16 relation bitKILLED
bfly_bitchange required BFLY bitKILLED
shift_countchange source shiftKILLED
optional_maskrequire/ignore wrong optional wordKILLED

Separately, corrupting golden 0x00027308U to 0x00027309U in a private caller copy makes the actual exported verifier fail (rc 1). Omitting the strong unit makes the synthetic caller fail to link (rc 1). Neither control is accepted as a successful answer or a fallback.

Wolfram calculations used in extraction

WolframLanguageEvaluator: {2^23,Mod[-2^23,2^32],Mod[-3,2^32]} -> {8388608,4286578688,4294967293}.

WolframLanguageEvaluator: {BitShiftLeft[16^^04000000,32],BitAnd[BitShiftLeft[16^^380,6],16^^00ffff00],BitAnd[BitShiftLeft[16^^358,5],16^^00ffff00]} -> {288230376151711744,57344,27392}. These are encoded integer fields, not measured chip results.

Chip runbook — NOT_RUN

No hardware fixture or GPU path was executed. Before any future hardware run, the operator must grant the current exclusive chip window and approve the exact revision and normal family runbook. First repeat this host acceptance under the no-device wrapper, confirm the generated unit pin and freestanding allowlist, then run the existing encoding/launch qualification for each affected family inside that authorized window. Record exact revision, commands, positive golden results and a deliberately refused/corrupted fixture in a new evidence receipt. Do not infer permission to stop a service, open a device, alter modules, clear a lock or run VFIO from this document. Until such a receipt exists, chip/live-RM/ VFIO qualification remains NOT_RUN; no roadmap status row is upgraded.