aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / lab-page / main.html
| 1 | <article class="lab" id="lab"> |
| 2 | <header class="lab-hero"> |
| 3 | <div class="lab-sky" aria-hidden="true"><span></span><span></span><span></span></div> |
| 4 | <p class="lab-kicker">OMEGA LAB · NOTHING TO INSTALL</p> |
| 5 | <h1>Write a kernel.<br><span>Run it in one click.</span></h1> |
| 6 | <p class="lab-lead">This is a data-parallel kernel in Omega, the language I build for programs written with AI. Press Run and it executes in this tab as WebAssembly, with its result checked element by element. Edit it and press Compile: my compiler builds it on my DGX Spark and sends the WebAssembly back.</p> |
| 7 | <div class="lab-cta"><a class="lab-go" href="#lab-play">Run it now</a><a class="lab-alt" href="#lab-home">Take it home</a></div> |
| 8 | <div class="lab-overview"> |
| 9 | <div class="lab-side lab-omega"><p class="lab-side-h">Omega, on this page</p><ul><li>Any modern browser</li><li>The compiler and wasm back end: <span data-bytes="omega_tool_bytes">see record.tsv</span>, in the site repo</li><li>omc build of this kernel: <span data-us="omc_program_us">see record.tsv</span></li></ul></div> |
| 10 | </div> |
| 11 | <p class="lab-fact">Measured on my DGX Spark at 2026-10-27T00:42:59Z, load1 8.15, on 2 of 20 CPU cores. omc built the Omega kernel and host loop in 1.881 ms, the median of 7 builds. The measurements and commands are in <a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/captures/record.tsv">record.tsv</a> · <a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/record.sh">record.sh</a></p> |
| 12 | </header> |
| 13 | <section class="lab-section" id="lab-play"> |
| 14 | <p class="lab-kicker">01 / RUN IT</p> |
| 15 | <h2>The Omega kernel.</h2> |
| 16 | <div class="lab-pair"> |
| 17 | <div class="lab-pane"><div class="lab-pane-h"><strong>Omega</strong><span>axpy.om · editable</span><a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/axpy.om">Forge</a></div><textarea id="lab-src" spellcheck="false" autocomplete="off" autocapitalize="off" rows="20" aria-label="Omega kernel source">note y[i] = a*x[i] + y[i]: one element per call. |
| 18 | fn axpy a long x long y long to long |
| 19 | ret add mul a x y |
| 20 | end |
| 21 | note The grid: elements lo to hi-1, with x[i] = i and y[i] = 2i+1 generated in place. |
| 22 | note Returns the sum of the results so a host can check every element. |
| 23 | fn run a long lo long hi long to long |
| 24 | s = long 0 |
| 25 | i = lo |
| 26 | while lt i hi bound 999999 |
| 27 | s = add s axpy a i add mul long 2 i long 1 |
| 28 | i = add i long 1 |
| 29 | end |
| 30 | ret s |
| 31 | end |
| 32 | </textarea></div> |
| 33 | </div> |
| 34 | <div class="lab-controls"> |
| 35 | <label>a <input id="lab-a" type="number" min="1" max="1000" value="3" inputmode="numeric"></label> |
| 36 | <label>elements <select id="lab-n"><option value="1024">1,024</option><option value="65536">65,536</option><option value="1048576" selected>1,048,576</option><option value="4194304">4,194,304</option></select></label> |
| 37 | <button id="lab-run" class="lab-primary" type="button">Run in my browser</button> |
| 38 | <button id="lab-compile" type="button">Compile my edit</button> |
| 39 | <button id="lab-break" type="button">Break it on purpose</button> |
| 40 | <button id="lab-reset" type="button">Reset</button> |
| 41 | </div> |
| 42 | <p id="lab-status" class="lab-status" role="status" aria-live="polite">Loading the prebuilt kernel.</p> |
| 43 | <p id="lab-verdict" class="lab-verdict" aria-live="polite"></p> |
| 44 | <dl class="lab-results"> |
| 45 | <div><dt>Omega kernel, WebAssembly, this tab</dt><dd id="lab-r-wasm">not run yet</dd></div> |
| 46 | <div><dt>Kernel checksum</dt><dd id="lab-r-sum">not run yet</dd></div> |
| 47 | <div><dt>Kernel throughput</dt><dd id="lab-r-rate">not run yet</dd></div> |
| 48 | <div><dt>Compile on my Spark</dt><dd id="lab-c-server">press Compile</dd></div> |
| 49 | <div><dt>Round trip from this tab</dt><dd id="lab-c-trip">press Compile</dd></div> |
| 50 | <div><dt>Compiler pins</dt><dd id="lab-c-pin">press Compile</dd></div> |
| 51 | </dl> |
| 52 | <p class="lab-small">How the check works: for every element the kernel computes y[i] = a·x[i] + y[i] with x[i] = i and y[i] = 2i + 1, and returns the sum of all results. An independent reference computes the same sum to check the result. The page calls run in blocks of at most 999,999 elements, keeping each call within the loop bound. Times are the median of three runs in a worker on your device. Integers only for now: the pinned WebAssembly path does not take f32 yet. Signed integer overflow traps. Break it on purpose changes add to sub so you can watch the check catch it.</p> |
| 53 | </section> |
| 54 | <section class="lab-section" id="lab-backends"> |
| 55 | <p class="lab-kicker">02 / ONE SOURCE, EVERY BACK END</p> |
| 56 | <h2>What my compiler actually emitted.</h2> |
| 57 | <p class="lab-intro">Recorded on my DGX Spark by record.sh, except the WebAssembly, which is whatever this tab is running right now.</p> |
| 58 | <details class="lab-be" open><summary><strong>WebAssembly</strong><span class="lab-tag lab-pass">runs in this tab</span></summary><p id="lab-wasm-meta" class="lab-small">Loading.</p><pre id="lab-wasm" class="lab-code"></pre><p class="lab-small"><a href="https://interplane.io/drakestapleton/aienos.com/blob/main/public/lab/axpy.wasm">axpy.wasm on the forge</a></p></details> |
| 59 | <details class="lab-be"><summary><strong>AArch64</strong><span class="lab-tag lab-pass">ran on the Spark CPU</span></summary><pre class="lab-code">compiler omc sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 (the site pin) |
| 60 | command omc < axpy.om > axpy.bin |
| 61 | compile 1.455 ms, median of 7, Linux aarch64, 2 of 20 CPU cores allowed, DGX Spark (GB10), load1 7.90, 2026-10-27T00:42:59Z |
| 62 | output 276 bytes of raw AArch64 code, sha256 7bdd7e87bb3c4c79897509c7b22f63b2e738195301e9afa665a40387172d2bb7 |
| 63 | program axpy.om + harness.om into one Linux program: 1.881 ms, median of 7, load1 7.90 |
| 64 | run a=3, n=1048576: checksum 2748777496576, awk reference 2748777496576, MATCH |
| 65 | control add changed to sub in the kernel: 549754241024, MISMATCH as it should be |
| 66 | run time 4.345 ms per process (start, 1048576 elements, print, exit), median of 7, load1 7.90 |
| 67 | disasm objdump -D -b binary -m aarch64 -M no-aliases (GNU objdump (GNU Binutils for Ubuntu) 2.42) |
| 68 | |
| 69 | 0: 1400000d b 0x34 |
| 70 | 4: 9b417c04 smulh x4, x0, x1 |
| 71 | 8: 9b017c03 madd x3, x0, x1, xzr |
| 72 | c: eb83fc9f subs xzr, x4, x3, asr #63 |
| 73 | 10: 540000e1 b.ne 0x2c // b.any |
| 74 | 14: ab020060 adds x0, x3, x2 |
| 75 | 18: 540000a6 b.vs 0x2c |
| 76 | 1c: d65f03c0 ret |
| 77 | 20: aa0703e0 orr x0, xzr, x7 |
| 78 | 24: f94008f0 ldr x16, [x7, #16] |
| 79 | 28: d61f0200 br x16 |
| 80 | 2c: d2800021 movz x1, #0x1 |
| 81 | 30: 17fffffc b 0x20 |
| 82 | 34: d2800003 movz x3, #0x0 |
| 83 | 38: aa0103e4 orr x4, xzr, x1 |
| 84 | 3c: d2800005 movz x5, #0x0 |
| 85 | 40: eb02009f subs xzr, x4, x2 |
| 86 | 44: 5400056a b.ge 0xf0 // b.tcont |
| 87 | 48: d28847e6 movz x6, #0x423f |
| 88 | 4c: f2a001e6 movk x6, #0xf, lsl #16 |
| 89 | 50: eb0600bf subs xzr, x5, x6 |
| 90 | 54: 540005c2 b.cs 0x10c // b.hs, b.nlast |
| 91 | 58: 910004a5 add x5, x5, #0x1 |
| 92 | 5c: d2800046 movz x6, #0x2 |
| 93 | 60: 9b447cc9 smulh x9, x6, x4 |
| 94 | 64: 9b047cc8 madd x8, x6, x4, xzr |
| 95 | 68: eb88fd3f subs xzr, x9, x8, asr #63 |
| 96 | 6c: 540004c1 b.ne 0x104 // b.any |
| 97 | 70: b100050a adds x10, x8, #0x1 |
| 98 | 74: 54000486 b.vs 0x104 |
| 99 | 78: d10183ff sub sp, sp, #0x60 |
| 100 | 7c: f90003e0 str x0, [sp] |
| 101 | 80: f90007e1 str x1, [sp, #8] |
| 102 | 84: f9000be2 str x2, [sp, #16] |
| 103 | 88: f9000fe3 str x3, [sp, #24] |
| 104 | 8c: f90013e4 str x4, [sp, #32] |
| 105 | 90: f90017e5 str x5, [sp, #40] |
| 106 | 94: f9001be6 str x6, [sp, #48] |
| 107 | 98: f9001fe8 str x8, [sp, #56] |
| 108 | 9c: f90023e9 str x9, [sp, #64] |
| 109 | a0: f90027ea str x10, [sp, #72] |
| 110 | a4: f9002bfe str x30, [sp, #80] |
| 111 | a8: f94003e0 ldr x0, [sp] |
| 112 | ac: f94013e1 ldr x1, [sp, #32] |
| 113 | b0: f94027e2 ldr x2, [sp, #72] |
| 114 | b4: 97ffffd4 bl 0x4 |
| 115 | b8: aa0003e6 orr x6, xzr, x0 |
| 116 | bc: f94003e0 ldr x0, [sp] |
| 117 | c0: f94007e1 ldr x1, [sp, #8] |
| 118 | c4: f9400be2 ldr x2, [sp, #16] |
| 119 | c8: f9400fe3 ldr x3, [sp, #24] |
| 120 | cc: f94013e4 ldr x4, [sp, #32] |
| 121 | d0: f94017e5 ldr x5, [sp, #40] |
| 122 | d4: f9402bfe ldr x30, [sp, #80] |
| 123 | d8: 910183ff add sp, sp, #0x60 |
| 124 | dc: ab060063 adds x3, x3, x6 |
| 125 | e0: 54000126 b.vs 0x104 |
| 126 | e4: b1000484 adds x4, x4, #0x1 |
| 127 | e8: 540000e6 b.vs 0x104 |
| 128 | ec: 17ffffd5 b 0x40 |
| 129 | f0: aa0303e0 orr x0, xzr, x3 |
| 130 | f4: d65f03c0 ret |
| 131 | f8: aa0703e0 orr x0, xzr, x7 |
| 132 | fc: f94008f0 ldr x16, [x7, #16] |
| 133 | 100: d61f0200 br x16 |
| 134 | 104: d2800021 movz x1, #0x1 |
| 135 | 108: 17fffffc b 0xf8 |
| 136 | 10c: d2800081 movz x1, #0x4 |
| 137 | 110: 17fffffa b 0xf8 |
| 138 | </pre><p class="lab-small"><a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/captures/aarch64.txt">aarch64.txt on the forge</a></p></details> |
| 139 | <details class="lab-be"><summary><strong>SPIR-V</strong><span class="lab-tag lab-pass">validated, ran on PoCL (CPU)</span><span class="lab-tag lab-not">GPU: NOT_RUN</span></summary><pre class="lab-code">compiler omega-mv 369dbc96daa1684db2d7c2c7085bbf16b3fd77ee: omc sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f builds irspirv |
| 140 | command { printf 'ir\n'; cat axpy.om; } | omc > axpy.ir && irspirv < axpy.ir > axpy.spv |
| 141 | translate 1.625 ms for irspirv, median of 7, Linux aarch64, 2 of 20 CPU cores allowed, DGX Spark (GB10), load1 7.90 |
| 142 | output 4140 bytes, sha256 adeb8af7af76a547329eb9d91d839032a66c1d70f0a9b3fd0f78000bd77d8f48 |
| 143 | validate spirv-val --target-env opencl2.1: valid (SPIRV-Tools v2025.1 unknown hash, 2026-05-13T06:03:38+00:00) |
| 144 | run PoCL 7.2 on the CPU (cpu-cortex-a720-0xd87): run 3 0 1000 = 2498500, trap 0; reference 2498500, MATCH |
| 145 | not run no GPU has executed this SPIR-V yet |
| 146 | |
| 147 | ; SPIR-V |
| 148 | ; Version: 1.0 |
| 149 | ; Generator: Khronos; 0 |
| 150 | ; Bound: 212 |
| 151 | ; Schema: 0 |
| 152 | OpCapability Addresses |
| 153 | OpCapability Kernel |
| 154 | OpCapability Int64 |
| 155 | OpMemoryModel Physical64 OpenCL |
| 156 | OpEntryPoint Kernel %33 "axpy" |
| 157 | OpEntryPoint Kernel %35 "run" |
| 158 | %void = OpTypeVoid |
| 159 | %bool = OpTypeBool |
| 160 | %ulong = OpTypeInt 64 0 |
| 161 | %_ptr_Function_ulong = OpTypePointer Function %ulong |
| 162 | %_ptr_CrossWorkgroup_ulong = OpTypePointer CrossWorkgroup %ulong |
| 163 | %6 = OpTypeFunction %void %_ptr_CrossWorkgroup_ulong %_ptr_CrossWorkgroup_ulong |
| 164 | %7 = OpTypeFunction %ulong %_ptr_Function_ulong |
| 165 | %8 = OpTypeFunction %ulong %_ptr_Function_ulong %ulong |
| 166 | %9 = OpTypeFunction %ulong %_ptr_Function_ulong %ulong %ulong |
| 167 | %10 = OpTypeFunction %ulong %_ptr_Function_ulong %ulong %ulong %ulong |
| 168 | %11 = OpTypeFunction %ulong %_ptr_Function_ulong %ulong %ulong %ulong %ulong |
| 169 | %12 = OpTypeFunction %ulong %_ptr_Function_ulong %ulong %ulong %ulong %ulong %ulong |
| 170 | %13 = OpTypeFunction %ulong %_ptr_Function_ulong %ulong %ulong %ulong %ulong %ulong %ulong |
| 171 | %ulong_0 = OpConstant %ulong 0 |
| 172 | %ulong_9223372036854775808 = OpConstant %ulong 9223372036854775808 |
| 173 | %ulong_9223372036854775807 = OpConstant %ulong 9223372036854775807 |
| 174 | %ulong_1 = OpConstant %ulong 1 |
| 175 | %ulong_101 = OpConstant %ulong 101 |
| 176 | %ulong_2 = OpConstant %ulong 2 |
| 177 | %ulong_999999 = OpConstant %ulong 999999 |
| 178 | %ulong_104 = OpConstant %ulong 104 |
| 179 | %32 = OpFunction %ulong None %10 |
| 180 | %36 = OpFunctionParameter %_ptr_Function_ulong |
| 181 | %37 = OpFunctionParameter %ulong |
| 182 | %38 = OpFunctionParameter %ulong |
| 183 | %39 = OpFunctionParameter %ulong |
| 184 | %40 = OpLabel |
| 185 | %41 = OpVariable %_ptr_Function_ulong Function |
| 186 | %42 = OpVariable %_ptr_Function_ulong Function |
| 187 | %43 = OpVariable %_ptr_Function_ulong Function |
| 188 | %44 = OpVariable %_ptr_Function_ulong Function |
| 189 | %45 = OpVariable %_ptr_Function_ulong Function |
| 190 | OpStore %41 %37 |
| 191 | OpStore %42 %38 |
| 192 | OpStore %43 %39 |
| 193 | OpBranch %46 |
| 194 | %46 = OpLabel |
| 195 | %47 = OpLoad %ulong %41 |
| 196 | %48 = OpLoad %ulong %42 |
| 197 | %50 = OpSLessThan %bool %47 %ulong_0 |
| 198 | %51 = OpSLessThan %bool %48 %ulong_0 |
| 199 | %52 = OpISub %ulong %ulong_0 %47 |
| 200 | %53 = OpSelect %ulong %50 %52 %47 |
| 201 | %54 = OpISub %ulong %ulong_0 %48 |
| 202 | %55 = OpSelect %ulong %51 %54 %48 |
| 203 | %56 = OpLogicalNotEqual %bool %50 %51 |
| 204 | %59 = OpSelect %ulong %56 %ulong_9223372036854775808 %ulong_9223372036854775807 |
| 205 | %60 = OpIEqual %bool %55 %ulong_0 |
| 206 | %62 = OpSelect %ulong %60 %ulong_1 %55 |
| 207 | %63 = OpUDiv %ulong %59 %62 |
| 208 | %64 = OpUGreaterThan %bool %53 %63 |
| 209 | %65 = OpINotEqual %bool %55 %ulong_0 |
| 210 | %66 = OpLogicalAnd %bool %64 %65 |
| 211 | OpBranchConditional %66 %67 %68 |
| 212 | %67 = OpLabel |
| 213 | OpStore %36 %ulong_101 |
| 214 | OpReturnValue %ulong_0 |
| 215 | %68 = OpLabel |
| 216 | %70 = OpIMul %ulong %47 %48 |
| 217 | OpStore %44 %70 |
| 218 | %71 = OpLoad %ulong %44 |
| 219 | %72 = OpLoad %ulong %43 |
| 220 | %73 = OpIAdd %ulong %71 %72 |
| 221 | %74 = OpBitwiseXor %ulong %71 %73 |
| 222 | %75 = OpBitwiseXor %ulong %72 %73 |
| 223 | %76 = OpBitwiseAnd %ulong %74 %75 |
| 224 | %77 = OpSLessThan %bool %76 %ulong_0 |
| 225 | OpBranchConditional %77 %78 %79 |
| 226 | %78 = OpLabel |
| 227 | OpStore %36 %ulong_101 |
| 228 | OpReturnValue %ulong_0 |
| 229 | %79 = OpLabel |
| 230 | OpStore %45 %73 |
| 231 | %80 = OpLoad %ulong %45 |
| 232 | OpReturnValue %80 |
| 233 | OpFunctionEnd |
| 234 | %33 = OpFunction %void None %6 |
| 235 | %81 = OpFunctionParameter %_ptr_CrossWorkgroup_ulong |
| 236 | %82 = OpFunctionParameter %_ptr_CrossWorkgroup_ulong |
| 237 | %83 = OpLabel |
| 238 | %84 = OpVariable %_ptr_Function_ulong Function |
| 239 | OpStore %84 %ulong_0 |
| 240 | %85 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %81 %ulong_0 |
| 241 | %86 = OpLoad %ulong %85 |
| 242 | %87 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %81 %ulong_1 |
| 243 | %88 = OpLoad %ulong %87 |
| 244 | %89 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %81 %ulong_2 |
| 245 | %91 = OpLoad %ulong %89 |
| 246 | %92 = OpFunctionCall %ulong %32 %84 %86 %88 %91 |
| 247 | OpStore %82 %92 |
| 248 | %93 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %82 %ulong_1 |
| 249 | %94 = OpLoad %ulong %84 |
| 250 | OpStore %93 %94 |
| 251 | OpReturn |
| 252 | OpFunctionEnd |
| 253 | %34 = OpFunction %ulong None %10 |
| 254 | %95 = OpFunctionParameter %_ptr_Function_ulong |
| 255 | %96 = OpFunctionParameter %ulong |
| 256 | %97 = OpFunctionParameter %ulong |
| 257 | %98 = OpFunctionParameter %ulong |
| 258 | %99 = OpLabel |
| 259 | %100 = OpVariable %_ptr_Function_ulong Function |
| 260 | %101 = OpVariable %_ptr_Function_ulong Function |
| 261 | %102 = OpVariable %_ptr_Function_ulong Function |
| 262 | %103 = OpVariable %_ptr_Function_ulong Function |
| 263 | %104 = OpVariable %_ptr_Function_ulong Function |
| 264 | %105 = OpVariable %_ptr_Function_ulong Function |
| 265 | %106 = OpVariable %_ptr_Function_ulong Function |
| 266 | %107 = OpVariable %_ptr_Function_ulong Function |
| 267 | %108 = OpVariable %_ptr_Function_ulong Function |
| 268 | %109 = OpVariable %_ptr_Function_ulong Function |
| 269 | %110 = OpVariable %_ptr_Function_ulong Function |
| 270 | %111 = OpVariable %_ptr_Function_ulong Function |
| 271 | %112 = OpVariable %_ptr_Function_ulong Function |
| 272 | %113 = OpVariable %_ptr_Function_ulong Function |
| 273 | %114 = OpVariable %_ptr_Function_ulong Function |
| 274 | %115 = OpVariable %_ptr_Function_ulong Function |
| 275 | %116 = OpVariable %_ptr_Function_ulong Function |
| 276 | OpStore %100 %96 |
| 277 | OpStore %101 %97 |
| 278 | OpStore %102 %98 |
| 279 | OpBranch %117 |
| 280 | %117 = OpLabel |
| 281 | OpStore %103 %ulong_0 |
| 282 | OpStore %106 %ulong_0 |
| 283 | OpStore %107 %ulong_1 |
| 284 | OpStore %110 %ulong_999999 |
| 285 | OpStore %112 %ulong_2 |
| 286 | OpStore %114 %ulong_1 |
| 287 | %124 = OpLoad %ulong %103 |
| 288 | OpStore %104 %124 |
| 289 | %125 = OpLoad %ulong %101 |
| 290 | OpStore %105 %125 |
| 291 | %126 = OpLoad %ulong %106 |
| 292 | OpStore %108 %126 |
| 293 | OpBranch %118 |
| 294 | %118 = OpLabel |
| 295 | %127 = OpLoad %ulong %105 |
| 296 | %128 = OpLoad %ulong %102 |
| 297 | %129 = OpSLessThan %bool %127 %128 |
| 298 | %130 = OpSelect %ulong %129 %ulong_1 %ulong_0 |
| 299 | OpStore %109 %130 |
| 300 | %131 = OpLoad %ulong %109 |
| 301 | %132 = OpINotEqual %bool %131 %ulong_0 |
| 302 | OpBranchConditional %132 %119 %122 |
| 303 | %119 = OpLabel |
| 304 | %133 = OpLoad %ulong %108 |
| 305 | %134 = OpLoad %ulong %110 |
| 306 | %135 = OpUGreaterThanEqual %bool %133 %134 |
| 307 | %136 = OpSelect %ulong %135 %ulong_1 %ulong_0 |
| 308 | OpStore %111 %136 |
| 309 | %137 = OpLoad %ulong %111 |
| 310 | %138 = OpINotEqual %bool %137 %ulong_0 |
| 311 | OpBranchConditional %138 %120 %121 |
| 312 | %121 = OpLabel |
| 313 | %139 = OpLoad %ulong %108 |
| 314 | %140 = OpLoad %ulong %107 |
| 315 | %141 = OpIAdd %ulong %139 %140 |
| 316 | OpStore %108 %141 |
| 317 | %142 = OpLoad %ulong %112 |
| 318 | %143 = OpLoad %ulong %105 |
| 319 | %144 = OpSLessThan %bool %142 %ulong_0 |
| 320 | %145 = OpSLessThan %bool %143 %ulong_0 |
| 321 | %146 = OpISub %ulong %ulong_0 %142 |
| 322 | %147 = OpSelect %ulong %144 %146 %142 |
| 323 | %148 = OpISub %ulong %ulong_0 %143 |
| 324 | %149 = OpSelect %ulong %145 %148 %143 |
| 325 | %150 = OpLogicalNotEqual %bool %144 %145 |
| 326 | %151 = OpSelect %ulong %150 %ulong_9223372036854775808 %ulong_9223372036854775807 |
| 327 | %152 = OpIEqual %bool %149 %ulong_0 |
| 328 | %153 = OpSelect %ulong %152 %ulong_1 %149 |
| 329 | %154 = OpUDiv %ulong %151 %153 |
| 330 | %155 = OpUGreaterThan %bool %147 %154 |
| 331 | %156 = OpINotEqual %bool %149 %ulong_0 |
| 332 | %157 = OpLogicalAnd %bool %155 %156 |
| 333 | OpBranchConditional %157 %158 %159 |
| 334 | %158 = OpLabel |
| 335 | OpStore %95 %ulong_101 |
| 336 | OpReturnValue %ulong_0 |
| 337 | %159 = OpLabel |
| 338 | %160 = OpIMul %ulong %142 %143 |
| 339 | OpStore %113 %160 |
| 340 | %161 = OpLoad %ulong %113 |
| 341 | %162 = OpLoad %ulong %114 |
| 342 | %163 = OpIAdd %ulong %161 %162 |
| 343 | %164 = OpBitwiseXor %ulong %161 %163 |
| 344 | %165 = OpBitwiseXor %ulong %162 %163 |
| 345 | %166 = OpBitwiseAnd %ulong %164 %165 |
| 346 | %167 = OpSLessThan %bool %166 %ulong_0 |
| 347 | OpBranchConditional %167 %168 %169 |
| 348 | %168 = OpLabel |
| 349 | OpStore %95 %ulong_101 |
| 350 | OpReturnValue %ulong_0 |
| 351 | %169 = OpLabel |
| 352 | OpStore %115 %163 |
| 353 | %170 = OpLoad %ulong %100 |
| 354 | %171 = OpLoad %ulong %105 |
| 355 | %172 = OpLoad %ulong %115 |
| 356 | %173 = OpFunctionCall %ulong %32 %95 %170 %171 %172 |
| 357 | %174 = OpLoad %ulong %95 |
| 358 | %177 = OpINotEqual %bool %174 %ulong_0 |
| 359 | OpBranchConditional %177 %175 %176 |
| 360 | %175 = OpLabel |
| 361 | OpReturnValue %ulong_0 |
| 362 | %176 = OpLabel |
| 363 | OpStore %116 %173 |
| 364 | %178 = OpLoad %ulong %104 |
| 365 | %179 = OpLoad %ulong %116 |
| 366 | %180 = OpIAdd %ulong %178 %179 |
| 367 | %181 = OpBitwiseXor %ulong %178 %180 |
| 368 | %182 = OpBitwiseXor %ulong %179 %180 |
| 369 | %183 = OpBitwiseAnd %ulong %181 %182 |
| 370 | %184 = OpSLessThan %bool %183 %ulong_0 |
| 371 | OpBranchConditional %184 %185 %186 |
| 372 | %185 = OpLabel |
| 373 | OpStore %95 %ulong_101 |
| 374 | OpReturnValue %ulong_0 |
| 375 | %186 = OpLabel |
| 376 | OpStore %104 %180 |
| 377 | %187 = OpLoad %ulong %105 |
| 378 | %188 = OpLoad %ulong %114 |
| 379 | %189 = OpIAdd %ulong %187 %188 |
| 380 | %190 = OpBitwiseXor %ulong %187 %189 |
| 381 | %191 = OpBitwiseXor %ulong %188 %189 |
| 382 | %192 = OpBitwiseAnd %ulong %190 %191 |
| 383 | %193 = OpSLessThan %bool %192 %ulong_0 |
| 384 | OpBranchConditional %193 %194 %195 |
| 385 | %194 = OpLabel |
| 386 | OpStore %95 %ulong_101 |
| 387 | OpReturnValue %ulong_0 |
| 388 | %195 = OpLabel |
| 389 | OpStore %105 %189 |
| 390 | OpBranch %118 |
| 391 | %120 = OpLabel |
| 392 | OpStore %95 %ulong_104 |
| 393 | OpReturnValue %ulong_0 |
| 394 | %197 = OpLabel |
| 395 | OpBranch %122 |
| 396 | %122 = OpLabel |
| 397 | %198 = OpLoad %ulong %104 |
| 398 | OpReturnValue %198 |
| 399 | OpFunctionEnd |
| 400 | %35 = OpFunction %void None %6 |
| 401 | %199 = OpFunctionParameter %_ptr_CrossWorkgroup_ulong |
| 402 | %200 = OpFunctionParameter %_ptr_CrossWorkgroup_ulong |
| 403 | %201 = OpLabel |
| 404 | %202 = OpVariable %_ptr_Function_ulong Function |
| 405 | OpStore %202 %ulong_0 |
| 406 | %203 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %199 %ulong_0 |
| 407 | %204 = OpLoad %ulong %203 |
| 408 | %205 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %199 %ulong_1 |
| 409 | %206 = OpLoad %ulong %205 |
| 410 | %207 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %199 %ulong_2 |
| 411 | %208 = OpLoad %ulong %207 |
| 412 | %209 = OpFunctionCall %ulong %34 %202 %204 %206 %208 |
| 413 | OpStore %200 %209 |
| 414 | %210 = OpPtrAccessChain %_ptr_CrossWorkgroup_ulong %200 %ulong_1 |
| 415 | %211 = OpLoad %ulong %202 |
| 416 | OpStore %210 %211 |
| 417 | OpReturn |
| 418 | OpFunctionEnd |
| 419 | </pre><p class="lab-small"><a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/captures/spirv.txt">spirv.txt on the forge</a></p></details> |
| 420 | </section> |
| 421 | <section class="lab-section" id="lab-race"> |
| 422 | <p class="lab-kicker">03 / EXECUTION RECEIPTS</p> |
| 423 | <h2>Where it has run, and where it has not.</h2> |
| 424 | <div class="lab-scroll"><table class="lab-table"> |
| 425 | <thead><tr><th>Where</th><th>What ran</th><th>Elements</th><th>Time</th><th>Check</th><th>Evidence</th></tr></thead> |
| 426 | <tbody> |
| 427 | <tr class="lab-you"><td>Your device, this tab</td><td>this kernel, Omega to WebAssembly</td><td data-live="n">press Run</td><td data-live="time">press Run</td><td data-live="check">press Run</td><td><a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/axpy.om">kernel</a></td></tr> |
| 428 | <tr><td>DGX Spark, Arm CPU</td><td>this kernel, Omega to AArch64, whole process</td><td>1,048,576</td><td data-us="native_run_us">see record.tsv</td><td>MATCH; sub control fails</td><td><a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/captures/aarch64.txt">aarch64.txt</a></td></tr> |
| 429 | <tr><td>DGX Spark, Arm CPU</td><td>this kernel, Omega to SPIR-V on PoCL</td><td>1,000</td><td>not timed</td><td>MATCH</td><td><a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/captures/spirv.txt">spirv.txt</a></td></tr> |
| 430 | <tr><td>GB10 GPU</td><td>vector add in asm2 (not this kernel)</td><td>1,048,576</td><td>214,257 ns launch to done</td><td>0 wrong</td><td><a href="https://interplane.io/drakestapleton/omega-mv/commit/3e3da942ad630035ff773982b1aba89b36ba76d6">omega-mv SEED-0</a> <code>omega-mv 3e3da942ad630035ff773982b1aba89b36ba76d6</code></td></tr> |
| 431 | <tr><td>GB10 GPU</td><td>hello_gpu float add, kernel from my own builder (not this kernel)</td><td>1,048,576</td><td>947.5 µs GPU</td><td>0 wrong</td><td><a href="https://interplane.io/drakestapleton/CUDApp/blob/2b4b2b14f1c67473b80878d2eff73b32b3522d54/evidence/l424/hello-chip.log">CUDApp log</a> <code>CUDApp 2b4b2b14f1c67473b80878d2eff73b32b3522d54</code></td></tr> |
| 432 | <tr class="lab-nr"><td>GB10 GPU</td><td>this kernel from omc</td><td colspan="3">NOT_RUN: omc has no SASS lowering for it yet</td><td><a href="https://interplane.io/drakestapleton/omega-mv">omega-mv</a></td></tr> |
| 433 | </tbody></table></div> |
| 434 | <p class="lab-small">These are dated receipts for the named kernels, sizes and machine load. The GB10 runs use driver-loaded signed firmware on DGX OS. The asm2 run shared the machine at load1 61; the hello_gpu run had a quiet window.</p> |
| 435 | </section> |
| 436 | <section class="lab-section lab-model" id="lab-model"> |
| 437 | <p class="lab-kicker">04 / ASK FOR A KERNEL</p> |
| 438 | <h2>Let Aien write the next one.</h2> |
| 439 | <p>Aien is my assistant. It runs on my GB10 and writes Omega in the chat, with the same compile and run buttons you just used.</p> |
| 440 | <p><a class="lab-go" href="/aien/">Talk to Aien</a> <a class="lab-alt" href="https://interplane.io/drakestapleton/aienos.com/tree/main/om/allen-page">source</a></p> |
| 441 | </section> |
| 442 | <section class="lab-section" id="lab-home"> |
| 443 | <p class="lab-kicker">05 / TAKE IT HOME</p> |
| 444 | <h2>Take it home: not open yet.</h2> |
| 445 | <p class="lab-small">The take-home is three lines from a clone of this site's repository, which is moving to Interplane, my own forge. Downloads are not open yet, so there is no command here today. On Linux on 64-bit Arm it checks the compiler pins, builds the kernel, runs it, checks against an independent reference, runs the broken control and writes the same axpy.wasm this page runs. Other machines get a plain NOT_RUN and a pointer back here. <a href="https://interplane.io/drakestapleton/aienos.com/blob/main/om/lab-page/run.sh">Read run.sh first.</a></p> |
| 446 | <h3>Start your own kernel repository.</h3> |
| 447 | <p class="lab-small">One command makes a public repository from my template. Edit kernel.om and the independent reference beside it, push, and GitHub's ubuntu-24.04-arm runner builds your kernel for AArch64 and SPIR-V, runs both (SPIR-V on PoCL, a CPU), and checks every result against the reference. No GPU runs there.</p> |
| 448 | <div class="lab-install"><pre>gh repo create my-kernel --template aien-dev/omega-kernel-template --public --clone</pre></div> |
| 449 | <p class="lab-small">omega-kernel-template · passing check (<code>omega-kernel-template CI run 40426781699</code>) · failing control: an overflowing kernel must fail (<code>omega-kernel-template CI run 40426783628</code>)</p> |
| 450 | <h3>Do not trust my compiler? Rebuild it.</h3> |
| 451 | <p class="lab-small">The seed challenge rebuilds the Omega seed chain from 408 bytes and must land on the same fixed output. It passes on GitHub's own ubuntu-24.04-arm runner, and its tampered-rung, wrong-value and forged-log controls fail as required. From a fresh full clone of omega-mv main (52eba88) on my Spark it printed CHALLENGE PASS in 1.06 s wall. It is a fixed-output reproducibility match, not general self-hosting and not diverse double compiling. It needs the full history of omega-mv, which is moving to Interplane with the rest of my code; downloads are not open yet. From a full copy of omega-mv:</p> |
| 452 | <div class="lab-install"><pre>cd omega-mv |
| 453 | sh seed/challenge/run.sh</pre></div> |
| 454 | <p class="lab-small"><a href="https://interplane.io/drakestapleton/omega-mv/blob/main/seed/challenge/CHALLENGE.md">CHALLENGE.md</a> · <code>omega-seed-challenge CI run 40426178383</code> · post your result (<code>omega-seed-challenge issues</code>)</p> |
| 455 | <h3>The GPU bench kit: kernels withdrawn.</h3> |
| 456 | <p class="lab-small">On 2026-10-27 I withdrew the bench kit's GPU binaries and encoder pending a clean-room rewrite. The kit ships no kernel and ./run prints NOT_RUN on every GPU. Its board retains three earlier rows, not timed. The kit's own run on real hardware: NOT_RUN.</p> |
| 457 | <p class="lab-small">omega-gpu-bench: the board and receipts.json live in the aien-dev/omega-gpu-bench repository, which has no public page yet.</p> |
| 458 | </section> |
| 459 | <p class="lab-foot">Page structure and script generated by seeded Omega: <a href="https://interplane.io/drakestapleton/aienos.com/tree/main/om/lab-page">om/lab-page</a>.</p> |
| 460 | </article> |