interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / MISSION-REPORT.md

129 lines · 7983 bytes Raw Blame History Source

Omega × Modular MAX — verified interoperability, current state

Date: 2026-10-23. This is the consolidated report for the three branches. It separates what ran from what did not. Every PASS below has raw output in the named evidence/ directory; every unexecuted device test is NOT_RUN.

1. Revisions

RepoBranchReview baseLatest commit
omega-mvfeat/max-interop-contractscd5897e37d13fa0b
CUDAppfeat/max-artifact-export80f3a249ebdc6b
omega-bridgefeat/gpu-interop77376b1 (feat/c-python-bridge)8479910

Pinned external software: Modular MAX max/v26.7.0 = 527d069ee11a41ac5320af1f9402db0a66b2b868 (mojo/v1.2.0), installed as modular==26.7.0. Omega seed compiler: 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9. CUDApp driver/firmware target: NVIDIA 580.173.02, GB10, sm_121.

2. Completed and verified

DeliverableEvidenceStatus
Frozen BF16 matmul + causal GQA contracts, canonical idsomega/evidence/MAX-INTEROP/680/PASS, 26 checks
Independent stdlib oracle, deterministic fixtures, mutation corpussamePASS
Native .om contract checker (seed-built)build/contract-check, ids 647116fc…, 003696e4…PASS
Native sm_121 cubin container from generated textcudapp/evidence/MAX-INTEROP/68/, nvdisasm/cuobjdumpPASS offline
Artifact manifest: text/QMD/cbank SHA-256, contract/spec/ISA/shape/bounds/numeric/provenancesamePASS, 47 checks
Admission/refusal (tamper, ISA, format, reloc, driver, contract)samePASS
Bridge GPU adapter v1 (negotiation + admission, named refusals, no fallback)bridge/evidence/MAX-INTEROP/3/PASS, 49 checks
Cross-runtime envelope + 416-byte C2 TEST receiptomega/evidence/MAX-INTEROP/681/PASS, 26 checks
MAX 26.7 source/API/licence pin and capability matrixbridge/docs/max/PASS (analysis)
Separate-process MAX vs Omega harnessbridge/evidence/MAX-INTEROP/5/PASS on CPU
MAX/Omega numeric agreement (fixture)samebit-identical matmul SHA-256; GQA max abs error 2.7e-7

Exact artifacts

The envelope binds execution=NOT_RUN, oracle_verdict=NOT_RUN, and a zero output digest. It is a provenance/identity record, not a device result.

3. Blocked or not run

3a. GB10 device windows (2026-11-07, DRA-105; supersedes the first four rows below)

Three exclusive spark-window leases (--gb10 exclusive --quiet none, value checks), opened and closed by id by tools/run-device-window.sh. Raw output and rc for every row: evidence/device-window/L939*/, summary in evidence/device-window/README.md. Driver 580.173.02, CUDApp b774723f. Window 3 (20261107T030848Z-b5d44f, ledger dir L939-w3) ran all 10 rows rc 0:

