interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

GitHub aien-dev/omega-harness#63 (code only)

closed derived 3ab0a050629b3da0 #63

Imported from GitHub aien-dev/omega-harness#63 (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 82b89c28b33c74cfc9e05cd50e115158ddb846e2 · Head c8482d546e05c64ba01f9783578ac5120794563b

Apply it

git checkout -b patch-3ab0a050629b3da0 82b89c28b33c74cfc9e05cd50e115158ddb846e2
curl -fsSL https://interplane.io/drakestapleton/omega-harness/patches/3ab0a050629b3da0.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/omega-harness
63
c8482d546e05c64ba01f9783578ac5120794563b
{"kind":"github-import","owner":"aien-dev","repo":"omega-harness","number":63,"url":"https://github.com/aien-dev/omega-harness/pull/63","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:46Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md
index 316d30b..1a6f778 100644
--- a/skills/omega-harness/SKILL.md
+++ b/skills/omega-harness/SKILL.md
@@ -146,6 +146,39 @@ Merged as `3a10bd29fb7debdcf2c8f5cb58680cc74cb5b1f3`; compiler pin unchanged.
   contract checks. No DPC++, Level Zero, GPU or Alpha qualification is implied.
   The standalone acceptance gate is not wired into protected gate manifests.
 
+### CUDA cubin writer (pending omega-mv #864)
+
+`seed/sm80/cubin.om` in draft [omega-mv #864](https://github.com/aien-dev/omega-mv/pull/864)
+(stacked on #836) wraps raw 16-byte SASS into a cubin: `cubin SM ABI API REGS NAME SIG < code.bin`.
+It is unmerged; check the PR state before relying on it.
+
+- `REGS` is the registers the code uses (highest Rn + 1, counting pair tops). The cubin records
+  `REGS + 2`: Volta+ hardware burns 2 GPRs for the program counter (Mesa NAK
+  `hw_reserved_gprs`; nvcc 13.0 records highest Rn + 3). Recording the bare count made the top
+  2 registers illegal: alu/ctl writing R14/R15 with REGCOUNT 16 failed `cuCtxSynchronize` with
+  715 `CUDA_ERROR_ILLEGAL_INSTRUCTION` on sm_80/86/89 (OpenResearch boxes, 2026-10-26). Exit 6
+  refuses `REGS` below a destination register.
+- Localising a device fault without a debugger: build variants with instruction N replaced by
+  EXIT and find the first N that faults. A forward branch that jumps past the cut reaches the
+  later code anyway, so a fault below the true boundary can be an artifact; check branch targets.
+- ABI 8 cubins (CUDA 13 style) failed `cuModuleLoadData` with 200 `CUDA_ERROR_INVALID_IMAGE`
+  on 535 and 580 drivers. #864 adds `.note.nv.tkinfo` and the cuinfo link to it, drops
+  `EIATTR_SW2861232_WAR`, and at sm_90+ writes nvcc's `.text`/cuinfo `sh_info`. On RTX_4090-002933
+  (driver 615.71.09) vecadd v8 with tkinfo PASS and the same image without it LOAD_FAIL 200
+  (EXERCISED on chip, sm_89 only). Those runs exercised the encoding via NVIDIA libcuda (interop
+  oracle), not CUDA++.
+- Scoreboards arm 2 cycles after the setting instruction issues (Mesa NAK `calc_instr_deps.rs`,
+  `bars[bar] + 2`). A variable-latency instruction that sets a scoreboard with stall 1, followed
+  by an instruction that waits on it, lets the wait pass early: hand-written alu on sm_89 read a
+  stale pointer and wrote 33 to 289 wrong words or faulted (700/716/717), varying run to run, on
+  four RTX 4090 rentals. Write stall 2 there. The cubin.om in
+  [omega-gpu-bench #6](https://github.com/aien-dev/omega-gpu-bench/pull/6) refuses the pattern
+  with exit 7 (and stall 0 on any setter); it still has to be carried into #864. The fixed images
+  are host-built only; their chip re-run is NOT_RUN.
+- `omega-gpu-bench/kernels/src/oracle.sh` checks any cubin against nvdisasm/cuobjdump/readelf as
+  read-only oracles (header, tkinfo, decode, registers ≥ highest + 3, set-to-wait ≥ 2). It needs a
+  CUDA toolkit, so it runs on the Spark, not in CI.
+
 ## 4. Effects and authority
 
 - A proposed program or effect description does not authorize running it. Confirm capability and privilege at the execution boundary. Model confidence and semantic identity grant no authority.