omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / max-cpu / README.md
| 1 | # max-cpu: Omega kernel as a MAX CPU custom op |
| 2 | |
| 3 | - `omatmul.om` — the kernel (seeded Omega, OM-2), built by `tools/native`. |
| 4 | - `kernels/__init__.mojo` — MAX custom-op glue `omega_matmul` (`OwnedDLHandle` + dlsym). |
| 5 | - `omega_max.py` — graphs, numeric check, negative controls, measurements. |
| 6 | - `run.sh` — the single reproduce target; `mogg-cache-repro.sh` — the MAX cache observation. |
| 7 | |
| 8 | Status EXERCISED(host CPU). Evidence, pins, results and gaps: [../evidence/MAX-CPU/README.md](../evidence/MAX-CPU/README.md). |
| 9 | |
| 10 | Each `run.sh` invocation writes fresh evidence to a new directory under |
| 11 | `$TMPDIR` (or `/tmp`) and prints `evidence=<path>`. To select a destination, |
| 12 | set `EV` to a path that does not yet exist, with an existing writable parent. |
| 13 | `EV` must not contain or be inside `BUILD`; the default evidence parent |
| 14 | (`TMPDIR` or `/tmp`) must be outside `BUILD`. Checks resolve symlink and `..` |
| 15 | aliases with GNU `realpath` before any build reset. An existing destination is |
| 16 | also refused. Paths must be stable during the run; this is not a sandbox |
| 17 | against concurrent filesystem renames. The committed |
| 18 | `evidence/MAX-CPU/raw` directory remains the immutable original run of record. |
| 19 | |
| 20 | Host-only filesystem regression, without Omega, MAX or devices: |
| 21 | `python3 max-cpu/test_run_evidence.py`. |