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 / no-posix-session-20261106 / README.md

101 lines · 5977 bytes Raw Blame History Rendered
1# NO_POSIX session Omega selection — 2026-11-06
2
3IMPLEMENTED and EXERCISED on host CPU only. Chip tier NOT_RUN. Not merged or deployed.
4
5## Source custody and scope
6
7Branch `feat/no-posix-session-om` starts at #334
8`7f64c24ed5016eab0a612b9ebe78c1cfc859679a`. Merge commit `d103b01c`
9merges #335 `ee886e852b490e5cd44ef3a09e91b83c67942dab` (native build mechanism).
10PR base remains `feat/session-cmdlist-rest-om`; the #335 merge is an explicit dependency.
11The BF16 API-view seam is intentionally a separate branch based on #323, as directed
12by the integration owner. #335's existing scalar `no_bf16` remains registered here.
13
14`om/no-posix.sh` now registers admit/words/park/book/streams alongside #335's roots.
15The canonical units are pure. No alternate implementation was necessary. The parameter
16`open` in admit was renamed `opened`: `open` is reserved in the OM-2 profile. This is
17an alpha-renaming, not a mathematical change. Portable bindings and unit identities
18were regenerated. NO_POSIX shells make strong `omega2_*` calls; the C decisions and
19packet headers require the default-OFF `CUDAPP_MIGRATION_PENDING_C_NO_POSIX_SESSION=1`.
20The session's extra-queue path is included, avoiding a residual NO_POSIX C fallback.
21The stale C-only op3/op4/op5/op12 admission mirrors were corrected to the canonical
22Omega contracts; the round-up mirror now handles zero alignment and uint32 carry.
23
24Compiler: omega-mv e5b32567, omc sha256
25`2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`.
26Native bridge #335 pin: 741c1ebb; `/tmp/bridge-pin-merge`.
27Native generator bootstrap compiler: `/tmp/no-posix-baseline-omc`, #335's pinned
28OM-1 bootstrap. Hosted portable regeneration uses the separately pinned converter
29in `~/work/cudastack/omega-bridge`; do not interchange the bridge paths.
30
31## Acceptance commands and observations
32
33Every command below was run with this device-isolating prefix:
34
35```
36bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10
37```
38
39For native commands set:
40
41```
42OMEGA_NATIVE_OMC=/tmp/no-posix-baseline-omc
43OMEGA_BRIDGE=/tmp/bridge-pin-merge
44OMEGA_OMC=$HOME/work/cudastack/omega-mv/seed/out/omc
45```
46
47- `make -j3 test-no-posix-session`: PASS. Differential compares all result/status/output
48 bytes for `decide`, `emit`, `scan`, `book` and session-used `streams_words` op6 between
49 the hosted native binding and the import-free freestanding binding. Partitions are
50 derived from the canonical sources: all operation branches plus refusal; booleans;
51 8/64 register and hook boundaries; 352/896 offsets; 4096 page and 8192 QMD boundaries;
52 uint32/sign-bit truncation and carry; UINT32_MAX and UINT64_MAX with neighbors;
53 packet low/high address fields; every parked-table position and stale generation;
54 all queue-open combinations and queue indices. Wrong view lengths refuse without
55 modifying the caller's result. Explicit red executable exits 90. Omitting the native
56 object fails linkage. Combined native/API object has no unresolved symbols.
57- Symbol controls inspect actual NO_POSIX session and command-list objects with
58 `nm -a` and `objdump -dr`, compiled both with explicit flag=0 and flag=1. OFF has
59 `omega2_decide/emit/scan/streams_words/book` strong references and no C decision/
60 packet-header oracle symbols. ON has `ses_c`, `bw_mthd`, `xq_admit_c`, `clbook_c`
61 and no references to those Omega exports. This is the red selection control, not
62 a claim that unrelated command-list policy has become freestanding.
63- Six independently compiled source mutants killed: gpr-floor, arg-offset,
64 packet-tag, park-found, book-successor, queue-bound. Every mutant first builds;
65 compiler failures are harness failures, not kills.
66- `make -j3 test-no-posix-native`: rc 0. Final line:
67 `PASS C_NO_POSIX encoder oracle dump equals native dump; gcov recorded`.
68 Its pre-existing bare ELF/import/interpreter/TLS, C cubin/encoder differential,
69 injected-byte red, and six encoder/BF16 mutants also PASS with the enlarged set.
70- With `OMEGA_BRIDGE=$HOME/work/cudastack/omega-bridge`, run
71 `make -j3 test-gpu-session-platform test-om-cmdlist`: rc 0. Session platform
72 `16 passed, 0 failed`; simulated Linux reference `17 passed, 0 failed`;
73 VA slots final line `SUMMARY passed=10 failed=0`; hosted Omega session mutants
74 `16 of 16 mutants killed; 7 regenerated Omega-unit mutants`. Command-list planner,
75 simulator, real shell (no device), and cost gates PASS. Their reported program
76 counts are harness observations, not performance or chip claims.
77
78Detailed generated artifacts: `build/no_posix/session-check/commands.log`,
79`hosted.bin`, `freestanding.bin`, `*-0.nm`, `*-1.nm`, `*.objdump`, mutant observed
80bytes; `build/no_posix/check/commands.log`; `build/gpu_session_mut/*/{build,platform,policy}.log`.
81The committed `native-session.log` records the final dedicated gate run.
82An earlier combined command used the native bridge for the portable mutation gate
83and correctly failed its converter pin check; rerunning with the documented portable
84bridge passed. No gate was relaxed.
85
86## Chip runbook — NOT_RUN
87
88Only the operator may authorize an exclusive GPU window. After authorization, use
89the existing session/command-list chip runbook from #334, build this branch with the
90pinned bridge and flag OFF, run the normal production session launch/close, parked
91handle refusal/recovery, and command-list packet paths on the chip, then compare the
92same paths against flag ON in a separate build directory. Record exact source heads,
93object identities, expected/observed packets and refusal outcomes. Keep the live model,
94services, lock file, NVIDIA modules and vfio untouched outside that authorization.
95Host and simulator PASS are not hardware qualification.
96
97## Guide impact
98
99No language, host-word, ABI or repository-ownership contract changed. The bridge and
100compiler pins are unchanged; this extends CUDApp's existing #335 root registration.
101No omega-harness skill example or pin needs modification.