interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

GitHub aien-dev/omega-mv#326 (code only)

closed derived a36335883e6a253c #326

Imported from GitHub aien-dev/omega-mv#326 (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 c7d98f370c893d095a207463efd371746bc037ac · Head 6339e3a816e7e1e7b4e12ce949a56ebadeef8bc2

Apply it

git checkout -b patch-a36335883e6a253c c7d98f370c893d095a207463efd371746bc037ac
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/a36335883e6a253c.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-mv
326
6339e3a816e7e1e7b4e12ce949a56ebadeef8bc2
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":326,"url":"https://github.com/aien-dev/omega-mv/pull/326","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:21Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index dece848f8..ae1b60858 100644
--- a/.crumb
+++ b/.crumb
@@ -52,7 +52,7 @@
         },
         {
           "digest": "c67d6e1e76879817f43de14962060330ed0e8b9138f79c1dd7add27bbc9ca682",
-          "last_commit": "c988166",
+          "last_commit": "c7d98f3",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -87,14 +87,14 @@
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
-          "digest": "b4b30bdb114a03b7201f87859738128097908f753b7a2c778a3c574e3135c316",
-          "last_commit": "c988166",
+          "digest": "f6799f3fc7c7ad7be6bd1612c0d129e729e809dbd92daad7acfe5df02d95920c",
+          "last_commit": "400d6b0",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
-          "digest": "8c43418cb6e8c35217c6b43b3db332d5f4b061bdf3f62c44d735d251aa5b0793",
-          "last_commit": "b564bf4",
+          "digest": "4a13eb3a1f0aeaf6da2f1a4e4d6faee018304dc7db3a270950fc1809e123e1bc",
+          "last_commit": "400d6b0",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
@@ -105,15 +105,15 @@
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:89e716bfe15fbff4f2e6a9f270f8720fe91a526e1491caaece8bd0cac910bc29",
-      "compiled_at": "2026-10-07T03:36:22Z",
+      "children_root": "sha256:7fbdc01ee1802c13ee21e4568b8ab66ae3f5fad7b6eeb669a2c2bfd63bc7ab33",
+      "compiled_at": "2026-10-07T04:09:45Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:5308ca6da7b0612758be1a9780a5898fc2916eb7c4aeab678947d6f032d4bb90",
+      "digest": "sha256:754512262646d1d563a682858ae5afeb9859d2f1d31f52229137a8e7c69e6f6a",
       "evidence_files": 4818,
       "evidence_root": "sha256:07642731585ad396c5d9b566a4b8df7807018f494d322dffce41bd04fb51e553",
       "files": 6658,
-      "generated_at_commit": "c988166e4a2d5a5eabd46539bf1601d1e1c88e6e",
-      "source_tree": "sha256:f58c5a1691795bb81cdabce2717a35d46d2efdfd44b40385eccacea54d6449c6"
+      "generated_at_commit": "400d6b0caabb1d5e623ecce935bb0bacacc76a48",
+      "source_tree": "sha256:70217b27f7cbcb9b2da56f7f4daf503eadc16de01a5459b545678d47cc57aced"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/Makefile b/Makefile
index 6e10515b9..062269a0b 100644
--- a/Makefile
+++ b/Makefile
@@ -2285,7 +2285,8 @@ test-gpu-reconv: $(GPU_RECONV_TEST)
 	./$(GPU_RECONV_TEST) --host-only
 
 # FB-1 cut 5: native gqa_attention (f32 KV) and paged_attention (bf16 KV, + batch).
-# head_dim 128 (CPU phase, Qwen3-4B): the same battery with --hd 128 through both host simulators; GB10 parity NOT_RUN.
+# head_dim 128 (Qwen3-4B): the same battery with --hd 128 through both host simulators; GB10 parity PASS 126/0
+# at 7dd92dc (evidence/FB1-CUT5-HD128-7dd92dc).
 # test-gpu-attention runs host-only (refusals, codegen, nvdisasm listing) and then the
 # whole parity battery through the host IR simulator (--sim, no chip); the chip
 # gate is `./build/gpu_attention_test --out receipt.json` through the heavy queue
diff --git a/src/.crumb b/src/.crumb
index 659c4db86..f8ac130ec 100644
--- a/src/.crumb
+++ b/src/.crumb
@@ -170,14 +170,14 @@
         }
       ],
       "children_root": "sha256:564cf410317a627d546c0c234bd632ba414ca943ecca4fd4c8eccc45d863bb48",
