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

50 lines · 2467 bytes Raw Blame History Rendered
1<!-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -->
2# NVML subset host tier, 2026-11-06
3
4Branch `feat/cudapp-nvml` (CUDApp), base `feat/cudapp-smi` (#286, 85f48ad).
5Compiler: omc at omega-mv e5b32567, sha256
6`2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`;
7omega-bridge bc11b30b (`bridge-seeded` frontend 23ff7a23…). Every command ran
8inside a device-free namespace on cores 10-14:
9
10```sh
11W="bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10"
12$W make test-nvml OMEGA_OMC=$OMC OMEGA_BRIDGE=$BRIDGE # rc 0, CUDAPP-NVML HOST PASS
13env -u OMEGA_OMC -u OMEGA_BRIDGE $W make test-nvml # rc 2, NOT_RUN
14OMEGA_OMC=<omega-mv#1048 candidate omc> $W sh tests/nvml/run.sh # rc 69, REFUSED (omc digest)
15env -u OMEGA_OMC -u OMEGA_BRIDGE $W sh tests/nvml/run.sh # rc 77, NOT_RUN
16```
17
18`commands.txt` has the rc and last line of each; the logs are beside it
19(home directory written as `~`).
20
21## Verdicts
22
23| Tier | Verdict |
24| --- | --- |
25| Committed generated C (`src/cudapp_om_nvml_{step,errstr}.c`) fresh against the `.om` | PASS |
26| Fake resource manager (`tests/nvml/rmfake.om` behind `tests/nvml/transport.c`) | PASS, 476 checks |
27| Error-string oracle negative control (one oracle row altered) | PASS: the run fails 1 of 476 |
28| ABI: 55 sizes, offsets and values, `compat/nvml/nvml.h` vs CUDA 13.0 `nvml.h` | PASS |
29| Shell compiles against NVIDIA's prototypes (header only) | PASS |
30| Thin-shell guard, and its negative control (a shell calling `ioctl`) | PASS |
31| Mutants of `native/nvml/*.om` | 22/22 caught |
32| Live resource manager (`/dev/nvidiactl`, `/dev/nvidia0`) | NOT_RUN: no authorized GPU window |
33| GB10 chip | NOT_RUN |
34
35The fake transport replaces `omega2_nvrm_*` at link time, so no test opens a
36device; the bwrap namespace (empty `/dev`) makes that hold by construction.
37
38## Oracle provenance
39
40`tests/nvml/errstr-oracle.tsv` holds 37 rows (codes −1, 0..32, 999, 1000,
414294967295). It was captured on this Spark with Python `ctypes` calling
42`nvmlErrorString` from `/usr/lib/aarch64-linux-gnu/libnvidia-ml.so.580.173.02`
43without `nvmlInit` (the call opens no device). The library is used only as
44that oracle; nothing in CUDA++ links or loads it.
45
46## Constants
47
48`wolfram.txt`: every derived constant (packed path words, buffer offsets,
49command values in hex, fake RM values, two's-complement errno words, packed
50error strings) with the Wolfram Language query and its result.