From 5bdafec3eb9dc4c07d03d4069e439d518add2ca7 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Mon, 26 Oct 2026 19:29:03 -0500 Subject: [PATCH 1/2] omega-harness: pending cubin.om writer notes (omega-mv #864): Volta+ 2-GPR reserve, EXIT-cut fault localisation, ABI 8 load fix NOT_RUN Signed-off-by: Drake Stapleton --- skills/omega-harness/SKILL.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index 316d30b..06995fb 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -146,6 +146,28 @@ 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`. Whether that + fixes loading is NOT_RUN until a retest; ABI 7 vecadd at sm_80/86/89 is the only loading form + with a PASS receipt. Those runs exercised the encoding via NVIDIA libcuda (interop oracle), + not CUDA++. + ## 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. From c8482d546e05c64ba01f9783578ac5120794563b Mon Sep 17 00:00:00 2001 From: aien-spark Date: Tue, 27 Oct 2026 03:16:00 -0500 Subject: [PATCH 2/2] omega-harness: cubin writer notes: ABI 8 tkinfo load exercised on sm_89, 2-cycle scoreboard rule and exit 7 (omega-gpu-bench #6), offline oracle --- skills/omega-harness/SKILL.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/skills/omega-harness/SKILL.md b/skills/omega-harness/SKILL.md index 06995fb..1a6f778 100644 --- a/skills/omega-harness/SKILL.md +++ b/skills/omega-harness/SKILL.md @@ -163,10 +163,21 @@ It is unmerged; check the PR state before relying on it. 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`. Whether that - fixes loading is NOT_RUN until a retest; ABI 7 vecadd at sm_80/86/89 is the only loading form - with a PASS receipt. Those runs exercised the encoding via NVIDIA libcuda (interop oracle), - not CUDA++. + `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