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 / core-util / 2026-11-06 / README.md
| 1 | # Core utility Omega migration receipt |
| 2 | |
| 3 | State: IMPLEMENTED and EXERCISED on the host. Not MERGED, DEPLOYED or hardware |
| 4 | QUALIFIED. Branch: `feat/core-util-om`; base: CUDApp |
| 5 | `b774723f537cec16a359fe082b8100317a5b5490`. Registration was committed first as |
| 6 | `26dcdff04713`. Implementation revision is the commit containing this receipt. |
| 7 | |
| 8 | ## Pins and scope |
| 9 | |
| 10 | - Seeded compiler: `aien-dev/omega-mv@e5b32567`, binary SHA-256 |
| 11 | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. |
| 12 | - Existing frozen bridge pin is unchanged. Generated `.ident` files record the |
| 13 | converter/frontend/source digests; `src/cudapp_om_units.ident` is the index. |
| 14 | - Local attributed SHA source: omega-mv |
| 15 | `acb3f15cdc691b1b046b48b0dad0f9255a12ba4b:om/sha256/sha256.om`. |
| 16 | - Official NIST CAVP files and hashes: `tests/vectors/core/README.md`. |
| 17 | - Default core computation is in `om/core/`; legacy C is explicitly selected by |
| 18 | `CUDAPP_MIGRATION_PENDING_C_CORE`. Existing cubin ELF, Ampere encoder, binary16, |
| 19 | revision and epoch Omega code is reused, not represented as a new port. |
| 20 | - No public runtime API, compiler pin, bridge pin, language syntax, host word, |
| 21 | repository ownership or trust gate changed. Project guides are updated in |
| 22 | `om/core/README.md`, `docs/CUBIN_WRITERS.md` and a dated ROADMAP note. Native |
| 23 | aggregate wiring and its matching integration guidance remain the Integrator's |
| 24 | shared interface; these standalone inputs are not an aggregate qualification. |
| 25 | |
| 26 | ## Commands and observed results |
| 27 | |
| 28 | All test, mutant and simulator commands used this device-free wrapper: |
| 29 | |
| 30 | ```sh |
| 31 | bwrap --dev-bind / / --dev /dev --proc /proc -- \ |
| 32 | taskset -c 10-14 nice -n 10 COMMAND |
| 33 | ``` |
| 34 | |
| 35 | Generation additionally used `OMEGA_OMC=$HOME/work/cudastack/omega-mv/seed/out/omc` |
| 36 | and `OMEGA_BRIDGE=$HOME/work/cudastack/omega-bridge`. Build concurrency was `-j3`. |
| 37 | Logs retain command/compiler output; the negative controls intentionally print a |
| 38 | mismatch before their enclosing gate reports that the mismatch was caught. |
| 39 | |
| 40 | | Wrapped command | rc | Observed final result / log | |
| 41 | | --- | --- | --- | |
| 42 | | `sh om/units.sh` | 0 | Wrote checked portable units; `generate-final.log` | |
| 43 | | `make -j3 test-core-sha-state` | 0 | `CORE-UTIL SHA context PASS`; `state.log` | |
| 44 | | `make -j3 test-core-util` | 0 | SHA, canonical, effects/eval, vector, fmt, hostmath, f16 and builders PASS; `host.log` | |
| 45 | | `python3 tests/test_core_mutants.py --out-dir build --receipt evidence/core-util/2026-11-06/mutants` | 0 | `CORE-UTIL mutants PASS: 6 recompiled semantic mutants killed`; `mutants.log` and `mutants/` | |
| 46 | | Initial `make -j3 test-core-cubin-message test-om-cubin test-ampere-encoder test-ampere-plan` | 2 | Existing cubin target omitted its artifact executable prerequisite; `cubin-ampere.log` | |
| 47 | | After repair: `make -j3 test-core-cubin-message test-om-cubin test-ampere-plan` | 0 | Cubin differential and bit flip caught; Ampere host/sim PASS; `cubin-repaired.log` | |
| 48 | | `make -j3 test-ampere-cubin` | 0 | Default and differential binaries: `AMPERE CUBIN HOST PASS; device NOT_RUN`; `ampere-cubin.log` | |
| 49 | | `sh om/core/native.sh` and `sh om/core/native.sh --check` | 0 | Standalone native inputs write / byte-identical check PASS | |
| 50 | | `sh om/units.sh --check` | 0 | `PASS portable Omega units regenerate byte for byte`; `regeneration-check.log` | |
| 51 | |
| 52 | The initial combined command also exercised `test-ampere-encoder`: its fixtures |
| 53 | reported all IR opcodes, source modes, target preservation and refusals. Its |
| 54 | success does not convert the initial combined command's failure into a PASS. |
| 55 | |
| 56 | ## Coverage and verdicts |
| 57 | |
| 58 | | Tier | Verdict | Evidence | |
| 59 | | --- | --- | --- | |
| 60 | | SHA FIPS / official CAVP | PASS | Empty, `abc`, multi-block FIPS vector, million-`a`; all 65 short-message and all 64 long-message CAVP records | |
| 61 | | SHA C differential | PASS | 10,000 generated inputs and streaming splits; digest flip caught | |
| 62 | | Public SHA context semantics | PASS | Padding boundaries, chunk splits and repeated finalization match C | |
| 63 | | Canonical / IDs | PASS | 10,000 objects, all version/kind header pairs, 16,384 ASCII parser pairs, bounded-output refusals | |
| 64 | | Effects / checked evaluation | PASS | 10,000 generated cases | |
| 65 | | Vector | PASS | 10,000 cases; chunk/refusal boundaries and partial/exact aliasing | |
| 66 | | Formatting | PASS | 10,000 cases, capacity boundaries, unsupported/truncated tokens | |
| 67 | | Host math | PASS | 10,000 bitwise non-contracting cases and threshold/exponent boundaries; C oracle compiled `-ffp-contract=off` | |
| 68 | | Binary16 | PASS | Every one of the 65,536 encodings; NaN payload and quieting behavior checked | |
| 69 | | Builders | PASS | Every constructor, full graph boundary and aliasing ID lookup | |
| 70 | | Semantic mutants | PASS | Initial state, round constant, padding marker, two-block boundary, bit count and length-byte-order mutants recompiled and killed | |
| 71 | | Cubin diagnostics | PASS | 10,000 C comparisons, truncation, bridge-status boundaries and message-record flip | |
| 72 | | Existing Ampere cubin tests | PASS | Both default Omega and C differential paths: `AMPERE CUBIN HOST PASS; device NOT_RUN` | |
| 73 | | Existing cubin artifact / manifest / sweep | PASS | 869 identical code/byte/message calls, 750 images; sweep includes 854 calls and 111037984 image bytes; image flip caught | |
| 74 | | Ampere warp simulator | PASS | `hello_gpu --target=sm_86 --sim`: 1048576 elements checked, zero wrong or unwritten; namespace hides devices | |
| 75 | | Native no-libc aggregate execution | NOT_RUN | Shared composition/bridge qualification belongs to BridgeHost and Integrator | |
| 76 | | Full integrated `make test` | NOT_RUN | Integrator-owned gate; not launched by this lane | |
| 77 | | Chip / live RM / VFIO / hardware | NOT_RUN | No current authorization; no hardware qualification claimed | |
| 78 | |
| 79 | ## Defects fixed during the port |
| 80 | |
| 81 | - The copied SHA finalizer initially left the public context count unchanged. |
| 82 | The minimal regression observed `count=0 reference=64` on empty input. The |
| 83 | finalizer now advances by the same padding and length bytes as C, and its |
| 84 | complete context matches after repeated finalization. |
| 85 | - Negative sine/cosine quadrants could encounter a checked negative-to-unsigned |
| 86 | cast. The signed quadrant is masked before conversion; negative and threshold |
| 87 | bit patterns are explicit regression inputs. |
| 88 | - Partially overlapping vectors require sequential behavior rather than a |
| 89 | snapshot of a whole batch. The adapter stages one element for that ABI case. |
| 90 | - The existing cubin gate expanded `ARTIFACT_TEST` before its later definition, |
| 91 | omitting the executable prerequisite. The target now names the existing |
| 92 | `$(OUT_DIR)/gpu_artifact_export_test` prerequisite directly. The repaired gate |
| 93 | passes; no test was weakened or moved outside the namespace. |
| 94 | |
| 95 | The remaining C is memory/ABI adaptation: allocation/free, fixed-view staging, |
| 96 | pointer/span and object-tag admission, variadic argument extraction, and stable |
| 97 | C string-pointer storage. No numeric, hashing, canonical serialization, vector, |
| 98 | format-token or cubin-image algorithm remains in the default handwritten C |
| 99 | implementation. Function-mode globals and read-only text literals are not |
| 100 | available (OMEGESE, function mode); diagnostic literals are encoded as local |
| 101 | Omega stores instead. A future bridge static-text/lifetime projection could |
| 102 | replace C string-pointer storage, but no such compiler change is required for |
| 103 | these exercised API behaviors. No outside runtime dependency was introduced. |
| 104 | |
| 105 | Hardware procedure: [CHIP.md](CHIP.md). Exact mathematical queries and returned |
| 106 | results used for constants and identities: [wolfram.txt](wolfram.txt). |