interplane.Get Omega
Read in your language

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

Runtime R3: hardware abstraction note and portability table

Closed · #596 · open 2026-10-19 21:49 UTC · closed 2026-11-06 03:15 UTC (reason completed)

Imported from GitHub aien-dev/omega-mv#596, by drakestapleton

drakestapleton wrote on 2026-10-19 21:49 UTC

R3. Hardware abstraction note and portability table. docs/runtime/PORTABILITY.md: which parts of Omega are chip-specific (machine-code encoder, launch descriptor, class numbers, cache rules) and which are not; the platform contract; the three backends (Linux open driver today, WSL2 /dev/dxg on rig/gb20x, native AIENOS planned); what a new GPU needs. A table of every src/omega_gpu_* and src/omega_blackwell_* file marked chip-specific or portable. Reuses: src/omega_gpu_platform.h, docs/numeric/OMEGA_GPU_NATIVE_BOUNDARY.md, rig/gb20x docs/rig/dxg-backend.md, aien-rig docs/WINDOWS-GPU-PATH.md, aienos docs/GB10_NATIVE_DEPENDENCY_MAP.md. Done when: the doc is pushed and make test-runtime-portability (host) passes and fails when a new GPU file is added without a row. That check proves every file has a row, not that each row is right; each "portable" row names the reason (for example "no Linux header, builds in make gpu-engine-freestanding").

Part of #593. Full roadmap: docs/runtime/ROADMAP.md on branch runtime/roadmap. Branch for this slice: runtime/r3-portability. Rules: reuse before you build; receipts for every claim; builds via quiet-build, GPU runs via quiet-measure.

drakestapleton wrote on 2026-10-19 22:03 UTC

R3 done on branch runtime/r3-portability @ 92cd9145766ef9ef93baa15ad4e7a044b7865f67 (READY line in the PR desk log; no PR opened).

  • docs/runtime/PORTABILITY.md: chip vs OS/driver, platform contract ABI 1.2, the three backends (Linux open driver, WSL2 /dev/dxg, native AIENOS), and a 10-step 'what a new GPU needs' list. Every claim cites a file.
  • docs/runtime/portability_table.tsv: 102 rows (87 CHIP_SPECIFIC, 15 PORTABLE), with an extra os_binding column.
  • make test-runtime-portability: PASS. Eight scratch negative controls all behave (new file without a row FAILs; PORTABLE row on a file that includes nvrm.h FAILs; also missing-file row, Blackwell-include relabel, a freestanding-file regression; a guarded include correctly does not trip). Real-tree dummy file also FAILs, then PASS once removed. make gpu-engine-freestanding re-run: exit 0, 14 files, only memcpy/memset/strcmp/strlen undefined. Logs: evidence/RUNTIME-R3-PORT/. Host only, no GPU run.

Findings: (1) the session, command list, matmul and attention code are OS-free but still hold GB10 constants (class 0xcec0 setup words, method numbers, sm_121 stall counts), so the platform contract hides the driver, not the chip. (2) The 0xcec0 setup block is copied into 11 files. (3) The rig/gb20x dxg backend uses its own OmegaSubmitOps interface and does not use OmegaGpuPlatform; not edited (L024). (4) The aienos dependency map is pinned to older Omega 2ae8677c.

Note: Makefile line 5 already includes mk/*.mk, so no extra include line was added (a second one would define the targets twice).

drakestapleton wrote on 2026-10-23 00:51 UTC

Recovered, source-reviewed and locally queued; not merged

The original R3 implementation runtime/r3-portability@92cd9145766ef9ef93baa15ad4e7a044b7865f67 had no matching PR or authoritative READY queue entry. It has been reused, not reimplemented.

Independent review L637 found real portability overclaims. The parent checked actual contracts, corrected five headers plus the serving wrapper to CHIP_SPECIFIC, and updated the reasons/summary. The evidence is tile/packing/layout/cache/queue/backend semantics, not merely hardware names in comments. Corrected counts are 93 CHIP_SPECIFIC, 9 PORTABLE, 102 total. No runtime/compiler/checker implementation changed.

Final candidate: qualification/runtime-r3-L636@0dbed9c1da5c9b27b70ffb11a41ac84c6af60490, carrying and superseding the original branch for delivery.

Verification:

  • Actual final-head make test-runtime-portability: exit0; all original positive/negative controls behaved, including the new-file-without-row refusal.
  • Source-anchor documentary oracle: original table RED exit1, corrected table GREEN exit0.
  • Pinned crumb tool d0f0b95d344b4c6628c3d868346932fd247ce168: compile/verify passed, 157 crumbs current.
  • Exact GitHub head and the saved queue entry were read back. The installed Renda importer returned ACCEPTED_LOCAL_NOT_PUBLISHED, with number=null and remote_observed_at=null, not a fabricated PR identity.

Source, review disposition and raw receipts.

Renda retains PR/review/signed-gate/merge ownership (L638). This issue stays OPEN pending final integrated acceptance. No GPU/WSL/native execution or performance qualification is claimed; source/include coverage does not prove all portability prose automatically. The review finding was corrected by the parent with tests; no second independent review is claimed.

Sign in to comment