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
| 1 | # Naming plan |
| 2 | |
| 3 | **Project name in text:** CUDA++. **Repository slug:** `aien-dev/CUDApp` (GitHub slugs cannot hold `+`). |
| 4 | **Prefix where a code name is needed:** `cudapp` (library `libcudapp.a`, lock file `cudapp.lock` in Omega; planned, not created yet, see #106). |
| 5 | |
| 6 | ## First cut (2026-10-21): no C renames |
| 7 | |
| 8 | Every file keeps the path and the C names it had in Omega (`omega_gpu_*`, `omega_blackwell_*`, |
| 9 | `OMEGA_*` macros, `libomega_gpu.a`). Reason: Omega branches that are being worked on right now |
| 10 | (the speed work on the 35B model, the Omegese GPU backend) edit these files. With identical paths |
| 11 | and names, `tools/extract/carry.sh` applies their commits here unchanged. A rename now would turn |
| 12 | each of those branches into a hand merge. |
| 13 | |
| 14 | `libcudapp.a` is built as a copy of `libomega_gpu.a`, so new users can link the new name today. |
| 15 | |
| 16 | ## Step 2: the shared base shrinks |
| 17 | |
| 18 | Nine files are kept byte-identical in both repositories (`tools/extract/shared.txt`): `sha256`, |
| 19 | `omega_types.h`, `omega_vector`, `omega_core`, `omega_canonical`. CUDA++ needs them because two |
| 20 | launch headers (`omega_blackwell_submit.h`, `omega_blackwell_realize.h`) take Omega's vector and |
| 21 | matmul spec types, and the kernel digests use SHA-256. Omega owns them; Omega's build checks that its |
| 22 | copies equal the ones in the pinned CUDA++ (`make check-cudapp-shared`), and only one copy is ever |
| 23 | linked into a program (Omega's own build compiles its copies, never CUDA++'s). |
| 24 | |
| 25 | Step 2 replaces this with a small `cudapp_base` (SHA-256 plus the two spec structs) owned by CUDA++, |
| 26 | moves the vector execute path that needs the Omega program graph (`omega_vector.c`, |
| 27 | `omega_vector_build_spec_graph`) to Omega, and removes `omega_core`, `omega_canonical` and the Omega |
| 28 | type header from CUDA++. Done when: CUDA++ builds with no file from `shared.txt`, and Omega's golden |
| 29 | tokens are unchanged. |
| 30 | |
| 31 | ## Step 3: the `cudapp` names |
| 32 | |
| 33 | After the open branches listed in Omega's `opencuda/consume` handoff have landed (so nothing is |
| 34 | carried any more), one mechanical rename per prefix, each its own commit with the build and every |
| 35 | host test green and the 35B golden tokens unchanged: |
| 36 | |
| 37 | | Now | Then | |
| 38 | | --- | --- | |
| 39 | | `src/omega_gpu_*.{c,h}`, `omega_gpu_*` functions | `src/cudapp_*`, `cudapp_*` | |
| 40 | | `src/omega_blackwell_*`, `omega_blackwell_*` / `bw_*` | `src/cudapp_sm121_*`, `cudapp_sm121_*` | |
| 41 | | `OMEGA_GPU_*`, `OMEGA_BW_*` macros | `CUDAPP_*`, `CUDAPP_SM121_*` | |
| 42 | | `libomega_gpu.a` | `libcudapp.a` only | |
| 43 | | `nvrm_*`, `m16_*` (driver client) | unchanged | |
| 44 | |
| 45 | Omega keeps compatibility headers with the old names for one release, then drops them. |