omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / evidence / device-window / README.md
| 1 | # GB10 device windows for MISSION-REPORT §3 (DRA-105, omega-bridge #5) |
| 2 | |
| 3 | Script: `tools/run-device-window.sh` (its Omega successor, `tools/run-device-window.om`, |
| 4 | runs the same rows; see `tests/device-window/README.md`). Each `L939*` directory is one exclusive |
| 5 | `spark-window` lease (`--gb10 exclusive --quiet none --lease 20 --wait`), |
| 6 | opened and closed by id by the script. Every directory holds `window.txt` |
| 7 | (window id, host, bridge and CUDApp heads, script and input sha256), `rc.txt`, |
| 8 | one raw `NN-row.log` per row, each conformance row's device result files in |
| 9 | `NN-row.out/` (+ `.sha256`), and `torch-receipt.json`. Window 2 and 3 also |
| 10 | hold the exported cubins and manifests in `cubins/`. Nothing in these |
| 11 | directories was edited after the run. Box state at open and close is in |
| 12 | `~/yardsticks/windows/<window id>/{open,close}.json` on the Spark (not |
| 13 | committed). Host spark-b87b, driver 580.173.02, CUDApp `b774723f`, MAX 26.7.0, |
| 14 | torch 2.14.1+cpu. Ledger L939, kanban card t_a2d9375e. |
| 15 | |
| 16 | | Dir | Window id | Bridge head | Held | Rows rc 0 | Notes | |
| 17 | |---|---|---|---|---|---| |
| 18 | | `L939` | `20261107T025531Z-df9556` | `e6d73e0e` | 176 s | 1 of 9 | cubin rows probed the pre-fix CUDApp `evidence/MAX-INTEROP/68` images: 200 `INVALID_IMAGE` (rc 4). `max_runner.py --device gpu` left inputs on the host: `TypeError ... expected argument 0 to be on device gpu`, so every conformance row was rc 1 (Omega native GPU matmul and GQA passed in all six). Torch row PASS. Both defects fixed in `3c5f0902`. | |
| 19 | | `L939-w2` | `20261107T030636Z-94ee34` | `46ed1fc1` | 84 s | 8 of 10 | `cuCtxCreate` returned 2 `CUDA_ERROR_OUT_OF_MEMORY` on the first row (matmul cubin), and MAX `Accelerator()` returned the same in pair 2. All other rows passed. Cause not determined; not seen in window 3. | |
| 20 | | `L939-w3` | `20261107T030848Z-b5d44f` | `43ab4751` | 80 s | 10 of 10 | All rows PASS, see below. | |
| 21 | |
| 22 | Window 3 rows: |
| 23 | |
| 24 | | Row | Result | |
| 25 | |---|---| |
| 26 | | 01 cubin_probe matmul 16x16x8 (current writer, cubin `1dac563e…`) | load 0; `worst_abs=0 bad=0 untouched=0` | |
| 27 | | 02 cubin_probe `--load-only` GQA hq 8 hkv 1 hd 128 (`90b5c752…`) | `LOAD-PASS`; launch NOT_RUN (matmul-ABI probe) | |
| 28 | | 03 cubin_probe `--expect-reject` pre-fix 68 matmul (`7d130693…`) | 200 `INVALID_IMAGE`, `REJECT-PASS` (negative control) | |
| 29 | | 04-09 `conformance/run.sh --device`, 6 runs | 6/6 `CONFORMANCE HARNESS PASS`. Omega native GPU: matmul 12 checks, max abs error 0; GQA 13 checks, 2.39e-07. MAX 26.7 GPU: matmul 12 checks, 0; GQA 13 checks, 2.70e-07. Matmul output sha256 `60a7f7d4…` is the same for both runners in every run; GQA outputs differ (`c062db95…` Omega, `819f83e3…` MAX), both inside the oracle bound | |
| 30 | | 10 `attach/torch/test_cudapp_torch.py` | PASS: 12 cases inside bound, gemm_ex mutant 1 caught | |
| 31 | |
| 32 | Timings in `NN-row.out/*.json` are shared-machine diagnostics (quiet lock not |
| 33 | held) and measure different spans: Omega `seconds` is the whole |
| 34 | `omega_gpu_*` call, MAX `execute_seconds` is execute only. Medians over the 6 |
| 35 | window-3 runs (WolframLanguageEvaluator `Median`): Omega matmul 0.0603 s, |
| 36 | Omega GQA 0.0358 s, MAX matmul 0.214 s, MAX GQA 0.00110 s. They are not a speed |
| 37 | comparison. Not QUALIFIED: one chip, one driver, tiny shapes, results attested |
| 38 | only by the `SPARK_WINDOW` id. |
| 39 | |
| 40 | CPU dry-runs and controls beside these: `dry-run-L939.log` (window 1 inputs), |
| 41 | `dry-run-L939-w2.log` (cubin export + window 2/3 inputs). `dry-run.log` is the |
| 42 | earlier #78 dry-run from `64f76a56`. |
| 43 | |
| 44 | `race-F5.log` is the CPU control for the evidence-directory step (finding F5, |
| 45 | DRA-106 audit refresh), run from a fresh clone of `52149d3f`: with |
| 46 | `tests/device-window/race.om`, two device-mode runs started together on one new |
| 47 | ledger id gave exactly one run past the directory step in 100 of 100 trials; |
| 48 | the script at `07f276fc` (check, then `mkdir -p`) let both through in 69 of 100, |
| 49 | and a `mkdir -p` mutant of the fix in 100 of 100. No run reached |
| 50 | `spark-window`; no GPU was opened. See `tests/device-window/README.md`. |