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/aien-architecture-mv/patches/d14dd8c29fa830d7 # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aien-architecture-mv#372 (code only) closed derived `d14dd8c29fa830d7` #372 Imported from GitHub aien-dev/aien-architecture-mv#372 (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 `12e8c7de510f85c61ae8809a9b15467c51233783` · Head `42b61d5930fea93b1a7ab83987313d94470dc35d` ### Apply it ``` git checkout -b patch-d14dd8c29fa830d7 12e8c7de510f85c61ae8809a9b15467c51233783 curl -fsSL https://interplane.io/drakestapleton/aien-architecture-mv/patches/d14dd8c29fa830d7.patch | git am ``` Raw patch (mbox) · Diff ### 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/aien-architecture-mv 372 42b61d5930fea93b1a7ab83987313d94470dc35d ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-architecture-mv","number":372,"url":"https://github.com/aien-dev/aien-architecture-mv/pull/372","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:04Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md b/docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md index 75427d1..3ca6707 100644 --- a/docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md +++ b/docs/adr/0044-one-cubin-writer-per-nvidia-target-family.md @@ -5,15 +5,15 @@ This ADR moves no code. **Related:** ADR 0042 (ARCH-0042) Decision 7, ADR 0043 call 15 (merged #343; CUDApp pin `780a0af1`). [CUDApp#108](https://github.com/aien-dev/CUDApp/issues/108) tracks consolidation. [CUDApp#170](https://github.com/aien-dev/CUDApp/issues/170) rebases onto this layout. -[CUDApp#190](https://github.com/aien-dev/CUDApp/pull/190) is the inventory note. +[CUDApp#190](https://github.com/aien-dev/CUDApp/pull/190), merged 2026-10-30 as `78fea51d`, added the inventory `docs/CUBIN_WRITERS.md`. [omega-mv#864](https://github.com/aien-dev/omega-mv/pull/864) holds `seed/sm80/cubin.om`. --- ## Context -On CUDApp main `d79519e0` the sm_121 ABI 8 writer is one writer with two bodies -([CUDApp#190](https://github.com/aien-dev/CUDApp/pull/190)). `src/omega_cubin.c` writes the +On CUDApp main `d79519e0` the sm_121 ABI 8 writer is one writer with two bodies (inventory: +`docs/CUBIN_WRITERS.md`, added by [CUDApp#190](https://github.com/aien-dev/CUDApp/pull/190)). `src/omega_cubin.c` writes the container only: it opens no device and performs no launch. The hosted build packs through `om/cubin/cubin_elf.om`. The C body is slated for deletion. ADR 0043 call 15 cites the older CUDApp pin `780a0af1`, where the GB10 column of `ob_code_load` names `omega_cubin.c` for cubins. @@ -23,6 +23,10 @@ omega-mv `seed/sm80/cubin.om` exists only on closed draft omega-mv#864. It accep [omega-mv#864](https://github.com/aien-dev/omega-mv/pull/864#issue-6050605672) reports libcuda load PASS lines: vecadd/ctl PASS on an RTX 4090 (sm_80/86/89), a B200 (sm_100), and an RTX 5090 (sm_120). Those lines are reported by that PR and were not independently re-run for this ADR. +The same body reports what did not pass: the cubin without `.note.nv.tkinfo` still LOAD_FAILs +(200) on sm89 and sm120; sm_103 is NOT_RUN; sm_90 ABI 8 is NOT_RUN (the H100 hosts had driver +550), while sm_90 ABI 7 vecadd/ctl PASS; the alu.s2 schedule race (WRONG/700 on sm89) is open. +sm_87 is in the accepted list but has no load line. ADR 0042 (ARCH-0042) makes CUDApp the owner. Decision 7 requires a separate consolidation decision by Drake. This ADR records that decision (option B, 2026-10-30). ADR 0043 @@ -30,7 +34,7 @@ does not cover the sm_80 family. ## Options -The count is the one in CUDApp#190: two bodies of the sm_121 writer, plus `cubin.om`. +The count is the one in CUDApp `docs/CUBIN_WRITERS.md` (CUDApp#190): two bodies of the sm_121 writer, plus `cubin.om`. - **A.** Keep both bodies and keep `cubin.om`. - **B.** `cubin_elf.om` is canonical. @@ -44,7 +48,12 @@ CUDApp owns all cubin writing, the sm_80 family included, under `backend//` directory does not exist on CUDApp yet. It is created when the work moves. New writer work goes only into `.om`. `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. +That removal is a later, separate PR. The source names a different trigger: the header comment +of `src/omega_cubin.c` (CUDApp main `183fa4f1`, line 18) says the C body "is deleted once the +freestanding binding lands". The two conditions differ. The freestanding binding is a build +prerequisite, because the freestanding build (`OMEGA_GPU_NO_POSIX`) still packs through the C +body (`docs/CUBIN_WRITERS.md`, writer row C). Retirement also needs this ADR's condition. This +ADR does not edit that comment. omega-mv#864's ABI 8 and register-reserve findings are ported into CUDApp as new work. No writer stays in omega-mv except a declared, pinned oracle (ADR 0042 Decision 4). CUDApp#170 @@ -52,9 +61,13 @@ rebases onto this layout. ## Consequences -CUDApp#108 tracks consolidation, and CUDApp#190's note becomes the inventory. tkinfo on -sm_121 ABI 8 and the stored register count are tracked in CUDApp#190. The alu.s2 race issue -is [CUDApp#191](https://github.com/aien-dev/CUDApp/issues/191). Hardware tiers stay NOT_RUN until an authorized window. +CUDApp#108 tracks consolidation. ADR 0042 Consequences names each owner's issue as the place a +later consolidation decision is recorded; for the cubin writer that issue is +[CUDApp#108](https://github.com/aien-dev/CUDApp/issues/108), and this ADR is that decision. +The inventory is CUDApp `docs/CUBIN_WRITERS.md`, added by merged PR CUDApp#190. It records the +tkinfo difference on sm_121 ABI 8 and the stored register count; that open work is tracked in +CUDApp#108 (its REGS+2 and tkinfo findings, "Done when" 3). +The alu.s2 race issue is [CUDApp#191](https://github.com/aien-dev/CUDApp/issues/191). Hardware tiers stay NOT_RUN until an authorized window. This ADR moves no code. ## Source @@ -62,5 +75,5 @@ This ADR moves no code. - ADR 0042, merged as #342. Decision 7 requires the separate consolidation decision recorded here. - ADR 0043, merged as #343 (`a0a7146`). Call 15 (`ob_code_load`) cites CUDApp `780a0af1`. - CUDApp main `d79519e0`: `src/omega_cubin.c` and `om/cubin/cubin_elf.om`. -- CUDApp#108, CUDApp#170, CUDApp#190. +- CUDApp#108, CUDApp#170, CUDApp#190 (merged as `78fea51d`; `docs/CUBIN_WRITERS.md` on CUDApp main `183fa4f1`). - omega-mv#864, `seed/sm80/cubin.om` on `ck/cubin-om` (`76639738`). ```