Parent: https://github.com/aien-dev/omega-mv/issues/679; precedence: https://github.com/aien-dev/omega-bridge/issues/4; target integration: https://github.com/aien-dev/omega-bridge/issues/6; GPU adapter scope: https://github.com/aien-dev/omega-bridge/issues/3.
User decision — 2026-10-23
If Modular MAX does not expose a sufficient supported native GPU executable submission interface, reverse-engineer the missing interoperability boundary from publicly available source and permitted local runtime observations. The lack of a documented API is a research/implementation task, not an immediate project NO-GO.
This work is interoperability with MAX, not an AI-assisted clone/replacement of MAX. Read and comply with the exact licensed revision of https://github.com/modular/modular/blob/main/Licenses/MAX_LICENSE, including §1.4(d), which permits AI-assisted work on interoperability but restricts using MAX to AI-generate competing reimplementations. Do not bypass authentication, copy proprietary undisclosed source, disable security controls, or distribute components contrary to their terms. Clarify uncertain license/ABI terms before redistributing.
Code-grounded reconnaissance targets
- Modular public repo https://github.com/modular/modular:
GraphCompiler/,MLRT/,max/driver/,max/python/max/driver/,max/mojo/max/gpu/,max/kernels/, and custom-op registration. Pin exact source/tag and license per file. - MAX 26.7 custom ops/eager+graph API and
max.driverlaunch tracing; use published debugMODULAR_DEBUG=ir-output-dir=...,pre-jitfor reproducible graph lowering visibility where supported: https://max.modular.com/releases/v26.7/ . - Our side: CUDApp
src/omega_gpu_platform.hABI 1.2 and typed generation-counted handles,src/omega_blackwell_qmd.h,src/omega_blackwell_matmul.h,src/omega_gpu_matmul_api.h,src/omega_gpu_attention_api.h; native artifact owner https://github.com/aien-dev/CUDApp/issues/68; semantic/receipt owners https://github.com/aien-dev/omega-mv/issues/680 and https://github.com/aien-dev/omega-mv/issues/681. No second driver/runtime/compiler.
Staged technical work (only after #4 determines public API insufficient)
- Map MAX graph op lowering -> generated kernel artifact -> driver module loading -> device allocation -> dispatch enqueue -> synchronization/completion -> observable output. Extract minimal types, field meanings, lifetimes, fences, error paths, and versioned ABI, with file/line refs.
- Construct a small controlled probe corpus (vector add first; BF16 matmul and GQA attention after contracts are frozen). Compare known MAX output and launch traces against Omega's independently emitted
sm_121kernel, code digest, QMD and execution receipt. - Determine integration mode explicitly: supported extension, source-level MAX driver adapter, new registered device plugin, or isolated sidecar with explicit memory transport. Never assume native SASS accepted or cross-context GPU VAs transferable.
- Reconstruct a bounded interop ABI: capability and backend negotiation; modules/artifact representation; ownership and rights; address-space boundary; dtype/layout; stream/event ordering; barriers and completion; error and cancellation; artifact hashes, proof tier and receipts. Unknown semantics must refuse.
- Build an opt-in experimental adapter using published source/runtime interfaces and separately authorized sandbox tests. All final AIEN-owned code must follow the seeded
.omtransition from https://github.com/aien-dev/omega-mv/issues/599. External MAX components isolated, identified by license, not copied into AIEN native code. - Differential/mutation tests: bad binary, bad module target, malformed launch/QMD, stale/foreign buffer, alias violation, premature free, missing synchronization, wrong result, incompatible ABI, unexpected vendor dependency and unqualified hardware must be rejected or explicitly BLOCKED. Independent reviewer validates bounded evidence before actual Spark GPU tests.
Safety and acceptance
No privileged driver or kernel modification, no GPU reset, no interference with live serving or model residency, no unapproved production deployment. Host/mock probes first; hardware runs only with Spark coordinator and resource reservations. Keep source/code hashes and raw commands/exits, decode/trace references and negative tests; NOT_RUN != PASS. Verify MAX dependencies separately: Omega user-space CUDA-free does not imply MAX CUDA-free.
Deliver at least an exact pinned interface map, license boundary, reproduction probe, one validated bounded adapter implementation or a documented specific impossibility with test evidence, and a handoff to Bridge #6. No artificial performance or in-graph execution claims. Do not contact Modular, file upstream PR, or share private receipts without user authorization.