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#418 (code only)

closed derived d96a9c92c78172dc #418

Imported from GitHub aien-dev/omega-mv#418 (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 aa9b7c5c76457776c05f061d6abc63f90a4a290f · Head a112d631dd55652477cec29601a5b737a93e1083

Apply it

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

Changes

diff --git a/.crumb b/.crumb
index ddf62fec4..d33608793 100644
--- a/.crumb
+++ b/.crumb
@@ -87,14 +87,14 @@
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
-          "digest": "57b39eeb7e7025692fa160cc839afbcd7d2e89704768ee50a82c0de0a0974550",
-          "last_commit": "697f5d0f",
+          "digest": "e8c29e7c62ad2fd2f3c88a8d1cff1aebbfb835242736a498e3cbc14ac43042b7",
+          "last_commit": "b405a699",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
-          "digest": "ac28446243900e9c337b343cf49932a4ef49c065bed02a6438109b028f10bd2a",
-          "last_commit": "697f5d0f",
+          "digest": "26cd22aededc3cad793682a4bf8030fc2a13eefb6edd6ae6e45221b336aaac68",
+          "last_commit": "b405a699",
           "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:7b0f76f2d864c3397c600c21e2aa0dbd318bb534ef54856576fa8109667a64c9",
-      "compiled_at": "2026-10-12T11:07:56Z",
+      "children_root": "sha256:1a34443c96a43f9457ff5360a33b8bfc0924e83f36fdffd66f4ae79553f1d5a4",
+      "compiled_at": "2026-10-12T11:44:14Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:cb2ddf071e34281b0289f6fee7fca45ad91a72d2ab530486287e6abcf9374630",
+      "digest": "sha256:5c243c06c6ebddb51fac6ca0f1aab1e45a3874cdada8078f16adc50ae28f4c75",
       "evidence_files": 7245,
       "evidence_root": "sha256:035beef5cdb99afaefd1743640f5e7eeaaed13c4a5ec6c8b4b6a4cb0c528407a",
       "files": 9738,
-      "generated_at_commit": "697f5d0fb1d011a7625e5be897270447d6aaddec",
-      "source_tree": "sha256:934e9338228fbf4df3a6237525ab9e7d7d16d09d3eec58ffb8cb639d2282fb0a"
+      "generated_at_commit": "b405a69912c5dc7954b41ed56c3268c87afe57f4",
+      "source_tree": "sha256:c738625e8a9f5f5e285e7e95104ab16460c2fb0dc1dc37294d1937dbfb7594fb"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/.crumb b/src/.crumb
index 07f6ce488..013b64463 100644
--- a/src/.crumb
+++ b/src/.crumb
@@ -176,14 +176,14 @@
         }
       ],
       "children_root": "sha256:2f64d32b2351272f4de10e1143efdb74dbc3cae56b1f0a3039ca9edcfebf6e8c",
-      "compiled_at": "2026-10-12T11:07:56Z",
+      "compiled_at": "2026-10-12T11:44:14Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:57b39eeb7e7025692fa160cc839afbcd7d2e89704768ee50a82c0de0a0974550",
+      "digest": "sha256:e8c29e7c62ad2fd2f3c88a8d1cff1aebbfb835242736a498e3cbc14ac43042b7",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 453,
-      "generated_at_commit": "697f5d0fb1d011a7625e5be897270447d6aaddec",
-      "source_tree": "sha256:96ef4c2d69e68689e61aab88512fd6258482c7d1b0fe944e1e42cee3eaf651e4"
+      "generated_at_commit": "b405a69912c5dc7954b41ed56c3268c87afe57f4",
+      "source_tree": "sha256:8caa2117e5a944b901e28591ed0136e880eb79a5404df15bc33d04abeafe7b32"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/omega_gpu_elementwise_api.h b/src/omega_gpu_elementwise_api.h
index 8b92c839d..243b1ed9c 100644
--- a/src/omega_gpu_elementwise_api.h
+++ b/src/omega_gpu_elementwise_api.h
@@ -30,9 +30,15 @@
  * per process instead of one per call (~40 ms), kernels resident after first use,
  * staging buffers reused at their high-water mark. Calls serialise on one lock.
  *
- * Launch envelope: at most OMEGA_GPU_EW_MAX_CTAS CTAs per launch (the matmul
- * sweep of 2026-10-03 lost whole tiles at 128 CTAs, investigation I42); the
- * API splits larger work on the host and makes several launches.
+ * Launch envelope: at most OMEGA_GPU_EW_MAX_CTAS CTAs per launch; the API splits
+ * larger work on the host and makes several launches. The cap was 64 from the
+ * 2026-10-03 matmul sweep that lost whole tiles at 128 CTAs (investigation I42,
+ * root cause the GPU-cached completion marker, fixed by the uncached marker +
+ * L2_FLUSH_DIRTY release sequence every launch here goes through). Cut L
+ * (2026-10-12): 1024, the CTA budget the matmul path has run every serving leg
+ * at since; a prefill swiglu of 128 x 12288 was 192 launches of 64 CTAs (1.4 ms
+ * of chip time per call), now 12. The poison scan of every output word is the
+ * lost-tile detector and stays.
  */
 #include <stdbool.h>
 #include <stddef.h>
