Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/evidence/HOST-X86-20261030/README.md # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / evidence / HOST-X86-20261030 / README.md` 154 lines · 10689 bytes Raw Blame History Rendered 1 # x86-64 portable host suite 2 3 On this VM, `make test` passes only with `CUDAPP_MEM_RESERVE_MIB=0` and exits 2 at the default 4096 MiB. The default was not changed. The refusing line is in [default-reserve.txt](default-reserve.txt). 4 5 Measured 2026-10-30 on Linux 6.12.94+ x86_64, gcc 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1), 4 cores. 6 `MemTotal` was `16387280` kB. `MemAvailable` during `make doctor` was 4.8 GiB. 7 `/dev/nvidiactl`, `/dev/nvidia0`, `/dev/nvidia-uvm` and `/dev/aien-gpu` were absent. 8 No GPU device was opened. `make hello-gpu` was not run. 9 10 `make test` and the commands in the sections below ran on the working tree recorded by 11 ``0d8084b26d6183ebac8f12861801aae733a4b67c``. This directory was added afterwards. 12 It is not an input to `make`. The qemu command was then repeated with the probe 13 source stored here. `cmp` showed that copy identical to the source of the first run. 14 15 ## Portable suite 16 17 `CUDAPP_MEM_RESERVE_MIB=0 make CC=gcc -j4 test` exited 0. 18 Last line: `CUDA++ HOST TESTS PASS (55 targets)`. 19 Selected lines are in [make-test-pass-lines.txt](make-test-pass-lines.txt). 20 The log also contains intentional `FAIL` lines from mutation tests and negative controls. 21 The exit code and the last line are the result. 22 23 An earlier `make CC=gcc -j4 test` with the default reserve (4096 MiB) exited 2. 24 The serving allocation test refused a 741.9 MiB upload because 4.6 GiB was free and the runtime keeps 4.0 GiB free. 25 That line is in [default-reserve.txt](default-reserve.txt). The default was not changed. 26 The passing suite sets the reserve to 0 because this machine does not have the free memory the default requires. 27 28 Inside the passing suite: 29 30 - `omega-runner-test: PASS (missing harness, missing slice, wrong source pin)` 31 - `Blackwell backend refusal: ENOTSUP, requires AArch64 Linux, driver not entered` 32 - `direct Blackwell entry points: ENOTSUP` 33 - `barrier codegen: PASS (x86_64 seq_cst fence, no dsb)` 34 - `barrier codegen: PASS (aarch64-linux-gnu-gcc cross compile emits dsb sy)` 35 - `barrier-contract: PASS` 36 - `binding-portable: PASS` 37 - `hello --sim tests: 12 passed, 0 failed` 38 - engine simulator `SUMMARY passed=334 failed=0` 39 - matmul bounds `SUMMARY passed=6 failed=0` 40 - `test_gpu_artifact_export: 47 checks, 0 failed` 41 - `PASS: freestanding codegen contract (14 fixtures, 0 failing checks)` 42 - `mutants: 120 total, 107 killed, 13 survived as redundant, 0 survived as test gaps` 43 - `allowlist control: a malloc caller is refused by the nm -u check (as required)` 44 45 `nm -u build/gpu_fs/omega_gpu_freestanding.o` on the object that suite used lists `memcmp memcpy memset strcmp strlen`. 46 The recipe's own line, from the build of that object in this tree, was `freestanding GPU link (15 files): only memcmp memcpy memset strcmp strlen undefined`. 47 48 `env -u CC make -n test-omega-binding-portable` prints `CC=gcc`. GNU make's built-in `CC=cc` is replaced when `CC` was not set. 49 50 ## Separate commands 51 52 `make zero-cuda-gate` exited 0. [zero-cuda.txt](zero-cuda.txt). 53 The self-test rejects a CUDA probe. `build/hello_gpu` and `build/gpu_matmul_api_test` link `libm` and `libc` only. 54 55 `./build/hello_gpu --sim` exited 0 and printed `PASS`. [hello-sim.txt](hello-sim.txt). 56 That is the host warp simulator. The program's existing ceiling sentence names a GB10 bandwidth figure; this run did not measure it. 57 58 `make doctor` exited 1 and printed `NOT READY: 5 problems above`. [doctor.txt](doctor.txt). 59 The kernel module is absent, the three device nodes are absent, and `/sys` shows no NVIDIA GPU. 60 The doctor checks device nodes with `access`. It did not open one. 61 The seeded target table row is `NOT_RUN` because the pinned `omc` is not on this machine. 62 63 ## Refusals 64 65 [refusals.txt](refusals.txt): 66 67 - `make test-om-encoder` exited 2 and printed `test-om-encoder: NOT_RUN (requires AArch64 Linux; src/cudapp_om_units.c is AArch64 machine code and was not executed)`. 68 - `make test-omega-slices` with no `OMEGA_OSC_COMPILER_DIR` exited 2. It named `compiler harness not configured` and source commit ``1accb93164ce68a2ac2e2c680acf54782f260d62``. 69 - `make test-omega-target-only` exited 0 after printing the seven refusal lines. That exit is the report. It is not a pass of those checks. 70 - `gh api repos/aien-dev/omega-osc-cubin` returned HTTP 404. 71 72 ## Host cross checks, not GB10 results 73 74 `aarch64-linux-gnu-gcc` 13.3.0 compiled `nvrm/cpu_barrier.h` during `make test`. 75 `aarch64-linux-gnu-objdump` showed `dsb sy`. That is a cross compile on this x86-64 host. 76 77 `src/cudapp_freest_units.c` was linked by: 78 79 ```sh 80 aarch64-linux-gnu-gcc -std=gnu11 -O2 -Wall -Wextra -Werror -Isrc -o /tmp/rev_epoch_probe evidence/HOST-X86-`20261030`/rev_epoch_probe.c src/cudapp_freest_units.c 81 qemu-aarch64 -L /usr/aarch64-linux-gnu /tmp/rev_epoch_probe 82 ``` 83 84 The source file in this directory is the file that was compiled. `qemu-aarch64` is 8.2.2. 85 The run exited 0 and printed: 86 87 ``` 88 rev0 st=0 r=1 89 rev1 st=0 r=2 90 revmax-1 st=0 r=`18446744073709551615` 91 revmax st=0 r=0 92 revmis st=32 93 revnull st=32 94 ep0 st=0 r=1 95 ep3 st=0 r=4 96 epmax-1 st=0 r=`18446744073709551615` 97 epmax st=0 r=`18446744073709551615` 98 epnull st=32 99 ``` 100 101 Status 0 is `OMEGA_OK`. Status 32 is `OMEGA_BAD_ARG`. This is qemu-user on x86-64, not a GB10 run. 102 103 `omega_fp32_to_fp16_rne` was compared with gcc's `_Float16` cast for every `uint32_t` bit pattern. 104 The program included `src/omega_blackwell_matmul.h`, compiled with `gcc -O2 -Wall -Wextra -Werror`. 105 A fresh rebuild of that source was byte-identical to the binary that ran. 106 The run exited 0 and printed `compared `4294967296` mismatches 0 first u=`00000000` got=0000 want=0000`. 107 That comparison is not a GB10 result. AArch64 still uses the hardware cast. 108 109 ## Drift gate, same failure on main 110 111 `tools/extract/drift.sh /tmp/omega-mv HEAD` against omega-mv main ``089e5b05350ee61cc1439f17d3d3052a18a3e0a5`` ("Warp simulators refuse IMAD.HI.U32 with a register Rc, which the chip reads as a 64-bit pair (#514)", committer date 2026-10-30T12:10:11Z) exits 1 on this branch and on CUDA++ main ``78fea51d6f8859ec8cc5e5561295fd5583b92c19``. Both name the same seven paths and the same omega blobs. The lines are in [drift-main-and-pr.txt](drift-main-and-pr.txt). 112 113 That omega commit is the one that moved the seven paths. The previous omega main, ``4c60d6baf5f1``, was the pin in the green main run [`41050251136`](https://github.com/aien-dev/CUDApp/actions/runs/`41050251136`) at 2026-10-30T11:45:16Z: `DRIFT-GATE: PASS (729 GPU paths, omega `4c60d6baf5f1`, none moved away from CUDA++ since the baseline)`. At ``4c60d6baf5f1`` and at ``b3dca0f1e28d``, the omega `Makefile` blob is the baseline blob ``4e068c1de5026d2ac4f6c2463fbb4292e6c26ec0``. At ``089e5b05350e`` it is ``a42b2b1f4cd7ffb683d1f54cadbceebde45d5e15``. 114 115 CUDA++ main `Makefile` blob is ``c1c714d34dc57cb251bc5e2f948b4430cb73b51e``. This branch's `Makefile` blob is ``ee85035b395b6cdef53e51661fb43b5bf6bd146c``. Neither equals omega's new blob, so the Makefile row fails on main as well. This branch did not introduce it. 116 117 The other six paths are untouched here. Their CUDA++ blobs match main, and `tests/gpu_imadhi_rc_test.c` is absent on both: 118 119 | Path | CUDA++ main and this branch | omega ``089e5b05350e`` | 120 |---|---|---| 121 | `src/omega_blackwell_codegen.h` | ``9dd4f62116ed66ff12c60c06e9070f5aa8ead679`` | ``1f0b70eecd3860da68bbe013860f27ca01da0d2f`` | 122 | `tests/bw_warp_sim.h` | ``8652710eeaed8de86375a1c9eb46b1a0d5946463`` | ``6d93828f3979b3a7223ebe0f1952b53e1d414764`` | 123 | `tests/bw_warp_sim_k.h` | ``2b040ed7756ddcffe716e198b266efa3c276dd54`` | ``993875647985cc99ce27a78003df26df91fd18e1`` | 124 | `tests/bw_warp_sim_pa.h` | ``cee1061ba9d8cf88bd80ae80295863105e2d0810`` | ``157e396cde9d942cc0bfff02fd057ed393c52a0a`` | 125 | `tests/bw_warp_sim_tc.h` | ``16699a135bc1c7bf3a3faffdb0116c223ad83390`` | ``a08e38b6a05d815448fe8b4546d204aff6f3e166`` | 126 | `tests/gpu_imadhi_rc_test.c` | absent | ``179596a27cd1c24e02ec8459a45f2e7216ca2424`` | 127 128 The path count is 739 here and 730 on main because this branch adds CUDA++ files to the map. The drift count stays 7. CI on this pull request stays red on `drift` until CUDA++ holds omega ``089e5b05350e``'s bytes for those seven paths. That import is not part of this change. 129 130 ## AArch64 objects match main 131 132 GB10 runs stay **NOT RUN**. There is no GB10 and no `/dev/aien-gpu` here. 133 134 Method: `aarch64-linux-gnu-gcc` 13.3.0 (`Ubuntu 13.3.0-6ubuntu2~24.04.1`) compiled each shared C file from this tree and from main ``78fea51d6f8859ec8cc5e5561295fd5583b92c19`` (`/tmp/cudapp-main`). Production flags were `-std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2` plus the `Makefile` include path, without `CUDAPP_PORTABLE_DEFS` and without `OMEGA_BLACKWELL_HOST_SIMULATOR`. `src/omega_blackwell_matmul.c` was also compiled freestanding (`-ffreestanding -fno-builtin -fno-stack-protector -DOMEGA_GPU_NO_POSIX`). `cmp` was byte-identical for every object. SHA-256 values are in [aarch64-objects.tsv](aarch64-objects.tsv). One hash is enough per row because the two files matched. 135 136 With `uname -m` forced to `aarch64`, `make` on this tree and on main both leave `CC` as `cc`. The production recipe adds an empty `$(CUDAPP_PORTABLE_DEFS)`. The shell collapses that extra space. The compiler arguments otherwise match main, and the objects above are the outputs. 137 138 On x86-64, `make` with no `CC` in the environment sets `CC := gcc`. 139 140 ## Filed extension proposals 141 142 Omega filed the two drafts: 143 144 - Host CPU publication barrier: https://github.com/aien-dev/omega-mv/issues/939 (`nvrm/cpu_barrier.h`, [proposal-cpu-barrier.md](proposal-cpu-barrier.md)) 145 - Portable native binding: https://github.com/aien-dev/omega-mv/issues/940 (`src/cudapp_binding_portable.c`, [proposal-binding-portable.md](proposal-binding-portable.md)) 146 147 After those comment links replaced the drafted-not-filed sentences, the same `aarch64-linux-gnu-gcc` 13.3.0 command was run again. All eleven objects in [aarch64-objects.tsv](aarch64-objects.tsv) kept the same SHA-256. `src/cudapp_binding_portable.c` is not in that list. The AArch64 library does not compile it. 148 149 ## NOT RUN 150 151 - Native AArch64 `make test`. This machine is x86-64. The AArch64 barrier object above is a cross compile. 152 - GB10 device behavior, `make hello-gpu`, and `./build/gpu_*_test` on a chip. 153 - The eight-slice gate. `aien-dev/omega-osc-cubin` is not available (HTTP 404). Source pin ``1accb93164ce68a2ac2e2c680acf54782f260d62`` was not checked out, and the historical binary SHA-256 ``a007283780347dd4a4b024844dc0c81fc09e0926f27f83e50c07d42508886f23`` was not re-measured. 154 - `make test-om-encoder`, `make test-om-cubin`, `make test-gpu-native-runtime`, `make test-om-spec-encoder`, `make test-portable-receipts` and `make test-model-capacity` as real runs. On this host each exits 2. The lines inside `make test` are the report from `make test-omega-target-only`.