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

71 lines · 5208 bytes Raw Blame History Rendered
1# API shells host receipt, 2026-11-06
2
3Lane: kernel-family API shells. Branch `feat/api-shells-om`. Worktree `~/work/cudastack/lanes/ApiShellsOm`. Base `origin/main` `b774723f537cec16a359fe082b8100317a5b5490`.
4
5Status labels: IMPLEMENTED (seeded Omega units plus C ABI shells). EXERCISED on the host and the warp simulator. QUALIFIED is not claimed. MERGED is not claimed. DEPLOYED is not claimed. Chip tier is NOT_RUN. No GPU window was authorized. Nothing here opened `/tmp/aien-gb10.lock`, port 18091, the nvidia modules, or vfio.
6
7## What moved
8
9Shape, alignment, overflow, refusal, slot-table, and FP8 pack decisions live in `om/api/apish_shp.om`, `apish_pack.om`, `apish_slot.om`, `apish_blk.om`, and `apish_trit.om`. `om/units.sh` registers those units when `OMEGA_UNITS` is unset. The generated bindings are `src/cudapp_om_apish_*.c`. `src/omega_api_shells.h` is the C wrapper. `CUDAPP_MIGRATION_PENDING_C_API_SHELLS` (default off) keeps the previous C expressions as the differential oracle. Public entry points are unchanged. `docs/runtime/omega_runtime_api.manifest` was not touched.
10
11Pinned compiler: omega-mv `e5b32567`, `~/work/cudastack/omega-mv/seed/out/omc`, sha256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`.
12
13## Commands
14
15```
16env -u OMEGA_UNITS OMEGA_OMC="$HOME/work/cudastack/omega-mv/seed/out/omc" \
17 OMEGA_BRIDGE="$HOME/work/cudastack/omega-bridge" \
18 taskset -c 10-14 nice -n 10 bash om/units.sh --check
19```
20
21Exit 0. Last line: `PASS portable Omega units regenerate byte for byte`. Wall time 5.72 s.
22
23```
24env -u OMEGA_UNITS taskset -c 10-14 nice -n 10 bash tests/api_shells_run.sh
25```
26
27Exit 0. Last line: `PASS api-shells checks=753157`. Wall time 2.42 s. That runner compares the default Omega path with the pending C oracle, including FP8 pack bytes, and flips one oracle record as the negative control.
28
29```
30env -u OMEGA_UNITS OMEGA_OMC="$HOME/work/cudastack/omega-mv/seed/out/omc" \
31 OMEGA_BRIDGE="$HOME/work/cudastack/omega-bridge" \
32 taskset -c 10-14 nice -n 10 python3 tests/api_shells_mutants.py
33```
34
35Exit 0. Last line: `PASS mutants killed=8/8`. Wall time 26.44 s. Killed: `lane-16-to-8`, `alignok-always`, `refb-nan-zero`, `slot-busy-ok`, `tgbm-64-to-32`, `pad8-no-round`, `dsplit-bad-align-ok`, `pa256-bound-off-by-one`.
36
37After the library rebuild (`taskset -c 10-14 nice -n 10 make -j3`, cores 10-14):
38
39| Command | rc | Last line |
40| --- | --- | --- |
41| `make test-gpu-fp8-slots` | 0 | `GPU_FP8_SLOTS: PASS (24 checks, 0 failed)` |
42| `make test-gpu-tern-sched` | 0 | `gpu_tern_sched_test: PASS` |
43| `make test-gpu-decode-attn256` | 0 | host `gpu_decode_attn256_test: 61 checks, 0 failed: PASS`; sim `gpu_decode_attn256_test: 14 checks, 0 failed: PASS` (`sim: 10975936 warp issues in total`) |
44| `make test-gpu-moe-window` | 0 | `PASS: 23 checks, 0 failed` |
45| `make test-gpu-fp8gemm` | 0 | host `gpu_fp8gemm_test: 59 checks, 0 failed: PASS`; sim `gpu_fp8gemm_test: 21 checks, 0 failed: PASS` (`sim: 7687894 warp issues in total`) |
46| `./build/gpu_pfgemm_test --host-only` and `--sim` | 0 | `GPU_PFGEMM: PASS` (both modes) |
47| `make test-gpu-prefill-host` | 0 | `test-gpu-prefill-host: PASS (8 prefill tests, host model + warp simulator, no device)` |
48
49`make test-gpu-prefill-host` also ran `gpu_tcgemm_test`, `gpu_prefill_attn_test`, `gpu_pfgemm_test`, `gpu_qgemm_test`, and `gpu_pfhost_test` in `--host-only` and `--sim`. Warp-sim issue counts from that rebuild: decode attn256 `10975936`, fp8gemm `7687894`, prefill attn `10233092`. Wall time for `make -j1 test-gpu-moe-window test-gpu-fp8gemm test-gpu-prefill-host` was 570.00 s. `gpu_prefill_attn256_test` is a chip-only carried binary and was not run.
50
51`make test` (the integrated host suite) is NOT_RUN. The integrator owns that gate. This lane did not start it.
52
53## Verdicts
54
55| Tier | Verdict |
56| --- | --- |
57| Host differential, 753157 checks, negative control | PASS |
58| Semantic mutants, 8 of 8 killed | PASS |
59| Focused family host targets listed above | PASS |
60| Warp simulator (`gpu_decode_attn256_test --sim`, `gpu_fp8gemm_test --sim`) | PASS |
61| Chip (`evidence/api-shells/2026-11-06/CHIP.md`) | NOT_RUN |
62| `make test` | NOT_RUN |
63| QUALIFIED / MERGED / DEPLOYED | not claimed |
64
65## C that stayed in C
66
67Seeded Omega at this pin has no pointer type, no host memory, and no GPU launcher. ARCH-0042 keeps GPU execution in CUDA++. The shells still own session lock, allocation, sync, launch, and byte copies (tile tables, KV rows, trit words, FP8 scale folds into caller buffers). Each of those copies calls an Omega predicate for the decision (`omega_api_tritok`, `omega_api_finite`, `omega_api_scalef`, `omega_api_slot`, and the shape helpers). A null pointer check stays in C because the compiler cannot name a host pointer.
68
69Extension proposal, not done here: an omega-bridge host walk that takes a pointer, a count, and an Omega predicate, and stops at the first refusal. That would move the loop, not a decision this port still owns. It needs a bridge change, not an `omc` syntax guess.
70
71`omega_gpu_tgemm_api.c` has no separate family binary in the Makefile. Its shape, block, and size refusals are in the differential (`omega_api_tgbm`, `omega_api_tgspec`, `omega_api_tgsz`).