interplane.Get Omega
Read in your language

omega-dnn

aien-dev/omega-dnn

Brought by drakestapleton

GitHub aien-dev/omega-dnn#4 (code only)

closed derived 2055dcf04be4a3f9 #4

Imported from GitHub aien-dev/omega-dnn#4 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base ff030473f655bb51273df391048bca55a120ef30 · Head 8b8a9df4caead0b7cbb10bd0f4ca5322b1f073df

Apply it

git checkout -b patch-2055dcf04be4a3f9 ff030473f655bb51273df391048bca55a120ef30
curl -fsSL https://interplane.io/drakestapleton/omega-dnn/patches/2055dcf04be4a3f9.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-dnn
4
8b8a9df4caead0b7cbb10bd0f4ca5322b1f073df
{"kind":"github-import","owner":"aien-dev","repo":"omega-dnn","number":4,"url":"https://github.com/aien-dev/omega-dnn/pull/4","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:00Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index dcf2f5d..1a1e60c 100644
--- a/.crumb
+++ b/.crumb
@@ -5,14 +5,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-28T21:30:36Z",
+      "compiled_at": "2026-11-04T23:25:34Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:f32cc6d1c5f0d1413dd47c0ff841eac042c1868f2996c24ff4098fd5abbbc13b",
-      "evidence_files": 0,
-      "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 9,
-      "generated_at_commit": "ca6b59ef3d63e61d0ad5983e54fc5e7f4e736b86",
-      "source_tree": "sha256:ce025f3ea2ad6cf5c0e72685c8c6c931e441b41f7f59284ebcec60cbbe7dcaae"
+      "digest": "sha256:e0a5f38ac130bd7da47fa2747fe177552fd2eaa30d484c037436abe8a99fe30e",
+      "evidence_files": 75,
+      "evidence_root": "sha256:4b2c7cfe6b4edb2da440b603782c1a899f3577bf3d5737d150b463b3b2966537",
+      "files": 89,
+      "generated_at_commit": "ff030473f655bb51273df391048bca55a120ef30",
+      "source_tree": "sha256:ab8f74c4730a9554f9ae056bc244e190bb640c2c0e2aac65bc2db800bf3e0b80"
     }
   },
   "lineage": {
diff --git a/.github/workflows/gates.yml b/.github/workflows/gates.yml
new file mode 100644
index 0000000..37b1c0b
--- /dev/null
+++ b/.github/workflows/gates.yml
@@ -0,0 +1,48 @@
+# Gates: bind om/dnn.om with the pinned compilers and omega-bridge (PINS), then run the host suite
+# and the mutant suite from the README. Both compilers are born from the seed on this runner: OM-2 at
+# omega-mv e5b32567 (seed/out/omc), OM-1 at omega-mv e17039d9c, which must equal the
+# evidence/SEED-0/omc/omc.elf that tools/build.sh uses; build.sh then refuses either one if its sha256
+# differs from PINS. torch is the CPU wheel. Host evidence on a GitHub arm64 runner; the GB10 tier
+# (tests/test_gpu.py) is not run here.
+name: gates
+on:
+  pull_request:
+  push:
+    branches: [main]
+permissions:
+  contents: read
+jobs:
+  gates:
+    runs-on: ubuntu-24.04-arm
+    timeout-minutes: 60
+    steps:
+      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
+        with:
+          persist-credentials: false
+      - name: OM-2 omc from the seed (omega-mv e5b32567)
+        run: |
+          git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-mv.git ../omega-mv
+          git -C ../omega-mv checkout --quiet --detach e5b32567a7aff3ce594e3254a622a846a6cd190b
+          cd ../omega-mv && sh seed/omega-from-seed.sh
+          sha256sum seed/out/omc
+      - name: OM-1 omc from the seed (omega-mv e17039d9c)
+        run: |
+          git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-mv.git ../omega-mv-om1
+          git -C ../omega-mv-om1 checkout --quiet --detach e17039d9ceeb30e0637ef4145e37afc5821c3773
+          cd ../omega-mv-om1 && sh seed/omega-from-seed.sh
+          sha256sum seed/out/omc
+      - name: OM-1 born from the seed is the omc.elf build.sh uses
+        run: |
+          cmp ../omega-mv-om1/seed/out/omc ../omega-mv/evidence/SEED-0/omc/omc.elf
+          echo "OMEGA_MV=$(cd .. && pwd)/omega-mv" >> "$GITHUB_ENV"
+      - name: torch (CPU)
+        run: |
+          python3 -m venv ../venv
+          ../venv/bin/pip install --quiet --index-url https://download.pytorch.org/whl/cpu torch==2.15.0
+          echo "$(cd .. && pwd)/venv/bin" >> "$GITHUB_PATH"
+      - name: build
+        run: sh tools/build.sh
+      - name: host suite
+        run: python tests/test_ops.py 200
+      - name: mutants
+        run: python tests/mutants.py
diff --git a/README.md b/README.md
index 4f8d92c..612c268 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,10 @@ python tests/test_gpu.py --lib <CUDApp>/build-pic/libcudapp_dnn.so --group ew|at
     --cudapp-sha <sha> --out <receipt.json> [--hold]   # GB10; without --hold only the host side runs
 ```
 
+CI: [`.github/workflows/gates.yml`](.github/workflows/gates.yml) runs `tools/build.sh`, the host suite
+(200 cases) and the mutants on a GitHub arm64 runner, with both compilers born from the seed there.
+The GB10 tier is not run in CI.
+
 `build/` gets `libomega_native.so`, the generated `omega_native.{py,h,c,rs,zig,go}` and
 `omega_api.h`. The Python package [`python/omega_dnn`](python/omega_dnn/__init__.py) only lays out
 the arena and the descriptor ([docs/DESCRIPTOR.md](docs/DESCRIPTOR.md)); every value is computed by