omega-blas
aien-dev/omega-blas
Brought by drakestapleton
GitHub aien-dev/omega-blas#5 (code only)
Apply it
git checkout -b patch-132fa85bee921d4b bf0ac9b34ddff5e1cda949c413155bb306b7c0ac curl -fsSL https://interplane.io/drakestapleton/omega-blas/patches/132fa85bee921d4b.patch | git am
Provenance
github-import 1
aien-dev/omega-blas
5
a988c11be1270adb3adf6c5db6ce4a6b77a3c3f3
{"kind":"github-import","owner":"aien-dev","repo":"omega-blas","number":5,"url":"https://github.com/aien-dev/omega-blas/pull/5","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:41:00Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 0d73db8..4b38f85 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:af2c5413541c548663348f35fcdf3facbd3b1b1a6a42efa7c1afbf82a22ff4d4", - "evidence_files": 2, - "evidence_root": "sha256:0533ae0b4d9cc479f2e40336d25ae18fb09e391deed705188e4d5828feb2c8aa", - "files": 15, - "generated_at_commit": "0706265a751b0f0957df918a8a945e35735ce5c4", - "source_tree": "sha256:b20448e68f9bbb5b7752d2048119fcd26d947b1bb1b7df6b4842d05be411597b" + "digest": "sha256:6ec2d6e22e5653ba598c896f1ea259bc263a68783ebcd64e7968ff651d44e25f", + "evidence_files": 92, + "evidence_root": "sha256:849316554502c2abadb831050eed7f364e41676bedee90a4ac591e3492f19990", + "files": 112, + "generated_at_commit": "bf0ac9b34ddff5e1cda949c413155bb306b7c0ac", + "source_tree": "sha256:761dc092511fc6a324b1ad5f581a95d432ae476512c6b9e695aa35e737d1b929" } }, "lineage": { diff --git a/.github/workflows/gates.yml b/.github/workflows/gates.yml new file mode 100644 index 0000000..79eebd1 --- /dev/null +++ b/.github/workflows/gates.yml @@ -0,0 +1,47 @@ +# Gates: build libomegablas.so from om/blas.om with the pinned compilers and omega-bridge (PINS), +# then run tests/smoke.py as the README does. Both compilers are born from the seed on this runner: +# OMC (OM-1) at omega-mv e17039d9c and OMC2 (OM-2) at omega-mv e5b32567; omega-bridge tools/native +# refuses either one if its sha256 differs from its pin. Host evidence on a GitHub arm64 runner; the +# GB10 path (GB10=1) and the netlib drivers are not run here. +name: gates +on: + pull_request: + push: + branches: [main] +permissions: + contents: read +jobs: + gates: + runs-on: ubuntu-24.04-arm + timeout-minutes: 30 + 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: omega-bridge (2b59387) + run: | + git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-bridge.git ../omega-bridge + git -C ../omega-bridge fetch --quiet origin 2b59387101db52b7f859b6a3f6593fdd6b4e4a7e + git -C ../omega-bridge checkout --quiet --detach 2b59387101db52b7f859b6a3f6593fdd6b4e4a7e + - name: build + run: | + D="$(cd .. && pwd)" + make BRIDGE="$D/omega-bridge" OMC="$D/omega-mv-om1/seed/out/omc" OMC2="$D/omega-mv/seed/out/omc" + - name: numpy + run: | + python3 -m venv ../venv + ../venv/bin/pip install --quiet numpy==2.5.4 + - name: smoke + run: ../venv/bin/python tests/smoke.py diff --git a/README.md b/README.md index 45bfbe2..9046466 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,9 @@ make BRIDGE=/path/to/omega-bridge OMC=/path/to/seeded/omc OMC2=/path/to/om2/omc python3 tests/smoke.py ``` +CI: [`.github/workflows/gates.yml`](.github/workflows/gates.yml) runs these two steps on a GitHub arm64 +runner, with both compilers born from the seed there. The GB10 path and the netlib drivers are not run in CI. + Limits: each dimension below 1,000,000 (the seeded compiler's loop bound); calls are serialised by one lock (the bound Omega runtime has one stack).