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 / NVML-365-2026-11-07 / README.md

74 lines · 5225 bytes Raw Blame History Rendered
1<!-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -->
2# Generated NVML library (CUDApp #365, omega-bridge #83), fresh clone, 2026-11-07
3
4Status: HOST_TESTED on a fresh clone of `0472a6d0017ece542d57a00eec49cd0c466e9db9`
5(the parent of the commit that adds this directory), aarch64 DGX Spark host, CPU
6only, every command under `taskset -c 2 nice -n 10`. Not run in a device-free
7namespace; nothing opens a device (the RM transport is the ORACLE fake in
8`tests/nvml/transport.c`). `commands.sh` is the exact scratch runner, invoked as
9`sh commands.sh 0472a6d0… 9172b525cdf0c521e2d717d17d0dfc818592d7c2`.
10
11Tools (`env.txt`): omc at omega-mv e5b32567 (sha256 `2c824805…`), seed sha256
12`191b776e…`. Both bridges are fresh clones built with `tools/build.sh`
13(`build-b30.log`, `build-b83.log`, rc 0):
14
15| Variable | omega-bridge commit | `src/toc.om` sha256 | `tools/bridge-seeded` sha256 | Pinned by |
16| --- | --- | --- | --- | --- |
17| `OMEGA_BRIDGE` | bc11b30b1faa9af8b875ae6fec24e5f49cf03ac4 | `69d629df…` | `23ff7a23…` | `om/units.sh` CONVERTER_PIN/FRONTEND_PIN |
18| `OMEGA_CABI_BRIDGE` | 9172b525cdf0c521e2d717d17d0dfc818592d7c2 (#83) | `218214ab…` | `be96a2c1…` | `om/omega-bridge-cabi.lock` |
19
20ORACLE tools (test-only, never shipped): `cc` GCC 13.3.0, `nm`/`readelf` GNU
21Binutils 2.42, `sha256sum`, CUDA `/usr/local/cuda/include/nvml.h` (sha256
22`28b51fbd…`), the C caller `tests/nvml/nvml_test.c`, `tests/nvml/abi.c` and
23`tests/nvml/transport.c`.
24
25## Gate
26
27`make test-nvml CUDAPP_OMC_HOST=1 OMEGA_OMC=… OMEGA_BRIDGE=<bc11b30> OMEGA_CABI_BRIDGE=<9172b525>`
28(`test-nvml.log`), rc 0, last line `CUDAPP-NVML HOST PASS`. It includes:
29
30- `PASS cabi bridge pins: src/toc.om and tools/bridge-seeded match om/omega-bridge-cabi.lock`
31- `PASS committed compat/nvml/libnvidia-ml.c, nvml.h and libnvidia-ml.map are the cabi bridge output of native/nvml/api.om`
32- `PASS generated library libnvidia-ml.so.1 with the C caller: CUDAPP-NVML HOST PASS (476 checks)`
33- `PASS abi: 55 facts equal to /usr/local/cuda/include/nvml.h`
34- `PASS generated nvml.h prototypes (11) compile against the CUDA nvml.h` and its negative control
35- `PASS ORACLE nm/readelf: libnvidia-ml.so.1 exports exactly the 11 api.om functions (T) with soname libnvidia-ml.so.1`
36- `PASS ORACLE undefined-symbol guard ...` and its negative control (an object calling `ioctl` is rejected)
37- the seeded Omega fake tier (476 checks), the oracle negative control (1 of 476) and 22 of 22 mutants caught.
38
39## Negative controls (fresh clone; each mutation restored with `git checkout` afterwards, `clone-status-after.txt` empty)
40
41| Log | Mutation | Expected | Observed |
42| --- | --- | --- | --- |
43| `test-nvml-unconfigured.log` | `make test-nvml` without `OMEGA_CABI_BRIDGE` | NOT_RUN, exit 2 | `test-nvml: NOT_RUN (requires ...)`, rc=2 |
44| `gate-no-cabi-env.log` | `build/nvml_gate` with `OMEGA_CABI_BRIDGE` unset | 77 | `NOT_RUN: set OMEGA_CABI_BRIDGE ...`, rc=77 |
45| `neg-wrong-toc.log` | copy of the #83 clone with one `note` line appended to `src/toc.om` | 69 | `REFUSED: OMEGA_CABI_BRIDGE src/toc.om digest is not the om/omega-bridge-cabi.lock pin`, rc=69 |
46| `neg-lock-pin.log` | first hex digit of `CABI_CONVERTER_PIN` changed | 69 | same refusal, rc=69 |
47| `neg-lock-row.log` | `CABI_FRONTEND_PIN` row removed | 74 | `REFUSED: om/omega-bridge-cabi.lock needs exactly one CABI_CONVERTER_PIN and one CABI_FRONTEND_PIN row`, rc=74 |
48| `neg-lock-dup.log` (`neg-lock-dup.diff`) | second, all-zero `CABI_CONVERTER_PIN` row appended | 74 | same refusal, rc=74 |
49| `neg-stale-lib.log` | one space added to `compat/nvml/libnvidia-ml.c` | 1 | `CUDAPP-NVML HOST FAIL (committed file is not the cabi bridge output: compat/nvml/libnvidia-ml.c)`, rc=1 |
50| `neg-stale-map.log` | `nvmlShutdown;` dropped from `compat/nvml/libnvidia-ml.map` | 1 | `... compat/nvml/libnvidia-ml.map)`, rc=1 |
51
52## The other portable units stay byte-identical (Manager(Aien) D2 condition)
53
54- `units-check-b30.log`: `om/units.sh --check` with `OMEGA_BRIDGE` = bc11b30 regenerates every
55 unit listed in `om/units.sh` (52 units, `units-count.txt`; 52 rows in
56 `src/cudapp_om_units.ident`) plus `cudapp_native.h` and `cudapp_om_units.ident`, and compares
57 each with `src/`: `PASS portable Omega units regenerate byte for byte`, rc=0. (The decision
58 text says 53; the list holds 52, of which `nvml_step` and `nvml_errstr` are the
59 NVML step and error-string units.)
60- `units-diff-since-1fae7beb.txt`: `git diff --stat 1fae7beb HEAD -- src om/units.sh om/omega-bridge.lock`
61 is empty: #365 changes no generated unit, no unit pin and not the main bridge lock.
62- `units-check-b83-refused.log`: `om/units.sh --check` with the #83 bridge refuses
63 (`NOT_RUN: toc.om is not the pinned converter`, rc=3), so the #83 converter cannot
64 regenerate those units.
65- `cabi-users.txt`: every tracked reference to `OMEGA_CABI_BRIDGE` or
66 `om/omega-bridge-cabi.lock` is in `mk/nvml.mk`, `tests/nvml/gate.om` and the two
67 READMEs; in `gate.om` the #83 bridge (`ng_bridgek`) is invoked only with
68 `native/nvml/api.om`.
69
70## NOT_RUN
71
72CI (GitHub Actions blocked), hardware or live RM (no `/dev/nvidia*` access was
73used), concurrent callers of the generated library from several threads, device
74tier.