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 / INTEGRATION.md
| 1 | # Omega CUDA-stack integration |
| 2 | |
| 3 | Tracking branch: `integ/omega-cuda-stack`. Base: `b774723f537cec16a359fe082b8100317a5b5490`. |
| 4 | |
| 5 | This branch is not permission to merge or deploy. Host acceptance does not qualify GPU behavior. No GPU window is authorized. |
| 6 | |
| 7 | | Branch | SHA | PR | Merged-at | Focused verdict | Conflicts resolved | |
| 8 | | --- | --- | --- | --- | --- | --- | |
| 9 | | feat/omega-codegen-a | af70a66cf94e85042e508c08a6e7d6780e6b544f | #275 | 2026-11-05T20:41:13-06:00 (`b7af547`) | PASS: completed namespaced QMMA/TGEMM receipts below; prior unnamespaced attempt INCONCLUSIVE/interrupted | None | |
| 10 | | feat/omega-codegen-b | f219a04eff8ff28e2d8d0b8cd65f210e552bbd54 | #274 | 2026-11-05T21:10:38-06:00 (`52d071e`) | PASS: pf copy 18 instructions, mutant caught (`/tmp/integ/codegen-b-tern.log`) | Additive units/header/identity entries retained; codegen crumb regenerated | |
| 11 | | feat/omega-codegen-tern | bc22ce1e75883eeea7bdafd11f37909a5bbf0247 | #279 | 2026-11-05T21:12:39-06:00 (`9dcefcc`) | PASS: 213120 programs, 14258 refusals; 24 source-mutant controls; simulator 34 checks (`/tmp/integ/codegen-b-tern.log`, rc 0) | Additive registrations retained; missing common-source composition repaired | |
| 12 | | feat/c4-streams-om | daee8b6fc054df8fe40830a04127f10e21ba9184 | #272 | 2026-11-05T21:47:59-06:00 (`7eac35d`) | PASS: host/simulator/differential and four source mutants (`/tmp/integ/streams.log`, rc 0) | Additive units/header/identity entries retained | |
| 13 | | feat/omega-codegen-tern (strengthening) | 3277100 | #279 | 2026-11-05T22:29:47-06:00 (`62640e9`) | PASS under bwrap: 213120 programs, 14258 refusals; 68 source-mutant controls; simulator 34 checks (`/tmp/integ/tern-strengthened.log`, rc 0); units/crumb checks PASS | Kept integrated TGEMM and PF registrations | |
| 14 | | feat/omega-codegen-tc | 57b19749567118e0400800ba9c10191ca627a499 | #278 | 2026-11-05T22:42:32-06:00 (`0976ed7`) | PASS under bwrap: 180517 cases, 52380 matching refusals; six source mutants caught; TC/TCGEMM/PFGEMM simulator controls PASS (`/tmp/integ/codegen-tc.log`, rc 0); units/crumb checks PASS | Unioned native header and identity entries; retained all unit registrations | |
| 15 | |
| 16 | ## Acceptance |
| 17 | |
| 18 | QMMA and exhaustive TGEMM namespace runs: `bg_906` and `bg_907`, source `62640e93b39ca6a6a33a1795d5463db1297eb81f`, isolated binaries under `build/integ-long-62640`. Commands: `OUT_DIR=build/integ-long-62640 bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 make -j3 test-codegen-qmma-diff` and the same wrapper with `test-codegen-tgemm-exhaustive`. Outputs `/tmp/integ/codegen-a-qmma-bwrap.log` and `/tmp/integ/codegen-a-tgemm-exhaustive-bwrap.log`; `.sha` and `.rc` companions preserve provenance and actual status. Both tests execute compiled binaries and perform no runtime source-file reads, so subsequent integration does not mutate their running images. The interrupted pre-namespace attempt (`bg_401`) remains INCONCLUSIVE and `/tmp/integ/codegen-a-qmma.log` is retained. |
| 19 | |
| 20 | Completed host receipts: QMMA rc 0, `CODEGEN QMMA DIFF PASS (714275 cases)`, structure exhaustive NITER bit-basis PASS (94 values, zero refused), and both mutants caught. TGEMM rc 0, `CODEGEN TGEMM EXHAUSTIVE DIFF PASS (17276981 accepted cases)`, mutant caught. MoE #284 at `262275e`: `CODEGEN MOE DIFF PASS (1732053 programs, 10681 refusals)` with record negative control caught (`/tmp/integ/moe-final-diff-262275e-b.log`). The long-run processes are complete; these are observed host results, not hardware qualification. |
| 21 | |
| 22 | TC focused command: `bash /tmp/integ/gate.sh codegen-tc test-codegen-tc test-codegen-tc-mutants test-codegen-tc-sim`. That script exports all four pinned Omega environment variables and runs `bash om/units.sh --check && make -j3 ... && crumb compile . && crumb verify .` under the mandatory namespace/taskset/nice wrapper. Completed `bg_915` rc 0, `/tmp/integ/codegen-tc.log`, `/tmp/integ/codegen-tc.rc`; 41 crumbs current. An additional namespace-only crumb pass `bg_954` returned rc 0 with no rewrites. |
| 23 | |
| 24 | Full host suite: INCONCLUSIVE, interrupted pre-namespace attempt `bg_601`, source `071ad44`, output `/tmp/integ/full-1.log`. Both jobs were cancelled after Main's device-namespace safety rule; the later instruction allowing an already-running full suite arrived after cancellation. |
| 25 | |
| 26 | Every subsequent test, mutant, simulator, differential, and full-suite command runs inside `bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 ...`. This hides NVIDIA, CUSE, and VFIO device nodes; a host/simulator device-open path is a defect, not permission to retry outside the namespace. |
| 27 | |
| 28 | Replay uses the append-only `BW_IR_LAST` bound, including binary64 opcode 78; values above the bound are refused. The integrated allocator also reserves metadata slots 6 and 7 for the GPR-limit and live-hint protocols. MoE's emitter-local counters are copied to slots 1 and 2, then cleared before replay. |
| 29 | |
| 30 | ## Hosted native-library boundary |
| 31 | |
| 32 | Selected integration boundary (not yet wired into the integrated build): one CUDApp-wide bridged native library per architecture, produced by one bridge invocation over every device-word Omega input. NVRM, Streams submission, PlatformAien, and subsequent Linux-platform and zero-copy inputs use one process-wide native runtime and common context implementation. Separately generated effect libraries define duplicate `omega_native_context_create` / `omega_native_context_destroy` and `ombr_*` symbols and must not be linked together. Generated symbols are not renamed or edited. Per-lane Omega sources and tests remain owned by their lanes. Shared output paths are `src/cudapp_om_hosted.c`, `src/cudapp_hosted_native.h`, and `src/cudapp_om_hosted.ident`; `native/hosted/units.sh` will own generation and `CUDAPP_HOSTED_NATIVE_OBJECT` will name its one link object. |
| 33 | |
| 34 | The selected AArch64 device compiler is omega-mv draft #1047, source `dbedb2cac6afe33d4e8958ce6f44292b8d0468c4`, omc SHA-256 `b8f8f1371bc0303f8da02db8b754e085d5dd852620c8d8d676c5769c233d9195`, paired with omega-bridge draft #69, source `248a198480485101cb6c4bb1c2c926ef3fd4ce90`. It preserves the context/reserve/bind/quarantine ABI and adds the exact-five A ioctls. Matching x86 superset qualification is pending. Existing lane pins stay frozen as the provenance of their own tests. Non-device units keep e5b32567. |
| 35 | |
| 36 | EXERCISED host-only candidates: one immutable #69@248a198 bridge invocation generated `/tmp/integ/hosted-248-six` from NVRM transport, Streams submit, Aien effects, Linux effects/wait, and ZeroCopy sharing. `/tmp/integ/hosted-six-smoke` passed cross-unit NVRM mapping → Streams/Linux stores and polling → Aien drop, with foreign-context and stale-handle negative controls. The unchanged `tests/share/native-share-test.c`, linked against that same combined library as `/tmp/integ/hosted-six-share-test`, returned rc 0 and `ZERO-COPY SHARE NATIVE PASS` (seccomp fake RM). These memfd/fake-RM candidates opened no NVIDIA device and predate the namespace rule; they are not integrated full-suite or hardware qualification. |
| 37 | |
| 38 | Device-word acceptance remains dependent on Drake approving these draft compiler/bridge changes. Hardware: NOT_RUN. |
| 39 | |
| 40 | ## Staged host integration |
| 41 | |
| 42 | Stage 2 was pushed at `249f7b25c1c8aa550ff68fde2ccd1058dd97870c`. Stage 3 starts from `f4a8a6985c65e302c066be7fcc49cf5da5892895`, including the API plans, model graphs, core utilities, C3Gemm, allocator, tools, API shells, GemmEx, engine-submit and freestanding-leftovers lane heads. |
| 43 | |
| 44 | Stage-3 link repairs cover allocator leftovers, backend vector/spec/SHA units, DAG cost-model/SHA units, and engine NVRM admission/platform links. Native effect units remain mutually exclusive. The engine differential uses the test transport and the Linux effects/wait pair; it does not combine independent native effect runtimes. |
| 45 | |
| 46 | | Gate | Observed status | Evidence | |
| 47 | | --- | --- | --- | |
| 48 | | stage3-c | FAIL: missing chip-admission C wrapper; wrapper logging failed after the make error | `/tmp/integ/stage3-c.log` | |
| 49 | | stage3-c2 | rc 2: backend vector-spec/SHA link dependencies missing | `/tmp/integ/stage3-c2.log`, `.rc` | |
| 50 | | stage3-c3 | rc 2: first supported MoE spec refused due to metadata scratch-slot collision | `/tmp/integ/stage3-c3.log`, `.rc` | |
| 51 | | stage3-c4 | rc 0: repaired replay, build and focused gates; final `crumb verify: OK: 81 crumbs current` | `/tmp/integ/stage3-c4.log`, `.rc`; source `84d2331` | |
| 52 | | stage4-pin | rc 0: archive rebuilt with the single #73 pin; final `crumb verify: OK: 81 crumbs current` | `/tmp/integ/stage4-pin.log`, `.rc`; source `d31dcda9` | |
| 53 | |
| 54 | The stage3-c3 backend mutation sweep completed: 109 total, 100 killed, 9 documented redundant, 0 test gaps. The engine mutation sweep completed: `PASS om eng mutants: 16/16 killed`. These successful sweeps are retained rather than rerun solely for their output. |
| 55 | |
| 56 | Stage 3 was pushed at `0e09c1996d867d0712b91b5c1b878175c2c9a687`. Stage 4 uses the single portable converter pin omega-bridge #73 at `79e8c3613a6f6f9e8eaaa9c013fc25bcb39e0538`. The ordered groups are converter regeneration, #319/#323, #325, #322 and #324, then finished residual lanes. #333 is now complete at `5dad87a569f4fcca3410c4558691b4fdcb9589ca`; it is eligible after adopting the canonical packers from #338. Main authorized stage 5 to adopt the combined #76 pin and #330/#335 after stage 4 passes; no second concurrent converter pin is introduced. |
| 57 | |
| 58 | Stage-4 API views are hosted-only. The preexisting `OMEGA_GPU_NO_POSIX` scalar conversion boundary remains C pending a checked-view freestanding converter path (bridge #72 / combined #76 native work). Attempting to link the hosted runtime-view unit fails the unchanged freestanding undefined-symbol gate (`_exit`, setjmp/longjmp and 128-bit arithmetic helpers); that gate was not weakened. This is an explicit unconverted boundary, not an Omega or hardware completion claim. |
| 59 | |
| 60 | Hardware/chip, live-RM and VFIO tiers remain NOT_RUN. A host PASS is not hardware qualification. The full integrated host suite still requires its rc and final `CUDA++ HOST TESTS PASS` line; no target count is inferred. |
| 61 | |
| 62 | ### Stage-4 residual checkpoint (Integrator5) |
| 63 | |
| 64 | The initial detached stage-4 state `0d6302cb` was pushed after checking the remote |
| 65 | stage-3 head `0e09c199`. The following residual lane heads are integrated in order, |
| 66 | under the unchanged single #73 converter pin. These are focused **host** receipts, |
| 67 | not a full stage-4 suite result. Logs and numeric rc files are `/tmp/integ/<gate>.log` |
| 68 | and `/tmp/integ/<gate>.rc`; every command used the mandatory device-hiding bwrap boundary. |
| 69 | |
| 70 | | PR | Exact lane head | Green gate | rc | Observed final line | |
| 71 | | --- | --- | --- | --- | --- | |
| 72 | | #326 | `12a0c41f8bf0b6e8bf26baf62e52af50e2841752` | stage4-core | 0 | `crumb verify: OK: 84 crumbs current` | |
| 73 | | #327 | `718e10bac1ade12436641f13852d64d0b439d4a6` | stage4-base4 | 0 | `crumb verify: OK: 86 crumbs current` | |
| 74 | | #328 | `e1a87f0d30efa0292fbc6da6ca07346ae49e79b5` | stage4-cost3 | 0 | `crumb verify: OK: 86 crumbs current` | |
| 75 | | #329 | `8697f02e18ad02f62a056145a226603776b99b9c` | stage4-platform2 | 0 | `crumb verify: OK: 86 crumbs current` | |
| 76 | | #332 | `c1fec738fb3dfe4fd48bf9115a19ca9d4d3d6367` | stage4-attnviews3 | 0 | `crumb verify: OK: 86 crumbs current` | |
| 77 | | #333 | `5dad87a569f4fcca3410c4558691b4fdcb9589ca` | stage4-apirest-shells | 0 | `crumb verify: OK: 88 crumbs current` | |
| 78 | | #336 | `b9ef8f14eaa2e5810e8fc9ed06db540ff92990d2` | stage4-nvrmstruct2 | 0 | `crumb verify: OK: 88 crumbs current` | |
| 79 | | #338 | `cd44785cc000ec2a7337d35252173ea3aa3cba06` | stage4-checkers / stage4-checkers-regalloc3 | 0 / 0 | `crumb verify: OK: 88 crumbs current` | |
| 80 | |
| 81 | Additional #332 family gate `stage4-attnviews-api` returned rc 0 and |
| 82 | `PASS attention typed-view host gate`. The #333 differential/family portion passed |
| 83 | before its shell link exposed missing FP8 provider dependencies; the repaired shell |
| 84 | gate reported `PASS api-shells checks=753157`. |
| 85 | |
| 86 | The #338 allocator runner initially failed to link #327 providers, then revealed |
| 87 | two stale liveness mutants that no longer reached the active policy. Its dependency |
| 88 | union is repaired and those mutants now target `cg_life.om` and `cg_replay.om`. |
| 89 | The final rerun killed all 20 semantic mutants; the shortened-override and v159 |
| 90 | negative controls failed the liveness differential as expected. Historical failed |
| 91 | logs remain alongside the green reruns. The #338 backend JSON receipt is still |
| 92 | pending #339's escaping repair and must not be described as parsed valid JSON. |
| 93 | |
| 94 | Stage 5, the NO_POSIX BF16 cutover and `full-2` remain **NOT_RUN** at this checkpoint. |
| 95 | The inherited C BF16 boundary above remains explicit. Chip/live-RM/VFIO/hardware |
| 96 | and merge-to-main are **NOT_RUN**. Integration is only on draft #280. |
| 97 | |
| 98 | ### Stage-6 Half C focused integration (Integrator6C) |
| 99 | |
| 100 | Half C starts at `0d38145a697290f2cd00578fbaa168b824a38015` on |
| 101 | `integ/stage6c`. The single converter remains omega-bridge #73 at |
| 102 | `79e8c3613a6f6f9e8eaaa9c013fc25bcb39e0538`, with seeded compiler |
| 103 | `e5b32567`. All gates run in the device-hiding bwrap namespace, restricted to |
| 104 | cores 10–14 at nice 10, with builds at most `-j3`. Logs and numeric rc files |
| 105 | are `/tmp/integ/6c-<gate>.log` and `.rc`. |
| 106 | |
| 107 | | PR | Refreshed lane head | Focused host gate | rc | Observed result | |
| 108 | | --- | --- | --- | --- | --- | |
| 109 | | #353 | `ba465bf3a22aab5700a0eee1a78fbe0b6e6a19ef` | `353-final` | 0 | GEMM HOST PLAN ACCEPTANCE PASS (8 mutants, red comparator, missing-unit link); host 209 and sim 239 checks | |
| 110 | | #354 | `4a17208309100b3774b564c09940f79c9f2d164f` | `354` | 0 | GEMM EX HOST POLICY ACCEPTANCE PASS; host 227 and sim 255 checks | |
| 111 | | #361 | `30a7270502f2803760edfec0a15df9d54b1df2d7` | `361`, then `361-fixtures-final` | engines 0; initial aggregate 1; repaired fixtures 0 | 44584 identical records; 16/16 engine mutants killed; engine 346 + bounds 6 checks; fixtures BUILD_ONLY, 7/7 mutants KILLED | |
| 112 | | #357 | `d7b54d683668d94d2100682b31f847960d69fd21` | `357-final` | 0 | NUMERIC REST OM MUTANTS PASS 6/6; differential 8418438 and scalar 152415164 checks; scan sim 263 checks | |
| 113 | | #363 | `fca2c7a9ee88ca51196e4c16c164adbf83c508a0` | `363` | 0 | MATHLIBS-HOST-OM GATE PASS (differential, red, strong-link negative, gcov, 8 mutants); mathlibs sim 6265 checks | |
| 114 | | #358 | `14914950c616274a8c91366645d10c1c29fb3770` | `358-final` | standalone targets 0; compat 1 (expected under #73) | scalar 1270080; 9/9 compiled mutants killed; eight family comparisons and eight red controls PASS; compat requires final #77 v3 identity | |
| 115 | |
| 116 | Every completed merge regenerates the combined declarations/identity and |
| 117 | passes `sh om/units.sh --check` byte for byte; every green commit passes |
| 118 | `crumb compile . && crumb verify .` and is pushed before the next merge. |
| 119 | The engine fixture's BUILD_ONLY link needed the integrated NVRM serializers, |
| 120 | native transport and chip-admission providers. Numeric remainder differential, |
| 121 | mutant and coverage links needed `cudapp_om_bw_qmd.c` after the QMD cutover. |
| 122 | These dependency repairs retain the strong-link and negative controls. |
| 123 | Standalone integration retains the default-only unit registration so explicit |
| 124 | mutant subsets remain selective. Two external transport mutant anchors were |
| 125 | retargeted after the integrated adapter cutovers: wrong K-pointer before argument |
| 126 | packing and wrong tile height in the active planning request; both are caught. |
| 127 | The #73 converter changes the fixture executable hashes relative to frozen v2: |
| 128 | aarch64 `d7649f223e766b9dd007f723206b3c794c61bbda19a0d83b985fa4834c28d8b8`, |
| 129 | x86_64 `0601563603f26bac683f1ecfb5bbd9a9690f0edba581f5e7638075df807f4492`. |
| 130 | `compat/cuda/test.sh` built each identity twice identically, found both CUDA |
| 131 | import diffs empty, and refused all 14 negative controls; the two positive |
| 132 | admissions fail their frozen executable hashes. Main explicitly deferred the |
| 133 | additive v3 profiles to final converter #77 (`d90433a9`), rather than pinning |
| 134 | transient #73 artifacts or changing v1/v2 history. Final C0 acceptance is NOT_RUN |
| 135 | here under #77; `358-final` retains the expected #73 FAIL receipt. |
| 136 | The original failing receipts remain: `353` requested a nonexistent extra |
| 137 | target (the corrected policy gate already runs GEMM host/sim), `361` exposed |
| 138 | the fixture providers, and `357` exposed the QMD provider. |
| 139 | |
| 140 | The full repository `make test` is NOT_RUN by Half C and remains Main's |
| 141 | `full-2` gate. Chip/live-RM/VFIO/hardware qualification, merge-to-main and |
| 142 | deployment remain NOT_RUN. Focused host/simulator receipts do not upgrade a |
| 143 | hardware status row. |
| 144 | ### Stage-6 Half B converter adoption |
| 145 | |
| 146 | Half B starts at `0d38145a697290f2cd00578fbaa168b824a38015` on |
| 147 | `integ/stage6b`. The single converter lock selects omega-bridge draft #76 |
| 148 | `741c1ebb2b0fbae311a77ad2118b13d5ec7a17ee`. Its portable and freestanding |
| 149 | converter/frontend source digests match the preceding #73 selection. |
| 150 | Regenerating every portable unit changed no generated C, header or identity |
| 151 | file. The lock text is the only converter-switch change. |
| 152 | |
| 153 | The first representative gate exposed an inherited #332 attention-view |
| 154 | freestanding provider defect: `test-gpu-native-runtime` failed with unresolved |
| 155 | `omega_av_*` symbols. Repeating the gate at the starting source revision with |
| 156 | #73 reproduced it (`/tmp/integ/6b-baseline73.log`, rc 2). This is not a |
| 157 | converter-regeneration difference. The unchanged native import allowlist |
| 158 | remains enforced. Full integrated host acceptance and hardware qualification |
| 159 | remain NOT_RUN. |
| 160 | |
| 161 | The #335/#348/#352 union supplies nine native NO_POSIX roots. The shared |
| 162 | `CUDAPP_MIGRATION_PENDING_C_NO_POSIX_SESSION` remains default zero, and |
| 163 | `src/omega_gpu_apiviews.h` is the sole definition of `av_bf16_n`. The focused |
| 164 | session and BF16 differentials, production OFF/ON symbol controls and their |
| 165 | compiled mutants pass (`/tmp/integ/6b-pr352-final.log`). The BF16 C helper is |
| 166 | compiled only in the explicit NO_POSIX oracle arm, not merely because other |
| 167 | NO_POSIX apiview helpers still use their C snapshots. |
| 168 | |
| 169 | The independent #333 API-rest and #356 attention/artifact-rest differential |
| 170 | harnesses originally shared a filename. Both remain: `tests/api_rest_diff.c` |
| 171 | and `tests/api_attn_rest_diff.c`, respectively. The latter is selected by |
| 172 | `tests/api_rest_check.py`. Its artifact fixture explicitly opens the retained |
| 173 | C-artifact shell while independently selecting new Omega versus C residual |
| 174 | computations; the production seeded artifact snapshot path remains unchanged. |
| 175 | Focused harness links include the prior Omega BW scalar provider. #350's scan |
| 176 | oracle additionally renames the later u32-prefix/radix exports to avoid |
| 177 | duplicate definitions, and its mutant runner uses the single configured |
| 178 | converter for both scalar and runtime-view units. |
| 179 | |
| 180 | #346's prefill poison counting now uses its specific Omega root, retaining |
| 181 | earlier Omega copies/fills and #332 rope generation. Its six compiled mutants, |
| 182 | missing-unit/red controls and eight host/simulator prefill gates pass |
| 183 | (`/tmp/integ/6b-pr346.log`). #355's allocator union retains the existing chip |
| 184 | admission and serializer dependencies while adding four strong allocation |
| 185 | providers; its runtime-view selector is merged into the shared generator |
| 186 | convention. Both qualification scripts forward the allocator oracle flag; |
| 187 | their programs are compiled only and must not be executed without fresh |
| 188 | hardware authorization. |
| 189 | |
| 190 | The single converter is now omega-bridge #77 |
| 191 | (`d90433a90f26159d878a277d232f0269946ca669`, containing #76). Its checked |
| 192 | borrowed-view freestanding profile makes the #332 attention/view compositions, |
| 193 | the #356 matmul-oracle compositions, `cg_fields` and the cubin message/admission |
| 194 | compositions import-free. They are |
| 195 | generated once as `src/cudapp_freest_<root>.c` for both hosted and NO_POSIX |
| 196 | consumers; their obsolete `src/cudapp_om_<root>.c` copies are removed by the |
| 197 | generator and refused by `--check`. The corresponding per-unit identities and |
| 198 | aggregate custody identity change for the new converter/profile. Existing |
| 199 | hosted computations and the native computation compiler are unchanged. |
| 200 | |
| 201 | The NO_POSIX partial-link import allowlist is unchanged. A new required |
| 202 | negative control removes each of `omega_av_set`, `omega_av_copy` and |
| 203 | `omega_av_fold`'s providers and requires the strong-provider link to fail. |
| 204 | Direct codegen/regalloc and attention/API mutant harnesses select the same |
| 205 | single generated implementation and emitter used in production. Explicit |
| 206 | codegen links retain `cg_fields`, BW scalar, pathcopy and the emitter/replay/ |
| 207 | liveness/invariant providers; both regalloc oracle links retain pathcopy. |
| 208 | |
| 209 | The cubin allocating shell calls the checked import-free Omega message and |
| 210 | admission providers even when it selects the caller-stack native packer. The |
| 211 | native call is explicit rather than a global preprocessor alias that changes |
| 212 | later hosted declarations. The broad unrelated core freestanding refusal gate |
| 213 | is unchanged. Its native differential links the same two import-free diagnostic |
| 214 | providers. No C computation fallback or additional import allowance is added. |
| 215 | |
| 216 | The conversion replaces exactly 40 hosted generated C files with 40 |
| 217 | freestanding generated C files. All 357 unit identities change to record the |
| 218 | converter pin. The fixed-extent repair then updates 317 identities, the profile |
| 219 | comments in the generated header and six freestanding bodies: `attn_args`, |
| 220 | `attn_lay`, `attn_mm_next`, `cg_fields`, `core_cubadmit` and `core_cubinmsg`. |
| 221 | These reject wrong fixed extents rather than treating them as capacities; |
| 222 | OM2 runtime views retain their checked capacity/alias contract. The production archive is recreated |
| 223 | before adding its current objects: incrementally updating it with `ar rcs` |
| 224 | otherwise retains the removed hosted provider members. A membership control |
| 225 | rejects the stale archive and requires all 40 replacement members and no |
| 226 | obsolete member after the rebuild. |
| 227 | |
| 228 | The initial #77 checkpoint exposed `omega_av_pack` accepting a 31-element |
| 229 | view where its declared extent is 32 (differential exit5). The pinned repair |
| 230 | passes the full attention typed-view differential, nine compiled mutants and |
| 231 | all seven attention-family API host/sim gates; residual API differentials, |
| 232 | nine mutants and three missing-unit controls also pass. These results are |
| 233 | recorded in `/tmp/integ/6b-pin77-callers-repaired.log`. That compound command |
| 234 | stopped at missing explicit codegen/regalloc link providers, repaired without |
| 235 | changing the acceptance paths. The original failing receipts are retained. |
| 236 | |
| 237 | The repaired-pin archive membership, artifact-format positive/red controls, |
| 238 | NO_POSIX native/session/BF16 differential and mutant gates, freestanding |
| 239 | engine/codegen, native runtime and byte-identical regeneration all pass in |
| 240 | `/tmp/integ/6b-pin77-final.log` (rc0; `crumb verify: OK: 88 crumbs current`). |
| 241 | The hosted formatting includes use equivalent nested NO_POSIX/core-oracle |
| 242 | guards so the existing portability scanner recognizes the freestanding |
| 243 | boundary; the implementation-selection predicate and scanner are unchanged. |
| 244 | ### Stage-6 Half A receipts (Integrator6A, 2026-11-06) |
| 245 | |
| 246 | Half A uses bridge #73 `79e8c361` and the pinned e5b32567 compiler. Every |
| 247 | execution is isolated by bwrap with an empty `/dev`, cores 10–14 and nice 10. |
| 248 | These are host/simulator results, not chip qualification. |
| 249 | |
| 250 | #339 `e2b8e8a523088a0132ae849cf51afa3d150181cb` repairs the JSON receipt. |
| 251 | The regenerated `/tmp/integ/6a-339-backend.json` parses losslessly: 109 rows, |
| 252 | 100 KILLED, 9 SURVIVED_REDUNDANT, zero gaps. Main accepted these current counts |
| 253 | instead of the older 120/107/13/0. `/tmp/integ/6a-339-reconcile.tsv` maps every |
| 254 | historical row: 109 retained, 10 relocated to `tests/om_eng_mutants.sh`, one |
| 255 | redundant page-minimum guard removed by #321 `1ecaf8c40802dee63c9534944fae492005076033`. |
| 256 | The relocated rows account for seven historical kills and three historical |
| 257 | redundancies; the removed guard accounts for the fourth redundancy. All ten |
| 258 | relocated rows are now killed in the 16/16 semantic sweep. |
| 259 | |
| 260 | Logs: `/tmp/integ/6a-339.log` records byte-identical regeneration, JSON PASS, |
| 261 | engine C49/49 and OM21/21 kills, and backend109/100/9/0. Its aggregate rc2 came |
| 262 | from a second invocation with a missing relative receipt directory. The absolute |
| 263 | rerun `/tmp/integ/6a-339-final.log` completed the valid backend receipt before |
| 264 | its deadline interrupted the semantic sweep. `/tmp/integ/6a-339-semantic.log` |
| 265 | returned rc0: `PASS om eng mutants: 16/16 killed`, with 44584 differential records |
| 266 | identical. The runner now fails immediately if it cannot open its receipt; the |
| 267 | JSON regression includes that negative control. Historical evidence is untouched. |
| 268 | |
| 269 | An inherited clean-build repair delays `mk/host-policy.mk` until its cost-model |
| 270 | object and binding variables exist, so target prerequisites include their providers. |
| 271 | `6a-339-close.log` exercises that repair: decision differential21058, predictions8617, |
| 272 | contraction negative control PASS, and crumb verify OK. |
| 273 | |
| 274 | #337 `3821a8b3b3858b44af8402e2e708a975fb6c2dc0`: full generation/check remained |
| 275 | byte-identical. `/tmp/integ/6a-337-host.log/.rc` returned0: tern schedule PASS, |
| 276 | simulator34/34,68 source-mutant/config controls, differential213120 programs/ |
| 277 | 14258 refusals, and crumb88 current. Explicit ternary/codegen links now name the |
| 278 | newly integrated API/IR providers rather than relying on an incomplete old list. |
| 279 | `test-codegen-freestanding` is **DEFERRED_TO_UNION**, not PASS: |
| 280 | `/tmp/integ/6a-337-focused.log` rc2 records inherited missing `omega_av_*` |
| 281 | providers. Main authorized deferral because Half B `638975ca` owns the bridge#77 |
| 282 | root repair; final integration must regenerate under bridge `29d9cff7` and pass |
| 283 | this gate. Half A retains its assigned bridge#73 pin. |
| 284 | |
| 285 | #331 `79dac21d2fccae9a86239c2ab13cb2bcd8ffffb5`: generation/check byte-identical |
| 286 | (`6a-331.log`); repaired standalone parser/corpus and existing mutant links to |
| 287 | retain integrated cost-model/SHA providers alongside dag_parse/dag_fmt. |
| 288 | `/tmp/integ/6a-331-focused.log/.rc` returned0: parser492/0, formatter3631/0, |
| 289 | CLI25/0, six parser mutants killed, unit203/0, five scheduler mutants killed, |
| 290 | corpus1200/0 with driver/record-flip negatives, and the full focused tools family |
| 291 | including artexp116 cases/266 files/10 mutants. Final: `crumb verify: OK: 89 crumbs current`. |
| 292 | |
| 293 | #341 `56baf91039954a14fdf47ce4fe91b5e61cb67e02`: `/tmp/integ/6a-341.log/.rc` |
| 294 | returned0. Full units regeneration byte-identical; resolver4498/0, nine mutants, |
| 295 | red and missing-scheduler controls passed. Parser/scheduler/corpus/tools and |
| 296 | cost-model families passed. Final `crumb verify: OK: 90 crumbs current`. |
| 297 | Merge retained integrated runtime/SHA providers in all standalone oracle links |
| 298 | and combined dag_res/dag_diff roots rather than dropping earlier registrations. |
| 299 | |
| 300 | #344 `cfe1f8180c42c04257b99bb40e903659acf8be40`: `/tmp/integ/6a-344.log/.rc` |
| 301 | returned0. JSON byte differential all256, exact stream parity, red/link and five |
| 302 | mutants passed; parser/resolver/scheduler families passed and units regenerate |
| 303 | byte-for-byte. Combined dag_jstr with integrated runtime providers in direct |
| 304 | links. Final `crumb verify: OK: 90 crumbs current`. |
| 305 | |
| 306 | #282 `62abe5eadfdc674a1180f8e2b8a542e5b50c902d` merged cleanly on the newer |
| 307 | integrated API, retaining the successful non-NULL session-pointer contract. |
| 308 | `/tmp/integ/6a-282.log/.rc` returned0: host/warp-sim reference and shape sweep, |
| 309 | six generated source mutants plus the session-open abort control, NULL/non-NULL |
| 310 | shell contract, byte-identical units and `crumb verify: OK: 90 crumbs current`. |
| 311 | |
| 312 | ## Final union receipts (FinalInteg, 2026-11-06) |
| 313 | |
| 314 | Merged in order, with merge commits: stage6c |
| 315 | `b8775eecf844a956a644f60405244c6157ce6de2`, stage6b |
| 316 | `638975caf28c8b98c751d28ed81b5bccc84e513c`, fix/ci-280 |
| 317 | `2568a7e37edac91ca51761bbf226b2246e5e7ccd`, then the available stage6a |
| 318 | `489f1c03806e0d4d5ee3c3ca018106ce2f1925eb`. Stage6a remains open; |
| 319 | this is not the final containment claim. |
| 320 | |
| 321 | Converter lock is omega-bridge #77 |
| 322 | `29d9cff72676bcef41a067bdcf4d8b0711042bcd`, using dedicated worktree |
| 323 | `/tmp/integ/bridge-final-29d9cff7`. All portable/freestanding units regenerated; |
| 324 | the independent `om/units.sh --check` run returned0 and |
| 325 | `PASS portable Omega units regenerate byte for byte` (artifact10426). |
| 326 | |
| 327 | C0 v3 is additive; immutable v1/v2 profiles were not edited. Two clean builds |
| 328 | in `/tmp/integ/final-c0-a` and `/tmp/integ/final-c0-b` compared identical: |
| 329 | aarch64 `d7649f223e766b9dd007f723206b3c794c61bbda19a0d83b985fa4834c28d8b8`, |
| 330 | x86_64 `0601563603f26bac683f1ecfb5bbd9a9690f0edba581f5e7638075df807f4492`, |
| 331 | PTX `3f104fbfb9f2a98c633b9fab39cf1f67caae009d3785f42238b1c5ae32739971`. |
| 332 | `compat/cuda/test.sh /tmp/integ/final-c0-test` returned0 with both admissions, |
| 333 | all14 refusal controls and empty CUDA-import diffs across v1/v2/v3 |
| 334 | (`CUDA-C0-PROFILE-TEST PASS`, artifact10427). |
| 335 | |
| 336 | The first union run (`/tmp/integ/final-full-first-failed.log`, rc2) exposed a |
| 337 | standalone backend-mutant link missing `nvrm_alloc_scalar`; the provider is now |
| 338 | explicit in that link. No mutant assertion changed. |
| 339 | |
| 340 | Freestanding builds install checked-in native C/header artifacts from |
| 341 | `om/no-posix/gen/{aarch64linux,x86linux}` without requiring bridge or compiler |
| 342 | regeneration during ordinary builds. `om/units.sh` owns their generation and |
| 343 | `--check` compares both target sets under bridge#77. The generator uses pinned |
| 344 | compiler oracle blobs `734f0a39` and `be8c5130`; native differential tests request |
| 345 | these tools explicitly, separately from installing the production sources. |
| 346 | Default-off migration flags remain header defaults rather than command-line |
| 347 | definitions in the production freestanding build. |
| 348 | |
| 349 | CI source-citation repair tracks the fixed-producer predicate at |
| 350 | `src/omega_numeric.c:1286`, retaining the same minimum and assertion. The drift |
| 351 | baseline adopts upstream dagsim header blob `8ab62e55da5cb1049ccf912e6a14953ab3e92dc4`: |
| 352 | its only changes from the previous oracle are the lifetime-refusal comment and |
| 353 | `DS_REFUSED_LIFETIME` enum member, already adopted by the integrated header. |
| 354 | |
| 355 | Full-union host acceptance and exact-head CI remain pending. Chip, live-RM, |
| 356 | VFIO and hardware qualification are **NOT_RUN**; these host receipts authorize |
| 357 | no device operation or deployment. |
| 358 | ### Half A: #340 kernel-family API generation |
| 359 | |
| 360 | Merged refreshed lane head `0463629a6d1651ed13e928e99b56a7b3f1b1d4e4`. |
| 361 | `/tmp/integ/6a-340.log/.rc`: rc0 under device-isolated bwrap, bridge #73. |
| 362 | Byte-identical unit regeneration; EW differential 127 accepted/73 refused, |
| 363 | shape partition 4189/4001; attention 39423 cases/39392 complete cubins; |
| 364 | five EW and five attention semantic mutants killed, IR/final-cubin red controls. |
| 365 | Elementwise, reconvergence, attention, decode/decode256, eight prefill host/sim, |
| 366 | hello-sim, GEMM-ex-sim and engine-sim gates passed. Final: |
| 367 | `crumb verify: OK: 91 crumbs current`. |
| 368 | Merge retained the existing root union and dated notes; no acceptance weakened. |
| 369 | Hardware/live-RM/VFIO/chip remain NOT_RUN. |
| 370 | |
| 371 | #359 `bdb3d5d6f3532b9c0e1c9cf6b6933598ea4c3df7`: |
| 372 | `/tmp/integ/6a-359-focused.log/.rc` rc0, ATTN-HOST-CHECK with nine |
| 373 | compiled mutants and three link omissions; attention/elementwise/scan family |
| 374 | host+sim gates; byte-identical units; `crumb verify: OK: 91 crumbs current`. |
| 375 | Repair: dispatch OM2 `attn_host` and `attn_scanchk` through the existing |
| 376 | runtime-views converter profile. Initial `/tmp/integ/6a-359.log` rc24 |
| 377 | exposed the omitted dispatch. Scalar clock retains its ordinary seeded ABI. |
| 378 | |
| 379 | #343 `0c12e0151b3d5ee3a5017584a8322d128dfbcb44`: |
| 380 | `/tmp/integ/6a-343.log/.rc` rc0; q38 host9/9, complete rotary-tail |
| 381 | mapping and all five compiled mutants; byte-identical units; |
| 382 | `crumb verify: OK: 91 crumbs current`. Dated roadmap notes retained together. |
| 383 | |
| 384 | #345 `c0d5e0316e13d64aacdfe9a28a4d44f7f66c2dd7`: |
| 385 | `/tmp/integ/6a-345.log/.rc` rc0; headscale, q38 host, graph warp/OM/nested |
| 386 | and compiled mutants PASS; byte-identical units; |
| 387 | `crumb verify: OK: 91 crumbs current`. Root union adds graph_headscale |
| 388 | to the existing flags/ABI runtime-views dispatch rather than stale profile syntax. |
| 389 | |
| 390 | #342 `1ad73a6b8f05eddc7826c4ed9c7436312ccf2337`: |
| 391 | `/tmp/integ/6a-342.log/.rc` rc0; disasm words differential/red/link/five mutants, |
| 392 | Omega disasm and byte-identical units PASS; final `crumb verify: OK: 91 crumbs current`. |
| 393 | Additive root and dated-roadmap notes retained. |
| 394 | |
| 395 | #347 `ee34d8d8b2c0892ac1230147ba6acf0143908913`: |
| 396 | `/tmp/integ/6a-347.log/.rc` rc0; TC host988323 cases, eight compiled mutants, |
| 397 | strong-link red, cubin identity25, TC differential180517/52380 refusals, |
| 398 | TC simulator PASS; byte-identical units; final `crumb verify: OK: 91 crumbs current`. |
| 399 | Root union and generated crumbs refreshed without altering historical evidence. |
| 400 | |
| 401 | #349 `b0e5ff6df126c91689fe093a15e6550fee28fbfc`: |
| 402 | `/tmp/integ/6a-349.log/.rc` rc0; admission656275, seven mutants/strong-link, |
| 403 | 11 identical cubins/one refusal; pfhost IR19150/384/50 refusals and two mutants; |
| 404 | host and simulator PASS; byte-identical units; final `crumb verify: OK: 91 crumbs current`. |
| 405 | |
| 406 | #360 `467e2aca978e3b134f54deef3995a158bb93c740`: |
| 407 | `/tmp/integ/6a-360.log/.rc` rc2 after byte-identical generation exposed stale |
| 408 | standalone link providers. Repaired both QMMA test links and mutant source closure |
| 409 | with current codegen/allocator/format/cubin/SHA providers; prerequisites defined |
| 410 | before expansion. `/tmp/integ/6a-360-focused.log/.rc` rc0: |
| 411 | 2949 differential cases, eight compiled mutants/two missing-unit reds, |
| 412 | selftest IR/encoded/cubin identity, QMMA714275/94 bit-basis, host and TGEMM sim PASS. |
| 413 | Final `crumb verify: OK: 91 crumbs current`. Chip/QMMA hardware NOT_RUN. |
| 414 | |
| 415 | ### Supplemental union and freestanding attention closure |
| 416 | |
| 417 | Merged `integ/stage6d` at `0acb67d2b855cf799406e055a1fd3e8707139dcc` |
| 418 | through merge `c909ee57b36bba042fc183c8f0ee500a69b796a2`, containing |
| 419 | #313, #315, #312, #287 and #298. The lane's detailed commands and refusal |
| 420 | controls are recorded in `/tmp/integ/HANDOFF-Integrator6D.md` and |
| 421 | `/tmp/integ/6d-{313,315,312,287,298}.log/.rc`. |
| 422 | Main authorized #298 after compiler #1048/#1050 landed. SMI uses the separate |
| 423 | `e9b635875e6d43314aedc9d85f25c8f65636ac3d` compiler artifact |
| 424 | (`390629fd22590aaefca852045f8b0ace86c62cefb3b1bc203ce400773c8abc2f`); |
| 425 | the general seeded compiler pin is unchanged. |
| 426 | |
| 427 | The combined attention path requires freestanding `attn_host`, `attention_ir`, |
| 428 | `cg_replay`, `cg_life` and `cg_invar` providers. They now use the existing |
| 429 | bridge#77 freestanding profile, with generated callers migrated together. |
| 430 | The production NO_POSIX link includes the IR replay adapter, not the hosted |
| 431 | numeric/mathlibs build/data API. The native runtime test consumes that adapter |
| 432 | from the aggregate instead of compiling a second copy. |
| 433 | The freestanding link passed with 68 files and only `memcmp`, `memcpy`, |
| 434 | `memset`, `strcmp`, `strlen` undefined (artifact10557). |
| 435 | |
| 436 | CI on `f7666ac4c593af252fcf7d184057a4e0001c0039` exposed relocated latency |
| 437 | oracle citations after Half A's migration guards and a clang cross-target |
| 438 | preprocessing dependency on hosted libc headers. Citation lines and the exact |
| 439 | fixed-class assertion window now follow the unchanged predicates; clang native |
| 440 | artifact generation explicitly selects freestanding preprocessing. Assertions, |
| 441 | stall values, import allowlists and workflow settings are unchanged. |
| 442 | |
| 443 | ### PR #280 repair round (CudaInteg280b, 2026-11-06) |
| 444 | |
| 445 | CI on `cd2b976a74c2f4aa0f416b4e7bf42fa94ca94f40` failed three host jobs and |
| 446 | raised CodeQL alert 107 (`cpp/uncontrolled-arithmetic`, HIGH). |
| 447 | - `tools/gpu_engine_backend_mutations.sh` line 39 had been truncated with a literal |
| 448 | `…` in `ed00efea`; `dash -n` failed at line 56. `da433ee4` restores the SRCS line. |
| 449 | - `tools/gpu_engine_mutations.sh` did not copy `omega_fixture_rest.h` into the |
| 450 | mutant tree; `cecc4ea6` adds it to COPY. |
| 451 | - Alert 107 flows from `rand()` in `tests/regalloc_om/differential.c` into |
| 452 | `src/cudapp_freest_regalloc.c`. `d3f5359e` replaces `rand()`/`srand(1)` with a |
| 453 | fixed 64-bit LCG, so the differential is also identical across libcs. The |
| 454 | earlier generated-code rewrite `c2f64b60` changed `ra_u2l`/`ra_l2u` results |
| 455 | (10 boundary mismatches) and is reverted by `bc742fd4`. |
| 456 | - `ed00efea` moved several units to `src/cudapp_freest_*.c`. |
| 457 | `tests/qmma_probe_rest_mutants.py` now links the exact `$(QMMA_REST_SRC)` list |
| 458 | from make, and `tests/attn_host_check.py` resolves each unit to its one |
| 459 | checked provider and regenerates freestanding mutants with `bridge-freest`. |
| 460 | |
| 461 | Merged `integ/stage6a` at `4b44b3594b36b28436592dc088baa9e7a72d05ca` (#351, |
| 462 | chip enumeration and PCI masks in seeded Omega) through `6a7e77ea`. The m16 and |
| 463 | NVRM lifecycle links keep both `cudapp_om_chip_enum.c` and |
| 464 | `cudapp_om_fixture_text.c`; the unit idents were regenerated with |
| 465 | `om/units.sh` (`--check` byte-identical) and `crumb verify` is current. |
| 466 | |
| 467 | On the GB10, `hello_gpu` then failed at `cd2b976a` and `8e83fc2c` and passed on |
| 468 | main `b774723f`. The chip bisect named `196e84ee` ("route client decisions |
| 469 | through the Omega policy unit"). `nvrm_channel_n` called |
| 470 | `nvrm_policy_retry(arc == 0, nomem, tries, budget)`, but the signature is |
| 471 | `(failed, tries, budget, nomem)`. A successful compute-object allocation |
| 472 | therefore returned "budget spent", and the channel failed after one attempt. |
| 473 | The C oracle and the Omega unit received the same wrong arguments, so the |
| 474 | policy differential could not see it. The call now lives in |
| 475 | `channel_retry_decision()` with the correct order, and |
| 476 | `tests/test_ampere_runtime.c` checks its decisions, including the success |
| 477 | path, in both the Omega and C-oracle builds of `test-nvrm-differential`. |
| 478 | QMMA hardware gates: NOT_RUN. The chip rows for the fixed head are measured by |
| 479 | the GPU window owner. |