interplane.Get Omega
Read in your language

omega-bridge

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

Brought by drakestapleton

[BRIDGE-MAX P2] Conditional in-MAX Omega native GPU operation and Modular collaboration package

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

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

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

Parent: https://github.com/aien-dev/omega-mv/issues/679; requires feasibility proof, native artifact+receipt, conformance baseline. If supported by public MAX device/graph API and a reviewed license boundary, implement an opt-in MAX graph custom operation dispatching a previously verified Omega native realization, with explicit device/context/stream/memory ownership, synchronization, invalidation and error propagation. No raw pointer/VA reuse across contexts; no second driver, no implicit fallback. If the supported public API is insufficient, perform a bounded, license-reviewed interoperability reverse-engineering workstream under https://github.com/aien-dev/omega-bridge/issues/7. Use public source and safe local probes to define and validate a missing device/launch ABI. Never attempt unsafe injection; report BLOCKED only for the specific execution mode while interop investigation proceeds. If this still cannot produce a safe interface, deliver a precise upstream extension RFC with evidence. Package public-safe sample matmul + attention, independent checker, exact reproduction/environment/licensing notes, findings and potential Modular alliance contribution. No network egress without opt-in; DO NOT contact Modular, make upstream PR, publish private receipts or change production until user authorizes. Close only from real exact-artifact chip evidence or explicit NO-GO on the conditional integration, with peer review.

Binding execution decision (2026-10-23)

User direction: absence of an exposed native execution interface triggers reverse engineering; it is no longer a terminal stop. Follow Bridge #4 -> Bridge #7 -> this issue, retaining Stage A baselines. Target a safe MAX-owned graph/driver integration with explicit memory, stream, artifact and license boundaries. Permitted goal is software interoperating with MAX, not reimplementing/substituting for MAX using its code as AI input (MAX License ยง1.4(d)). Demonstrate correct operation with independent negative tests before any native chip launch. Preserve no unauthorized live server, driver or publication changes.

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

Source-backed upstream contribution update (2026-10-23)

User explicitly wants code contributed to modular/modular, using CUDApp for Blackwell parity/performance. Coordination: https://github.com/aien-dev/CUDApp/issues/69.

MAX already has a native code bundle interface: SDK/include/HAL/M_driver_bundle.h (M_driver_static_bundle, M_driver_bundle_load), Target/lib/CUDA/M_driver_function.cpp, Target/test/CUDAPluginTest.cpp, max/driver/src/max_license/_hal/context.mojo. NeoDriver README explains its StaticBundle (CUBIN bytes) -> RuntimeBundle -> Function -> queue execution. DO NOT reverse-engineer a nonexistent interface without first exercising this one.

Missing from our side: CUDApp OmegaBlackwellKernel.code contains raw SASS bytes, not automatically a valid CUBIN (ELF container, entry symbol, ABI/register/shared-memory metadata). First bridge contract is a valid loadable CUBIN + frozen argument ABI + verified code digest and target. MAX must own its context, buffer, stream and launch; Omega native QMD and GPU VAs cannot be handed across this boundary. Prove a minimal kernel and negatives before matmul/attention.

Upstream rules: Modular's max/kernels/CONTRIBUTING.md / max/docs/contributing/contribution-areas.md currently accept bug fixes only. Their AI_TOOL_POLICY.md requires human review of AI-generated issues/PRs before they are submitted; do not auto-post to upstream. GPU support tracker modular/modular#6570 may offer a first bounded issue. Their #6961 RDMA VMM allocation bug is seemingly already guarded in current source; do not duplicate. CUDApp current first-party code AGPL-3.0-only, so audit/dual-license or use an eligible permissive source lineage before contributing code into Apache/LLVM paths. No benchmarked 'better than CUDA' result has been established yet; use same hardware and independent correctness oracle.

Deliver upstream-ready branch/patch and reviewed reproduction results in AIEN-owned repo; only then human-reviewed fork/issue/PR to modular/modular. In-graph branch no longer needs speculative direct-driver ABI reverse engineering if the published HAL bundle API suffices.

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

Recovered GitHub comment. Original comment 6379594356

Conditional decision: BLOCKED at MAX 26.7.0; RFC delivered on feat/gpu-interop @ 87aec91.

  • No released public interface accepts a cubin byte slice with a caller-owned module/context; using private HAL or casting bytes to String would be unsafe and is not done.
  • docs/MAX-INTEGRATION.md specifies the required entry point, MAX-retained device/context/queue/allocation, entry-name and parameter ABI, deterministic errors, and a load/launch qualification test.
  • No contact with Modular and no upstream PR; collaboration package is public-safe and unreferenced.
  • In-graph execution is NOT_RUN, not failed.

If the interface lands (or MAX main is authorized), the artifact and probe in CUDApp #68/#69 are ready.

Sign in to comment