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 / core-residue / 2026-11-06 / README.md

50 lines · 3531 bytes Raw Blame History Rendered
1# Core residue receipt, 2026-11-06
2
3Branch `feat/core-residue-om`, stacked on #308 (`feat/core-util-om` @ `68c8cff`). Registration is `bfa721a`. This directory records the residue slice. It does not replace `evidence/core-util/2026-11-06/`.
4
5## What #308 already moved
6
7| File | Already Omega in #308 | Residue added here |
8| --- | --- | --- |
9| `sha256.c` | `om/core/sha256.om`; C selected by `CUDAPP_MIGRATION_PENDING_C_CORE` | Source-derived length partition 0, 55, 56, 63, 64, 65, 128, 192 in `test-core-util` |
10| `src/omega_core.c` | object, graph, payload, param, effect, eval | none; glue and pointer staging stay C |
11| `src/omega_vector.c` | vector, vecspec, vpay | none |
12| `src/omega_canonical.c` | canonical, idparse and entry wrappers | none |
13| `src/omega_gpu_hostmath.c` | hostmath | none |
14| `src/omega_gpu_fmt.c` | fmt, fmtnum, fmtclip | none |
15| `src/omega_cubin.c` | `om/cubin/cubin_elf.om` layout; `cubinmsg.om` refusal text | `cubadmit.om` target and null-parameter admission |
16| `src/omega_ampere_codegen.c` | `om/encoder/ampere_enc_sm86.om` | `ampack.om` sign-extend and flag packing |
17
18## Stay-C
19
20| Site | Reason |
21| --- | --- |
22| `omega_cubin.c` malloc, free, memcpy, file staging, ELF byte stores in the C writer | Pointer and file I/O. The writer is the default-OFF oracle `CUDAPP_MIGRATION_PENDING_C_CORE` / `CUDAPP_MIGRATION_PENDING_CUBIN_DIFF`. ARCH-0042 keeps the cubin writer in CUDApp. |
23| `omega_cubin_rc_name` | String table, not layout arithmetic. |
24| `cubin_admit` message copy | The Omega unit fills a 64-byte buffer. C copies it into the caller buffer and stops at `err_cap`. |
25| `omega_ampere_codegen.c` IR field reads and output staging | Pointer I/O. Sign-extend loops remain only under `CUDAPP_MIGRATION_PENDING_C_CORE`. |
26| `sha256.c`, `omega_core.c`, `omega_vector.c`, `omega_canonical.c`, `omega_gpu_fmt.c`, `omega_gpu_hostmath.c` | Host staging and the explicit C oracle. Computation is already `.om`. |
27
28## Math
29
30`WolframLanguageEvaluator: {Mod[56, 64], 128/64, 192/64, 256 + 32, BitAnd[16^^FFFFFFFF, 2147483648], 2^64 - 2^32, 2^31} -> {56, 2, 3, 288, 2147483648, 18446744069414584320, 2147483648}`.
31
3256 is the SHA padding boundary (`Mod[56, 64]`). 128 and 192 are two and three 64-byte blocks. 288 is `BW_MAX_VREGS + BW_MAX_UVREGS`. `2147483648` is the int32 sign bit. `18446744069414584320` is the high-32 sign-extend mask.
33
34## Gates
35
36Host commands ran under `bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10`.
37
38| Command | rc | Final line |
39| --- | --- | --- |
40| `make -j3 test-core-residue` | 0 | `CORE-RESIDUE red check: one flipped image bit aborts` |
41| `make -j3 test-core-util test-core-cubin-message` | 0 | `CORE-UTIL builders PASS: graph full boundary, every constructor and aliasing ID lookup` |
42| `sh om/core/native.sh --check` | 0 | `CORE-UTIL standalone native inputs --check PASS` |
43| `make -j3 test-core-residue-mutants` | 0 | `CORE-RESIDUE mutants PASS: 8 recompiled semantic mutants killed` |
44| `make -j3 test-om-cubin` | 0 | `red check: one flipped image bit aborts the cubin diff, as it must` |
45| `sh om/units.sh --check` | 0 | `PASS portable Omega units regenerate byte for byte` |
46| `make -j3 test-ampere-encoder` | 0 | `Ampere encoder host fixtures: all IR opcodes, source modes, target preservation and refusals` |
47
48Host tier: **PASS** (EXERCISED). Chip, live-RM and VFIO: **NOT_RUN**. Not QUALIFIED, MERGED or DEPLOYED. See `CHIP.md`.
49
50No cubin is committed. Images are created with `mkstemp` under `/tmp` and unlinked in the test.