interplane.Get Omega
Read in your language

omega-bridge

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

Brought by drakestapleton

[BRIDGE-GPU P0] Expand Omega Bridge to GPUs: capability-negotiated external accelerator adapters

Open · #3 · open 2026-10-24 03:05 UTC

Imported from GitHub aien-dev/omega-bridge#3, by drakestapleton

drakestapleton wrote on 2026-10-24 03:05 UTC

User decision (2026-10-23)

GPU interoperability is explicitly in scope for Omega Bridge. Revise docs/DESIGN.md and README (current design says “No GPU, driver”). Bridge is the external attachment and translation/interop owner, including GPU compute/graph runtimes; the existing Omega/CUDApp projects remain the native compiler, kernel, driver, platform and verifier owners. Parent experimental MAX plan: https://github.com/aien-dev/omega-mv/issues/679.

Grounded starting point

Deliverables

  1. Revise scope and ownership contract: Bridge handles source-language bindings, graph runtime adapters, GPU runtime interop, capability manifests, tensor memory ownership handoff and explicit refusal; no duplicated chip instruction encoder, GPU driver, verifier, or runtime.
  2. Define versioned omega-bridge-gpu-adapter protocol compatible with #632: operation/spec hash, tensor dtype/shapes/strides/layout, device backend and ISA/profile, kernel binary/launch receipt references, producer/consumer ownership, memory rights, synchronization, offline/telemetry policy, error/refusal semantics; no unauthorized raw DMA/VA reuse.
  3. Implement a nonexecuting fake GPU adapter and deterministic round-trip fixtures. Provide one supported real GB10 adapter only by consuming existing native owner artifacts; do not promise unsupported hardware execution.
  4. Publish GPU support matrix (native sm_121 proven vs MAX adapter gated vs AMD/Intel/Metal NOT_RUN) with reproducible docs and explicit API/license caveats.
  5. GPU adapter activation opt-in, disabled by default; dry-run, isolation, rollback. Keep live service, device driver and telemetry configuration unchanged without separate authorization.

Acceptance

A fresh checkout demonstrates structured capability negotiation and denial for wrong ISA/dtype/driver/ABI, stale receipt, bad ownership, bad alias/sync and unqualified device; no silent fallback to CPU or vendor runtime. The adapter behaves as a pure boundary, not an alternative GPU stack. End-to-end physical test requires scheduled Spark evidence. New first-party source/tests use seeded .om under Omega #599; third-party integration may require external MAX/Mojo extension pieces, explicitly segregated. Issue closes only with tested integrated hashes and independently reviewed evidence.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:19 UTC

Recovered GitHub comment. Original comment 6379593303

Implemented on feat/gpu-interop @ 87aec91.

  • src/gpu_adapter.om (native Omega, seed-pinned): ordered key/value negotiation, contract-id and ISA checks, artifact admission by digest, named refusals (E_INCOMPLETE, E_ORDER, E_DUPKEY, E_UNKNOWN_KEY, E_VERSION, E_UINT, E_POLICY, E_CAPABILITY, E_ABI, E_CONTRACT, E_DIGEST, E_ARTIFACT, …), no fallback.
  • 49/49 adapter checks: negotiation accept/refuse, tampered artifact, untrusted signature, rights, stale driver, duplicate key, out-of-order headers, fake vs real adapter refusal.
  • Device execution is intentionally out of scope: the adapter is an admission contract, not a loader. Host tests only; no GPU opened.
  • Evidence: evidence/MAX-INTEROP/3/; commands: docs/REPRODUCE.md.

Real device admission remains NOT_RUN (chip reserved).

Sign in to comment