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

GitHub aien-dev/CUDApp#121 (code only)

merged derived ecd0d632b5b4776c #121

Imported from GitHub aien-dev/CUDApp#121 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base f04a9d74f2c0ce78c48ec50f07d1e1548af3a2c3 · Head f04a9d74f2c0ce78c48ec50f07d1e1548af3a2c3

- reviewed (COMMENTED) on -

TrainCarry review (non-author), head f04a9d74f2c0ce78c48ec50f07d1e1548af3a2c3 (TrainCarry2; = #125's merge into this branch)

Provenance: re-running carry.sh on omega-mv e5b32567 reproduces cut tip e60d98c5, the merge's second parent; git cherry e5b32567 f792cd1d is all - (the C4/C5 line is already in).

Defects found and fixed on this branch

  • e08de6c: merge of #120's branch.
  • 8e924c4: the carried C4/C5 surface was undeclared (make test-runtime-api FAIL). Declared EXPERIMENTAL omega_gpu_cmdlist_submit_pair, omega_gpu_cmdlist_wait_for, OmegaGpuCmdListOpts.first_barrier_none, omega_gpu_session_extra_queue, omega_gpu_session_recover, omega_gpu_session_recoveries; INTERNAL omega_gpu_session_latch_uncertain, omega_gpu_session_note_module_latch.
  • b1b4d92 (TrainCarry2): merge of #120 at 3f21f4f (main 67f3135, which brings #101's CudaAuditFable Q6). Conflict in src/omega_gpu_platform_linux.c ref_queue_submit/ref_queue_retire, Q6 in-flight refusal vs L136 extra channels. Resolved per queue: caps.max_inflight is "jobs in flight per queue" and every extra-channel ring is also rewritten from offset 0, so each extra queue gets its own xinflight[slot] with the same REFUSED_BUSY before any copy or doorbell; retire clears it (driver retire only when something is in flight); channel 0 keeps #101's code. New host case EXTRA_QUEUE_SUBMIT_REFUSED_WHILE_UNRETIRED (fake driver gains fk.extra_channels). The extra-queue refusal is host-only (simulated driver), NOT_RUN on the GB10.
  • 12d9c8c (TrainCarry2): b1b4d92 left a stray } from the resolution and did not compile; removed. (It was pushed before compiling; the #125 tip caught it.)
  • f04a9d7: #125 merged into this branch (bottom-up order, below), bringing the nvrm/ update, the sha256 rule and the portability rows; git diff --stat f96849b f04a9d7 is empty.
  • e15047d: merge of #120 at f9ddd1e (0.4.0); this carry becomes Runtime API 0.5.0. Also declares omega_gpu_fp8_grouped_ctas_rule/_auto (EXPERIMENTAL) and OMEGA_GPU_SM_COUNT (INTERNAL), which e5b32567 adds to a header #124 put under the manifest (the check failed on exactly these three before the fix).

Earlier commands (clone pr121 at e15047d, superseded by the host gates below)

  • make build rc=0
  • make test-runtime-api rc=0: RESULT: PASS (runtime API 0.5.0: 294 functions, 44 structs, 407 fields, 208 constants match the headers; surface 682 names, 180 INTERNAL), RESULT: PASS (every negative control was caught)
  • make test-runtime-api-semver RUNTIME_API_BASE=origin/carry/live-6de999da rc=0: six MINOR: ... added (EXPERIMENTAL) lines, RESULT: PASS (version 0.4.0 -> 0.5.0; the entry changes need MINOR)

Negative control: Q6 resolution (logs/pr121-negctl.log, at f96849b): mutant (slot >= 0 ? 0u : r->inflight) fails EXTRA_QUEUE_SUBMIT_REFUSED_WHILE_UNRETIRED (13 passed, 1 failed); mutant (slot >= 0 ? r->xinflight[slot] : 0u) fails QUEUE_SUBMIT_REFUSED_WHILE_UNRETIRED (11 passed, 3 failed); reverted 14 passed. API: before the fix, the same check at the merge failed with FAIL: undeclared public entry ...: const OMEGA_GPU_SM_COUNT and the two fn omega_gpu_fp8_grouped_ctas_* lines; the control suite (including the 0.x semver controls) is caught as in #120.

Chain: #120, #121 and #125 merge back to back. Each lower head alone is not claimed green: the carried tree needs #125's nvrm/ update (omega_gpu_platform_linux.c uses the L136 extra-channel API), its sha256 rule fix (1287727) and its portability rows (edc1a96). The host gates below ran at #125's tip, which contains this head.

Host gates, run at #125's tip f96849b, whose tree this head equals (fresh clone /home/drakestapleton/work/Train/TrainCarry/f125d at f96849b2bec531b25362a2cbceb17bec202aa369, nice -n 19 taskset -c 10-14, 2026-10-27T05:38:59Z-05:52:05Z; logs /home/drakestapleton/work/Train/TrainCarry/logs/pr125d-*.log)

  • make -j4 rc=0
  • the carried chip-gate binaries (hello_gpu ... gpu_streams_test; gpu_scan_test is not in this tree, it comes with #112) rc=0
  • make test rc=0: CUDA++ HOST TESTS PASS (46 targets); inside it test_omega_gpu_platform_linux (reference only, simulated driver): 14 passed, 0 failed (incl. PASS QUEUE_SUBMIT_REFUSED_WHILE_UNRETIRED, PASS EXTRA_QUEUE_SUBMIT_REFUSED_WHILE_UNRETIRED) and test_nvrm_va_slots SUMMARY passed=10 failed=0
  • make zero-cuda-gate rc=0: ZERO_CUDA PASS build/gpu_matmul_api_test needs=[libc.so.6 ld-linux-aarch64.so.1]
  • make test-native-artifact rc=0: test_gpu_artifact_export: 47 checks, 0 failed
  • make test-runtime-api test-runtime-api-semver RUNTIME_API_BASE=origin/main rc=0: RESULT: PASS (runtime API 0.5.0: 294 functions, 44 structs, 407 fields, 208 constants match the headers; surface 682 names, 180 INTERNAL), RESULT: PASS (every negative control was caught), RESULT: PASS (version 0.3.0 -> 0.5.0; the entry changes need MINOR (MAJOR-class under major version zero))
  • GitHub CI at f96849b and again at this head f04a9d7: host-tests, hello-sim, library, runtime-api, drift, sbom all pass.

Merge order (Main-approved 2026-10-27): bottom-up. #125 into carry/omega-main-e5b32567, then #121 into carry/live-6de999da, then #120 into main. #120 alone is CI-red (host-tests: tests/gpu_gpr_boundary_test.c:49:11: error: missing initializer for field 'sched', run 40455750741) and #121 alone does not compile (NVRM_MAX_EXTRA_CHANNELS undeclared until this PR's nvrm/). Top-down would leave main red between merges; bottom-up gives every merge a green head and main one commit whose tree is the gated f96849b tree.

Chip: no small-list chip gate applies to a source carry. The P0.4 acceptance gate named in the body (golden tokens: a server built from this tree against the live one) is NOT_RUN: it needs a second 35B beside the live server, which waits for Drake's exclusive window. This review claims host evidence only. C4/C5 chip behaviour is reviewed on #113/#119, not here.

Guide check: git grep -i 'runtime api|semver|cudapp' on aien-dev/omega-harness main and the managed cudapp-hardware-qualification skill: no skill states the CUDA++ Runtime API version or its bump rule, so none needs updating (the rule lives in CUDApp docs/runtime/API.md §2).

Verdict: LAND (second to merge, bottom-up). Runtime API on this branch: 0.5.0.

Code

The head commit is on main: f04a9d74f2c0ce78c48ec50f07d1e1548af3a2c3.

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/CUDApp
121
f04a9d74f2c0ce78c48ec50f07d1e1548af3a2c3
{"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":121,"url":"https://github.com/aien-dev/CUDApp/pull/121","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:46Z","metadata":"unavailable","state_derived":true}

Changes

There is no diff: the head commit is already on main.