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

closed derived 1094021276d25389 #409

Imported from GitHub aien-dev/omega-mv#409 (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 362c9ab50c8ecc3012dd2e3ac20329865ba80982 · Head 52bece77dd1fd4e818d1c541844aac12ffe7d82c

Apply it

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

Changes

diff --git a/.crumb b/.crumb
index 6ac3ff64e..e9a7fb1f6 100644
--- a/.crumb
+++ b/.crumb
@@ -46,74 +46,74 @@
       "children": [
         {
           "digest": "fb7cc6e608fdbe68a9735a1313285782b9717ff12bde17343f8ce635de3644f6",
-          "last_commit": "09b5c37",
+          "last_commit": "190ff891",
           "name": "calibration",
           "purpose": "Directory calibration. Purpose not yet described by a human."
         },
         {
           "digest": "24d7c03a26a7ffe9b181b73585480b5801289accbdf63146edbc36cf3e1cf21f",
-          "last_commit": "6637b32",
+          "last_commit": "6637b32b",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
         {
           "digest": "536f7b8db9a92a1f586bad4379d47544a30d1b8e83c2d799c18e66cf8660c9ae",
-          "last_commit": "09b5c37",
+          "last_commit": "30bb116c",
           "name": "doctrine",
           "purpose": "Directory doctrine. Purpose not yet described by a human."
         },
         {
           "digest": "ac43a69e03617abcc3c94f3fc1bc10c7593d9d57d49059c20bc4ce3abfaa8489",
-          "last_commit": "e59633e",
+          "last_commit": "e59633e5",
           "name": "mk",
           "purpose": "Directory mk. Purpose not yet described by a human."
         },
         {
           "digest": "69cbb8ef13ccce47ccc21f159e95f1eac58679319e2cc25937065f95c4eb9207",
-          "last_commit": "09b5c37",
+          "last_commit": "ae8c7c54",
           "name": "polyglot",
           "purpose": "Directory polyglot. Purpose not yet described by a human."
         },
         {
           "digest": "2aa8396144fa241f695a99c882fc347425604ac4822d5162be9c3ad80354fc9f",
-          "last_commit": "c02b278",
+          "last_commit": "c02b278c",
           "name": "research",
           "purpose": "Directory research. Purpose not yet described by a human."
         },
         {
           "digest": "830ce7faaea9ae86190aa304fd8d7797881fbaca9d14fc39a327d202712f73fb",
-          "last_commit": "09b5c37",
+          "last_commit": "9e168fc8",
           "name": "spec",
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
-          "digest": "6203be86d7278ebaccb0b97d1f88a6978c66d7f7cf105173be93ed5e67583228",
-          "last_commit": "329af0f",
+          "digest": "75fec26567f55d0e562142b1af20bd99720dc6234c6d240f7666b7bac492e839",
+          "last_commit": "ec1d3398",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
-          "digest": "988f298ad658bf4b7d2552426f400d686e8deee0e00d04c94df63c7591601eed",
-          "last_commit": "329af0f",
+          "digest": "2c25a63590c9d5759d12eacabb3cd37adbac87e8ee6ac4e074b4970e3419d144",
+          "last_commit": "ec1d3398",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
         {
           "digest": "acd42de9387a133f34b4b6afca962c82d340fba67c6a770a74852406769b4186",
-          "last_commit": "09b5c37",
+          "last_commit": "7683eaaa",
           "name": "tools",
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:4acc393c4e03dcf418146a6f86fb75164b282523557b15d1829ae95fa2f6be51",
-      "compiled_at": "2026-10-12T07:06:29Z",
+      "children_root": "sha256:5915c54b2603c860c268df3245eb1c216bead640c9d3e7b76d01c5f0c8662773",
+      "compiled_at": "2026-10-12T07:29:56Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:b211e0a22bda77a47a5afa2c15fdba14e60a84ee1cd0a8405525a3d82e32bbe4",
+      "digest": "sha256:192f222b070fb952997e9510fed311f64a8abcf4cf21646c2890a78eda76a730",
       "evidence_files": 7245,
       "evidence_root": "sha256:035beef5cdb99afaefd1743640f5e7eeaaed13c4a5ec6c8b4b6a4cb0c528407a",
       "files": 9734,
-      "generated_at_commit": "d749792ac142deb4cb0ea3af0422492719916f21",
-      "source_tree": "sha256:f75ed5d359635266f186d1e69fee16505867482206fde953e6e925fdb3c5c48f"
+      "generated_at_commit": "ec1d3398f0dcc91e6eb66c21107299f042682cff",
+      "source_tree": "sha256:43e1c423a2e7ed33c2425ecb1eeed42122dcb01c1a2384acce85fe157602eb0e"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/.crumb b/src/.crumb
index a0d7b6d70..74b02bf66 100644
--- a/src/.crumb
+++ b/src/.crumb
@@ -62,128 +62,128 @@
       "children": [
         {
           "digest": "e999ad5d79b28e45cf3c87fca942087088f243bdfd0e55da7948eb5d6e619460",
-          "last_commit": "09b5c37",
+          "last_commit": "7350a61c",
           "name": "algebra",
           "purpose": "Directory src/algebra. Purpose not yet described by a human."
         },
         {
           "digest": "24b48531671e1ad40c520571c43aa6fa8dfe43ce7139a5724f31afa9f8411afd",
-          "last_commit": "09b5c37",
+          "last_commit": "834ee93e",
           "name": "ans",
           "purpose": "ANS (Alignment Navigation System), Inertial Alignment v1: frozen reference atoms, drift filter o"
         },
         {
           "digest": "5b110f4a6136ebd3d6703590962b7beed9f8cec034c2d12944b1590434e3c747",
-          "last_commit": "09b5c37",
+          "last_commit": "d48ab89e",
           "name": "autodiff",
           "purpose": "M21 OMEGA_AUTODIFF: reverse-mode tape over M20 tensor CPU ops, caller-owned nodes and scratch, p"
         },
         {
           "digest": "18e933f213d7958215bb0ecf09116e5c21d3b335cfdabc1ffbf7a2a4e98b5250",
-          "last_commit": "09b5c37",
+          "last_commit": "f7b43890",
           "name": "compiler",
           "purpose": "Directory src/compiler. Purpose not yet described by a human."
         },
         {
           "digest": "41faf68aa92b4f16b40243239e1866110a443ce284ff9f7ec3b125b289bcd845",
-          "last_commit": "09b5c37",
+          "last_commit": "3c82389f",
           "name": "crumbline",
           "purpose": "Directory src/crumbline. Purpose not yet described by a human."
         },
         {
           "digest": "945ae745a338467614bee287efb628f38f53ad83e4842c1a7fbf7d0b91a8da57",
-          "last_commit": "09b5c37",
+          "last_commit": "00f54b6b",
           "name": "dual_experiment",
           "purpose": "DUAL applicability experiment library (ARCH-0031 offline evidence lane): deterministic discrete "
         },
         {
           "digest": "62a0884e7f075eb3c92b22fc400234a06bd8c3020fc75e55a9b0c0f0f6a26d7e",
-          "last_commit": "09b5c37",
+          "last_commit": "1a147e40",
           "name": "estimation",
           "purpose": "Directory src/estimation. Purpose not yet described by a human."
         },
         {
           "digest": "330c407ff51bfd684e062707c055f58f325f5af16fe9764889aec3a7ffeb31ac",
-          "last_commit": "09b5c37",
+          "last_commit": "3108fc2f",
           "name": "fabric",
           "purpose": "Directory src/fabric. Purpose not yet described by a human."
         },
         {
           "digest": "3bdcb211108a4fdc33550b2c54df3167dd15d4a5fe004eefbcef11b489d0e27a",
-          "last_commit": "09b5c37",
+          "last_commit": "71c6ff88",
           "name": "language",
           "purpose": "Directory src/language. Purpose not yet described by a human."
         },
         {
           "digest": "651cad69999ba000a9be247d7decaf02ef9c4653f718255b62efb248139ad74b",
-          "last_commit": "6d8d92a",
+          "last_commit": "6d8d92ad",
           "name": "osh",
           "purpose": "osh (Omega-native shell, arch#158) lexer unit: layout list, generator, osh_lex.osc, C reference "
         },
         {
           "digest": "8383106b5d1b3adbc44b8e837a5d1f5ff6699a6d54070068e36716b2a32390d5",
-          "last_commit": "09b5c37",
+          "last_commit": "d550b705",
           "name": "path",
           "purpose": "Directory src/path. Purpose not yet described by a human."
         },
         {
           "digest": "8c5cf96997407cff3f8a4c78150ae5294d2ed09a8d9076ae933e426a60792037",
-          "last_commit": "e59633e",
+          "last_commit": "e59633e5",
           "name": "physics0",
           "purpose": "PD-0 hidden-equation benchmark (Physics-0 Discovery Engine cut 1): world, oracle, scorer, ladder"
         },
         {
           "digest": "c43b60db4a5183a3ca59c2e24a0978f463e8ac3aa7a2ed0c54947eb085c4eb9e",
-          "last_commit": "09b5c37",
+          "last_commit": "3ef4f69c",
           "name": "polyglot",
           "purpose": "Directory src/polyglot. Purpose not yet described by a human."
         },
         {
           "digest": "10dd0764d81e96e6f6c4585d57b770d5b2854364cfb09a44bb16427c4517a9db",
-          "last_commit": "329af0f",
+          "last_commit": "362c9ab5",
           "name": "runtime",
           "purpose": "Directory src/runtime. Purpose not yet described by a human."
         },
         {
           "digest": "9f6d98a6d9b0020aa56df481a5ab3aa301533cb85173f96a851d1d779fca2d3a",
-          "last_commit": "09b5c37",
+          "last_commit": "5ae192a4",
           "name": "searchtrace",
           "purpose": "Directory src/searchtrace. Purpose not yet described by a human."
         },
         {
           "digest": "ae63793b7b13442e349e438229fccf6a859a5be55343cdd997e35f2966c1157c",
-          "last_commit": "09b5c37",
+          "last_commit": "f633e343",
           "name": "tensor",
           "purpose": "M20 OMEGA_TENSOR: immutable tensor semantic layer, views, generation-checked storage, CPU realiz"
         },
         {
           "digest": "be7e624435df81eae403f51a381acf480e9fd2f2a04eb34e955547973645b95d",
-          "last_commit": "09b5c37",
+          "last_commit": "54826a37",
           "name": "train",
           "purpose": "Directory src/train. Purpose not yet described by a human."
         },
         {
           "digest": "78c180a66607ebaf93e6ef6a6a56a3059ebf97db394d76af50c0e3f25d2be639",
-          "last_commit": "09b5c37",
+          "last_commit": "2564f57a",
           "name": "turing",
           "purpose": "Directory src/turing. Purpose not yet described by a human."
         },
         {
           "digest": "daf5e5e90c1ccb4c089220a6545844dbe4078a233f1777e8145b74f1bf5dd5fe",
-          "last_commit": "09b5c37",
+          "last_commit": "40d1ea37",
           "name": "visor",
           "purpose": "Directory src/visor. Purpose not yet described by a human."
         }
       ],
       "children_root": "sha256:2f64d32b2351272f4de10e1143efdb74dbc3cae56b1f0a3039ca9edcfebf6e8c",
-      "compiled_at": "2026-10-12T07:06:29Z",
+      "compiled_at": "2026-10-12T07:29:56Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:6203be86d7278ebaccb0b97d1f88a6978c66d7f7cf105173be93ed5e67583228",
+      "digest": "sha256:75fec26567f55d0e562142b1af20bd99720dc6234c6d240f7666b7bac492e839",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 451,
-      "generated_at_commit": "d749792ac142deb4cb0ea3af0422492719916f21",
-      "source_tree": "sha256:96f504e4c814ac4c1e61dadc566cb0e649230bace262bc9bb10e256665172a7f"
+      "generated_at_commit": "ec1d3398f0dcc91e6eb66c21107299f042682cff",
+      "source_tree": "sha256:ba11b6b3e0bb56ab2ea66d441a265da89eab4e3c19ec165194398a3418c79929"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/omega_blackwell_codegen.c b/src/omega_blackwell_codegen.c
index 081f7db8b..b0f657c11 100644
--- a/src/omega_blackwell_codegen.c
+++ b/src/omega_blackwell_codegen.c
@@ -2117,17 +2117,52 @@ uint32_t omega_matmul_frag_unroll(uint32_t kp) {
     return ks % 4u == 0 ? 4u : ks % 2u == 0 ? 2u : 1u;
 }
 
+/* A block (mt, ks) holds rows 16mt..16mt+15 and columns 16ks..16ks+15 as 256 bf16 at element
+ * (mt*KS + ks)*256; inside the block, element (rr, cc) sits at lane*8 + e with lane = (rr%8)*4 + (cc%8)/2
+ * and e = (cc/8)*4 + (rr/8)*2 + cc%2 (the HMMA.16816 A fragment order, header comment). The 256-entry
+ * table makes the pack a tile loop with no per-element division (2026-10-12: the per-element form with
+ * six divisions and a conversion call per element was ~2.5 ms per MB of activations at m = 128). */
+static uint16_t g_frag_a_tab[256];
+static void frag_a_tab_init(void) {
+    if (g_frag_a_tab[255]) return;
+    for (uint32_t rr = 0; rr < 16; rr++)
+        for (uint32_t cc = 0; cc < 16; cc++)
+            g_frag_a_tab[rr * 16 + cc] = (uint16_t)((((rr & 7u) * 4u + ((cc & 7u) >> 1)) * 8u) + (cc >> 3) * 4u + (rr >> 3) * 2u + (cc & 1u));
+}
+/* bit for bit what the compiler's (__bf16)f cast gives (gpu_matmul_api_test checks it against
+ * omega_fp32_to_bf16 on ties, denormals, inf and NaN payloads): round to nearest even, a NaN keeps
+ * its top payload bits and is made quiet. gcc 13 on aarch64 emits the cast as a call to the
+ * soft-float routine __truncsfbf2 per element, which was most of the packing cost. */
+static inline uint16_t frag_f32_to_bf16(float f) {
+    uint32_t u;
+    memcpy(&u, &f, 4);
+    if ((u & 0x7f800000u) == 0x7f800000u) return (uint16_t)((u >> 16) | ((u & 0x007fffffu) ? 0x0040u : 0u));
+    return (uint16_t)((u + 0x7fffu + ((u >> 16) & 1u)) >> 16);
+}
+#define FRAG_PACK_A_BODY(LOAD)                                                                          \
+    do {                                                                                                \
+        const uint32_t KS = kp / 16u;                                                                   \
+        frag_a_tab_init();                                                                              \
+        memset(dst, 0, (size_t)mp * kp * sizeof *dst);                                                  \
+        for (uint32_t mt = 0; mt < (m + 15u) / 16u; mt++) {                                             \
+            const uint32_t r1 = m - mt * 16u < 16u ? m - mt * 16u : 16u;                                \
+            for (uint32_t ks = 0; ks < (k + 15u) / 16u; ks++) {                                         \
+                const uint32_t c1 = k - ks * 16u < 16u ? k - ks * 16u : 16u;                            \
+                uint16_t *blk = dst + ((size_t)mt * KS + ks) * 256u;                                    \
+                for (uint32_t rr = 0; rr < r1; rr++) {                                                  \
+                    const uint16_t *tab = g_frag_a_tab + rr * 16u;                                      \
+                    const size_t src = (size_t)(mt * 16u + rr) * k + ks * 16u;                          \
+                    for (uint32_t cc = 0; cc < c1; cc++) blk[tab[cc]] = LOAD(a[src + cc]);              \
+                }                                                                                       \
+            }                                                                                           \
+        }                                                                                               \
+    } while (0)
+#define FRAG_ID(x) (x)
 void omega_matmul_frag_pack_a(const uint16_t *a, uint32_t m, uint32_t k, uint32_t mp, uint32_t kp, uint16_t *dst) {
-    const uint32_t KS = kp / 16u;
-    memset(dst, 0, (size_t)mp * kp * sizeof *dst);
-    for (uint32_t r = 0; r < m; r++) {
-        const uint32_t mt = r / 16u, rr = r % 16u, group = rr % 8u, hi = rr / 8u;
-        for (uint32_t c = 0; c < k; c++) {
-            const uint32_t ks = c / 16u, cc = c % 16u, khi = cc / 8u, tig = (cc % 8u) / 2u, lo = cc % 2u;
-            const size_t lane = group * 4u + tig;
-            dst[(((size_t)mt * KS + ks) * 32u + lane) * 8u + khi * 4u + hi * 2u + lo] = a[(size_t)r * k + c];
-        }
-    }
+    FRAG_PACK_A_BODY(FRAG_ID);
+}
+void omega_matmul_frag_pack_a_f32(const float *a, uint32_t m, uint32_t k, uint32_t mp, uint32_t kp, uint16_t *dst) {
+    FRAG_PACK_A_BODY(frag_f32_to_bf16);
 }
 
 void omega_matmul_frag_pack_b(const uint16_t *b, uint32_t k, uint32_t n, uint32_t kp,
diff --git a/src/omega_blackwell_codegen.h b/src/omega_blackwell_codegen.h
index 744f6d630..48658c178 100644
--- a/src/omega_blackwell_codegen.h
+++ b/src/omega_blackwell_codegen.h
@@ -250,6 +250,8 @@ void omega_matmul_frag_block_shape(uint32_t mt, uint32_t nt, uint32_t *rt, uint3
 uint32_t omega_matmul_frag_block_unroll(uint32_t kp, uint32_t rt, uint32_t ct);
 /* a: m x k row-major. dst: mp x kp elements, fully written (zero padding). */
 void omega_matmul_frag_pack_a(const uint16_t *a, uint32_t m, uint32_t k, uint32_t mp, uint32_t kp, uint16_t *dst);
+/* the same from f32 rows, converted to bf16 as omega_fp32_to_bf16 does (one pass, no staging copy) */
+void omega_matmul_frag_pack_a_f32(const float *a, uint32_t m, uint32_t k, uint32_t mp, uint32_t kp, uint16_t *dst);
 /* b: k x n row-major. dst: the column tiles [nt0, nt1), (nt1 - nt0) * kp * 8 elements, fully
  * written; it is the part of the packed tensor starting at element nt0 * kp * 8. */
 void omega_matmul_frag_pack_b(const uint16_t *b, uint32_t k, uint32_t n, uint32_t kp,
diff --git a/src/omega_gpu_matmul_api.c b/src/omega_gpu_matmul_api.c
index c172e2993..c914ae525 100644
--- a/src/omega_gpu_matmul_api.c
+++ b/src/omega_gpu_matmul_api.c
@@ -358,7 +358,9 @@ void omega_gpu_tensor_free(OmegaGpuTensor *t) {
 
 /* ---- the matmul ---- */
 
-static int matmul_core(uint32_t m, const uint16_t *a, const OmegaGpuTensor *b, float *c, OmegaGpuMatmulInfo *info) {
+/* a16 or a32 (exactly one non-NULL): the activation rows as bf16 or as f32, packed into fragment
+ * order in one pass either way (f32 rows are converted while packing, no staging copy) */
+static int matmul_core(uint32_t m, const uint16_t *a16, const float *a32, const OmegaGpuTensor *b, float *c, OmegaGpuMatmulInfo *info) {
     const uint32_t k = b->k, n = b->n, kp = b->kp, np = b->np;
     const uint32_t mp = round_up(m, OMEGA_GPU_MATMUL_TILE_M);
     omega_gpu_session_lock();
@@ -388,11 +390,13 @@ static int matmul_core(uint32_t m, const uint16_t *a, const OmegaGpuTensor *b, f
         /* a serving reservation refuses growth loudly (TOO_LARGE, error text names the sizes); anything else is a driver failure */
         return src == OMEGA_GPU_SESSION_SCRATCH_RESERVED ? OMEGA_GPU_MATMUL_TOO_LARGE : OMEGA_GPU_MATMUL_CHIP_FAIL;
     }
-    /* activation rows in, fragment order (omega_matmul_frag_pack_a), zero padded, packed on the
-     * host and copied in order into the uncached buffer; result rows poisoned */
+    /* activation rows in, fragment order (omega_matmul_frag_pack_a / _f32: f32 rows are converted
+     * while packing, one pass), zero padded, packed on the host and copied in order into the
+     * uncached buffer; result rows poisoned */
     uint16_t *ah = malloc((size_t)mp * kp * sizeof *ah);
     if (!ah) { omega_gpu_session_unlock(); return OMEGA_GPU_MATMUL_BAD_ARGS; }
-    omega_matmul_frag_pack_a(a, m, k, mp, kp, ah);
+    if (a32) omega_matmul_frag_pack_a_f32(a32, m, k, mp, kp, ah);
+    else omega_matmul_frag_pack_a(a16, m, k, mp, kp, ah);
     memcpy(g.a_buf.mem.cpu, ah, (size_t)mp * kp * sizeof *ah);
     free(ah);
     float *cd = g.c_buf.mem.cpu;
@@ -429,7 +433,7 @@ static int resident_entry(uint32_t m, const uint16_t *a, const OmegaGpuTensor *b
     if (info) memset(info, 0, sizeof *info);
     if (!a || !b || !c || m == 0 || !b->mem.cpu) return OMEGA_GPU_MATMUL_BAD_ARGS;
     if (m > OMEGA_BW_MATMUL_MAX_M) return OMEGA_GPU_MATMUL_TOO_LARGE;
-    int rc = matmul_core(m, a, b, c, info);
+    int rc = matmul_core(m, a, NULL, b, c, info);
     if (info) info->call_ns = now_ns() - t0;
     return rc;
 }
@@ -445,12 +449,7 @@ int omega_gpu_matmul_resident_f32(uint32_t m, const float *a, const OmegaGpuTens
     if (info) memset(info, 0, sizeof *info);
     if (!a || !b || !c || m == 0 || !b->mem.cpu) return OMEGA_GPU_MATMUL_BAD_ARGS;
     if (m > OMEGA_BW_MATMUL_MAX_M) return OMEGA_GPU_MATMUL_TOO_LARGE;
-    size_t cnt = (size_t)m * b->k;
-    uint16_t *h = malloc(cnt * sizeof *h);
-    if (!h) return OMEGA_GPU_MATMUL_BAD_ARGS;
-    for (size_t i = 0; i < cnt; i++) h[i] = omega_fp32_to_bf16(a[i]);
-    int rc = matmul_core(m, h, b, c, info);
-    free(h);
+    int rc = matmul_core(m, NULL, a, b, c, info);
     if (info) info->call_ns = now_ns() - t0;
     return rc;
 }
@@ -491,7 +490,7 @@ int omega_gpu_matmul_bf16(uint32_t m, uint32_t k, uint32_t n,
     OmegaGpuTensor *t = NULL;
     int rc = omega_gpu_tensor_upload_bf16(k, n, b, &t);
     if (rc != OMEGA_GPU_MATMUL_OK) return rc;
-    rc = matmul_core(m, a, t, c, info);
+    rc = matmul_core(m, a, NULL, t, c, info);
     omega_gpu_tensor_free(t);
     info->resident = false;
     if (rc == OMEGA_GPU_MATMUL_OK && g.oracle) {
diff --git a/tests/.crumb b/tests/.crumb
index a8d4a3926..e43b895a1 100644
--- a/tests/.crumb
+++ b/tests/.crumb
@@ -110,194 +110,194 @@
       "children": [
         {
           "digest": "e7498eca87fe5ca8dc27d92f2d99be0de3e4c804711f9d8cba5bb1e47ca95f74",
-          "last_commit": "09b5c37",
+          "last_commit": "28911be7",
           "name": "algebra",
           "purpose": "Directory tests/algebra. Purpose not yet described by a human."
         },
         {
           "digest": "d484ca176e9932b098df5664d01bdd679c78f5b89f4d15a77eb30f43d235f570",
-          "last_commit": "09b5c37",
+          "last_commit": "834ee93e",
           "name": "ans",
           "purpose": "Tests 1-10 for ANS (docs/ans/INERTIAL_ALIGNMENT_SPEC_V1.md): freeze/digest, hostile reference mu"
         },
         {
           "digest": "42a7efc25b16d1ea7bd7a5cbc31be7e499c9bc64c9e7df179c7627121d7df637",
-          "last_commit": "09b5c37",
+          "last_commit": "1b0e2968",
           "name": "brownian",
           "purpose": "Directory tests/brownian. Purpose not yet described by a human."
         },
         {
           "digest": "1cbe9561b87b394e200f67996ce1407c377025d07ad033b27cdd542625e277d4",
-          "last_commit": "09b5c37",
+          "last_commit": "30bb116c",
           "name": "canonicalization",
           "purpose": "Directory tests/canonicalization. Purpose not yet described by a human."
         },
         {
           "digest": "d0d9e7040af5d739682fe07e15cb59598f0a981ab1a766a4c2ad2f26e4e1e458",
-          "last_commit": "09b5c37",
+          "last_commit": "eb8dedf7",
           "name": "compiler",
           "purpose": "Directory tests/compiler. Purpose not yet described by a human."
         },
         {
           "digest": "47683e6a56ca8e14ee526004b2a90dd08498507e8d4b0b42c3d85d22afb07d28",
-          "last_commit": "09b5c37",
+          "last_commit": "28b87934",
           "name": "constraints",
           "purpose": "Directory tests/constraints. Purpose not yet described by a human."
         },
         {
           "digest": "95b2041562face1ba7baa6c57456bf07d77a0f44e093b989ec18f559064e22d9",
-          "last_commit": "09b5c37",
+          "last_commit": "49abb024",
           "name": "crumbline",
           "purpose": "Directory tests/crumbline. Purpose not yet described by a human."
         },
         {
           "digest": "d57833fb3f63ef6475cf25e2e16319d818a0a407b825d5b4c5cbdd3cc0e06492",
-          "last_commit": "09b5c37",
+          "last_commit": "00f54b6b",
           "name": "dual_experiment",
           "purpose": "Tests for the DUAL applicability experiment: determinism (same seed, byte-identical results dige"
         },
         {
           "digest": "fb0a9296a93d065d5e016ad0a950fc6b9691f8ddca12ad0111cee2e35791cdb4",
-          "last_commit": "09b5c37",
+          "last_commit": "c819b376",
           "name": "effect",
           "purpose": "Directory tests/effect. Purpose not yet described by a human."
         },
         {
           "digest": "bc2473da101ba5a74c32021a9d27ecb2007897f07a9689ba50ccc99b9030bf0c",
-          "last_commit": "09b5c37",
+          "last_commit": "1a147e40",
           "name": "estimation",
           "purpose": "Directory tests/estimation. Purpose not yet described by a human."
         },
         {
           "digest": "de2bc4e310a257dbd21cc5c9624641b137b1b4487d8876cb52469aea2af5b904",
-          "last_commit": "09b5c37",
+          "last_commit": "3108fc2f",
           "name": "fabric",
           "purpose": "Directory tests/fabric. Purpose not yet described by a human."
         },
         {
           "digest": "90418926706f827aafd72938aee1dea89222cb5e465fba06a8df5a83253e0412",
-          "last_commit": "09b5c37",
+          "last_commit": "28b87934",
           "name": "identity",
           "purpose": "Directory tests/identity. Purpose not yet described by a human."
         },
         {
           "digest": "c653c851c8934ce9ac4eabaa32a9df65d858c9ac7a556e76b265b1ee81494443",
-          "last_commit": "09b5c37",
+          "last_commit": "4f55f45e",
           "name": "language",
           "purpose": "Directory tests/language. Purpose not yet described by a human."
         },
         {
           "digest": "e485aa0a00f0a588e22d55caa704db8581a5da1b53080b311086e6edd38f6044",
-          "last_commit": "09b5c37",
+          "last_commit": "30bb116c",
           "name": "malformed",
           "purpose": "Directory tests/malformed. Purpose not yet described by a human."
         },
         {
           "digest": "adba9b5ea1c000db36078fca7d1bfef0b2769b73c8fb474024d9409bd48bdbc1",
-          "last_commit": "09b5c37",
+          "last_commit": "40d1ea37",
           "name": "numeric_native",
           "purpose": "Simulated M16 driver for numeric resource-lifecycle tests. No device execution or numeric parity"
         },
         {
           "digest": "f3085ce1facdcdb22bfedc85de659dd5e512aa7b59cd8103666c24a4456681c3",
-          "last_commit": "6d8d92a",
+          "last_commit": "6d8d92ad",
           "name": "osh",
           "purpose": "osh lexer host driver, vendored aien-protocols PR#16 draft vectors (5ae5292)"
         },
         {
           "digest": "a4d320b3203650a28c43ea954957d8902d1cc25cbdc8aecd15628c01a92f68f8",
-          "last_commit": "09b5c37",
+          "last_commit": "d550b705",
           "name": "path",
           "purpose": "Directory tests/path. Purpose not yet described by a human."
         },
         {
           "digest": "d5153d318a11642a5e13824353222fc392ead92108540bc8ffd747fcfd40b813",
-          "last_commit": "e59633e",
+          "last_commit": "e59633e5",
           "name": "physics0",
           "purpose": "PD-0 gates: world self-test, oracle calibration, learner L0/L1/NULL, mutations, OSC differential"
         },
         {
           "digest": "4619a90a957e77cd3d5680132ab4d1a5ef65f43419ddcc089743ca5b7a7719ee",
-          "last_commit": "09b5c37",
+          "last_commit": "8f8babe9",
           "name": "polyglot",
           "purpose": "Directory tests/polyglot. Purpose not yet described by a human."
         },
         {
           "digest": "16bea65aa50f0b3ab8b90cb286de048639fa8e635ff84e517e138c6f9f26a059",
-          "last_commit": "09b5c37",
+          "last_commit": "3c82389f",
           "name": "program",
           "purpose": "Directory tests/program. Purpose not yet described by a human."
         },
         {
           "digest": "ba0c09f67d12b5d7de906129bdbe2f6e0a228e1a34236ecc4b779c523cb2061e",
-          "last_commit": "09b5c37",
+          "last_commit": "6fdc4c33",
           "name": "r16_inventory",
           "purpose": "Directory tests/r16_inventory. Purpose not yet described by a human."
         },
         {
           "digest": "000c487afa8f600842eff25a22a671afb5e29b26845105405de9542a21b70746",
-          "last_commit": "09b5c37",
+          "last_commit": "79a805d1",
           "name": "r16_negative",
           "purpose": "Directory tests/r16_negative. Purpose not yet described by a human."
         },
         {
           "digest": "25cabf47d18353539db28146434d246a2f81bf9c323471566451aca56806f279",
-          "last_commit": "09b5c37",
+          "last_commit": "44d8c06c",
           "name": "r16_surface",
           "purpose": "Directory tests/r16_surface. Purpose not yet described by a human."
         },
         {
           "digest": "9106f2ea57e8f453322f0a988b61cfcbd06631573c9ff32a777903d27d7741e1",
-          "last_commit": "09b5c37",
+          "last_commit": "40d1ea37",
           "name": "realize",
           "purpose": "Directory tests/realize. Purpose not yet described by a human."
         },
         {
           "digest": "381184e79b26920b256dd4a774fb11f17a92afa8ceda4813eada241bac4163a9",
-          "last_commit": "09b5c37",
+          "last_commit": "30bb116c",
           "name": "relations",
           "purpose": "Directory tests/relations. Purpose not yet described by a human."
         },
         {
           "digest": "06a368ef677849a7a83d6275b02e2981afc51449d5fb11622902687d4064b265",
-          "last_commit": "329af0f",
+          "last_commit": "362c9ab5",
           "name": "runtime",
           "purpose": "Directory tests/runtime. Purpose not yet described by a human."
         },
         {
           "digest": "b1311025a3bfd8dd7b5e07b1adf1d7ece502a15200f7207f515334f7083b8315",
-          "last_commit": "09b5c37",
+          "last_commit": "5ae192a4",
           "name": "searchtrace",
           "purpose": "Directory tests/searchtrace. Purpose not yet described by a human."
         },
         {
           "digest": "3ecf636e2923038708cafa062895b8d8f2664dc1865cdff38575911eaa9f1b2d",
-          "last_commit": "09b5c37",
+          "last_commit": "54826a37",
           "name": "train",
           "purpose": "Directory tests/train. Purpose not yet described by a human."
         },
         {
           "digest": "75d5e576c38a0497a55e9f5ee79550cb94f9b75008f3e4e126312802704b3f86",
-          "last_commit": "09b5c37",
+          "last_commit": "2564f57a",
           "name": "turing",
           "purpose": "Directory tests/turing. Purpose not yet described by a human."
         },
         {
           "digest": "3f19e3034ff999211cb13ab8995ca6c38d0d8e1f5bfbbbd621caaa08412d3f1f",
-          "last_commit": "09b5c37",
+          "last_commit": "fed4f077",
           "name": "visor",
           "purpose": "Directory tests/visor. Purpose not yet described by a human."
         }
       ],
       "children_root": "sha256:9597c068d5bf4eb27f1d91842813a2b10269c2ccae421dceefb4308030ec0fc2",
-      "compiled_at": "2026-10-12T07:06:29Z",
+      "compiled_at": "2026-10-12T07:29:56Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:988f298ad658bf4b7d2552426f400d686e8deee0e00d04c94df63c7591601eed",
+      "digest": "sha256:2c25a63590c9d5759d12eacabb3cd37adbac87e8ee6ac4e074b4970e3419d144",
       "evidence_files": 16,
       "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a",
       "files": 1024,
-      "generated_at_commit": "d749792ac142deb4cb0ea3af0422492719916f21",
-      "source_tree": "sha256:2b7415923db4376fb37718a5941526c107ff91365d2c94916e5df53139d31107"
+      "generated_at_commit": "ec1d3398f0dcc91e6eb66c21107299f042682cff",
+      "source_tree": "sha256:9822bd317bc6b22b70cab66ea273cad2c5768c8561b39b4b9913a4e6be8ace51"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/gpu_matmul_api_test.c b/tests/gpu_matmul_api_test.c
index ef3e3b1b9..97d34bd8a 100644
--- a/tests/gpu_matmul_api_test.c
+++ b/tests/gpu_matmul_api_test.c
@@ -105,6 +105,24 @@ static void frag_host_checks(void) {
                     }
                 }
         CHECK(bad_a == 0 && bad_b == 0, "fragment pack round trip %ux%ux%u (A bad %zu, B bad %zu)", m, k, n, bad_a, bad_b);
+        /* the fused f32 packer equals convert-then-pack bit for bit (ties, denormals, inf, NaN included) */
+        float *af = malloc((size_t)m * k * sizeof *af);
+        uint16_t *pf = malloc((size_t)mp * kp * 2);
+        for (size_t i = 0; i < (size_t)m * k; i++) {
+            uint32_t bits = lcg(&seed) * 2654435761u;
+            switch (i % 7) {
+            case 0: bits = (bits & 0x807fffffu) | 0x3f800000u; break; /* in [1,2) with every mantissa bit live (rounding ties) */
+            case 1: bits = 0x7f800000u | ((bits >> 9) & 0x7fffffu); break; /* inf (0 payload) or NaN payloads */
+            case 2: bits &= 0x807fffffu; break; /* zero and denormals */
+            default: break;
+            }
+            memcpy(&af[i], &bits, 4);
+            a[i] = omega_fp32_to_bf16(af[i]);
+        }
+        omega_matmul_frag_pack_a(a, m, k, mp, kp, pa);
+        omega_matmul_frag_pack_a_f32(af, m, k, mp, kp, pf);
+        CHECK(memcmp(pa, pf, (size_t)mp * kp * 2) == 0, "fused f32 pack equals convert-then-pack %ux%u", m, k);
+        free(af); free(pf);
         free(a); free(b); free(pa); free(pb);
     }
     /* the kernel generates for every padded Qwen3-4B and Llama-3.2-1B decode shape at the API's unroll */