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#123 (code only)

merged derived c0e0a9979500a2ef #123

Imported from GitHub aien-dev/CUDApp#123 (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 662c19d082872378c260083555e26c6e55ca5baf · Head 662c19d082872378c260083555e26c6e55ca5baf

- reviewed (COMMENTED) on -

Non-author review, lane SplitBuild (ADR 0043 task P2.0)

This review comes from a different lane, not a different GitHub account. The aien-spark account authored this PR, so the review is posted as a comment and is not an approval. I checked every citation against 780a0af1; the src/ tree at this PR's base is identical. I fixed the defects myself in 31bf1d3 (signed off, normal push), on top of a4e9e8c. The companion ADR fixes are in aien-architecture-mv#343 at 27cefee.

Defects found and fixed in 31bf1d3

SevWhereFindingFix
Mediumdocs/review/CODEOWNERS.proposedCore path 1 owned only omega_blackwell_codegen.{c,h}. These files had no owner even though they emit machine code or code objects: the 15 per-kernel generators omega_blackwell_codegen_* (30 files), omega_blackwell_matmul.*, omega_blackwell_realize.* and omega_native_artifact.*, plus the inline emitters that ARCHITECTURE.md §2 classifies KER (omega_gpu_attention_api.c :69-143, omega_gpu_elementwise_api.c :61-145).Added all six patterns.
MediumARCHITECTURE.md §2 MIXED row"PCAS encode :261" points at the sync_cpu_to_gpu error path. The PCAS method words are at omega_gpu_cmdlist.c:308-309.Re-cited.
MediumARCHITECTURE.md §5"STABLE omega_gpu_launch" names a function that does not exist. The STABLE entries are omega_gpu_session_launch and OmegaGpuLaunch.Renamed.
LowARCHITECTURE.md §1The E3 summary left out the nesting cap, which ADR 0043 Decision 3 lists.Added it; linked E3 = aien-dev/omega-mv#883.
LowARCHITECTURE.md §4WolframLanguageEvaluator: 436*2048/1024 -> 872 gives KiB."872 KiB".

31bf1d3 also links the decode-path manifest step to #124 (P2.2). #124 is a separate draft against main: it changes only the manifest and API.md, and it does not touch any file in this PR.

Open (not fixed)

  • §4 "Submissions / doorbells: 1 / 1 (PCAS mode, cmdlist.c:325-333)". The range covers queue_submit through queue_retire, so the count is right. "PCAS mode" describes how each QMD is sent (:308-309), not the submit.
  • CODEOWNERS cannot reach checker2 or the IR lowering, because both live in omega-mv. ADR 0043 now says so (27cefee).
  • make test-runtime-api has no CI here: CUDApp has no workflows, and CodeQL is the only check. The core-path-4 owners therefore see manifest drift only if someone runs the target by hand.

Checked and TRUE

  • KER/DRV/MIXED classes.
  • The 17 kernel-API files that reach backend headers (11 directly; 6 through their public .h).
  • Manifest: 91 functions, 21 STABLE.
  • nvrm/, m16/ and the .om files listed under "Already .om" exist.
  • omega_gpu_session_launch at :445.
  • emit_tail :199, emit_stamp :219, emit_inline_qmd :226.
  • omega_gpu_fp8_api.c:269-275.
  • 436 = 9·48 + 4 (WolframLanguageEvaluator: 9*48+4 -> 436).
  • REVIEWING.md keeps PLAN.md's agent rule. Activating CODEOWNERS is left to Drake, and the file says it is inactive.

Labels: the fixes are IMPLEMENTED. The citations were EXERCISED by reading source. Nothing ran on a GPU.

- reviewed (COMMENTED) on -

Non-author review (TrainDocs, for Main) — head 662c19d0

Reviewed 31bf1d38, merged origin/main (fe1d05c3) on the branch (clean), and fixed four defects → 662c19d0. No force-push. All three files stay PROPOSED; no code moves.

Claims checked (at 780a0af1 unless noted)

ClaimResult
Line refs: session.c :18-19 qmd/submit includes, :445 omega_gpu_session_launch; cmdlist.c emit_tail :199, emit_stamp :219, emit_inline_qmd :226, PCAS :308-309, submit/retire :325-333; submit.c :102 omega_gpu_engine_set_backend, :185 m16_native_open; engine.c :125 nvrm_alloc_gpu_uncached, :516 m16_native_wait_marker; fp8_api.c :273 memcpy + sync :275; attention_api.c :69 / elementwise_api.c :61 emitall hold (git show 780a0af1:src/...)
nvrm.c 908 linesholds (wc -l)
OmegaGpuPlatform 1.2, 22 function pointers; OmegaGpuBackend 15 ops22 and 15 counted in the structs
manifest abi omega_runtime 0.1, 91 fn, 21 STABLE91 fn lines, 21 STABLE at 780a0af1 (#117 is still open)
436 launches = 9×48+4integer bookkeeping holds; per-token CPU bytes is marked [INFERENCE]
ADR 0043 = aien-architecture-mv#343open draft, "(PROPOSED, design only)", adds docs/adr/0043-gpu-stack-portable-top-thin-backend.md
E3 = omega-mv#883open, "E3 (PROPOSED)"
omega-mv#864 on HOLDMain HOLD comment 2026-10-27T01:20:58Z
crates/aien-serve-http, pin 754c07b1path exists in aien-sovereign-core-mv; commit resolves
Referenced docs (NOTICE, LICENSE_PROVENANCE, LICENSING_TRANSITION, AUDIT, PORTABILITY + tsv)all exist on main

Defects fixed (662c19d0)

  1. docs/REVIEWING.md §1.1 required Signed-off-by: / git commit -s. Drake declined DCO sign-off (2026-10-27); rule removed and stated.
  2. docs/REVIEWING.md §2.1 said nvcc/ptxas output "is never a source", which contradicts docs/HOW_I_DID_IT.md (nvcc + cuobjdump offline oracles; "Where nvcc and NAK disagree for sm_121, I follow what nvcc emits"). Now scoped to fields changed after activation, with the existing record stated.
  3. docs/ARCHITECTURE.md cited docs/HOW_I_DID_IT.md:35-39 for the nvcc preference; that sentence is line 36 on main. Fixed.
  4. Private local paths in public docs: ~/handoffs/GpuStack/PLAN.md (ARCHITECTURE l.15) and "PLAN.md's agent rule" (CODEOWNERS.proposed l.5) point at files not in this repo. Replaced with "GPU-stack plan" and "docs/REVIEWING.md section 1".

Commands run (fresh clone /home/drakestapleton/work/Train/TrainDocs/pr123)

  • No live owners file: .github/CODEOWNERS, CODEOWNERS, docs/CODEOWNERS absent → rc=0; gh api repos/aien-dev/CUDApp/codeowners/errors?ref=docs/architecture-split → 404 (GitHub sees no CODEOWNERS).
  • Negative control: touch docs/CODEOWNERS → check reports live docs/CODEOWNERS, rc=1; removed.
  • python3 tools/figures/make_figures.py --check → figures current: 10.
  • make test, make test-native-artifact, make zero-cuda-gate, hello_gpu --sim, make doctor: NOT_RUN (docs only).

Chip

NOT_RUN: docs only.

Verdict

LAND as PROPOSED documentation. Activating the owners file and any ruleset stays Drake's decision.

Code

The head commit is on main: 662c19d082872378c260083555e26c6e55ca5baf.

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
123
662c19d082872378c260083555e26c6e55ca5baf
{"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":123,"url":"https://github.com/aien-dev/CUDApp/pull/123","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.