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 P1] Pin Modular MAX extension/API feasibility and license-safe graph adapter

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

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

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

Parent: https://github.com/aien-dev/omega-mv/issues/679; GPU scope expansion approved and tracked in https://github.com/aien-dev/omega-bridge/issues/3.

Current source

Omega Bridge docs/DESIGN.md; Omega #632, #665, #623, #624; CUDApp #35, #6; CUDApp src/omega_gpu_platform.h ABI 1.2; native matmul/attention APIs. MAX open compiler/runtime plus custom ops documented at https://docs.modular.com/max/develop/custom-ops . Custom Mojo ops do not establish arbitrary external SASS binary injection.

Work

Pin current public MAX graph/device runtime source revision, supported custom-op ABI and license. Trace explicit GPU buffer ownership/context, streams/events/order, alignment/pointer import/export, synchronize/failure/refusal and optional native binary ingestion APIs from code, not marketing docs. Deliver a feasibility table with evidence per entry: SUPPORTED / UNSUPPORTED / UNKNOWN / REQUIRES_MODULAR_CHANGE. Capture license obligations for AGPL-3.0-only CUDApp and MAX License; external tools may remain separate processes. Audit MAX network/telemetry/offline behavior. Build harmless optional MAX graph custom-op prototype for matmul contract if API permits, with mocked host path first. If no safe documented in-graph native launch hook exists, fail closed on unsafe execution and trigger dedicated reverse-engineering of the interoperability boundary under https://github.com/aien-dev/omega-bridge/issues/7; stage A separate-process graph comparison remains independently deliverable.

Acceptance

A bounded feature-detection probe and ABI/policy report reproduced against pinned versions; no cross-context pointer reuse or duplicated GPU driver; no implicit NVIDIA/CUDA-free claim about MAX; upstream RFC draft only, do not contact Modular or submit PR without user authorization. Source must document what needs upstream support; independent review and invalid memory/ABI cases included. All Omega-owned first-party code .om, any required MAX extension isolated and explicitly third-party-facing. No change to running Spark service.

Binding update (2026-10-23): no documented API is not final NO-GO

Inspect supported public API and source first. If insufficient, hand off the version-pinned technical gap, source/trace entry points and exact unsupported operations to Bridge #7 for independently measured, license-reviewed interop reverse engineering. A missing interface is a scoped blocker for direct graph execution but does not end the workstream. No bypass of access/security controls or undocumented assumptions about device pointers; no live GPU experiments outside scheduled qualification.

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

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 6379593635

Report delivered on feat/gpu-interop @ 87aec91.

  • Pin: modular==26.7.0 = 527d069ee11a41ac5320af1f9402db0a66b2b868 (mojo/v1.2.0), Apache-2.0 WITH LLVM-exception for MAX/Mojo, Max Community License for the prebuilt package, NVIDIA CUDA Toolkit under the NVIDIA EULA.
  • Released Python path: no documented API for arbitrary native module bytes; load_function accepts String and is PTX-oriented. Main-branch HAL (hal/nvidia_gpu.mojo) has cubin ingestion but is not in the release, not production, and not public. No telemetry or offline API for native artifacts.
  • MAX is not CUDA-free on NVIDIA.
  • Evidence: docs/max/MAX-26.7-FEASIBILITY.md, docs/MAX-INTEGRATION.md, docs/GPU-SUPPORT-MATRIX.md.

No runtime probe was run (chip reserved); in-MAX native execution is BLOCKED at the pinned release.

Sign in to comment