@@ -94,7 +100,7 @@ typedef enum {
  *   ex2:     n >= 1;  xchg: n % OMEGA_GPU_EW_THREADS == 0 */
 #define OMEGA_GPU_EW_THREADS 128u
 #define OMEGA_GPU_EW_MAX_DIM 16384u
-#define OMEGA_GPU_EW_MAX_CTAS 64u
+#define OMEGA_GPU_EW_MAX_CTAS 1024u
 
 typedef struct {
     uint32_t chip_calls;        /* launches made */
diff --git a/tests/.crumb b/tests/.crumb
index 96a1b5f1d..745263e03 100644
--- a/tests/.crumb
+++ b/tests/.crumb
@@ -290,14 +290,14 @@
         }
       ],
       "children_root": "sha256:9597c068d5bf4eb27f1d91842813a2b10269c2ccae421dceefb4308030ec0fc2",
-      "compiled_at": "2026-10-12T11:07:56Z",
+      "compiled_at": "2026-10-12T11:44:14Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:ac28446243900e9c337b343cf49932a4ef49c065bed02a6438109b028f10bd2a",
+      "digest": "sha256:26cd22aededc3cad793682a4bf8030fc2a13eefb6edd6ae6e45221b336aaac68",
       "evidence_files": 16,
       "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a",
       "files": 1025,
-      "generated_at_commit": "697f5d0fb1d011a7625e5be897270447d6aaddec",
-      "source_tree": "sha256:8d3483308d1ec814689cacd7570af73bdcbcdaa9ca2080e88dbceac80eca81ce"
+      "generated_at_commit": "b405a69912c5dc7954b41ed56c3268c87afe57f4",
+      "source_tree": "sha256:bc75dc1ce71d858c2bdb701fda230c8da08b73639ab2591b0c628f25e6a5995e"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/gpu_elementwise_test.c b/tests/gpu_elementwise_test.c
index c274a063e..e485d0680 100644
--- a/tests/gpu_elementwise_test.c
+++ b/tests/gpu_elementwise_test.c
@@ -242,9 +242,10 @@ static int chip(const char *out_path) {
         omega_gpu_elementwise_test_set_mutant(0);
         record(c, out); free(v); free(got); free(want); free(ch); free(sh);
       } }
-    /* 5. swiglu at the model ffn sizes (TinyLlama 5632, Llama-3.2-1B 8192) and an odd tail */
-    { size_t ns[3] = { 5632, 8192, 1000 };
-      for (int t = 0; t < 3; t++) {
+    /* 5. swiglu at the model ffn sizes (TinyLlama 5632, Llama-3.2-1B 8192), an odd tail, one past the
+     * 1024-CTA chunk (two launches) and the Qwen3-8B prefill call 128 x 12288 (twelve launches; cut L) */
+    { size_t ns[5] = { 5632, 8192, 1000, 131073, 1572864 };
+      for (int t = 0; t < 5; t++) {
         size_t n = ns[t];
         float *g = malloc(n * 4), *u = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4);
         for (size_t i = 0; i < n; i++) { g[i] = frand(&seed, -12.0f, 12.0f); u[i] = frand(&seed, -2.0f, 2.0f); }
diff --git a/tests/gpu_reconv_test.c b/tests/gpu_reconv_test.c
index 227e3b658..1711e60c5 100644
--- a/tests/gpu_reconv_test.c
+++ b/tests/gpu_reconv_test.c
@@ -42,7 +42,9 @@ static const Probe PROBES[] = {
     { OMEGA_GPU_EW_RC_DEPTH16, "rc_depth16", "B0..B15" },
 };
 #define NPROBES (sizeof PROBES / sizeof PROBES[0])
-static const uint32_t NS[] = { 1, 5, 31, 32, 33, 63, 64, 65, 96, 127, 128, 129, 200, 1000, 4096, 8191, 8192, 8193, 20000 };
+/* 8191..8193 straddled the 64-CTA chunk, 131071..131073 the 1024-CTA chunk (cut L, 2026-10-12) */
+static const uint32_t NS[] = { 1, 5, 31, 32, 33, 63, 64, 65, 96, 127, 128, 129, 200, 1000, 4096, 8191, 8192, 8193, 20000, 131071, 131072, 131073 };
+#define MAXN 131073u
 #define NNS (sizeof NS / sizeof NS[0])
 #define CHUNK (OMEGA_GPU_EW_MAX_CTAS * OMEGA_GPU_EW_THREADS)
 
@@ -318,7 +320,7 @@ static int host_part(void) {
     }
 
     /* 5. simulator: every probe, every n, both fragment orders, exact against the oracle */
-    uint32_t *a = malloc(20000 * 4), *b = malloc(20000 * 4), *got = malloc(20000 * 4), *want = malloc(20000 * 4);
+    uint32_t *a = malloc(MAXN * 4), *b = malloc(MAXN * 4), *got = malloc(MAXN * 4), *want = malloc(MAXN * 4);
     for (size_t i = 0; i < NPROBES; i++) {
         BlackwellIRProgram *p = calloc(1, sizeof *p); OmegaBlackwellKernel k;
         if (codegen(PROBES[i].op, 0, p, &k) != OMEGA_GPU_EW_OK) { free(p); continue; }
@@ -394,7 +396,7 @@ static int chip(const char *out_path, int observe) {
     if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; }
     if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_RECONV_V1\",\"issue\":308,\"comparison\":\"exact u32\",\"cases\":[");
     int first = 1;
-    uint32_t *a = malloc(20000 * 4), *b = malloc(20000 * 4), *got = malloc(20000 * 4), *want = malloc(20000 * 4);
+    uint32_t *a = malloc(MAXN * 4), *b = malloc(MAXN * 4), *got = malloc(MAXN * 4), *want = malloc(MAXN * 4);
     for (size_t i = 0; i < NPROBES; i++) {
         for (size_t j = 0; j < NNS; j++) {
             uint32_t n = NS[j]; fill(a, b, n, 0x5050u + n);