RowResult (window 3)
cubin_probe load + launch, matmul 16x16x8 cubin from the current CUDApp writerEXERCISED PASS: load 0, worst_abs=0 bad=0 untouched=0 against the fp32 oracle
cubin_probe GQA cubin (hq 8, hkv 1, hd 128)load + resolve PASS; launch NOT_RUN (the probe launches the matmul ABI; needs an attention probe, MAX Gate 3)
Pre-fix cubin cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8.cubinrejected 200 INVALID_IMAGE as expected (negative control)
Omega native matmul/GQA on GB10 (conformance/run.sh --device)EXERCISED PASS 6/6 runs: matmul 12 checks, max abs error 0; GQA 13 checks, 2.39e-7
MAX 26.7 graph matmul/GQA on GB10 (max_runner.py --device gpu)EXERCISED PASS 6/6 runs: matmul 12 checks, 0, output SHA-256 equal to Omega's; GQA 13 checks, 2.70e-7
Paired runs (6 of each path)done; per-run timings in <row>.out/*.json are shared-machine diagnostics of different spans (Omega: whole API call; MAX: execute only), not a speed comparison
attach/torch/test_cudapp_torch.py (PR #30)EXERCISED PASS: 12 cases inside bound, gemm_ex mutant caught

Window 1 (L939) used the stale 68 cubins (rc 4, 200) and hit a MAX harness defect (host-resident inputs); both were fixed before window 2. Window 2 (L939-w2) had 2 CUDA_ERROR_OUT_OF_MEMORY failures at context creation (one cuCtxCreate, one MAX Accelerator()) in 2 of its 10 rows; window 3 had none. That intermittent context-create failure is not explained. Not QUALIFIED: one chip, one driver, tiny shapes, no independent attestation beyond SPARK_WINDOW.

ItemReasonWhat unblocks it
cuModuleLoadData + launch of the exported cubin on GB10chip reserved by the coordinator (CHIP-RESERVED); spark-window refusesan authorized spark-window with --gb10 shared --quiet none; run build/cubin_probe (DONE for matmul, §3a)
Omega native matmul/GQA on GB10samesame window; conformance/run.sh --device (DONE, §3a)
MAX 26.7 graph matmul/GQA on GB10samesame window; max_runner.py --device gpu (DONE, §3a)
Paired ≥5-run benchmarksrequires two device pathsafter the above (runs DONE, §3a; no speed claim)
In-MAX native Omega cubin executionpinned 26.7.0 has no byte-safe native module API; load_function takes String and only PTX is tested; the main-branch HAL path is not in the release, not production, and not reachable from public Pythonupstream change in §4, or a decision to test main
AMD/Intel/Metalno adapter, no hardware testseparate owner and qualification

No speedup, no CUDA-free claim for MAX and no cross-context pointer sharing is asserted. CPU timings in harness.log are harness diagnostics only.

4. Upstream request (draft, not submitted)

A byte-slice native-module entry point in the released MAX, with MAX retaining device, context, queue, allocation and error ownership: accept a cubin ELF as bytes (not UTF-8 String), document primary-context identity, define the entry name and parameter ABI, return deterministic errors for wrong arch/entry, and ship a cubin load/launch qualification test. Details and proposed signatures: docs/MAX-INTEGRATION.md. No PR exists.

Correction (2026-10-27, carried from omega-bridge#28): this report first said "No contact with Modular has been made". That is out of date: Drake Stapleton has an ongoing email thread with Modular. Nothing beyond that is claimed here.

5. Reproduce

See docs/REPRODUCE.md. Short form:

# omega-mv
sh tools/max-interop/build.sh && python3 tests/max-interop/test_contracts.py
sh tests/max-interop/build_receipt.sh && python3 tests/max-interop/test_envelope.py \
  --artifact ../../cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8 \
  --fixture tests/max-interop/fixtures/matmul-v1.json
# CUDApp
make -j8 test-native-artifact && ./tools/artifact_smoke.sh evidence/MAX-INTEROP/68
# bridge
sh tools/build-gpu-adapter.sh && python3 tests/gpu/test_gpu_adapter.py
sh conformance/run.sh

6. Residual risks

  1. The cubin container is offline-valid only. The driver may require sections absent here (for example capability metadata); cuModuleLoadData is the decisive test, and it has not run.
  2. sm_121 vs sm_121a acceptance is untested; the MAX toolchain targets sm_121a for DGX Spark.
  3. The Bridge adapter is host-tested; no device is opened by design, so its "real adapter" path is an admission contract, not a loader.
  4. The MAX 26.7 report's main-branch citations are not release evidence; the pin lacks those paths.
  5. CUDApp is Apache-2.0 WITH LLVM-exception; MAX paths mix Apache-2.0 WITH LLVM-exception/LLVM and the MAX Community License. Any upstream contribution needs its own licence review.