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/patches/162e56a95f9e04c5 # 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 ## GitHub aien-dev/CUDApp#170 (code only) merged derived `162e56a95f9e04c5` #170 Imported from GitHub aien-dev/CUDApp#170 (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 `99ec26647cfed26d43b3c994b5f2e5e48223f095` · Head `99ec26647cfed26d43b3c994b5f2e5e48223f095` github-advanced-security[bot] commented on `tests/ampere_cubin_test.c` line 69 on 2026-10-28 17:10 UTC ## CodeQL / File created without restricting permissions A file may be created here with mode 0666, which would make it world-writable. Show more details github-advanced-security[bot] commented on `tools/ampere_corpus.c` line 17 on 2026-10-28 17:10 UTC ## CodeQL / File created without restricting permissions A file may be created here with mode 0666, which would make it world-writable. Show more details github-advanced-security[bot] commented on `tools/ampere_corpus.c` line 17 on 2026-10-28 17:10 UTC ## CodeQL / Uncontrolled data used in path expression This argument to a file access function is derived from user input (an environment variable) and then passed to fopen(__filename). Show more details github-advanced-security[bot] reviewed (COMMENTED) on 2026-10-28 17:10 UTC drakestapleton reviewed (COMMENTED) on 2026-10-30 11:30 UTC Classification: blocked (needs on-hardware evidence). - RTX 3090 / 3060 Ti execution, loader acceptance, BAR/coherence, device numerics and VRAM-refusal proof are all NOT_RUN. Host simulation and offline nvdisasm are not physical qualification. - CodeQL comments on `tools/ampere_corpus.c:17` (file created 0666; `fopen` path derived from an environment variable) still sit on head `3b6ca6f`. The CodeQL check is green, so either confirm they are fixed or dismiss them with a reason. - GitHub has not computed mergeability for this PR (state unknown). - The body says "Draft, not merged", but the PR is not marked draft; please align. - Very large (180 files, +69k). Consider splitting encoder / cubin / runtime. - To become merge-ready: physical RTX receipts under `evidence/`, the CodeQL items resolved, mergeability confirmed. — Grokbot drakestapleton reviewed (COMMENTED) on 2026-10-30 11:33 UTC Follow-up: ADR 0043 (now on aien-architecture-mv main, `docs/adr/0043-gpu-stack-portable-top-thin-backend.md`, Status: Accepted 2026-10-30, merged via #343) affects this PR. What the ADR says: - Decision 1: thin backends (driver client, command encoding/QMD, code-object writer, per-target lowering and machine-code encoder) are "`.om` for every new backend" and live in CUDApp `backend//`. Only the existing GB10 C files stay where they are in `src/`, `nvrm/`, `m16/` as migration. - Context / PLAN rule: "any new C needs a missing-feature reason with an extension proposal filed, behind a `migration-pending` build switch." - Decision 0: no P2–P4 code until P0's head-to-head is published and C2–C5 are QUALIFIED on the GB10; until then only design docs, extension proposals and host-only experiments "that touch no shared file". Where #170 conflicts (sm_86 is a new backend): - New hand-written C for the sm_86 target: `src/omega_ampere_codegen.{c,h}`, `src/omega_ampere_qmd.{c,h}`, `tools/ampere_corpus.c`, `tools/ampere_families.c`, plus new C tests (`tests/ampere/*.c`, `tests/test_ampere_*.c`, `tests/ampere_cubin_test.c`). None of it is in `backend/sm86/`, and I don't see a `migration-pending` switch or extension-proposal reference for it. - The sm_86 encoder/runtime `.om` units are in `om/encoder/` (`ampere_enc_sm86.om`, `amp_runtime.om`) rather than `backend//`. - Sm_86 code-object writing is added to shared GB10 files (`src/omega_cubin.c` +67, `src/omega_cubin.h` +21, `om/cubin/cubin_elf.om` +48), along with shared runtime/driver files (`src/omega_gpu_session.c`, `src/omega_gpu_platform_linux.c`, `nvrm/nvrm.c` +170). Decision 0 allows only experiments that touch no shared file before the gate. Suggestion: rebase onto the ADR layout: sm_86 encoder, QMD and code-object writer as `.om` under `backend/sm86/` (or the target name the ADR's ABI uses), keep shared GB10 files unchanged, and put any remaining C behind `migration-pending` with its missing-feature reason. Alternatively, state how this PR fits the Decision 0 gate. Classification unchanged: blocked (now also on ADR 0043 conformance, in addition to RTX hardware evidence). — Grokbot drakestapleton reviewed (COMMENTED) on 2026-10-30 12:01 UTC Follow-up: ADR 0044 is now on aien-architecture-mv main at `docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md` (Status: "Accepted (Primate, 2026-10-30).", merged via #357, `e5262c3`). It names this PR directly: "CUDApp#170 rebases onto this layout." (The ADR 0043 points are in my earlier review.) What ADR 0044 says: - Ownership: "Option B. One cubin writer per NVIDIA target family, owned by CUDApp." / "CUDApp owns all cubin writing, the sm_80 family included, under `backend//`. The NVIDIA `backend//` directory does not exist on CUDApp yet. It is created when the work moves. New writer work goes only into `.om`." - `om/cubin/cubin_elf.om`: "B. `cubin_elf.om` is canonical." Context: "The hosted build packs through `om/cubin/cubin_elf.om`." - `src/omega_cubin.c`: "`omega_cubin.c` is frozen, and it is retired only after the `.om` writer produces byte-identical sm_121 cubins and loads on GB10. That removal is a later, separate PR." Context: "The C body is slated for deletion." Mapping to this diff (head `3b6ca6f`): - `src/omega_cubin.c` (+67) and `src/omega_cubin.h` (+21): this is new writer work in the frozen C body. To comply, drop these changes and leave both files exactly as on main. - `om/cubin/cubin_elf.om` (+48): `.om` is the right language and this is the canonical writer. sm_86 is in the sm_80 family, though, and the ADR puts cubin writing for that family under `backend//`. Either move the sm_86 writer work into the new `backend//` directory or explain why it extends `om/cubin/` in place. In both cases, keep the sm_121 output byte-identical. - `tests/ampere_cubin_test.c` and any other C that writes or patches sm_86 cubins: per "New writer work goes only into `.om`", the writing logic must be `.om`. A C test harness that only checks the output can stay if it writes nothing itself. - If this PR ports anything from omega-mv#864 (ABI 8 or register-reserve findings), the ADR says it comes into CUDApp "as new work". Please note the provenance in the PR body. Hardware: the ADR keeps hardware tiers "NOT_RUN until an authorized window". The RTX 3090/3060Ti execution here is still NOT_RUN. Classification unchanged: blocked. — Grokbot ### Code The head commit is on main: `99ec26647cfed26d43b3c994b5f2e5e48223f095` . ### 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 170 99ec26647cfed26d43b3c994b5f2e5e48223f095 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":170,"url":"https://github.com/aien-dev/CUDApp/pull/170","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:51Z","metadata":"unavailable","state_derived":true} ``` ### Changes There is no diff: the head commit is already on main.