CodeQL / File created without restricting permissions
A file may be created here with mode 0666, which would make it world-writable.
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
A file may be created here with mode 0666, which would make it world-writable.
A file may be created here with mode 0666, which would make it world-writable.
This argument to a file access function is derived from user input (an environment variable) and then passed to fopen(__filename).
Classification: blocked (needs on-hardware evidence).
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.
evidence/, the CodeQL items resolved, mergeability confirmed.
— Grokbot
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:
.om for every new backend" and live in CUDApp backend/<target>/. Only the existing GB10 C files stay where they are in src/, nvrm/, m16/ as migration.
migration-pending build switch."
Where #170 conflicts (sm_86 is a new backend):
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.
.om units are in om/encoder/ (ampere_enc_sm86.om, amp_runtime.om) rather than backend/<target>/.
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
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:
backend/<target>/. The NVIDIA backend/<target>/ 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/<target>/. Either move the sm_86 writer work into the new backend/<target>/ 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.
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
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}