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 / OMEGA-CODEGEN-PFHOST-20261106 / README.md
| 1 | # Seeded Omega pfhost builder receipt |
| 2 | |
| 3 | Recorded 2026-11-06 UTC. IMPLEMENTED and EXERCISED on the host; chip NOT_RUN. |
| 4 | Not MERGED, DEPLOYED or hardware QUALIFIED. |
| 5 | |
| 6 | Branch `feat/omega-codegen-pfhost`, draft [CUDApp#276](https://github.com/aien-dev/CUDApp/pull/276), stacks on [#274](https://github.com/aien-dev/CUDApp/pull/274), base `f219a04eff8f`. |
| 7 | Implementation commit `32554c4be2ca4480bc911649d23886a316d444c3`; |
| 8 | portable mutation-registration follow-on `4015f3d` does not change the generated unit or builders. |
| 9 | |
| 10 | ## Pins and execution environment |
| 11 | |
| 12 | - Seeded compiler source: omega-mv `e5b32567a7aff3ce594e3254a622a846a6cd190b`. |
| 13 | - Compiler SHA-256: `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`. |
| 14 | - Checked converter: omega-bridge `bc11b30b1faa9af8b875ae6fec24e5f49cf03ac4`, as required by `om/omega-bridge.lock`. |
| 15 | - Generated portable C is the checked output of the first-party Omega unit, not a second handwritten builder. |
| 16 | - All build/test commands below were prefixed with `taskset -c 10-14 nice -n 10`; make used at most `-j3`. |
| 17 | - Logs normalize `/home/drakestapleton` to `~`. No other log content was edited. |
| 18 | |
| 19 | ```sh |
| 20 | export OMEGA_OMC=~/work/cudastack/omega-mv/seed/out/omc |
| 21 | export OMEGA_BRIDGE=~/work/cudastack/omega-bridge |
| 22 | export OMEGA_MV=~/work/cudastack/omega-mv |
| 23 | export OMEGA_BRIDGE_DIR=~/work/cudastack/omega-bridge |
| 24 | ``` |
| 25 | |
| 26 | ## Observed checks |
| 27 | |
| 28 | | Command (affinity/nice prefix omitted) | Result | Final line / evidence | |
| 29 | |---|---|---| |
| 30 | | `sh om/units.sh` | PASS, rc 0 | `wrote checked portable Omega units to .../src` | |
| 31 | | `make -j3 test-codegen-pfhost` | PASS, rc 0 | `PASS pfhost Omega source mutants killed`; `focused.log` | |
| 32 | | `make -j3 test-om-units build/gpu_pfhost_test` | PASS, rc 0 | `PASS portable Omega units regenerate byte for byte`; `units-check.log` | |
| 33 | | `build/gpu_pfhost_test --sim` | PASS, rc 0 | `GPU_PFHOST: PASS`; `sim.log` | |
| 34 | | `make -j3 test` | INCONCLUSIVE | 3600-second eval deadline; no make rc or `CUDA++ HOST TESTS PASS` final line observed; `full-test-deadline.txt` | |
| 35 | | Chip | NOT_RUN | No exclusive GPU window authorized | |
| 36 | |
| 37 | The full run was not retried, under Main's contention/deadline policy. Its stdout was buffered in `subprocess.run` and was not persisted before interruption; the deadline receipt explicitly records that limitation. The integrated full gate belongs to Integrator (`integ/omega-cuda-stack`, draft #280). This receipt does not claim that gate has passed. |
| 38 | |
| 39 | ## Exhaustive differential and controls |
| 40 | |
| 41 | The test was written first and initially failed to compile because the generated Omega entry did not exist; see `red-first.txt`. |
| 42 | |
| 43 | The test enumerates every config accepted by the unchanged C spec validators, not a boundary sample: |
| 44 | |
| 45 | - RL: `k=128..16384` in steps of 128, `e=32..1024` in steps of 32, `t=1..16`, every mutant selector 0, 1 and 2, filtered only by `omega_rl_spec_ok`. |
| 46 | - MC: `h=128..4096` in steps of 128, `top_k=4,8,12,16`, every mutant selector 0, 1 and 2. |
| 47 | - Observed successful comparisons: RL `19150`, MC `384`; matching builder refusals `50` (RL mutant 2 configurations with no remaining chunk). |
| 48 | - Comparison includes every IR instruction, full solved register allocation and the complete encoded instruction bytes. Builder return values must also agree. |
| 49 | - Flipping one instruction immediate must fail the comparator: PASS. |
| 50 | - Invalid/null API inputs and an invalid Omega unit kind must refuse: PASS. |
| 51 | - Isolated router-address Omega source mutant: killed by the differential at `k=256,e=32,t=1,mutant=0`, with both programs containing 65 records. |
| 52 | - Isolated combine-address Omega source mutant: killed at `h=128,top_k=4,mutant=0`, with both programs containing 67 records. |
| 53 | |
| 54 | The simulator exercised every existing RL/MC fixture in both scheduling orders with zero differing outputs, and caught both numerical mutant selectors in both families. These are simulator observations, not chip measurements. |
| 55 | |
| 56 | The 16-live-value compiler limit was routed around by separating the RL math phase and naming the intermediate MC virtual register before the nested loop. No compiler feature, ABI, replay gate, or trust path was changed. |
| 57 | |
| 58 | ## Chip runbook (not executed) |
| 59 | |
| 60 | Obtain the current exclusive GPU window using the operator procedure; verify that no protected service/model is disturbed. Build `build/gpu_pfhost_test` with the same pins. Within that window, run: |
| 61 | |
| 62 | ```sh |
| 63 | build/gpu_pfhost_test --chip --tokens 2048 --reps 7 |
| 64 | ``` |
| 65 | |
| 66 | The executable also checks the short router and combine cases in chip mode. Record the process rc, every case result and final `GPU_PFHOST: PASS` independently from these host/simulator receipts. No chip run or change to a GPU lock, live model, driver or GPU module was performed by this lane. |
| 67 | |
| 68 | ## Integration and guide impact |
| 69 | |
| 70 | `om/units.sh` is append-only and guarded by an unset `OMEGA_UNITS`. The generated `cudapp_native.h` and `cudapp_om_units.ident` need normal stack integration. CodegenA owns `om/codegen/.crumb`; its generated digest is deliberately unstaged here and must be regenerated after integration. No public header signature changed. |
| 71 | |
| 72 | The existing `docs/OMEGA_HOST_TESTS.md` documents this builder, retained C oracle switch, differential, mutants, simulator and chip boundary. No language, compiler, converter, host-word, repository-ownership, or gate policy changed, so no omega-harness skill command or pin needed updating. |