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/omega-mv/blob/main/gpu/nvidia/README.md # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / gpu / nvidia / README.md` 64 lines ยท 5050 bytes Raw Blame History Rendered 1 # gpu/nvidia: the NVIDIA units of Omega GPU 2 3 Omega GPU is the GPU layer of Sovereign Intelligence (SI), the stack Drake named, with Omega as its language and 4 compiler. This directory holds its NVIDIA (sm_121, Blackwell, GB10) units. They are seeded Omega built by this 5 repository's own `seed/out/omc`, and they come from CUDApp one piece at a time (aien-architecture-mv ADR 0047). 6 7 | Path | What it is | 8 | --- | --- | 9 | `om/encoder/bw_enc_sm121.om` | The sm_121 encoder ng pins: a solved BlackwellIR program to machine code, four 32-bit words per instruction. | 10 | `om/components/bw_alloc.om` | The BlackwellIR builder and register allocator (native migration of `omega_bw_ir_append` and `regalloc_solve`). | 11 | `om/cubin/cubin_elf.om` | The cubin writer (the body of `omega_cubin_pack`). | 12 | `native/blackwell/launch.om` | The Blackwell launch unit (VECTOR_1D launch ABI). | 13 | `native/nvrm/context.om` | The nvrm context unit (NVIDIA driver client, ABI 580.173.02). | 14 | `import/` | How these came from CUDApp: the filter-repo command and its commit map. | 15 16 The table lists the five units step 2 brought. Step 3 brought the rest of CUDApp's `om/` tree to `gpu/nvidia/om/`; 17 `gpu/UNITS.md` describes it and its gate. 18 19 ## Where they came from 20 21 These are exactly the five files `seed/ng/cudapp.lock` pins. Step 2 brought them at CUDApp 22 ``1988c50e93c4dd971bcb94e69692c8e57e53f54b``, with the history of those paths (27 CUDApp commits, 23 `import/filter-repo-command.txt`). Old paths: `om/` became `gpu/nvidia/om/`, `native/` became `gpu/nvidia/native/`. 24 On 2026-11-14 `bw_enc_sm121.om` and `cubin_elf.om`, and then in its own commit `launch.om`, were replaced by the 25 bytes of CUDApp main ``84b524cadaaa8bc9b556adfaea9d6dd2e0d67a66``; each commit names the CUDApp commits between, and 26 that later history was not imported. `bw_alloc.om` and `context.om` are the same at both commits, so all five files 27 are now `84b524ca`'s, the commit `seed/ng/cudapp.lock` names. Each file's sha256 equals its row there. 28 29 This repository also has another copy of the encoder at the top level: `om/encoder/bw_enc_sm121.om`. 30 The `Makefile`, `mk/om-encoder.mk` and `mk/omega-gpu-engine.mk` link that copy. The encoder Omega NG pins, 31 and `seed/ng/cudapp.lock` hashes, is `gpu/nvidia/om/encoder/bw_enc_sm121.om`. Those are the two reasons 32 they stay two files: the lock row, and ops 64..79, which only the pinned file encodes. Op 11 and op 21 33 were bugs in the linked file, now fixed to this file's words. Op 11 dropped the signed offset, so 34 nvdisasm read `LDG.E R4, desc[UR4][R8.64]` instead of `LDG.E R4, desc[UR4][R8.64+0x40]` for imm 64. 35 Op 21's word2 was ``202250496``, which nvdisasm reads as `LDG.E.EF`; it is ``203364608``, `LDG.E.MMIO.GPU`. 36 `om/encoder/guard-gate.sh` checks the guard on both and exits nonzero while any other word on ops 0..63 37 still differs. 38 39 ## The gate 40 41 `seed/ng/gpu/gate.cases`, run by `seed/qualification/om2/gate.om` (see `seed/ng/gpu/README.md`), checks these 42 bytes: the `lock-*` cases hash each file against its lock row, `enc-pin` pins the encoder's compiled bytes, and the 43 fixture, refusal and mutant cases check the encoder's output. The move changed only the paths the cases read 44 (`../CUDApp/` became `gpu/nvidia/`). The 2026-11-14 replacements changed the `lock-self`, `lock-bw_enc_sm121`, 45 `lock-cubin_elf`, `lock-launch` and `enc-pin` digests and nothing else: every golden file, expected exit and mutant is 46 unchanged, and all 18 cases pass with the new bytes. `enc-pin` is what this repository's `seed/out/omc` emits for the 47 new encoder, an identity pin; the behaviour evidence is the fixture, refusal and mutant cases. The gate checks no 48 behaviour of `launch.om`, only its identity. The rows of `seed/ng/cudapp.lock` still name the CUDApp paths. 49 50 ## Not here yet 51 52 - A behaviour check of `launch.om` here. CUDApp's is `tests/host-trace/run-host-trace.sh`: Omega checks with a fake 53 device (`tests/host-trace/*.om`) composed by shell, including the batch path `native/blackwell/batch.om` and a 54 mutant of `launch.om`. It has not moved. `launch.om` has not been run on the GPU from this repository. 55 - Retiring `seed/ng/cudapp.lock`. Under ADR 0047 Decision 5 it is deleted with its last row. Here it stays as the 56 identity table of the five files, because removing it changes the gate (`lock-self` and the `lock-*` rows). That 57 is its own change. 58 - The rest of CUDApp's NVIDIA pure-Omega layer is now here: steps 3 (`om/`) and 4 (`native/`), plus the 59 post-``84b524ca`` CUDApp ``a4ffab1d`` units (`coder/erc.om`, `moe-wide/*`), standalone `.om` tools and 60 compat (`tools/{c5,omtrace,prof,tilelab}/`, `compat/cuda/c0_check.om`, `lib/{xorwow_mix,graph_aux}.om`), 61 pure-Omega CLI replacements (`tools/{sm121dis,doctor,dagsim}/main.om`), and the pure-Omega Linux RM/UVM 62 driver device backend (`driver/device.om`), all compile-gated by `gpu/extra-units.tsv` (49 units). 63 The legacy C compatibility library in CUDApp `src/` stays upstream as the reference oracle until Omega 64 emits C-callable shared/static libraries directly (`gpu/runtime/CLASSES.tsv`).