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 / max-cpu

9532044 max-cpu: hide the GPU; MAX 26.7.0 Graph() opens a CUDA context when one is visible (#51) aien-spark committed 2026-10-31
..
kernels/
README.md1284
mogg-cache-repro.sh1954
omatmul.om1656
omega_max.py14687
run.sh6094
test_run_evidence.py8564

README.md

max-cpu: Omega kernel as a MAX CPU custom op

  • omatmul.om — the kernel (seeded Omega, OM-2), built by tools/native.
  • kernels/__init__.mojo — MAX custom-op glue omega_matmul (OwnedDLHandle + dlsym).
  • omega_max.py — graphs, numeric check, negative controls, measurements.
  • run.sh — the single reproduce target; mogg-cache-repro.sh — the MAX cache observation.

Status EXERCISED(host CPU). Evidence, pins, results and gaps: ../evidence/MAX-CPU/README.md.

Each run.sh invocation writes fresh evidence to a new directory under $TMPDIR (or /tmp) and prints evidence=<path>. To select a destination, set EV to a path that does not yet exist, with an existing writable parent. EV must not contain or be inside BUILD; the default evidence parent (TMPDIR or /tmp) must be outside BUILD. Checks resolve symlink and .. aliases with GNU realpath before any build reset. An existing destination is also refused. Paths must be stable during the run; this is not a sandbox against concurrent filesystem renames. The committed evidence/MAX-CPU/raw directory remains the immutable original run of record.

Host-only filesystem regression, without Omega, MAX or devices: python3 max-cpu/test_run_evidence.py.