-      "compiled_at": "2026-10-07T03:36:22Z",
+      "compiled_at": "2026-10-07T04:09:45Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:b4b30bdb114a03b7201f87859738128097908f753b7a2c778a3c574e3135c316",
+      "digest": "sha256:f6799f3fc7c7ad7be6bd1612c0d129e729e809dbd92daad7acfe5df02d95920c",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 412,
-      "generated_at_commit": "c988166e4a2d5a5eabd46539bf1601d1e1c88e6e",
-      "source_tree": "sha256:7f41ec8c807f720427dab2e3773b278d655836ca2082529c829ef7d6a836f173"
+      "generated_at_commit": "400d6b0caabb1d5e623ecce935bb0bacacc76a48",
+      "source_tree": "sha256:70a50f992e0055f0c1609802a88fd270d7cb5870437fd6b7d190f74d3d75f60f"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/omega_gpu_attention_api.c b/src/omega_gpu_attention_api.c
index f22f3e975..dc2818315 100644
--- a/src/omega_gpu_attention_api.c
+++ b/src/omega_gpu_attention_api.c
@@ -302,11 +302,12 @@ static void gen_attention(Em *e, const KSpec *k) {
     movi(e, cm1, 0xFFFFFFFFu); iadd3(e, ctxm1, ctx, cm1); movi(e, cninf, F32_NEG_INF);
     loop_begin(e);
     int Lout = here(e);
-    /* No branch here: a warp split by "j >= ctx" stays split (the IR has no reconvergence
-     * instruction) and the SHFL reductions below then read inactive lanes, which is undefined
-     * (wrong dims tid >= tail on the chip, 2026-10-04). over = (j >= ctx) as 0/1 from the sign of
-     * ctx-1-j; out-of-range lanes read token `base` (always < ctx here) and their score
-     * is forced to -inf after the dot product with s = -max(-s, nb), nb = -inf or +inf. */
+    /* No branch here: a warp split by "j >= ctx" without a BSSY/BSYNC region stays split, and
+     * the SHFL reductions below then read inactive lanes, which is undefined (wrong dims
+     * tid >= tail on the chip, 2026-10-04). The IR has BSSY/BSYNC regions since omega #310
+     * (omega_bw_reconv.h); this kernel stays branchless and does not use them.
+     * over = (j >= ctx) as 0/1 from the sign of ctx-1-j; out-of-range lanes read token `base`
+     * (always < ctx here) and their score is forced to -inf after the dot product with s = -max(-s, nb), nb = -inf or +inf. */
     iadd3(e, j, base, tid);
     movi(e, s, F32_NEG_INF);
     movrz(e, koff);
diff --git a/tests/.crumb b/tests/.crumb
index e9b0adc88..0328516cb 100644
--- a/tests/.crumb
+++ b/tests/.crumb
@@ -284,14 +284,14 @@
         }
       ],
       "children_root": "sha256:c630c07cfd744174cf35b42b04d96bbb15dfedb76557947943c412d3219586c5",
-      "compiled_at": "2026-10-07T03:13:31Z",
+      "compiled_at": "2026-10-07T04:09:45Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:8c43418cb6e8c35217c6b43b3db332d5f4b061bdf3f62c44d735d251aa5b0793",
+      "digest": "sha256:4a13eb3a1f0aeaf6da2f1a4e4d6faee018304dc7db3a270950fc1809e123e1bc",
       "evidence_files": 11,
       "evidence_root": "sha256:d5c1bceb4d57ef0eb42797c58801b5926509711614c3e38bb7105b6efa3942f2",
       "files": 818,
-      "generated_at_commit": "1c5339d25afc3e0a70e0aee20a3f41c486b37644",
-      "source_tree": "sha256:b536f1c05324b9abc23c7239ede46b9aa1941690e4e3a95f693168140f8f68ce"
+      "generated_at_commit": "400d6b0caabb1d5e623ecce935bb0bacacc76a48",
+      "source_tree": "sha256:0a18b2fd43e90ae52b5aebb67ebbdc6486a2fd9092619ed4b57d180f066d3473"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/gpu_attention_test.c b/tests/gpu_attention_test.c
index 80ff4b01f..1368f5ada 100644
--- a/tests/gpu_attention_test.c
+++ b/tests/gpu_attention_test.c
@@ -534,8 +534,9 @@ static int chip(const char *out_path) {
  * loop handling is under test too) for every CTA of a launch: 64 threads, 1 KB shared,
  * host pointers as addresses, SHFL and BAR as lockstep points (all threads of the CTA
  * must sit at the same instruction). EX2 and RCP are exact here; the chip's are approximate. */
-/* path: hash of every branch decision so far. The IR has no reconvergence instruction
- * (no BSSY/BSYNC/WARPSYNC), so once a warp splits it may stay split on the chip, and a
+/* path: hash of every branch decision so far. The attention kernels use no reconvergence
+ * region (the IR has BSSY/BSYNC since omega #310, omega_bw_reconv.h; the --divergent mode
+ * below covers them), so once a warp splits it may stay split on the chip, and a
  * SHFL reading an inactive lane is undefined (CUDA guide, warp shuffle functions). Every
  * SHFL therefore requires one path across the warp, or the simulator stops with error 7. */
 typedef struct { uint32_t r[256]; int pc; int p0; int done; uint64_t path; } SimThr;