diff --git a/.crumb b/.crumb index 935bb0ef4..f970bd751 100644 --- a/.crumb +++ b/.crumb @@ -64,7 +64,7 @@ }, { "digest": "b98001ac8c91759a2eb2125dadf492b7cb2dc1072279baad13a5d7c50470df12", - "last_commit": "abb4d224", + "last_commit": "710d438c", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, @@ -82,38 +82,38 @@ }, { "digest": "119a9f1adb744797c10e946c8e9725ec260587fb303668d71a627527d31a8e84", - "last_commit": "accd294d", + "last_commit": "710d438c", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "d69b7371545db3c5920b5e035b3d1d8b8205664f393fedd7b9fc1bb582f23821", - "last_commit": "265ce82a", + "last_commit": "8d0698e9", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { "digest": "8401c311b8d73c13a75937463ca173dba2af1a3e79fda3e126be4e1918f56436", - "last_commit": "accd294d", + "last_commit": "710d438c", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "84e7502fdc66e65c9c94ffaa834cc53aec818ee3215716ba98926cf1c70bcca8", - "last_commit": "dd67f6bd", + "last_commit": "8d0698e9", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], "children_root": "sha256:44431b7effe75de4017e5a7fe6e7810607b465f61b217cf1df997d7cf1f9788f", - "compiled_at": "2026-10-15T00:25:19Z", + "compiled_at": "2026-10-15T01:56:24Z", "compiler": "crumb-compile/1", - "digest": "sha256:d33abb528566e2b7158ab4ef752b8d810ec7e5073bb6d196e584cb17cc9f2bec", - "evidence_files": 7963, - "evidence_root": "sha256:d198e446f05fd456453e386f3d6cfa4f28afb8ea8adbe0ed352bd9815d3cf3dd", - "files": 10731, - "generated_at_commit": "6dd6b739360d4ac2f5f997a96b6f8b110951a0a1", - "source_tree": "sha256:af844ade36bd73d7f365f4b0980b1c9f063baaf0aa0c4728c2417be693b92459" + "digest": "sha256:7ef7d0ef646b0b36c0234f60d12a394e4fdb75cab2a8d3fa32a928d5505eff21", + "evidence_files": 8525, + "evidence_root": "sha256:7e338e990796a9edfddac421772f65cfe8bfdef7432fcfcb55685c44db83af7c", + "files": 11293, + "generated_at_commit": "c732af7e70e0fdad016a3c4f8555ffa25afccfd7", + "source_tree": "sha256:1b48524c014108a701e61791df2c07b30c6a5da6e470295f6448f95bf9527644" }, "owner_lane": "", "provenance": { diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/NOTES.md b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/NOTES.md new file mode 100644 index 000000000..1aed37ddc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/NOTES.md @@ -0,0 +1,70 @@ +# OWN-30B re-qualification at omega main (after #439), 2026-10-15 + +Base: omega main 710d438c (62833658 #439 plus #455: checker2 fixtures, mk/checker2.mk, spec/one-layer-receipts.md and crumbs; no src change), +clean tree. Physics 6d7cf0d4 (physics.lock), clean. Driver nvidia-open 580.173.02, GB10. +libomega_gpu.a at this base: sha256 6a6cb4df479ddbcc5cd4ef0fda1aea968832b2b70be2ff3312051c3e9921aad5, byte-identical to +the pre-merge RC archive (d0889a94 notes) and to the archive aien-sovereign-core now locks. + +Each gate ran in its own `quietlock hold --owner OWN30B --minutes 20` under `flock /tmp/aien-gb10.lock`, one after the +other, nothing killed or timed out. Commands: `omega-gates.sh` (series) and `stage2.sh` (reruns, cross-base, #457). +Verdict lines: `gates/summary.txt`; full output: `gates/.out`; receipts: `gates//`. + +## Gate results (gates/) + +| gate | verdict | vs pre-merge | +|---|---|---| +| bf16_gemv | PASS | numbers UNVERIFIED (no committed pre-merge log) | +| cmdlist | PASS, chip 31/31 | same as DECODE-LAUNCH-COLLAPSE-20261013/cmdlist-r5-stamps (31/31) | +| decode_attn | PASS | UNVERIFIED | +| decode_graph main | PASS, chip 13/13; C one list 3978.7 us/token (2 layers) vs A 5002.5, B 5337.5 | pre-merge graph-r3-stamps C 3928.2, A 4891.4, B 5320.6 (C +1.3%, calc:c370931847535fb8) | +| decode_graph red | FAILED_AS_EXPECTED | same | +| decode_graph cached | PASS | UNVERIFIED | +| fp8, fp8_v2, fp8gemm | PASS | UNVERIFIED | +| l2d_barrier, l2d_prefetch | PASS | same verdicts as OWN30B-L2D-*-20261014/r1 | +| matmul_api, router, tcgemm, attention, cut4b, elementwise | PASS | UNVERIFIED | +| reconv | PASS 235/235 (run through `sh`, see below) | UNVERIFIED | +| prefill_attn | FAIL (2 checks, fused step only) | pre-existing, see below | +| l1g (qmma pfgemm qgemm) | FAIL (pfgemm only) | pre-existing, identical to OWN30B-L1G-GEMM-1e76e728 | + +### prefill_attn FAIL: pre-existing test defect, not a merge regression +- Failing checks (step `main-fused`, `--fused --quick`): `continuation: mirror view valid 0 (want 369)` and + `negative control: a foreign rewrite without invalidate must show (stale mirror), 0 outputs differ`. All other steps PASS + (host 69/0, sim 97/0, main 164/0, warps4 127/0, spread 103/0 x4). [OBSERVED gates/prefill_attn/main-fused.log] +- Cause [OBSERVED in code]: the fused path never uses the K/V mirror (`src/omega_gpu_prefill_attn_api.c:298,333` + `if (!g.fused && !g.mirror_off && ...)`), but `chip_continuation()` (added in bba7688a, cut 5) only skips when the build + has no mirror or `--no-mirror`; it does not skip under `--fused`. The cut 5 evidence (OWN30B-L1A-PATTN5-PERSIST-bba7688a) + ran only the non-fused main step, so this combination had no committed chip run before. +- Cross-base: the same gate at the pre-merge RC d0889a94 fails identically (`rc-d0889a94/prefill_attn/main-fused.log`). + The gate script, the test and the prefill src are byte-identical between d0889a94 and 710d438c. +- Fix (not made here): `chip_continuation` should also skip in fused mode. + +### l1g FAIL: pre-existing, identical to the pre-merge evidence +- `pfgemm-chip` (`gpu_pfgemm_test --shape-knob 4 16 1 --chip`): `gateup bit-identity on 48 sampled rows: 101 differ (beyond + 1 bf16 ulp; 1 within 1 ulp of 36864)`, GPU_PFGEMM: FAIL; down, qkv, o 0 differ. OWN30B-L1G-GEMM-1e76e728/pfgemm-chip.log + has the same 101 / 1 / FAIL. Timings faster now (gateup median 3.216 ms vs 3.999 ms; down 2.666 vs 3.499). + qmma probe, qgemm chip, qgemm cached, qgemm cached wait0 gateup/down: exit 0. qmma-words.bin is byte-identical to + OWN30B-L1G-QMMA-PFGEMM-c742aa13/qmma-words.bin. + +### reconv runner mode +`tools/run_gpu_reconv_chip.sh` is committed as mode 100644, so the series got rc 126 (Permission denied); the rerun through +`sh tools/run_gpu_reconv_chip.sh` is `gates/reconv-sh.out` (PASS 235/235). + +## omega #457: cached CPU_WRITE buffers, stale L2 after a host write (omega457/) + +ANSWER: YES. Sealed investigation folder (plan.md Result, SHA256SUMS; the two repro binaries +`l2_stale_test` d484de7b... and `l2_stale_test_fix` abfb86ae... are listed in SHA256SUMS but not committed). +- DOCS: nvos.h:1117-1118 "For system memory this will not be coherent with direct CPU mappings."; clc96f.h:73 + L2_SYSMEM_NCOH_INVALIDATE 0x11. DOCS SILENT on next-launch visibility after a host write. +- Baseline (frozen 6a6cb4df): rewrite of a GPU-cached FP8 weight buffer the GPU already read: STALE_READ 5/5, 4096 of 4096 + lines stale on each of 3 later launches. Negative control (uncached): FRESH 5/5. Free + re-upload: FRESH 5/5 both modes. +- Fix candidate (proposed in its own PR, not merged here): the platform records a host sync into a GPU-cached buffer and + starts the next submission with L2_SYSMEM_NCOH_INVALIDATE. variant=fix 20/20 FRESH. +- Regression gate `tools/run_gpu_l2_stale_chip.sh`: red on unfixed 710d438c (FAIL, rewrite cached=1 STALE 5/5), green on + the fix (PASS 20/20). fp8, decode_graph cached and cmdlist gates PASS on the fix. +- Production today writes cached weights once before any GPU read (`AIEN_OMEGA_FP8_WEIGHT_CACHE=1` only), so no live + corruption was observed; any future host rewrite of a cached buffer would be read stale without the fix. + +### #457 fix after review (omega457-gate-fix-r2/) +The fix branch was revised after review (pending flag cleared on device close, distinct refusal for the prefix copy). The +regression gate was rerun on that revision: GPU_L2_STALE_CHIP PASS, 20/20 FRESH. device.txt shows 8f491df2 dirty: the run +used the uncommitted revision, committed unchanged as 6c87d849 (its only src diff from 8f491df2). diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/SHA256SUMS new file mode 100644 index 000000000..96cd94198 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/SHA256SUMS @@ -0,0 +1,532 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/attention/FB1-CUT5-710d438c/build.log +94c5d85397039f428b14de6c75e26ace6f1062e052e6d45997486f7c56d32511 ./gates/attention/FB1-CUT5-710d438c/device.txt +ad6ab1b22937beddaa843d17a4c00e902df529aa02d92ee2ee61102951f43006 ./gates/attention/FB1-CUT5-710d438c/gpu_attention_test.c +db8e44ff47d2012049763b1adebf8c4724f07988bfb6f858fe5173e40fa4a066 ./gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.c +f9be0e256e10e0664bc0602e862b544041a658248bd7200b463753fde81b396a ./gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.h +cc2646a74fa47fdec5f074db702578cd1c3d264d750bdaf947c73f107576962d ./gates/attention/FB1-CUT5-710d438c/receipt.json +953fd231ea51b077d8bdf3397d69948ef12d7f96cc8fa3540f14f1b47df00777 ./gates/attention/FB1-CUT5-710d438c/run.log +95994f90d83afea6f11f17ec466de90737986a0dbe4b8072518a0236bbdbfed9 ./gates/attention/FB1-CUT5-710d438c/sim.log +1e57804d07602e1df77530bfef250b6b406e2232f077787637568c31c1a4ebd3 ./gates/attention/FB1-CUT5-710d438c/sweep.json +43a010b3eeeacf534a7e2584850f64186bcdd15688428ff9d13c1f4ea09a613f ./gates/attention/FB1-CUT5-710d438c/sweep.log +e18724da84216ce306f59e9f44b15f46905ae8286c69f8e0436e6fdb586fc3a8 ./gates/attention/FB1-CUT5-710d438c/timing.json +4b66f552135d6fbfdc1f0ab3f8eb55c1967165d343974853ea525656a8200be2 ./gates/attention/FB1-CUT5-710d438c/timing.log +d11a1a998137e67935d9441da1a60ea8ad5685cb1c57767deb26ccd282aafaf8 ./gates/attention.out +3c79518545f86cd1cf23b39b2736f4b766e8bfc5e6f6c265a3b30e1bff2204d4 ./gates/bf16_gemv/argmax-study.log +c8ad2b00b50647c021d67152192a5733cce0be342d42f153c1fab6fccc270f7a ./gates/bf16_gemv/argmax-study.txt +ce143cd8bcc80fe52c158180203029c62d8fe267ab05b5974e431de98cd751d8 ./gates/bf16_gemv/baseline-matmul.log +44e4397ef3869cb7ba829bcafe6d3eea50e131737329e9b01c13ac944ddb6435 ./gates/bf16_gemv/build.log +48b0f59368c5dbbb0106709c7c92578b1a9a0c852d6f114ef68bd7e873dbdee3 ./gates/bf16_gemv/c48.log +f9777ba52406fb11012b166939d9c5374a6037e8a3f86ab762fa1a46d22b64c5 ./gates/bf16_gemv/d4.log +08e1e83ce2ce1a2fe2f896a6d9f1b9fcd5b98d4bc37d0c96ce93acf350dd6a5e ./gates/bf16_gemv/device.txt +4c1f60495b79c58a6f5ec1ea63e40ff751422fd4b6352010730151d777034d45 ./gates/bf16_gemv/host-only.log +34beab99dc077b5c5558dcc27786f707f74fed89dcdd294efb1013b2deaf788b ./gates/bf16_gemv/main.log +a9c6e2f5ab479cd2c3c5bbade0f33be12e56de203364741728489344d9b3e201 ./gates/bf16_gemv/noevict.log +cdcba2bbc13dd5a16b31eadd9596741d650de1b58eea2fdfb65e76ee6acb2c04 ./gates/bf16_gemv.out +c30ce0570b48a3dfd633a707e89232cb94298004c1766c15b7f69794181c22a4 ./gates/bf16_gemv/receipt-baseline-matmul.json +3e7b0b081da03897ee26d084b9c19fbddfdc8b966ac422fa2caf7000e9ba1245 ./gates/bf16_gemv/receipt-c48.json +2bddc5fd5dc162319c381561db0583bd9c93288a121c5c677843b766efc82af8 ./gates/bf16_gemv/receipt-d4.json +3b932f11acdd24bc99e5336be8754b119c415b9e97c65639a050006f92ecdf16 ./gates/bf16_gemv/receipt-main.json +d591ddae0932d85f7b75c4f5c1fc055ec5234ea278721dafd0e1c9bf83bb07ea ./gates/bf16_gemv/receipt-noevict.json +56160f45f6bd46fae1fea7f8473664ea6a97506d1358e758a46079c5567e943f ./gates/bf16_gemv/receipt-w32.json +266b57b755f3daceb851de6be9e35d6ce10ff57bfd25320cf660159c588b0a68 ./gates/bf16_gemv/sim.log +6d2acee120dab886cce1550b20291eb68b511c81a891a487a4e5258fb286c06d ./gates/bf16_gemv/w32.log +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/cmdlist/build.log +6e94c6ac32caafe676145bf2c945755860468b40adc5f95b567491edd90fc050 ./gates/cmdlist/device.txt +19a5e1c7793eb4bd2cd68172703e3a6996966dbc8ba3d6b015f38b6455aa75d8 ./gates/cmdlist/host-only.log +52c2a28f56346a16b96cce0779de712f7fd05b6b9af6498ad9694305cbc87d0a ./gates/cmdlist/main.log +a52077570d0408fb7613578efe2a4ef860a5ca0186c6fa2bb90ec49647b0edbd ./gates/cmdlist.out +c48ff61675ddd6862243392fe125d7fb95ff6dc1b0303e37ee4819decd4c0eac ./gates/cmdlist/receipt-main.json +f4721b4e7b3e1d4b2cf0bbde13b309abaa8922d4c7d79520282f4d3a6a73f19f ./gates/cmdlist/receipt-spin0.json +90fb388d6494bb76d147f0ff1cccda96c5e01bc64fc0cb650a694e71f26769c5 ./gates/cmdlist/sim.log +41d4f211a9263bd76b1d27caef92a57fda3e9f1f5bfc582236848cb8bab36337 ./gates/cmdlist/spin0.log +8bb3ce259912101917d45f3a89fbdfe9e1cd02264256b396ce81a1670d71d96f ./gates/cut4b/FB1-CUT4B-710d438c/attention.json +bcf1a68a29686f078440d154aa3d59be93f45544ba345363e04630a4027b68a4 ./gates/cut4b/FB1-CUT4B-710d438c/attention.log +58d8b723b21999036551e0840820e8662a747e39c895f8784356b50a2a972f6b ./gates/cut4b/FB1-CUT4B-710d438c/attention_sim.log +650168b7648e8b43644b9b51039f19a1d08ecede731a267dbc5c947dcfc46696 ./gates/cut4b/FB1-CUT4B-710d438c/attention_timing.json +9bba5b97997d8fb1fdbd44f3a25a983905301065bec366fcde7ecba3703ab436 ./gates/cut4b/FB1-CUT4B-710d438c/attention_timing.log +fc2f6f1d5bdc6288e398189cde1b7062f269e5c2132d4edff0c56ac5052154e6 ./gates/cut4b/FB1-CUT4B-710d438c/build.log +07891bf3dce24bfc67f1791065a625d87d775decf50c846aa59789f34dec7dac ./gates/cut4b/FB1-CUT4B-710d438c/device.txt +669d2268f45f4f6054e99dd7384b93db55c646ca7ee4a33c0353932b150aac25 ./gates/cut4b/FB1-CUT4B-710d438c/elementwise.json +e0ce642823a00d8970e16566b61c59caa576ed5bb8c6c76c17a843dd86784f3a ./gates/cut4b/FB1-CUT4B-710d438c/elementwise.log +b9f0c003756d13f5a832f4d9167ab5b5a5d9ba1a2121101be34cf467b00f5308 ./gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.json +2b8847ee38e1df6b44bbfb0e71f2c3c562efbd5036c2d3f68b8e8dd31851e0d6 ./gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.log +ad6ab1b22937beddaa843d17a4c00e902df529aa02d92ee2ee61102951f43006 ./gates/cut4b/FB1-CUT4B-710d438c/gpu_attention_test.c +f4b7865a3459036719024599d5a81718bd3039812dd4b23f556464581dbff5ac ./gates/cut4b/FB1-CUT4B-710d438c/gpu_elementwise_test.c +bbb5bc33d49dfc83aa2f63246ee28f8149ff0cbff3a99ffe1d729f87dae4c04f ./gates/cut4b/FB1-CUT4B-710d438c/gpu_matmul_api_test.c +17476f515a4cf5acb50b04d302ac7b2d0551cbed1d5b258c02b33bc50ffd661b ./gates/cut4b/FB1-CUT4B-710d438c/matmul.json +18bfbce5600342efbba3ccf4bf2e439eb952c2cb34b8d8217e4e354074cee574 ./gates/cut4b/FB1-CUT4B-710d438c/matmul.log +0f12d1630236f76d93cf61a050af3e0ca25858c8e39ea8991e696a43bbf0a22c ./gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.json +3fd588901101178dd6b7b671c9ef6e9af12d26c99e956b61993e6b73f858fe7e ./gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.log +db8e44ff47d2012049763b1adebf8c4724f07988bfb6f858fe5173e40fa4a066 ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.c +f9be0e256e10e0664bc0602e862b544041a658248bd7200b463753fde81b396a ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.h +7366eb0f8bbeb012f680bacc7c28b2b4bb6489726df08c6dc80dae640c0ba71c ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.c +5d62a2ea6209fc5a0133f866b60469a74d3ef2a32da67a30312e4daacc96b97f ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.h +95e68935ed93cac63b454a2e46a4bcae646eb337b706d2eb6c53a5165763280f ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_fmt.c +d9bcc61fb5b15230889c5fac459c2ccc4c055bfa10c4052c34d79ef7eb4933f8 ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_matmul_api.c +f89c08a11b1c0a37a0f76f895899cfe261e76dee71dbcd911f2125647a3e34f2 ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform.c +949515810f07f0e7ecb6c7fe71dad17d51c33c3f8ebbebd0ecd7b67abdb64f93 ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform_linux.c +36ffb699ce73e8d7e8be4fc8c4327ad84be678c539712972590d0bd81932d960 ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.c +af3df8707b9d54fd317baaa9a37d8bd869b2efc07f8928fe6f34a8366210a590 ./gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.h +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/cut4b/FB1-CUT4B-710d438c/probe/build.log +179ff826bc590b1fcec5580dae5994f2a22ea649eb6f9e4877c3f47e46a3fa25 ./gates/cut4b/FB1-CUT4B-710d438c/probe/device.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/cut4b/FB1-CUT4B-710d438c/probe/failures.txt +2cf1630f99767bd7a9ab1e1f0940516dd3b534dd71906ef0a6c7d8e7ae0c63c8 ./gates/cut4b/FB1-CUT4B-710d438c/probe/gpu_session_probe.c +0a2c87ff1ccfc766b26d85e20d97c91d9baa1b91999eb99d453cc5184b7b4d58 ./gates/cut4b/FB1-CUT4B-710d438c/probe.log +97b912eb4a61df5f806ca6239dde3e1a4f51ad20aced1642cbb83dc510a5fa6b ./gates/cut4b/FB1-CUT4B-710d438c/probe/ok_count.txt +f89c08a11b1c0a37a0f76f895899cfe261e76dee71dbcd911f2125647a3e34f2 ./gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform.c +949515810f07f0e7ecb6c7fe71dad17d51c33c3f8ebbebd0ecd7b67abdb64f93 ./gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform_linux.c +36ffb699ce73e8d7e8be4fc8c4327ad84be678c539712972590d0bd81932d960 ./gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_session.c +62917b652c99e4d01906f9071000c41049ab610052de2e6f3661f2aadd0097d5 ./gates/cut4b/FB1-CUT4B-710d438c/probe/probe_gpu_open.sh +c63c2b52e20cec5f83b7879d7a1e9884e3d04f726e2f8622070882fa712daee2 ./gates/cut4b/FB1-CUT4B-710d438c/probe/probe.log +737a1492b24d2c486f830c25197fe3dfe9ebd103975a4a681ed92ed56d2ee7e3 ./gates/cut4b.out +901b0f40e8ecf6b9a3d33b3a55ef1d5e0f2f6b595487c065068f7b2ac0c115d8 ./gates/decode_attn/baseline-matmul.log +66f32fbc83402bb2a0e52e65ab16dd002c489f812da3d3b30e391bd9af6b07e4 ./gates/decode_attn/build.log +770fbbdd97c9056ed5db3a6574ca610a974a0896a9ec92a0d4346b3b555de8c8 ./gates/decode_attn/depth1.log +1cf30937f23a78b32b51e191d960acb8c5a0794b0cbdf0dceaf6f512c778a48e ./gates/decode_attn/device.txt +6c03925a9331d0ac13fda50ccecab2128ded77c748ccea16a78d66f9518b31f8 ./gates/decode_attn/host-only.log +09f61f87fe90553e05b6b39b2d77126f37668de3d8e40a4501266684e51dbe89 ./gates/decode_attn/main.log +67fe17a83d968fae0d5e7d3307e15c4ea9cb03b038f5f15258d552e385e23736 ./gates/decode_attn/noevict.log +d845a7d03f82158377d82dca3f6db25f64d42f34e9398b9636225be46a26cdd7 ./gates/decode_attn.out +52affd799a89c25cc4533a56676b287770296008e50f89343834a683a5d617ca ./gates/decode_attn/persplit1024.log +835c0b037f89bf45d7839afc689b8b567dc15717d7fd57e47acb0e4dc237d574 ./gates/decode_attn/receipt-baseline-matmul.json +9e49f85d36150e8d1704e6f3faf23b01e648335a14313fb60564dcb525b358a5 ./gates/decode_attn/receipt-depth1.json +2e3e1f972de7e8e8e00d4a7856e42b7816f5f651188c45ea62c01808fde1257e ./gates/decode_attn/receipt-main.json +14d1758c1e40d1ea248fee1daa004c75e9c5deddebbfe9266a613869bd267519 ./gates/decode_attn/receipt-noevict.json +54fe23f9bf8afe9889774686f4afaa0b7df1a67a022d118c047a9da3e7b115c2 ./gates/decode_attn/receipt-persplit1024.json +2f0512cfebb60b3751133eab11007e16857e11de4671ee4cd4bde0bcb99c0368 ./gates/decode_attn/sim.log +66cd0541d6bef1045e83312c1b29d1bf5cd2b0efa6daeab6796e7d03ed61b7e9 ./gates/decode_graph/binaries.sha256 +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/decode_graph/build.log +66cd0541d6bef1045e83312c1b29d1bf5cd2b0efa6daeab6796e7d03ed61b7e9 ./gates/decode_graph_cached/binaries.sha256 +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/decode_graph_cached/build.log +d471440cae10d719d2a6d502eee410afb379ff12b17d29801e57931bf2f1114a ./gates/decode_graph_cached/cached.log +08bc071886cf478fc3c6d23211d2cf636251e4047bfad229db9e7975969806ea ./gates/decode_graph_cached/device.txt +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc ./gates/decode_graph_cached/host-only.log +2875e759c0dc6cdf581f9c7ba9ffba03a18a4212b20d7479b4999c914fdab9c7 ./gates/decode_graph_cached.out +6aa9ed345a6881f11170e5072bf3369c006f71e0b717806ee6d37b2d42f69355 ./gates/decode_graph_cached/receipt-cached.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/decode_graph_cached/worktree.diff +2e920f69f4ec0a774627f5ca5773ad43c4aee77a92781da591b73e205b085522 ./gates/decode_graph/device.txt +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc ./gates/decode_graph/host-only.log +8b1d065b63ed15f3b68921af762f2d2b81a3f5b12f6e5fb6d014d1ba11a91fd7 ./gates/decode_graph/main.log +5ab33c5db28809938301eee4b2d124373729bdc67f775483eab7eaca6d6a870c ./gates/decode_graph.out +b829ba6ce27ec4144c98d1d62a14707227175780b5be3863c4b0d18fb2322c30 ./gates/decode_graph/receipt-main.json +66cd0541d6bef1045e83312c1b29d1bf5cd2b0efa6daeab6796e7d03ed61b7e9 ./gates/decode_graph_red/binaries.sha256 +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/decode_graph_red/build.log +ed9b67f128ab688e96f5d827a65d7165dee03d02dcbd0095e84b81a79191c4d4 ./gates/decode_graph_red/device.txt +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc ./gates/decode_graph_red/host-only.log +c114d71a75db898e1bf9f87f71972e5e08e4f272219fa469d34215b81df07088 ./gates/decode_graph_red.out +ea9e3d311d3039cc65ef1c396888c773452ef36f1b6d4f360ad766ba171364ca ./gates/decode_graph_red/receipt-red.json +287e4895ca699a433ed651506a008f852e504874a8a146733a7f2c63b6fe3662 ./gates/decode_graph_red/red.log +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/decode_graph_red/worktree.diff +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/decode_graph/worktree.diff +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/elementwise/FB1-CUT4-710d438c/build.log +a8326dea97537e17b741cea608562663d00a6de162fb62dd136a1745dcd01772 ./gates/elementwise/FB1-CUT4-710d438c/device.txt +f4b7865a3459036719024599d5a81718bd3039812dd4b23f556464581dbff5ac ./gates/elementwise/FB1-CUT4-710d438c/gpu_elementwise_test.c +7366eb0f8bbeb012f680bacc7c28b2b4bb6489726df08c6dc80dae640c0ba71c ./gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.c +5d62a2ea6209fc5a0133f866b60469a74d3ef2a32da67a30312e4daacc96b97f ./gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.h +8233ca2dcdda935c3fbe372b326f7ecb06991af7c2e7fbc02d525b3adbee377c ./gates/elementwise/FB1-CUT4-710d438c/receipt.json +dec76ee6c472d5ba9443b3ae39b54908157368e36a1ed86456d6d769f2f81e35 ./gates/elementwise/FB1-CUT4-710d438c/run.log +d2f95d2c2fadeea6b34ecbc529116c803f323f4e11917abab432b41b61835740 ./gates/elementwise.out +7b1fd89ec382bb3ee5c385b1248820abed2a59d1b0a3467199dc71d3b00e55c5 ./gates/fp8/baseline-matmul.log +66f32fbc83402bb2a0e52e65ab16dd002c489f812da3d3b30e391bd9af6b07e4 ./gates/fp8/build.log +5477e1fc449f5f0e5cc495b8c77961f9e59c0b8918a4741ec11c866c1bd2ff56 ./gates/fp8/depth0.log +48653701735a9f19a0c85ab93f44163dc3b8cf43f4ea1b9143e028938cc395e6 ./gates/fp8/device.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/fp8gemm/build.log +fb325b8b97532710dc83a79f7a5464ccd1035721b02c73ce1882166c0e0cf472 ./gates/fp8gemm/device.txt +5c1ef87c82804e9d08cd68e3a04e2022cf523b7921d913a2b4793e1651d5d43d ./gates/fp8gemm/down-m1024.log +fa341fd4513bb90dbd11b5f7673b7087c0c942aba8646e875c562149287facf3 ./gates/fp8gemm/gateup-m1024.log +8c6779b5a3a37bc24e36463ccc7b6cbf7a6ea1a0e6d6b248f22b551ad9aa8bd8 ./gates/fp8gemm/gateup-mt2.log +86fcc11c5baf1fb776ffcacb99190550d6adcac7b4f008f59260b48ade26aca1 ./gates/fp8gemm/gateup-mt8.log +353ac9fbed7a53a7aee6343335bae690bc7c918b87d9233bf6bbed4119776884 ./gates/fp8gemm/host-only.log +04ae3cfc7e8a5848991c45933bee38cc989217030301960106d6437745a02ad8 ./gates/fp8gemm/main.log +45b0949647882c06f74d8b832a1417b78ce9e45df4bde4ce141cdbaf28da0403 ./gates/fp8gemm/noevict.log +63c36e4badd07b9da79a30f8a4c033e9044c6df2bf47eee8aa1d362dcb12f40d ./gates/fp8gemm.out +1231c051bad14dacaffc496083b5b8ccd9b8b5a048ae3ce8b103a7725592c394 ./gates/fp8gemm/receipt-down-m1024.json +9f4da9726e0c32b00cc5077d01b2dd0edf4f3178d6b26f094cd0d053c61e671c ./gates/fp8gemm/receipt-gateup-m1024.json +98553636bf0e7f7cd1ff4589171ddda13c237108b0dd057fdb7009286f8105ba ./gates/fp8gemm/receipt-gateup-mt2.json +4931d3e69266737398d8e529cbe36168ce460aa3d0513226fd77e69034684e95 ./gates/fp8gemm/receipt-gateup-mt8.json +6af717e36e2107df93e97386da8909ebbb649bf3e7217cb61c837c0834e14d36 ./gates/fp8gemm/receipt-main.json +eaadc0008b4fb643902bf4d27165701eee15bf97760481dcfa430fc4859c620e ./gates/fp8gemm/receipt-noevict.json +bc47fe63eed6d5bf7195a461df9e4f8bb583f44c6bf80e19f1eb862f28dc7348 ./gates/fp8gemm/sim.log +6164a89b0a102738dc78079d2c8265509b7443516723732ed1e59ece761f1117 ./gates/fp8/grouped-old.log +b348e0f0406584d2c38b6d025c80313d6b8045a84ecc6ebd1b5d2d4ea3cac1eb ./gates/fp8/host-only.log +2ee3a76d01482f95af24c929d870ecf8a1ae0daea254d203dc29335c8256dee3 ./gates/fp8/main.log +754052312aabda39df947760db8048f832483d786e67823bcb002b1162114275 ./gates/fp8/noevict.log +1557e6b941d8be39d306014959cc9fea36fc9bead37aaa77b0c132df97ad563f ./gates/fp8.out +f63af1161a839934c2d2637d81f3978bee3f6b4671fb050fcd7e78a3502d7fe7 ./gates/fp8/receipt-baseline-matmul.json +0b40fc76aa9ad852a19e827dece69b0798c842c4395b14c9219725062fc83811 ./gates/fp8/receipt-depth0.json +6c7d47696ef7596c89375ae75a921b29d208936aa125c4df37b84e2e1f79076d ./gates/fp8/receipt-grouped-old.json +3d301f9e8b9c5f4c7258467616f8919e4b70363a477765473d08f75cd6981f46 ./gates/fp8/receipt-main.json +6a781814a3eb7dcb03bcc1cf39e7db0d130a6ebec2d0cf86c3208496bae45e64 ./gates/fp8/receipt-noevict.json +34e71a0e4a7d5344323208f1e209dd024337614865182f4f7cf81fe2c2bc4248 ./gates/fp8/sim.log +9ee95d0ed0948aada09e5749bfb59cf60f55e36517932092dc5b2e8fe0e004b8 ./gates/fp8_v2/build.log +b1fff112c5495f7dd095e3d5433bf7ff84b600661fa2c4d951f7115fe0eec215 ./gates/fp8_v2/device.txt +a02d0c1e858c6eb88a54b9749a3bb934ee79d1913346fb3763691838aaeb792d ./gates/fp8_v2/graph-v1-r1.log +6da7ed95ed3c91e889876a198d42ff5c30ff09303e91d64c11677dd7e618cfc7 ./gates/fp8_v2/graph-v1-r2.log +472a6f1e1e1d083b9db92d46eec0c2a65275406d379fe61918f28d126ae17890 ./gates/fp8_v2/graph-v2-r1.log +4a8bea9db228ced98b08091cf2cecec31b1dd59165cb85f35268ddc282006cc7 ./gates/fp8_v2/graph-v2-r2.log +4746a8e5fdaacbd10938290d240344cab5b29bb97b060546c6b1c99dccad6d9b ./gates/fp8_v2/hash.txt +396d89d9f81bff880b47cd36aad3e3d9d6a2849b957bebcd5aae0b56e4e4d689 ./gates/fp8_v2/host-only.log +a34b47bd533fc486e52d751b24ddb5b75bedd35a399a848c4c827c6dbc0d3001 ./gates/fp8_v2.out +004c172b840b736c43d427d650401eec724182aaa4cf9cbde794dc8dd1ef65af ./gates/fp8_v2/receipt-graph-v1-r1.json +2b8549de244cdd53157aee537838cbc95921102041b70df74a888dbb9c1edd95 ./gates/fp8_v2/receipt-graph-v1-r2.json +82ed77b500afd40639ca6512c8f4a3ce58879e39b9e82f2d78fd4b12fe89ac81 ./gates/fp8_v2/receipt-graph-v2-r1.json +91c00ac9300ead58eb272f22604244ae0bb633161324f34771d6f0bc4cd90768 ./gates/fp8_v2/receipt-graph-v2-r2.json +c8ac5922924982067f28537030a66983f5a484b9cf5c7d91d058af62fad710e3 ./gates/fp8_v2/receipt-v1.json +cf427f3b80dbb52c65b93e1d54ce3f3a72183370e845d35ed1c1634e30873b1c ./gates/fp8_v2/receipt-v2.json +1545db107f628379407816ad749e07ce02076637a886e3765581f80d3051b555 ./gates/fp8_v2/sim.log +6ae902c0914343264c9092557c0baf74a76650676ba4aecb2a186ca51927066d ./gates/fp8_v2/timelines.txt +c6792b51331507c6670bc3a64c8433cb84f5239f2a4c5c3fec938e841867db28 ./gates/fp8_v2/v1.log +0ddedee822b1becfc017e2f39a47cab912aa4c37da487b24135ff3dc60844904 ./gates/fp8_v2/v2.log +4ffde9cf1c27c72186b92636e962fee3aaaad95027398b150f58250a92921906 ./gates/l1g/build.log +78393d7e835d3f5778d2a859015b08b5506cf0242e465e320ce77ff98a546110 ./gates/l1g/device.txt +5d9cf1f5aa7ac5e9180c328e1bae85033115033fc7c93e9244286fb688b7af6a ./gates/l1g/exits.txt +826fb677246ac1b2fb0e915e3e369ad64859b081fe0c5423d19153f50de46da8 ./gates/l1g.out +d8e2f16db8805683e9fefc49b2eb34d4709beb55106aeb39f1809005529db25c ./gates/l1g/pfgemm-chip.log +7e42d8304959861612ac853cf0daaddf9324580be731580a7461463e3f26b7fe ./gates/l1g/qgemm-cached.log +e73f9fd4723365f4343f074649bde62cb2f6a6ed28e9d7cce5b977b8aafc234e ./gates/l1g/qgemm-cached-wait0-down.log +a17c022a78ec8e88be271dbf194702197998cb7267a2250457ab260a6f5afb7b ./gates/l1g/qgemm-cached-wait0-gateup.log +c6b16119bd1006947901f6a7c2c18696277656423c8f73ba4f58952d80ebba37 ./gates/l1g/qgemm-chip.log +570d057c1b815c7d734122f8e6ac535674630881f0f715ab514ddefcec66efa2 ./gates/l1g/qmma-probe.log +fe7a86cf6dd0027ad341f2a45404f3458e0b9ba6e9aec36625e57c260d9c90ba ./gates/l1g/qmma-probe-seed2.log +1fb3fbbfc8012461e337d9e4784af7d268dc66318c9f6b045dcea54df348a41d ./gates/l1g/qmma-words.bin +d860f7e16d5b4c13d38f82ee846345cc77478470bb6769bda6f33e8884a75cc4 ./gates/l2d_barrier/binaries.sha256 +75b23aafeeeede3d40f7bf67ecc675bc4e10d6a5d92224450dfb4d75acf6d222 ./gates/l2d_barrier/build.log +191a794454a70554e32fafcb4d28bb62c91e6e55a92dafab2f187d845c23db78 ./gates/l2d_barrier/cost.log +8ff77278694c6b3931f658ced4320b51a1c83bfda799d4f25c1e3f83dcce337c ./gates/l2d_barrier/device.txt +08e21af1b8814ed0677e7a0e8a6600098fbf663dee2e094990856f7279bc1f6b ./gates/l2d_barrier/graph-1-b0.log +dbcb2890de38d0cb0f6ad0e30c272ee05832407d634251ef86950139da8f059f ./gates/l2d_barrier/graph-2-b2.log +e959618f72f269822226e5b0e789d6778869da505f57f87c37cb618e7840bc0d ./gates/l2d_barrier/graph-3-b3.log +d3e446cbedb5263c5d6dea51a7b3726629fadb3822c93a8d736bae8108ea5582 ./gates/l2d_barrier/graph-4-b4.log +1ee22d6feb56c231c1dbf80a354be8ee6c9e50c53189831cd39d7068649ec762 ./gates/l2d_barrier/graph-5-b0.log +b76d0410b82ff3351bb76dc4601c457a7ed539e2c28028362879503d3446d928 ./gates/l2d_barrier/graph-red-b1.log +d46907d2af038548b276f20593700ff81130545a9738c990c388ed760c85e8f3 ./gates/l2d_barrier.out +8699e7cfb4de9b82ab7fc50f68bbdf25e8f01750f350ffb094413b621d96557e ./gates/l2d_barrier/receipt-cost.json +92dde923028625ef03bdfebeb31bb4bc84df2039b5884971f4cff6fd7d8cc7d2 ./gates/l2d_barrier/receipt-graph-1-b0.json +d8706bba63999016ae64b2ccc8263ed502fff4e5067f1ce531628b7421b623de ./gates/l2d_barrier/receipt-graph-2-b2.json +2c2a1278803953f0af23d3f9047460b4d727d42f340dafa549a9b09773ee19c2 ./gates/l2d_barrier/receipt-graph-3-b3.json +2a3f4bf7a7bc3d0ca11a1b0569113cba1e127a3911b272367131bdb445ae2e7c ./gates/l2d_barrier/receipt-graph-4-b4.json +d1d3dc28c1b4883f924d9fb1b3ef58befeaaddee690840dad399247b7a45864b ./gates/l2d_barrier/receipt-graph-5-b0.json +72012fbe2482a918802d0b9a0a6dfa386a2dffea527d3e0027aa35424a83694f ./gates/l2d_barrier/receipt-graph-red-b1.json +594eed3776d3890dc99e212aeae3d88625ceb11e2e835f57d02ab28627618b95 ./gates/l2d_prefetch/1-cached-base.log +1e6666b676a0ea76c021c3ec7b692fa7dc67b05f722d063f8748f573d1dabd84 ./gates/l2d_prefetch/2-cached-prefetch.log +e91708c996cb4463141a6fb4c8f5e57a7eca64f1e5a2ebd93239e8a1bd04dc57 ./gates/l2d_prefetch/3-cached-base.log +8f98894cdedddb44db6773397950932dd45a91a0b50f78e9325c968ee744f768 ./gates/l2d_prefetch/4-cached-prefetch.log +82e083af84537df6b59fcbf44db33876731911054cdb8b664f980017568b9765 ./gates/l2d_prefetch/5-uncached-prefetch.log +f2a258fa4edff328a3a58e12dff945133e9bbcae77fbfd5d7dc6550323599d75 ./gates/l2d_prefetch/binaries.sha256 +5cfd0e771de1af1722bb0b909d14b6c1d1d516d75b91e6293411a6b94e047c78 ./gates/l2d_prefetch/build.log +195d3d41e482308ce37aea9823e71dffb56324791d42a73056a13dd1cdf8f5f4 ./gates/l2d_prefetch/cmdlist.log +14b6b06bc7fd620433d7a5ac2f8cfcaa7411bd73afc02463aa8b69a36b662e67 ./gates/l2d_prefetch/device.txt +bc1549936443cee8f02199a4586695d2c655d6a9be53b1c583bef43c1a3cfea7 ./gates/l2d_prefetch.out +e85fefdb75fdadda6416109526cd95768210af2f9dde8b6e2f8d32c010d5f921 ./gates/l2d_prefetch/receipt-1-cached-base.json +bb82fe0a021901a25966f4af3e771b8179379909d82e724fc1b69c7b3520d3c9 ./gates/l2d_prefetch/receipt-2-cached-prefetch.json +c7ec6d3f847973f6592df9900b82e8fb60bbca78ef3a76474c1d119fedc0247a ./gates/l2d_prefetch/receipt-3-cached-base.json +d1cb40c6aab5f09f18f70d04cfd0faacea59cf0366c761f6c84ad1d93d9af686 ./gates/l2d_prefetch/receipt-4-cached-prefetch.json +cc66ab5da4ace1bceca658bc90ad87081e6280e6ba93a61a9eb3e74c321f2b40 ./gates/l2d_prefetch/receipt-5-uncached-prefetch.json +b6ab6345b69f3aa76c444d9e7f170f41b0445e3fb64e626178f85f898086bfe1 ./gates/l2d_prefetch/receipt-red.json +6ba0afd5c1daabecdb28a848b0901abae1903c4e72ad0e9cfb9b2df176e84264 ./gates/l2d_prefetch/red.log +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/matmul_api/build.log +f819e53b0d103b26355eb6de103693043e432731d82927ca0e3d37d5082432e8 ./gates/matmul_api/cta128.log +a92620e6189356f090c1eb4e68a3d67c8848068c944a24ccc650ceb09cc50453 ./gates/matmul_api/cta256.log +2f5393fdd9d84ff57a5254943396b2f0b9d07b6ff049c4f640eb30892807b05c ./gates/matmul_api/device.txt +5673f8f255acf508a6263d690faec954435c21a41c484df80738bf58e9dcd9e0 ./gates/matmul_api/mutant.log +2bc7058c729191fa0a23752a677462d0ad3447d17493efdc222d25198e7d9b85 ./gates/matmul_api.out +bd6a824457d4694171914f2369ab28d1c98abd34768faaddcec0f970cdea54b7 ./gates/matmul_api/receipt-cta128.json +752efb3b5947453397284154dbf6191f4c6ecaae1141d3ae6f64b891d8472d9a ./gates/matmul_api/receipt-cta256.json +858663d6c8f59adb5a968922e33479d0d4529fb86a9a6de86416546897cb8f38 ./gates/matmul_api/receipt-mutant.json +a106f0feb2aed0370416d13e9009af950f34a855e941973c47715e96a8c3d144 ./gates/matmul_api/receipt-sweep.json +2968d008e781d0aaabea19b06de778d62c7d6a9f4dccae5f1bbf3dbdd1daf86c ./gates/matmul_api/receipt-timing.json +438314dd331cb4fc090d78c07e87e91dc7adfc3966ce6f788f616be6c462ed43 ./gates/matmul_api/sweep.log +2248f9131630a7004572aaec8e004c1b2e76f1e480c6ff53bdeb9f92cf0bae17 ./gates/matmul_api/timing.log +757d8fd58371a2b3cf43c598b76010bbc287248c3bb14fae27ccda963abf16ff ./gates/prefill_attn/baseline-decode.log +5fa6159991119365de67dbae5eacef99e1a4d24b2300a9dbe4492ca7b311c291 ./gates/prefill_attn/build.log +e20566d150d869610e61f1c06a31aab869c069b7c585f3f74982ccd714363a3e ./gates/prefill_attn/clocks.csv +7f7a8078354420c25dbb72637f0a4ab823a0d236e627026a1a3a936c22e6de93 ./gates/prefill_attn/device.txt +ce142f06e62b3f9c6d0db635a95537911cea4cb4ec6511e6785e24200ae0405c ./gates/prefill_attn/host-only.log +16787952bfd024b4d38bab1bf6be291db7473cc6043879a1ee3bc8834167d542 ./gates/prefill_attn/main-fused.log +209f5cdfde4901a886efc5870153a4f9b5c4efcd074906d1c3417108fbb763c9 ./gates/prefill_attn/main.log +65de0b59273fe9fd8751e1d0700076942536d4fe661aae734f4e77df534f3312 ./gates/prefill_attn.out +0b9d444d1d56dac0483c55bc89d2d860cab936f0f38ec5a06e0f3f8da0795977 ./gates/prefill_attn/receipt-baseline-decode.json +da745b20ab15643ba026b9cf624033e290abbc99041f43b76bdea8e41155756d ./gates/prefill_attn/receipt-main-fused.json +18aa67afc44be3cbd7054a7924335d44e22e87c16db43cec7c2b6880e9178cb6 ./gates/prefill_attn/receipt-main.json +39d01e4501bc65c791b0b068716406ed9eb883a1322f02710d9f7f471567d3d7 ./gates/prefill_attn/receipt-warps4.json +a560e622fbe2abfd582d2e47d3c9faac3f1e747d69af861c369529c51d2ee2e3 ./gates/prefill_attn/sim.log +07bc1a954f7181d5a229efd9a74e0a460d07ebe526a861a4e363b87d9ff8a615 ./gates/prefill_attn/spread-fused-cold.log +281917f5ba5ceb8c3cb9279c4f14fe37d4915582b9b815ad6daa6c732fb4f228 ./gates/prefill_attn/spread-fused-warm5.log +ca39426760351b9ab66533f59d277f0b60b9626a552a1ba68dd8341a237a2696 ./gates/prefill_attn/spread-marks.txt +9adc34403f4929b299aff54d7ee3a92110ea7d4151875958b29f6ee6b76ab71d ./gates/prefill_attn/spread-split-cold.log +3c9561dee6b6ab8d2f70c39c0e3fad2bdfc9359b61e809184bc81da9706abc8b ./gates/prefill_attn/spread-split-warm5.log +9a9dddf56e48e8bc09d44f565ab266d339d1d70d72be626b314da21a615e682d ./gates/prefill_attn/warps4.log +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./gates/reconv/GPU-RECONV-710d438c/build.log +17ae9fb608fd213926fa5a438da447cca4633dad7200a6a239c19cbd47516eac ./gates/reconv/GPU-RECONV-710d438c/bw_warp_sim.h +17e0ddd412a27b212f08c04b39b228e32f1e2cea52e3cdffcebd662eb680cf2c ./gates/reconv/GPU-RECONV-710d438c/device.txt +38532161581eef2dcd0197e9123044609b976dd7984494cfc9eb4a5ff0d0a1aa ./gates/reconv/GPU-RECONV-710d438c/gpu_reconv_test.c +efc00956abbfd021f97b5e38881e886341e2bdebfaf3edcd02c16ff731658b0d ./gates/reconv/GPU-RECONV-710d438c/omega_blackwell_codegen.c +0da10397dd4ee813633afa425192d126d056684fdd998585fea666995a7c50ea ./gates/reconv/GPU-RECONV-710d438c/omega_bw_reconv.h +7366eb0f8bbeb012f680bacc7c28b2b4bb6489726df08c6dc80dae640c0ba71c ./gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.c +5d62a2ea6209fc5a0133f866b60469a74d3ef2a32da67a30312e4daacc96b97f ./gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.h +005981df1d37536671c79f842eefe5bfe6e4100af5fb50c479172239edd247ea ./gates/reconv/GPU-RECONV-710d438c/receipt.json +18970f49646b00001332911e0034144c534df94f7069a5ba286c74363fbe159a ./gates/reconv/GPU-RECONV-710d438c/run.log +42d34eb5f1f6039fd8d0a93f93f50c07550ec16e3eb185f6101bf2fe6b061b67 ./gates/reconv.out +e464ae4a7931f1e9ae992304780a8a1818f289342d5446fc0f32b428704b3aef ./gates/reconv-sh.out +1dc7ed2b6562a6e21572e78fe2a7f02c2069d4c9cb5da458c9a8e0e96f90e880 ./gates/router/baseline-matmul.log +66f32fbc83402bb2a0e52e65ab16dd002c489f812da3d3b30e391bd9af6b07e4 ./gates/router/build.log +5cfef6c9e2412f97e226254d9d0365585fae49e03120da807f8b2e91fa14b8ed ./gates/router/device.txt +4e3d22dc50ec9f7d083ee344423bf842d6c2c9b302bb4721839c8fe300a119e7 ./gates/router/host-only.log +dda0cf949170f759da61890fa11a2d8a8d4fa6471553558f26cfcd4a85b47d3d ./gates/router/main.log +3cd2001f1bbbb26a9e3d4dc7f1775e8dc660895f74c677397a0fec200d8c79e2 ./gates/router/noevict.log +b274bade7e31ebccdd0cf95bf91230f191357cc0f7aa03a295dfe62aadc5ba0d ./gates/router.out +5f829009002959b0a4965f1c016bbb6f3786545789b09816c7d652be3a39b08e ./gates/router/receipt-baseline-matmul.json +c295577f7f91500049e4c37d06147e32338e44bad2b428033bc17605865cf2a8 ./gates/router/receipt-main.json +1747b5ceaeebfd6d76a4ee0355d86348d24641a458f830a4177ac320fda2a7dc ./gates/router/receipt-noevict.json +bb140511ae5423765ee528f8bac9384e05e33fac8033603849cdfe7124c3eba4 ./gates/router/receipt-w16-d8.json +33d6a7b8c614bb78077b01fd768e413b1b50aaeb218cad6011d281caac8b25b5 ./gates/router/receipt-w32-d8.json +8c883e88a526dab7bf1d5d4bc5c3cb4061b4c64d9b1954dbd696881b85704f07 ./gates/router/receipt-w8-d8.json +628565a72d16563c83fad624acd5598c5c01657ba5fa703e5b15faeaf682dd52 ./gates/router/sim.log +d5bc185a8c99c256cb23ab2e6109b505c5ff43e0404f24f47b0c0fd9f6794415 ./gates/router/w16-d8.log +5030106ba1044258f029610d81d92c2e4b5b65a4584dc3630add43bb9f3c8852 ./gates/router/w32-d8.log +1232f685c70f5161a443ae0b9b43f4d53ab253235d86a80f3d4585cc7852f47b ./gates/router/w8-d8.log +9a13ec24cbd6eb8aeefa8ff6d2465e5bba750b6b212778b46a89fb054cc9647d ./gates/summary.txt +c4e8babc8d1e4f57baf19447afc22e102291cdeadaf6b849becb3b4308f54687 ./gates/tcgemm/build.log +7bb228d33be884dddd7a0561ce4fed4f9612541bc9b403d83f30b34e19bab3a1 ./gates/tcgemm/device.txt +12412c849d39327f60dc336ec9646ecac1ef09133413da0c3e782402b3f004d5 ./gates/tcgemm/down-128-r1.log +168a0959b1c44ee92eeaa568df496bf10b6b45e312813cf1b8d461feb1a0733b ./gates/tcgemm/down-128-r2.log +247944b15a676265ae377590de9df9446d66727ed345dd8d1cac7d04b7aeefa1 ./gates/tcgemm/down-128-r3.log +255589335ade57ec8d35a20c18a91909cf5ed44bf898462a00aa738919fc0eee ./gates/tcgemm/down-128-r4.log +bb5306b6613d089244305617be22a2fa4129f590aca3871b7556b70346c0f825 ./gates/tcgemm/down-128-r5.log +65c9c8e044141ae429890e317c4aac05abe5597f8f8616852fa600beff66ea83 ./gates/tcgemm/down-3600-r1.log +4a4b782a8e390f457b2db6cc086268b6087cac6d7fd72ec6ae9227e662439cb3 ./gates/tcgemm/down-3600-r2.log +0fe213f0605531b25c240890ec27472fef577f07fdc7af9dcce1f78d996008d7 ./gates/tcgemm/down-3600-r3.log +785b08c8595ee086a71acdd7b9b0f4abaae6f7030efb2a05ad763ef4cf1ab175 ./gates/tcgemm/down-3600-r4.log +8c263c3f7c15cdedee33d8e97edbc0d1de3366cc72bde38897afd012d8ce38cd ./gates/tcgemm/down-3600-r5.log +9078bfe9023e2c3b4986c08d66ccf65fbcf653791b13fa22298c2e42bb9dca14 ./gates/tcgemm/exits.txt +266aede67d5a34195a6df71f9d5eeed33ac13f348ec85aaef7b99de31541c8b2 ./gates/tcgemm/gateup-128-r1.log +dd207ea782d2289ed0076d568fa230ede49234ef26b7ef9689071e72c0d69813 ./gates/tcgemm/gateup-128-r2.log +9a8ca0366fea0a2622937c2dd3ff76c202b7e4dba965f0f376ee18aa76af31c9 ./gates/tcgemm/gateup-128-r3.log +107d4a8bf743b3559b078878c414aa12e0c442c55cc6d6e92f6060766acbe820 ./gates/tcgemm/gateup-128-r4.log +165396695357b405ff44eb5b68a0fc1d6a1f63a11717aaf0662387ccbbfd744f ./gates/tcgemm/gateup-128-r5.log +1ffc8c70723cd1e773a81b61371ae20d43f7fabf978c04a0143db758873ad1d4 ./gates/tcgemm/gateup-3600-r1.log +173f9a38974f6f706b38965ddf5abfd1fe9ae3ee4bf098b33e3a9b0918a82e9f ./gates/tcgemm/gateup-3600-r2.log +57737c7a35b0399d033cafd28b144fef6dfd9173b9a0ec6c25d266aabd31431f ./gates/tcgemm/gateup-3600-r3.log +c2787e68790a6e6c30209c304c3a0ff569234b7cedd3ba228cefbf39711a0ad7 ./gates/tcgemm/gateup-3600-r4.log +5d507127331de1a8e0ed57ed7549506b3413373db7b540c4e46f767b0060d461 ./gates/tcgemm/gateup-3600-r5.log +8a5a5749af0c22a6b68316ac26b4ac7faaee950d1c19ed2d17cf97ef17160143 ./gates/tcgemm/o-3600-r1.log +b63dfa44769a1c97d761bdef6064851cfa339e6f3b2f093dc443925b83688157 ./gates/tcgemm/o-3600-r2.log +e5b7080a7580100f97ede2bac1b9dab11308b3e9acf6a599734e7d5683c6dcbd ./gates/tcgemm/o-3600-r3.log +413f873177a0822bd4a6ab06f01638c91fe23f901b3f8b98445980e635e2bd9a ./gates/tcgemm/o-3600-r4.log +15abe5469913046b9c4e4dbf029860ec758cea76dc2f71ec00815951cd2ec808 ./gates/tcgemm/o-3600-r5.log +0d5fb1ff5e095b4a59a8a3ba5eefd958f8134dbc02e95d009cd3351e33853e91 ./gates/tcgemm.out +07e6c2f20b4492524584065cf733b5c99ad68aac044f0aaac5af96076ed0246d ./gates/tcgemm/qkv-3600-r1.log +b7a6e0815368d2b824f193c4ec0d64dac07352ab282bc954e8b1a4642b5ddc9e ./gates/tcgemm/qkv-3600-r2.log +a4486911d844e05cf1a27c55de52231cc90ec5e361fdf5e8f400d03a6f12b8db ./gates/tcgemm/qkv-3600-r3.log +1f726a30d362eec4ff46b8f01705bb0f87ed0113551c04441e0ff311a1fdedba ./gates/tcgemm/qkv-3600-r4.log +156c8e632f11513c4a5dca9c6e9770b95e50551168416a4a3d9c380fc158fb4a ./gates/tcgemm/qkv-3600-r5.log +aece1c2f66d1f1d31a5158ee2f96e35a6dcd026d31cf4d6df0a1863ee1ce59c8 ./gates/tcgemm/receipt-down-128-r1.json +99997f978e64bbb102ca843b84f783266b7263505b33d52e5d9fc064aa2c3d7e ./gates/tcgemm/receipt-down-128-r2.json +7e63c0cda11ece30c33c9c28d311ee1b6fd220ea66b520d1d552d04b1c096e2a ./gates/tcgemm/receipt-down-128-r3.json +2676967a2fb76ebcef78e14bf1e55ce35d14403dd219616444d4aa6e27440891 ./gates/tcgemm/receipt-down-128-r4.json +b4f11168a2ed5b31071707d202e63a758f9f2f91ebbe2c16c47882e31e9bdfd4 ./gates/tcgemm/receipt-down-128-r5.json +0d521c2a838b17d6a292f39dd85c2db5e0af7cc2db3fe8a60cb758f08c739848 ./gates/tcgemm/receipt-down-3600-r1.json +3d4ba9b14b7c3639e28ddf1df3439ac56f2f9e024c13129768e06413436a1932 ./gates/tcgemm/receipt-down-3600-r2.json +289f5f077c115f228973cd0442c06d4025857ec5e7be2cf89e34a3ce99ab3214 ./gates/tcgemm/receipt-down-3600-r3.json +606302bf1722d82393052bc852bf13f907c01c7d395ba01acd1a93302d0efabb ./gates/tcgemm/receipt-down-3600-r4.json +2561d40863c3feee1f1a1685ade070257128473d056a95d9656ffa6506e96ff8 ./gates/tcgemm/receipt-down-3600-r5.json +405c03f733a5e0036632ff2931ada071f35bc1b1b9c610fbf501b11549c08fc6 ./gates/tcgemm/receipt-gateup-128-r1.json +9cc4070493cb3e37f308c8518d2d605ea7bb5d1882a544e3e69d8d79fa1a9b12 ./gates/tcgemm/receipt-gateup-128-r2.json +9a53ed3d05117b758365ca7155bfda903d18776c418ad5e540c868b27807a0bc ./gates/tcgemm/receipt-gateup-128-r3.json +9bcee5c54c661c6935797c9aeb039810bca8d2d0c2835f8c309bf3358dffb658 ./gates/tcgemm/receipt-gateup-128-r4.json +6f19e407fa55c92252e4d2705b61e903236c18f886bf9e2e868e19e4fd226737 ./gates/tcgemm/receipt-gateup-128-r5.json +294566f1e14d287dc4c19bf83822c345ef6744b6cbcde248ef614c3346ba1e16 ./gates/tcgemm/receipt-gateup-3600-r1.json +aab71fb998186fe37ad68c54af6d7cbb5899a6ec3f6680b68cc1d07666b20b22 ./gates/tcgemm/receipt-gateup-3600-r2.json +9987c80beae0ff2157dead8c4fa0f7cf673fc012e7460f7eb95f9b9ab3c87ff9 ./gates/tcgemm/receipt-gateup-3600-r3.json +39e5a745e8e9ad646dc63917acf08e4440a75916d60b731dd004f9a6e52af036 ./gates/tcgemm/receipt-gateup-3600-r4.json +e2a9a3f476dc9f4c95d5894036d0da133ad46cffa4c1d9af88a90395a3c4f509 ./gates/tcgemm/receipt-gateup-3600-r5.json +19505b3ed6b0c18caf52564fa7afd94a985fa9343f287f521ba1e3ae20b40f0f ./gates/tcgemm/receipt-o-3600-r1.json +3c8f0eb7c253b9a8b44f71343933d9a2fea8c92fc45634e43d2291d0c705c4fa ./gates/tcgemm/receipt-o-3600-r2.json +5df8f31506d384357d3ad369f0d1dd5eb5c0906aa077f6dc5adec42e8ce92fe0 ./gates/tcgemm/receipt-o-3600-r3.json +6079c5825a1a2e4981e8badaf5e7b7be0f82b7a2d0ff99abdba0a556f90f9d82 ./gates/tcgemm/receipt-o-3600-r4.json +3cc3f493990c6586ce6ce41d0a411ac8bcbc7b95ef2e014d89f879f757353855 ./gates/tcgemm/receipt-o-3600-r5.json +7d7ec1d1281946202a8797648e750caf5e6028999228d2adcbc81176869f3ee3 ./gates/tcgemm/receipt-qkv-3600-r1.json +d912d50c511577f858a40c770aedbc4d560cf2170eb9ba2424c1a9652346fca9 ./gates/tcgemm/receipt-qkv-3600-r2.json +b47ff4a2fe6f69388c97dff51a61bcf20499da5b7f6b1e69e31573c38aa68ca9 ./gates/tcgemm/receipt-qkv-3600-r3.json +eb992b3dc266fd7bc31e31ca994abfa2e91a675644624b67160c1eae303f45bc ./gates/tcgemm/receipt-qkv-3600-r4.json +9f49be86af186b6a875b84e317232f716fedb273a481c10a6171b12004e683ff ./gates/tcgemm/receipt-qkv-3600-r5.json +43057aecf557e291da955c6ecda59ad04a9183e58bfb3d90a6fbc45384133abe ./NOTES.md +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./omega457/build.log +90e41f8727ef24dc34ef4617cb3706bcd3a3d6d0c733ec2786b06ba6465330b2 ./omega457/fix-build.log +6acbc0333befe00e57efc5a901a43bd3bc5a1c9dd0a45f84603df6789467bd53 ./omega457/fixgates/cmdlist/build.log +2e40f20283bfc71f691e0f8905253104fed2dcd98165f0d732d8a23c283f53fb ./omega457/fixgates/cmdlist/device.txt +19a5e1c7793eb4bd2cd68172703e3a6996966dbc8ba3d6b015f38b6455aa75d8 ./omega457/fixgates/cmdlist/host-only.log +a1c6a78d7b31faae095a0a2ad84d53e2aac9f6d34621b1c1c947988efcc22087 ./omega457/fixgates/cmdlist/main.log +fdd95ee0c9716b14e1eec171769c594a96a1deffde38fe710419eaccaaca9bfe ./omega457/fixgates/cmdlist.out +796bc4db16f3e2606776eb5e5985643ad5a32ca5cd87f2b740370be88a1bf8d6 ./omega457/fixgates/cmdlist/receipt-main.json +c8e9ac96269fec7a92d118b01295ee09a9c5f330ab760277fbe9a47dcbf981e1 ./omega457/fixgates/cmdlist/receipt-spin0.json +90fb388d6494bb76d147f0ff1cccda96c5e01bc64fc0cb650a694e71f26769c5 ./omega457/fixgates/cmdlist/sim.log +cb916858ce6967d47a19c6b9b7ae7eb4cfbd359416b10eb0aff67ad079dde0d0 ./omega457/fixgates/cmdlist/spin0.log +2985f370300ac01949c1b3d9c15ef32339728c28b7cce08de16a52556dfc3853 ./omega457/fixgates/decode_graph_cached/binaries.sha256 +7e4f4ac3efc235011f399b32ea4aae78bb40b65dd155c7ae5f94aad771cae31d ./omega457/fixgates/decode_graph_cached/build.log +7e72e7ad042df585f05a96d32be8b7289626e838b983414db8ec7bdbac7dbed9 ./omega457/fixgates/decode_graph_cached/cached.log +226f4d26cc928f5d9ab8cfdb50c216f1b115ffb34d9de4b7540be4124545d450 ./omega457/fixgates/decode_graph_cached/device.txt +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc ./omega457/fixgates/decode_graph_cached/host-only.log +7a69d90856c35a1759ea781feb62eb6fbdf76db6d8ab63ef06caa7deb9235284 ./omega457/fixgates/decode_graph_cached.out +2196d202e1cb82b203e929bee535db79757a3b91fa71890c13607425a03d3de3 ./omega457/fixgates/decode_graph_cached/receipt-cached.json +e7fc66ed904eaa7cb69d81bc5a753a461829c6260f2d8b6e6dab9d12593abad5 ./omega457/fixgates/decode_graph_cached/worktree.diff +12641abdc6478ebeb7b3b4d3be9f351d2749f1d9d352bd7764827cb2f5bfcbaf ./omega457/fixgates/fp8/baseline-matmul.log +3bebff182d270e3c7408da472646424164128b7a01722d58a71bb424a99ce194 ./omega457/fixgates/fp8/build.log +72d5065a1f3c1034038b849d40ae9a37b87f1790ce5c19314c07ba21afcef46e ./omega457/fixgates/fp8/depth0.log +82bd94a62cd4c240ee6911b0e6ab020f12dd3ce386a532e1012fecc927d94726 ./omega457/fixgates/fp8/device.txt +de0e3f30509f0491e9a2ad8e22005f758a8e4e2723906cd0986f0c3a61b53945 ./omega457/fixgates/fp8/grouped-old.log +caeab5a3cdebfa0910e2a449141b573071298a47743f9a862efba72b89d8a61e ./omega457/fixgates/fp8/host-only.log +f1c664cb187c634d474a1a648c73cec7c6db50ddd9d364a40e5bc45ddc3cbec9 ./omega457/fixgates/fp8/main.log +fb56057322fa8530da8477186ea04b8a1fb8cc196f1922426d1977bf2161ab21 ./omega457/fixgates/fp8/noevict.log +fac3604141cd9ffdcb95bd4d511118894dc654621719b6dc52dad210b72d2257 ./omega457/fixgates/fp8.out +ec5cc7fdb271705be442d85d50e9a5b2d6fa7c92ce00fff5eddd1db7fe8264cb ./omega457/fixgates/fp8/receipt-baseline-matmul.json +430a91af97fa5514ed73ebd8ab5cca1e6567cb43e25db7fa8a65fd3c6ef0c1bc ./omega457/fixgates/fp8/receipt-depth0.json +a6b4e1f8510c4fca58d9e34ba22b111796a1121cdaf9d120d6fd533c2a828f12 ./omega457/fixgates/fp8/receipt-grouped-old.json +477dfe611bde58293f74de56a50789583e554d5b1486b71dc101124c926bc86f ./omega457/fixgates/fp8/receipt-main.json +84b97340a9c3b358f175163fe96e8a1e4ae199e39c7a76bd46d76ce280f69e67 ./omega457/fixgates/fp8/receipt-noevict.json +a8618d6c326a481c2801fcfa1dfc1ded3a49dd94128a4d732137079d4ae2d687 ./omega457/fixgates/fp8/sim.log +a93cf9aa63eef90ae55ce90ceb2723a6c6b245f25edd0f4f1799b54b9469c19f ./omega457/fix-lib.sha256 +e7fc66ed904eaa7cb69d81bc5a753a461829c6260f2d8b6e6dab9d12593abad5 ./omega457/fix-variant.diff +83b85db14440e60ad84555bd82aa6c4b420b813da4cdfc09c4440fe8f5198169 ./omega457/gate-fix/build.log +a6863b8625f32304fc05a97cb55402c280fa6b6186a52fe0d12cab9f0e845f00 ./omega457/gate-fix/device.txt +f7df6a8f3de745308b8e9638daf9a5eaaaa6b976fc4735aa1200c3a449ceccbb ./omega457/gate-fix.out +852e68fd8c84a35e26074fe97c15f93826cf68bc0df15f8fa453059dc4eb1287 ./omega457-gate-fix-r2/build.log +48c58ba0eb8e3fedbaea9cb1a943a6c35e116b744a6bce7eea41e80ebc32b2d0 ./omega457-gate-fix-r2/device.txt +f7df6a8f3de745308b8e9638daf9a5eaaaa6b976fc4735aa1200c3a449ceccbb ./omega457-gate-fix-r2/gate.out +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457-gate-fix-r2/realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457-gate-fix-r2/realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457-gate-fix-r2/realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457-gate-fix-r2/realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457-gate-fix-r2/realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457-gate-fix-r2/realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457-gate-fix-r2/realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457-gate-fix-r2/realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457-gate-fix-r2/realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457-gate-fix-r2/realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457-gate-fix-r2/rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457-gate-fix-r2/rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457-gate-fix-r2/rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457-gate-fix-r2/rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457-gate-fix-r2/rewrite-c0-r5.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457-gate-fix-r2/rewrite-c1-r1.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457-gate-fix-r2/rewrite-c1-r2.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457-gate-fix-r2/rewrite-c1-r3.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457-gate-fix-r2/rewrite-c1-r4.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457-gate-fix-r2/rewrite-c1-r5.log +501f702d5de67982912675275b30d652e54fc3b769eb7605a82ac820707dabc2 ./omega457-gate-fix-r2/summary.txt +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-fix/realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-fix/realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-fix/realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-fix/realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-fix/realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-fix/realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-fix/realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-fix/realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-fix/realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-fix/realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-fix/rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-fix/rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-fix/rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-fix/rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-fix/rewrite-c0-r5.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457/gate-fix/rewrite-c1-r1.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457/gate-fix/rewrite-c1-r2.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457/gate-fix/rewrite-c1-r3.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457/gate-fix/rewrite-c1-r4.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./omega457/gate-fix/rewrite-c1-r5.log +501f702d5de67982912675275b30d652e54fc3b769eb7605a82ac820707dabc2 ./omega457/gate-fix/summary.txt +0e3e4f03ecd6a9373ba320704324922eefe449429fdb05f59e6db330b76c52d3 ./omega457/gate-red/build.log +3b89ed0e0581a9a87227134bb4094df5356b3d1941c329512c3b13190cc4ac15 ./omega457/gate-red/device.txt +d3b36f81602218a9ed045b64f0d6780a0ed1ed85efdc5989e9c82fd056e6c786 ./omega457/gate-red.out +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-red/realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-red/realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-red/realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-red/realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./omega457/gate-red/realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-red/realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-red/realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-red/realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-red/realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./omega457/gate-red/realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-red/rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-red/rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-red/rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-red/rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./omega457/gate-red/rewrite-c0-r5.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./omega457/gate-red/rewrite-c1-r1.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./omega457/gate-red/rewrite-c1-r2.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./omega457/gate-red/rewrite-c1-r3.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./omega457/gate-red/rewrite-c1-r4.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./omega457/gate-red/rewrite-c1-r5.log +4b73fc935a2ca80ba2876b9fe33a18ff3cf25cf0826bcc7becf1877b9cc5ff97 ./omega457/gate-red/summary.txt +b54292e0f28a7ade0acef8e02bf1e47e252eba054c6fc8a33b51d377c1bb67b8 ./omega457/ground.txt +fcb06e0f9949f670f20d204d5a8e469c0d98f2ca9f70c4070452bb1c94847280 ./omega457/lib.sha256 +23f548967452a8f1c927137c563e9bc34076193210db69fe035859ab5279ce1d ./omega457/PINS +3e928acc3253508c7e763553ed11cd2f7c0b4f6fb3a5c8ad319a8c1cdedbce10 ./omega457/plan.md +fb71bc98c9ae8142fa745996e2bb192718c7533c60b1d881e0b6ba0ae4ecb892 ./omega457/runs/fix-realloc-c0-r1.log +173255ed65b574642611eecbcebd2366c66590c4aefa8639d31e20b6d823a931 ./omega457/runs/fix-realloc-c0-r2.log +d878400de3844bb97241ab8fd7bf2145de6afc6ca6dd812b3f2dea6eb49c30e8 ./omega457/runs/fix-realloc-c0-r3.log +d878400de3844bb97241ab8fd7bf2145de6afc6ca6dd812b3f2dea6eb49c30e8 ./omega457/runs/fix-realloc-c0-r4.log +0c480e3e7f877b5e45c0096790538e57da9565a2f9d2c23ebd76739aef36889c ./omega457/runs/fix-realloc-c0-r5.log +f9fa19c341ab58f5eba102e0966b570995a2217271d8e5a365b9c63aaff8f5d8 ./omega457/runs/fix-realloc-c1-r1.log +c3f7c953410ce00c8b8a60c3499a07eaf35a1dc669e5601f182bca94788e2e14 ./omega457/runs/fix-realloc-c1-r2.log +f1121f2fba35f721d72b62f39d9d2967ba38de596623b4c9dfa1b59a0b40223b ./omega457/runs/fix-realloc-c1-r3.log +5ef863d2283c57dfae0962d05b628238189d24b7a70c5dee76464d52d0d34842 ./omega457/runs/fix-realloc-c1-r4.log +5ef863d2283c57dfae0962d05b628238189d24b7a70c5dee76464d52d0d34842 ./omega457/runs/fix-realloc-c1-r5.log +1852289611bae7d99484f87cbaf8b723766b16fc3bf002e477b5642d417906e3 ./omega457/runs/fix-rewrite-c0-r1.log +1852289611bae7d99484f87cbaf8b723766b16fc3bf002e477b5642d417906e3 ./omega457/runs/fix-rewrite-c0-r2.log +68ae0330030534e5f211d9ef60d70a308196c73effc9dd4e941f6fcc7cb7a761 ./omega457/runs/fix-rewrite-c0-r3.log +d0db44b69dd5eecbdb8befcd9c5ae66a80a96f424882edce86d7ff90305352cb ./omega457/runs/fix-rewrite-c0-r4.log +9006102734277252848c7a0ad9e4c9ea52d24decfe8ffb1dac3230c585be22db ./omega457/runs/fix-rewrite-c0-r5.log +8d5b1fa41cddffd54a969878e2853ed5fdffaf09566828228d5cdb69335c990e ./omega457/runs/fix-rewrite-c1-r1.log +320a784cead7abdaf06fb7d25cb5548b6b6945b23f76345a02491bea437a7d98 ./omega457/runs/fix-rewrite-c1-r2.log +320a784cead7abdaf06fb7d25cb5548b6b6945b23f76345a02491bea437a7d98 ./omega457/runs/fix-rewrite-c1-r3.log +9274ab53d6bac1b6dd682ed919d9798f6d861305721e5ce1150994495708da5a ./omega457/runs/fix-rewrite-c1-r4.log +d0ee0bd2cf7bf3c54f286653ddb7579070935e72da8a36913bb15378df7b9d26 ./omega457/runs/fix-rewrite-c1-r5.log +e51c4f67b3e6168d42f9ad0d4994c3ec532c81584a3db9047234fc4f19a130a4 ./omega457/runs/realloc-c0-r1.log +895fa72062d28e48a16ce64ad43651437eb88f8a71a0f81fcd6e244cb2a24b69 ./omega457/runs/realloc-c0-r2.log +607bd5b7fda530f7543fbd902489bbc26ea8fce91348379c4da8c202a9b28004 ./omega457/runs/realloc-c0-r3.log +61eafec468d57f4e70991448c4e1e711978366a6195b578528085fc085d82c0e ./omega457/runs/realloc-c0-r4.log +07792740e322c7f26015ea4b75eee16b3d11acdf19c197a125e832786e2741f4 ./omega457/runs/realloc-c0-r5.log +c694a0550e001f81d0d168c4506f3e5447abccf276431cb94914e05e11d13c4d ./omega457/runs/realloc-c1-r1.log +c694a0550e001f81d0d168c4506f3e5447abccf276431cb94914e05e11d13c4d ./omega457/runs/realloc-c1-r2.log +81619407363bb8fe2605f2225f13b84a0c7d6ae2e5b6432f5a920a825f45be42 ./omega457/runs/realloc-c1-r3.log +9dfcb02f196dd6564b0cc256ad0f9c6f780bbe35aeaeeab978b70bae46e6cc91 ./omega457/runs/realloc-c1-r4.log +43558368b89d7b7eeeab0968e134ef14969084d1aacca04d8018f1c041519b12 ./omega457/runs/realloc-c1-r5.log +2d7c3d2670f38d233602d2c353281e87ae604562ea8fbf2a5ac116d5312de008 ./omega457/runs/rewrite-c0-r1.log +169059ea5da360c491c49c0a6ba629daa395827767395602dff44e6c65f0aee5 ./omega457/runs/rewrite-c0-r2.log +169059ea5da360c491c49c0a6ba629daa395827767395602dff44e6c65f0aee5 ./omega457/runs/rewrite-c0-r3.log +b11ef5db49315a63af1d898f1e34eb85fd719d378463099fb96a355378d43834 ./omega457/runs/rewrite-c0-r4.log +197fb711f8859ac6b2c13396bef3c5477328af7d608c656e5d73ec587a347764 ./omega457/runs/rewrite-c0-r5.log +d74bc6ffdc739c2e6aa9783d5c41cc251a32fae681f58be4e70eab4f41e317e0 ./omega457/runs/rewrite-c1-r1.log +164fab6bdb11958b08403ab540b1268a05a0f60a444f4aa1b60ae941400be0b1 ./omega457/runs/rewrite-c1-r2.log +ac70a4057cb2045eb042a002d4d4cc48017cd07ee34a5230f2e9241add0d1536 ./omega457/runs/rewrite-c1-r3.log +f97094da2816aae3867c0f3edf002eae89dea5a6e24a5f9e316298e3316b0881 ./omega457/runs/rewrite-c1-r4.log +f97094da2816aae3867c0f3edf002eae89dea5a6e24a5f9e316298e3316b0881 ./omega457/runs/rewrite-c1-r5.log +f2f7043e6544f14a67959b6649f328f52f596c538ab543d8409ef257aeafbb5c ./omega457/runs/run-all.sh +6b95229967b8fb4a8fde4c654a662ead3d82e8c6cf5d8f89560c9f2d520f8485 ./omega457/runs/run-fix.sh +b9d1012d0b146caac8430541e6f74dd8914c11fd56c46c28b2209acd34cefbe9 ./omega457/runs/summary-fix.txt +6a2a8fab9e8a45b6fd301ddecdc69060b3b38e0ccb571aacbe184a80149fab3d ./omega457/runs/summary.txt +fb2d8fc1fabf57d23f7140d241f8f062331c3d2f1342c196b11e638a30eddb90 ./omega457/src/l2_stale_test.c +0309767b3765158087cb117ce14002955481ab84fda6b8c68e9cfe042edd5f4f ./omega457/state-after.txt +ad5622e0f86aeee8ac00f0101edb98201539fdaffd03c97e47d49f50faeaccfa ./omega-gates.sh +0e3ff5ddf3dc25e4aee44fdfd3f25f17691e791251c2eaa2b9bd26567aac72f2 ./rc-d0889a94/prefill_attn/baseline-decode.log +404e788aaefae7f3317cd637108d0579b6206976f4c4379b8bb708cbd41e09cf ./rc-d0889a94/prefill_attn/build.log +72343fa4009a0f76fdb07c3313789a851694b1ea6c2facd9073ea9963fc31d4f ./rc-d0889a94/prefill_attn/clocks.csv +02a75f42591096459f8e3783886d7cf03ccf45d35ef9a0fad43eb0825ba621b5 ./rc-d0889a94/prefill_attn/device.txt +ce142f06e62b3f9c6d0db635a95537911cea4cb4ec6511e6785e24200ae0405c ./rc-d0889a94/prefill_attn/host-only.log +c1a82f2bc593e3538cb215014f7fff1b8bd2dfe5ef1ec3156af2d9855b749be7 ./rc-d0889a94/prefill_attn/main-fused.log +09c48c8d9dc913b281850ffbaed0fb58eb167f7a54f8b2298152f2e16588ea45 ./rc-d0889a94/prefill_attn/main.log +bc1dd6ce7db8c5fb65780beeae11b90fe95f1af1ac6d6dd7a098928bbb02534c ./rc-d0889a94/prefill_attn.out +d79ea50c813482db28da13eaaeabac57e4ca00e09b4d5e5d64e805689455d7cd ./rc-d0889a94/prefill_attn/receipt-baseline-decode.json +ab569c7105b701dfaa41fa76dde363d17b37a84a09a7de4d93e8275bd2bd6439 ./rc-d0889a94/prefill_attn/receipt-main-fused.json +a67d1ad5fc75048f11b6b1168d8e54eb358bd487e687898846c399d8653b5e98 ./rc-d0889a94/prefill_attn/receipt-main.json +676b55e72b2a946af8718440fac707d5e984b76c5b266829488b518a2d7b742c ./rc-d0889a94/prefill_attn/receipt-warps4.json +a560e622fbe2abfd582d2e47d3c9faac3f1e747d69af861c369529c51d2ee2e3 ./rc-d0889a94/prefill_attn/sim.log +8fa81f72f303dc3dc341409f7de955dfa220e04153e07829661b7ccf5483224f ./rc-d0889a94/prefill_attn/spread-fused-cold.log +8fbfc6993cc94b71dec0b26aa1b33ff7d3a1debe7f33b7ed67e649a6eb9bb4e7 ./rc-d0889a94/prefill_attn/spread-fused-warm5.log +9361dfac1326f20ca56c4cf6ac932b82e61e933954fb72dbec5e13f54eaf4764 ./rc-d0889a94/prefill_attn/spread-marks.txt +63e30b13ae5c440aa721220825479569ea56a6ec1402840521c03320a87ddbe5 ./rc-d0889a94/prefill_attn/spread-split-cold.log +aca0a0cd6740f8a7dd13dbb74461a747b083a5a486513175489116056b56c756 ./rc-d0889a94/prefill_attn/spread-split-warm5.log +4004563ddc22f43ff36d9fe280bb3f6244fd679b3b22f2bc206de4502076f214 ./rc-d0889a94/prefill_attn/warps4.log +e72eda37268cbbff654cd7d059e1c194ba2aaf18ec8b359b7bfaca0d9da1e45a ./stage2.sh diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention.out new file mode 100644 index 000000000..6d15d7fc6 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention.out @@ -0,0 +1,4 @@ +PASS: 219 checks, 0 failed +PASS: 73 checks, 0 failed +PASS: 2 checks, 0 failed +FB1-CUT5 chip gate rc=0 (sweep rc=0 timing rc=0) receipt=/home/drakestapleton/workspace/requal-0c63/omega-gates/attention/FB1-CUT5-710d438c/receipt.json sweep=/home/drakestapleton/workspace/requal-0c63/omega-gates/attention/FB1-CUT5-710d438c/sweep.json diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/SHA256SUMS new file mode 100644 index 000000000..9a3a2a73f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/SHA256SUMS @@ -0,0 +1,12 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +94c5d85397039f428b14de6c75e26ace6f1062e052e6d45997486f7c56d32511 device.txt +ad6ab1b22937beddaa843d17a4c00e902df529aa02d92ee2ee61102951f43006 gpu_attention_test.c +db8e44ff47d2012049763b1adebf8c4724f07988bfb6f858fe5173e40fa4a066 omega_gpu_attention_api.c +f9be0e256e10e0664bc0602e862b544041a658248bd7200b463753fde81b396a omega_gpu_attention_api.h +cc2646a74fa47fdec5f074db702578cd1c3d264d750bdaf947c73f107576962d receipt.json +953fd231ea51b077d8bdf3397d69948ef12d7f96cc8fa3540f14f1b47df00777 run.log +95994f90d83afea6f11f17ec466de90737986a0dbe4b8072518a0236bbdbfed9 sim.log +1e57804d07602e1df77530bfef250b6b406e2232f077787637568c31c1a4ebd3 sweep.json +43a010b3eeeacf534a7e2584850f64186bcdd15688428ff9d13c1f4ea09a613f sweep.log +e18724da84216ce306f59e9f44b15f46905ae8286c69f8e0436e6fdb586fc3a8 timing.json +4b66f552135d6fbfdc1f0ab3f8eb55c1967165d343974853ea525656a8200be2 timing.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/device.txt new file mode 100644 index 000000000..ac9e3989a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/device.txt @@ -0,0 +1,5 @@ +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 +omega 710d438cac6c1159b4ca2b39af49812ce08f554b (0 uncommitted paths) +physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +2026-10-15T01:04:23Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/gpu_attention_test.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/gpu_attention_test.c new file mode 100644 index 000000000..45790315a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/gpu_attention_test.c @@ -0,0 +1,1182 @@ +/* gpu_attention_test: FB-1 cut 5 gate for omega_gpu_attention_api. + * + * ./gpu_attention_test --host-only refusals, codegen (both kernel families and every + * mutant), register budget, nvdisasm listing check + * ./gpu_attention_test --split-timing [--hd 128] [--spin-us N] [--out r.json] paged bf16 32q/8kv at ATTN_SPLIT_CTX + * (default 1268): 100 calls per forced split 1,2,4,8 + auto, parity + * ./gpu_attention_test --timing [--out r.json] cut 4b gate: 1 query x 32 heads x 2048 ctx, 100 calls + * through the persistent session, median under 3 ms + * ./gpu_attention_test --sweep [--out s.json] head-scaling sweep: paged bf16 at head_dim 64 over q heads + * 1..64 x every kv-head divisor x ctx 256/2048, parity + timings + * (receipt OMEGA_GPU_ATTENTION_SWEEP_V1; --sim marks host timings) + * ./gpu_attention_test --out receipt.json chip gate: every shape against the host oracle, the + * mutants (deliberately wrong kernels, all of + * 1 .. OMEGA_GPU_ATTN_MUTANT_COUNT-1) which the same + * check must catch, a negative control, timings + * + * Oracles re-state aien-sovereign-core crates/aien-inference-abi/src/backend.rs (main 8b5caed) in C: + * ReferenceCpuBackend::gqa_attention (f64 scores, max, exp, sum, 1/max(sum,1e-12), f64 weighted sum), + * TensorBackend::paged_attention (f64 online softmax token by token over the paged bf16 pool, tokens + * past the block table dropped, zeros for empty context) and paged_attention_batch (ctx <= 0 -> 0, + * table rows past the array -> empty, negative entries removed). Compiled with -ffp-contract=off. + * + * Tolerance (why): the chip accumulates the 64-term dot products, the per-chunk sums and the + * rescaled running sums in f32 (worst case about n * 2^-24 relative over n = 2048 terms, 1.2e-4), + * uses MUFU.EX2 (PTX ex2.approx: 2^-22.5 relative) for every weight and for the 32 chunk rescale + * factors, and MUFU.RCP for the final normalisation. Every output is a convex combination of V + * values of unit scale, so |error| <= 2e-4 * |want| + 2e-5 covers these with margin; the mutants + * move results by 1e-2 or more (wrong head, wrong token) or produce NaN (overflow without the max). + * The large-score case (scores up to ~300) carries the f32 rounding of the score itself into the + * exponent (3e-5 absolute per score), so it uses 1e-3 relative + 1e-4 absolute. + */ +#include "omega_gpu_attention_api.h" +#include "omega_gpu_session.h" +#include "omega_blackwell_codegen.h" +#include "bw_warp_sim.h" /* omega #308: SIMT warp simulator for --divergent */ +#include +#include +#include +#include +#include +#include +#include + +static int g_checks, g_failed; +static int g_sim_mode; /* --sim: the host simulator never opens the device */ +static int g_divergent; /* --divergent (omega #308 R2): the j >= ctx branch inside a BSSY/BSYNC region */ +static uint32_t g_hd = 64; /* --hd 128: the whole battery at head_dim 128 (Qwen3-4B shapes); both simulators size the CTA from it */ +#define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0) + +static uint32_t lcg(uint32_t *s) { *s = *s * 1664525u + 1013904223u; return *s; } +static float frand(uint32_t *s, float lo, float hi) { return lo + (hi - lo) * ((float)(lcg(s) >> 8) / 16777216.0f); } +static uint16_t f2bf(float f) { uint32_t u; memcpy(&u, &f, 4); uint32_t r = ((u >> 16) & 1u) + 0x7fffu; return (uint16_t)((u + r) >> 16); } +static float bf2f(uint16_t b) { uint32_t u = (uint32_t)b << 16; float f; memcpy(&f, &u, 4); return f; } + +/* ----------------------------------------------------------------- oracles */ +static void oracle_gqa(const float *q, const float *kc, const float *vc, size_t seq_len, size_t nqh, size_t nkv, size_t hd, float *out) { + if (seq_len == 0) { memset(out, 0, nqh * hd * 4); return; } + size_t ratio = nqh / nkv; double inv_sqrt_d = 1.0 / sqrt((double)hd); + double *scores = malloc(seq_len * sizeof *scores); + for (size_t h = 0; h < nqh; h++) { + size_t kvh = h / ratio; const float *qh = q + h * hd; + for (size_t t = 0; t < seq_len; t++) { + const float *kt = kc + (t * nkv + kvh) * hd; double dot = 0.0; + for (size_t d = 0; d < hd; d++) dot += (double)qh[d] * (double)kt[d]; + scores[t] = dot * inv_sqrt_d; + } + double mx = -INFINITY; for (size_t t = 0; t < seq_len; t++) if (scores[t] > mx) mx = scores[t]; + double sum = 0.0; for (size_t t = 0; t < seq_len; t++) { scores[t] = exp(scores[t] - mx); sum += scores[t]; } + double inv = 1.0 / (sum > 1e-12 ? sum : 1e-12); + for (size_t t = 0; t < seq_len; t++) scores[t] *= inv; + for (size_t d = 0; d < hd; d++) { + double s = 0.0; + for (size_t t = 0; t < seq_len; t++) s += scores[t] * (double)vc[(t * nkv + kvh) * hd + d]; + out[h * hd + d] = (float)s; + } + } + free(scores); +} +/* bf16 pool in the canonical layout; the oracle's read_kv_head: element_offset(block, layer, is_value, token) + kv_head*head_dim*2 */ +static const uint16_t *kv_head(const uint8_t *pool, const OmegaGpuKvLayout *ly, size_t blk, size_t layer, int is_v, size_t tok, size_t kvh, size_t hd) { + size_t off = blk * ly->block_stride_bytes + layer * ly->layer_stride_bytes + (is_v ? ly->kv_plane_stride_bytes : 0) + tok * ly->token_stride_bytes + kvh * hd * 2; + return (const uint16_t *)(pool + off); +} +static void oracle_paged(const float *q, const uint8_t *pool, const OmegaGpuKvLayout *ly, const uint32_t *ids, size_t nids, size_t ctx, size_t layer, + size_t nqh, size_t nkv, size_t hd, float *out) { + if (ctx == 0 || nids == 0) { memset(out, 0, nqh * hd * 4); return; } + size_t ratio = nqh / nkv; double inv_sqrt_d = 1.0 / sqrt((double)hd); size_t bs = ly->block_size; + double *acc = malloc(hd * sizeof *acc); + for (size_t h = 0; h < nqh; h++) { + size_t kvh = h / ratio; const float *qh = q + h * hd; + double m = -INFINITY, l = 0.0; for (size_t d = 0; d < hd; d++) acc[d] = 0.0; + for (size_t t = 0; t < ctx; t++) { + size_t bi = t / bs; if (bi >= nids) break; + const uint16_t *kh = kv_head(pool, ly, ids[bi], layer, 0, t % bs, kvh, hd); + const uint16_t *vh = kv_head(pool, ly, ids[bi], layer, 1, t % bs, kvh, hd); + double dot = 0.0; for (size_t d = 0; d < hd; d++) dot += (double)qh[d] * (double)bf2f(kh[d]); + double score = dot * inv_sqrt_d, mn = m > score ? m : score, alpha = exp(m - mn), beta = exp(score - mn); + l = l * alpha + beta; + for (size_t d = 0; d < hd; d++) acc[d] = acc[d] * alpha + beta * (double)bf2f(vh[d]); + m = mn; + } + double inv = l > 0.0 ? 1.0 / l : 0.0; + for (size_t d = 0; d < hd; d++) out[h * hd + d] = (float)(acc[d] * inv); + } + free(acc); +} +static void oracle_batch(const float *q, const uint8_t *pool, const OmegaGpuKvLayout *ly, const int32_t *tables, const int32_t *ctxs, size_t maxb, size_t nseq, + size_t layer, size_t nqh, size_t nkv, size_t hd, float *out) { + size_t stride = nqh * hd; + uint32_t *ids = malloc((maxb ? maxb : 1) * sizeof *ids); + for (size_t s = 0; s < nseq; s++) { + size_t ctx = ctxs[s] > 0 ? (size_t)ctxs[s] : 0, n = 0; + size_t total = nseq * maxb; /* the table array length as the trait sees it */ + if ((s + 1) * maxb <= total) for (size_t b = 0; b < maxb; b++) if (tables[s * maxb + b] >= 0) ids[n++] = (uint32_t)tables[s * maxb + b]; + oracle_paged(q + s * stride, pool, ly, ids, n, ctx, layer, nqh, nkv, hd, out + s * stride); + } + free(ids); +} + +static size_t compare(const float *got, const float *want, size_t n, double rel, double abs_tol, double *worst) { + size_t bad = 0; *worst = 0.0; + for (size_t i = 0; i < n; i++) { + double d = fabs((double)got[i] - (double)want[i]); + double lim = rel * fabs((double)want[i]) + abs_tol; + double scaled = lim > 0 ? d / lim : (d > 0 ? INFINITY : 0.0); + if (scaled > *worst) *worst = scaled; + if (!(d <= lim)) bad++; /* NaN counts as bad */ + } + return bad; +} + +/* ------------------------------------------------------------- host only */ +static int nvdisasm_check(bool f32, const char *name, const char *const *must, int n_must) { + const char *nv = "/usr/local/cuda/bin/nvdisasm"; + if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + if (omega_gpu_attention_codegen_hd(f32, f32 ? 12 : 4, 3, g_hd, &k) != OMEGA_GPU_ATTN_OK) return -1; + char bin[64], lst[64], cmd[256]; + snprintf(bin, sizeof bin, "/tmp/omega_attn_%s_%d.bin", name, (int)getpid()); + snprintf(lst, sizeof lst, "/tmp/omega_attn_%s_%d.sass", name, (int)getpid()); + FILE *f = fopen(bin, "wb"); if (!f) { free(k.code); return -1; } + fwrite(k.code, 1, k.code_size, f); fclose(f); + snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); + int rc = system(cmd); + free(k.code); + FILE *l = fopen(lst, "r"); if (!l) return -1; + char line[512]; int seen[16] = {0}; int bad = 0, insns = 0; + while (fgets(line, sizeof line, l)) { + if (!strstr(line, "/*0")) continue; + insns++; + if (strstr(line, "?") || strstr(line, "error")) bad++; + for (int i = 0; i < n_must; i++) if (strstr(line, must[i])) seen[i] = 1; + } + fclose(l); + int miss = 0; + for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } + printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); + unlink(bin); + return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; +} + +static OmegaGpuKvLayout layout_for(uint32_t num_blocks, uint32_t bs, uint32_t layers, uint32_t nkv, uint32_t hd) { + OmegaGpuKvLayout ly; + ly.head_stride_bytes = (uint64_t)hd * 2; ly.token_stride_bytes = ly.head_stride_bytes * nkv; + ly.kv_plane_stride_bytes = ly.token_stride_bytes * bs; ly.layer_stride_bytes = 2 * ly.kv_plane_stride_bytes; + ly.block_stride_bytes = ly.layer_stride_bytes * layers; ly.pool_bytes = ly.block_stride_bytes * num_blocks; + ly.num_blocks = num_blocks; ly.num_layers = layers; ly.block_size = bs; + return ly; +} + +static void host_only(void) { + float q[64 * 64], kv[64 * 64], out[64 * 64]; memset(q, 0, sizeof q); memset(kv, 0, sizeof kv); + CHECK(omega_gpu_gqa_attention_f32(NULL, kv, kv, 1, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "NULL q refused"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 32, 4, 96, out, NULL) == OMEGA_GPU_ATTN_TOO_LARGE, "head_dim 96 refused (TOO_LARGE)"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 32, 4, 256, out, NULL) == OMEGA_GPU_ATTN_TOO_LARGE, "head_dim 256 refused (TOO_LARGE)"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 6, 2, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "gqa ratio 3 refused"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 32, 5, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "32 q heads / 5 kv heads refused"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, OMEGA_GPU_ATTN_MAX_GQA_CTX + 1, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_TOO_LARGE, "context past the envelope refused"); + for (int i = 0; i < 64; i++) out[i] = 1.0f; + OmegaGpuAttnInfo info; + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 0, 1, 1, 64, out, &info) == OMEGA_GPU_ATTN_OK && out[0] == 0.0f && out[63] == 0.0f && info.chip_calls == 0, "seq_len 0 writes zeros without a launch"); + OmegaGpuKvLayout ly = layout_for(8, 16, 2, 4, 64); + uint8_t *pool = calloc(ly.pool_bytes, 1); + uint32_t ids[2] = { 1, 9 }; + CHECK(omega_gpu_paged_attention_bf16(q, pool, &ly, ids, 2, 20, 0, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "block id past the pool refused"); + CHECK(omega_gpu_paged_attention_bf16(q, pool, &ly, ids, 1, 20, 2, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "layer past the pool refused"); + OmegaGpuKvLayout bad = ly; bad.block_size = 12; + CHECK(omega_gpu_paged_attention_bf16(q, pool, &bad, ids, 1, 10, 0, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "block size 12 (not a power of two) refused"); + bad = ly; bad.head_stride_bytes = 256; + CHECK(omega_gpu_paged_attention_bf16(q, pool, &bad, ids, 1, 10, 0, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "layout whose head stride is not head_dim*2 refused"); + free(pool); + CHECK(strcmp(omega_gpu_attention_rc_name(OMEGA_GPU_ATTN_UNWRITTEN), "UNWRITTEN") == 0, "rc name"); + + /* with --divergent the listing must also show the region ops (last two entries) */ + static const char *const must_bf16[] = { "MUFU.EX2", "MUFU.RCP", "FMNMX", "BAR.SYNC", "SHFL.DOWN", "@P0 BRA", "@!P0 BRA", "LDG.E.U16", "LDG.E ", "LDG.E.128", "LDS.128", "LDS R", "STS [R", "STG.E", "LOP3.LUT", "SHF.R.U32.HI", "BSSY", "BSYNC" }; + static const char *const must_f32[] = { "MUFU.EX2", "MUFU.RCP", "FMNMX", "BAR.SYNC", "SHFL.DOWN", "@P0 BRA", "@!P0 BRA", "LDG.E ", "LDG.E.128", "LDS.128", "LDS R", "STS [R", "STG.E", "BSSY", "BSYNC" }; + for (int f32 = 0; f32 < 2; f32++) { + const char *name = f32 ? "gqa_f32" : "paged_bf16"; + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + int rc = omega_gpu_attention_codegen_hd(f32 != 0, f32 ? 12 : 4, 3, g_hd, &k); + CHECK(rc == OMEGA_GPU_ATTN_OK && k.code_size > 0 && k.gpr_count <= 64, "%s kernel generated (rc %s, %zu insns, %u gprs)", name, omega_gpu_attention_rc_name(rc), k.insn_count, k.gpr_count); + printf("codegen %s: %zu insns, %u gprs, %u ugprs\n", name, k.insn_count, k.gpr_count, k.uniform_gpr_count); + /* every mutant (1 .. COUNT-1) is a distinct kernel: different from the baseline and from + * every other mutant, named, and inside the register budget */ + uint8_t digests[OMEGA_GPU_ATTN_MUTANT_COUNT][32]; memcpy(digests[0], k.code_digest, 32); + free(k.code); + for (int m = 1; m < OMEGA_GPU_ATTN_MUTANT_COUNT; m++) { + omega_gpu_attention_test_set_mutant((OmegaGpuAttnMutant)m); + memset(&k, 0, sizeof k); + int mrc = omega_gpu_attention_codegen_hd(f32 != 0, f32 ? 12 : 4, 3, g_hd, &k); + CHECK(mrc == OMEGA_GPU_ATTN_OK && k.gpr_count <= 64, "%s mutant %s generated (rc %s, %u gprs)", name, omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m), omega_gpu_attention_rc_name(mrc), k.gpr_count); + CHECK(strcmp(omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m), "?") != 0, "mutant %d has a name", m); + memcpy(digests[m], k.code_digest, 32); + free(k.code); + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_NONE); + for (int o = 0; o < m; o++) + CHECK(memcmp(digests[o], digests[m], 32) != 0, "%s mutant %s kernel differs from %s", name, omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m), omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)o)); + } + CHECK(strcmp(omega_gpu_attention_mutant_name(OMEGA_GPU_ATTN_MUTANT_COUNT), "?") == 0, "COUNT has no name"); + /* a different shape key is a different kernel */ + memset(&k, 0, sizeof k); + CHECK(omega_gpu_attention_codegen_hd(f32 != 0, f32 ? 12 : 4, 2, g_hd, &k) == OMEGA_GPU_ATTN_OK && memcmp(digests[0], k.code_digest, 32) != 0, "%s log2gqa 2 kernel differs from log2gqa 3", name); + free(k.code); + CHECK(nvdisasm_check(f32 != 0, name, f32 ? must_f32 : must_bf16, (f32 ? 11 : 14) + (g_divergent ? 2 : 0)) == 0, "%s nvdisasm listing decodes and shows the expected instructions", name); + } +} + +/* ------------------------------------------------------------- chip gate */ +typedef struct { const char *name; size_t n; int rc; size_t bad; double worst; int pass; uint64_t chip_ns, call_ns; uint32_t calls, unwritten; + int mutants_run, mutants_caught; char mutant_note[400]; + uint64_t kv_staged, kv_naive; uint32_t blk_logical, blk_unique; } Case; +static void case_info(Case *c, const OmegaGpuAttnInfo *i) { + c->chip_ns = i->elapsed_ns; c->call_ns = i->call_ns; c->calls = i->chip_calls; c->unwritten = i->unwritten_words; + c->kv_staged = i->kv_bytes_staged; c->kv_naive = i->kv_bytes_naive; c->blk_logical = i->kv_blocks_logical; c->blk_unique = i->kv_blocks_unique; +} +static Case g_cases[64]; static int g_ncases; +static int g_mutant_caught[OMEGA_GPU_ATTN_MUTANT_COUNT], g_mutant_run[OMEGA_GPU_ATTN_MUTANT_COUNT]; + +static void record(Case c, FILE *out) { + g_cases[g_ncases++] = c; + CHECK(c.pass, "%s rc=%s violations=%zu worst=%g", c.name, omega_gpu_attention_rc_name(c.rc), c.bad, c.worst); + CHECK(c.mutants_caught == c.mutants_run, "%s mutants caught %d of %d (%s)", c.name, c.mutants_caught, c.mutants_run, c.mutant_note); + printf("%s %s n=%zu rc=%s violations=%zu worst_scaled_err=%g chip_ns=%" PRIu64 " call_ns=%" PRIu64 " calls=%u unwritten=%u kv_staged=%" PRIu64 "/%" PRIu64 " blocks=%u/%u | mutants %d/%d %s\n", + c.pass && c.mutants_caught == c.mutants_run ? "PASS" : "FAIL", c.name, c.n, omega_gpu_attention_rc_name(c.rc), c.bad, c.worst, c.chip_ns, c.call_ns, c.calls, c.unwritten, + c.kv_staged, c.kv_naive, c.blk_unique, c.blk_logical, c.mutants_caught, c.mutants_run, c.mutant_note); + if (out) fprintf(out, "%s{\"case\":\"%s\",\"n\":%zu,\"rc\":\"%s\",\"violations\":%zu,\"worst_scaled_err\":%g,\"pass\":%s,\"chip_elapsed_ns\":%" PRIu64 ",\"call_ns\":%" PRIu64 ",\"chip_calls\":%u,\"unwritten_words\":%u," + "\"kv_bytes_staged\":%" PRIu64 ",\"kv_bytes_naive\":%" PRIu64 ",\"kv_blocks_unique\":%u,\"kv_blocks_logical\":%u,\"mutants_run\":%d,\"mutants_caught\":%d,\"mutant_note\":\"%s\"}", + g_ncases > 1 ? "," : "", c.name, c.n, omega_gpu_attention_rc_name(c.rc), c.bad, c.worst, c.pass ? "true" : "false", c.chip_ns, c.call_ns, c.calls, c.unwritten, + c.kv_staged, c.kv_naive, c.blk_unique, c.blk_logical, c.mutants_run, c.mutants_caught, c.mutant_note); +} + +static const char *mutant_name(int m) { return omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m); } + +/* Runs the mutants listed in `ms` (terminated by 0) through `run` and counts the catches. */ +typedef int (*RunFn)(void *ctx, float *got, OmegaGpuAttnInfo *info); +/* The forced launch split the battery currently holds (the engine hook has no getter); -1 = automatic. */ +static int g_forced_split = -1; +static void set_split(int log2split) { g_forced_split = log2split; omega_gpu_attention_test_set_split(log2split); } + +static void run_mutants(Case *c, const int *ms, RunFn run, void *ctx, float *got, const float *want, size_t n, double rel, double abs_tol) { + size_t pos = strlen(c->mutant_note); /* appends: a case may call this more than once */ + for (int i = 0; ms[i]; i++) { + OmegaGpuAttnInfo info; double w; + omega_gpu_attention_test_set_mutant((OmegaGpuAttnMutant)ms[i]); + /* cut J (one chunk per split): a paged call at up to 16 chunks gives every CTA one chunk, so the in-kernel + * rescale between chunks never runs and the NO_RESCALE mutant would be invisible. That mutant runs with the + * whole context in one CTA per head (forced split 1), where the rescale happens on every chunk after the first. */ + const int one_cta = ms[i] == OMEGA_GPU_ATTN_MUTANT_NO_RESCALE; + if (one_cta) omega_gpu_attention_test_set_split(0); + int rc = run(ctx, got, &info); + if (one_cta) omega_gpu_attention_test_set_split(g_forced_split); + size_t bad = compare(got, want, n, rel, abs_tol, &w); + int caught = rc != OMEGA_GPU_ATTN_OK || bad > 0; + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_NONE); + c->mutants_run++; c->mutants_caught += caught; g_mutant_run[ms[i]]++; g_mutant_caught[ms[i]] += caught; + pos += (size_t)snprintf(c->mutant_note + pos, sizeof c->mutant_note - pos, "%s%s:%s(rc=%s,bad=%zu)", pos ? " " : "", mutant_name(ms[i]), caught ? "CAUGHT" : "MISSED", omega_gpu_attention_rc_name(rc), bad); + if (pos >= sizeof c->mutant_note) break; + } +} + +typedef struct { const float *q, *kc, *vc; uint32_t seq, nqh, nkv; } GqaCtx; +static int run_gqa(void *p, float *got, OmegaGpuAttnInfo *info) { GqaCtx *c = p; return omega_gpu_gqa_attention_f32(c->q, c->kc, c->vc, c->seq, c->nqh, c->nkv, g_hd, got, info); } +typedef struct { const float *q, *kc, *vc; uint32_t base, nr, nqh, nkv; } RowsCtx; +static int run_rows(void *p, float *got, OmegaGpuAttnInfo *info) { RowsCtx *c = p; return omega_gpu_gqa_attention_rows_f32(c->q, c->kc, c->vc, c->base, c->nr, c->nqh, c->nkv, g_hd, got, info); } +typedef struct { const float *q; const uint8_t *pool; const OmegaGpuKvLayout *ly; const uint32_t *ids; uint32_t nids, ctx, layer, nqh, nkv; } PagedCtx; +static int run_paged(void *p, float *got, OmegaGpuAttnInfo *info) { PagedCtx *c = p; return omega_gpu_paged_attention_bf16(c->q, c->pool, c->ly, c->ids, c->nids, c->ctx, c->layer, c->nqh, c->nkv, g_hd, got, info); } +typedef struct { const float *q; const uint8_t *pool; const OmegaGpuKvLayout *ly; const int32_t *tables, *ctxs; uint32_t maxb, nseq, layer, nqh, nkv; } BatchCtx; +static int run_batch(void *p, float *got, OmegaGpuAttnInfo *info) { BatchCtx *c = p; return omega_gpu_paged_attention_batch_bf16(c->q, c->pool, c->ly, c->tables, c->ctxs, c->maxb, c->nseq, c->layer, c->nqh, c->nkv, g_hd, got, info); } +/* single vs batched parity and repeat (L6-KV, CAND-0 coverage): each sequence of a batch, run + * alone through the single-sequence entry point with the batch's own rules applied by hand + * (negative table entries removed, ctx <= 0 -> 0), must equal its row of the batched output bit + * for bit (same kernel, same per-CTA inputs; the batch only shares staging). Then the batch is + * called again with the same inputs: kernel cache hit, bit-identical output, identical staging + * counters. `got` must hold the batched output of `bc`. */ +static void batch_single_repeat_checks(const char *name, const BatchCtx *bc, const float *got, const Case *c) { + size_t row = (size_t)bc->nqh * g_hd, n = (size_t)bc->nseq * row; + float *one = malloc(row * 4), *again = malloc(n * 4); + uint32_t *ids = malloc((bc->maxb ? bc->maxb : 1) * 4); + for (uint32_t s = 0; s < bc->nseq; s++) { + uint32_t nb = 0; + for (uint32_t b = 0; b < bc->maxb; b++) { int32_t v = bc->tables[(size_t)s * bc->maxb + b]; if (v >= 0) ids[nb++] = (uint32_t)v; } + uint32_t ctx = bc->ctxs[s] > 0 ? (uint32_t)bc->ctxs[s] : 0; + for (size_t i = 0; i < row; i++) one[i] = -7.0f; /* poison: an unwritten row cannot match */ + OmegaGpuAttnInfo si; + int src = omega_gpu_paged_attention_bf16(bc->q + (size_t)s * row, bc->pool, bc->ly, ids, nb, ctx, bc->layer, bc->nqh, bc->nkv, g_hd, one, &si); + CHECK(src == OMEGA_GPU_ATTN_OK && memcmp(one, got + (size_t)s * row, row * 4) == 0, + "%s: sequence %u alone (single entry point, %u blocks, ctx %u) is bit-identical to its batched row (rc=%s)", name, s, nb, ctx, omega_gpu_attention_rc_name(src)); + } + OmegaGpuAttnInfo ri; + int rrc = omega_gpu_paged_attention_batch_bf16(bc->q, bc->pool, bc->ly, bc->tables, bc->ctxs, bc->maxb, bc->nseq, bc->layer, bc->nqh, bc->nkv, g_hd, again, &ri); + CHECK(rrc == OMEGA_GPU_ATTN_OK && ri.kernel_cache_hit && memcmp(again, got, n * 4) == 0 && ri.kv_bytes_staged == c->kv_staged && ri.kv_bytes_naive == c->kv_naive + && ri.kv_blocks_unique == c->blk_unique && ri.kv_blocks_logical == c->blk_logical, + "%s: repeated batch call is a cache hit, bit-identical, same staging counters (rc=%s hit=%d staged %" PRIu64 "/%" PRIu64 ")", + name, omega_gpu_attention_rc_name(rrc), (int)ri.kernel_cache_hit, ri.kv_bytes_staged, c->kv_staged); + free(one); free(again); free(ids); +} + + +static int chip(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_V1\",\"tolerances\":{\"rel\":2e-4,\"abs\":2e-5,\"large_scores_rel\":1e-3,\"large_scores_abs\":1e-4},\"cases\":["); + uint32_t seed = 0xfb1c0005u; + const uint32_t hd = g_hd; + typedef struct { uint32_t nqh, nkv; const char *model; } Shape; + const Shape shapes64[2] = { { 32, 4, "tinyllama" }, { 32, 8, "llama32_1b" } }; + /* head_dim 128: Qwen3-4B (32 q heads, 8 kv heads, GQA 4:1) and a ratio-8 shape */ + const Shape shapes128[2] = { { 32, 8, "qwen3_4b" }, { 32, 4, "gqa8" } }; + const Shape *shapes = hd == 128 ? shapes128 : shapes64; + /* 65, 129, 300 and 1000 end in a partial 64-token chunk after whole ones: the case that + * caught the diverged-warp shuffle on the chip (2026-10-04); 1, 17, 128, 256, 2048 did not. */ + /* head_dim 128 chunks are 128 tokens: 127, 128, 129 straddle a chunk, 300 and 1000 end in a partial one */ + const uint32_t ctxs64[9] = { 1, 17, 256, 2048, 65, 128, 129, 300, 1000 }, ctxs128[9] = { 1, 17, 256, 2048, 127, 128, 129, 300, 1000 }; + const uint32_t *ctxs = hd == 128 ? ctxs128 : ctxs64; + const int no_mutants[1] = { 0 }; + + /* 1. contiguous f32 KV (gqa_attention) */ + for (int sh = 0; sh < 2; sh++) for (int ci = 0; ci < 9; ci++) { + uint32_t nqh = shapes[sh].nqh, nkv = shapes[sh].nkv, seq = ctxs[ci]; + size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4), *again = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + char name[96]; snprintf(name, sizeof name, "gqa_f32_%s_%uq%ukv_ctx%u", shapes[sh].model, nqh, nkv, seq); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; + GqaCtx gc = { q, kc, vc, seq, nqh, nkv }; + c.rc = run_gqa(&gc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + if (ci == 3) { + OmegaGpuAttnInfo i2; int rc2 = run_gqa(&gc, again, &i2); + CHECK(rc2 == OMEGA_GPU_ATTN_OK && i2.kernel_cache_hit && memcmp(got, again, n * 4) == 0, "%s repeat run (cache hit) is bit-identical", name); + /* negative control: the comparison must reject a wrong expectation (kv heads swapped) */ + float *wrong = malloc(n * 4); double w2; + for (uint32_t h = 0; h < nqh; h++) memcpy(wrong + (size_t)h * hd, want + (size_t)((h + nqh / nkv) % nqh) * hd, hd * 4); + size_t neg = compare(got, wrong, n, 2e-4, 2e-5, &w2); + CHECK(neg > n / 2, "%s negative control: wrong expectation flagged (%zu of %zu)", name, neg, n); + free(wrong); + static const int ms[5] = { OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + } else if (ci == 1 && sh == 1) { + static const int ms[2] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, 0 }; + run_mutants(&c, ms, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); free(again); + } + /* 1b. rows path (prompt read, 2026-10-12): base_len tokens already in the KV, then num_rows + * query rows in one call; row i attends over base_len + i + 1 tokens. Expected per row from + * oracle_gqa on that prefix. 40 rows at 32 q heads exceed the 1024-CTA launch bound: 2 launches. */ + for (int sh = 0; sh < 2; sh++) for (int ri = 0; ri < 3; ri++) { + static const uint32_t bases[3] = { 0, 17, 300 }, nrows[3] = { 1, 5, 40 }; + uint32_t nqh = shapes[sh].nqh, nkv = shapes[sh].nkv, base = bases[ri], nr = nrows[ri], total = base + nr; + size_t row = (size_t)nqh * hd, n = row * nr, nkvs = (size_t)total * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + for (uint32_t i = 0; i < nr; i++) oracle_gqa(q + i * row, kc, vc, base + i + 1, nqh, nkv, hd, want + i * row); + char name[96]; snprintf(name, sizeof name, "gqa_rows_f32_%s_%uq%ukv_base%u_rows%u", shapes[sh].model, nqh, nkv, base, nr); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; + RowsCtx rx = { q, kc, vc, base, nr, nqh, nkv }; + c.rc = run_rows(&rx, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + if (nr == 1) { + /* one row is the single-row call, bit for bit */ + float *one = malloc(row * 4); OmegaGpuAttnInfo i1; + int rc1 = omega_gpu_gqa_attention_f32(q, kc, vc, total, nqh, nkv, hd, one, &i1); + CHECK(rc1 == OMEGA_GPU_ATTN_OK && memcmp(got, one, row * 4) == 0, "%s equals omega_gpu_gqa_attention_f32 bit for bit", name); + free(one); + } + if (nr == 40) { + CHECK(info.chip_calls == 2, "%s 40 rows x %u heads go in 2 launches (got %u)", name, nqh, info.chip_calls); + CHECK(info.kv_bytes_staged == 2 * nkvs * 4, "%s KV staged once (%" PRIu64 " bytes, expected %zu)", name, info.kv_bytes_staged, 2 * nkvs * 4); + /* negative control: every row scored over the whole context (no causal cut) must be flagged */ + float *wrong = malloc(n * 4); double w2; + for (uint32_t i = 0; i < nr; i++) oracle_gqa(q + i * row, kc, vc, total, nqh, nkv, hd, wrong + i * row); + size_t neg = compare(got, wrong, n, 2e-4, 2e-5, &w2); + CHECK(neg > n / 4, "%s negative control: non-causal expectation flagged (%zu of %zu)", name, neg, n); + free(wrong); + static const int ms[5] = { OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms, run_rows, &rx, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_rows, &rx, got, want, n, 2e-4, 2e-5); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); + } + { /* rows path refusals */ + float d[1]; OmegaGpuAttnInfo i0; + CHECK(omega_gpu_gqa_attention_rows_f32(d, d, d, 0, 0, 32, 4, hd, d, &i0) == OMEGA_GPU_ATTN_BAD_ARGS, "rows: zero rows refused"); + CHECK(omega_gpu_gqa_attention_rows_f32(d, d, d, OMEGA_GPU_ATTN_MAX_GQA_CTX, 1, 32, 4, hd, d, &i0) == OMEGA_GPU_ATTN_TOO_LARGE, "rows: base + rows past the context bound refused"); + } + /* 2. large scores (q scaled by 200): the softmax without the running max overflows */ + { + uint32_t nqh = 32, nkv = 4, seq = 256; size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -200.0f, 200.0f); /* scores ~ +-200 natural: EX2 without the max subtraction overflows f32 (2^128) */ + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + Case c = { .name = "gqa_f32_large_scores_32q4kv_ctx256", .n = n }; + OmegaGpuAttnInfo info; GqaCtx gc = { q, kc, vc, seq, nqh, nkv }; + c.rc = run_gqa(&gc, got, &info); + c.bad = compare(got, want, n, 1e-3, 1e-4, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + static const int ms[2] = { OMEGA_GPU_ATTN_MUTANT_NO_MAX, 0 }; + run_mutants(&c, ms, run_gqa, &gc, got, want, n, 1e-3, 1e-4); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); + } + /* 2b. MHA (16q/16kv, ratio 1, ctx 300 = 4 full chunks + a partial one): the head-wiring + * mutants Q_ROW and OUT_ROW are observably different here (Q_ROW keeps kv head h, OUT_ROW + * lands on kv head h^1), unlike GQA where both swap the same pair of outputs. */ + { + uint32_t nqh = 16, nkv = 16, seq = 300; size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4), *got_q = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + Case c = { .name = "gqa_f32_mha_16q16kv_ctx300", .n = n }; + OmegaGpuAttnInfo info; GqaCtx gc = { q, kc, vc, seq, nqh, nkv }; + c.rc = run_gqa(&gc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + static const int ms_q[2] = { OMEGA_GPU_ATTN_MUTANT_Q_ROW, 0 }; + static const int ms_o[3] = { OMEGA_GPU_ATTN_MUTANT_OUT_ROW, OMEGA_GPU_ATTN_MUTANT_KV_HEAD, 0 }; + run_mutants(&c, ms_q, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + memcpy(got_q, got, n * 4); /* Q_ROW output */ + run_mutants(&c, ms_o, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + /* `got` now holds the KV_HEAD output; rerun OUT_ROW alone to compare it with Q_ROW */ + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_OUT_ROW); + OmegaGpuAttnInfo i3; int rc3 = run_gqa(&gc, got, &i3); + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_NONE); + double wq; size_t differ = compare(got, got_q, n, 2e-4, 2e-5, &wq); + CHECK(rc3 == OMEGA_GPU_ATTN_OK && differ > n / 2, "mha: Q_ROW and OUT_ROW outputs are distinct wrong answers (%zu of %zu differ)", differ, n); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); free(got_q); + } + /* resident fit rule at the 32-bit edge (Qwen3-8B geometry: 36 layers, 8 kv heads x 128, block 16), no allocation */ + { + OmegaGpuKvLayout big = layout_for(4096, 16, 36, 8, 128); + uint32_t id_ok = (uint32_t)((0xffffffffull - big.layer_stride_bytes) / big.block_stride_bytes); + CHECK(omega_gpu_attention_test_resident_fits(&big, id_ok) && !omega_gpu_attention_test_resident_fits(&big, id_ok + 1), + "resident fit rule at the 4 GiB edge: block %u fits, %u does not (block stride %llu)", id_ok, id_ok + 1, + (unsigned long long)big.block_stride_bytes); + } + /* 3. paged bf16 KV, block size 16, 2 layers (layer 1 under test), scattered block ids */ + for (int sh = 0; sh < 2; sh++) for (int ci = 0; ci < 9; ci++) { + uint32_t nqh = shapes[sh].nqh, nkv = shapes[sh].nkv, ctx = ctxs[ci], bs = 16, layers = 2, layer = 1; + uint32_t nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 7; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); /* a scattered permutation of the pool blocks */ + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 7 + 3) % pool_blocks; + size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + char name[96]; snprintf(name, sizeof name, "paged_bf16_%s_%uq%ukv_bs%u_ctx%u", shapes[sh].model, nqh, nkv, bs, ctx); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; PagedCtx pc = { q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv }; + c.rc = run_paged(&pc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + /* Resident pool (2026-10-12): the same bytes in omega's own allocation, read in place. Same kernel, + * same data, only the addressing differs: bit-identical to the staged result just computed (which is + * the negative control: a plain host pool reports STAGED), nothing staged, info says RESIDENT. */ + if (c.rc == OMEGA_GPU_ATTN_OK) { + void *rp = NULL; + int arc = omega_gpu_attention_pool_alloc(ly.pool_bytes, &rp); + CHECK(arc == OMEGA_GPU_ATTN_OK && rp, "%s: resident pool alloc rc=%d (%s)", name, arc, omega_gpu_attention_last_error()); + if (arc == OMEGA_GPU_ATTN_OK) { + memcpy(rp, pool, ly.pool_bytes); + float *got_r = malloc(n * 4); OmegaGpuAttnInfo ri; + PagedCtx rpc = { q, rp, &ly, ids, nblk, ctx, layer, nqh, nkv }; + int rrc = run_paged(&rpc, got_r, &ri); + int same = memcmp(got_r, got, n * 4) == 0; + CHECK(rrc == OMEGA_GPU_ATTN_OK && ri.kv_source == OMEGA_GPU_ATTN_KV_RESIDENT && ri.kv_bytes_staged == 0 && + info.kv_source == OMEGA_GPU_ATTN_KV_STAGED && same, + "%s: resident pool rc=%d source=%u staged=%llu (control source=%u) bit-identical=%d", name, rrc, ri.kv_source, + (unsigned long long)ri.kv_bytes_staged, info.kv_source, same); + free(got_r); + } + omega_gpu_attention_pool_free(); + } + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + if (ci == 3) { + /* NO_MAX cannot overflow on unit-scale scores (softmax is shift invariant); it is caught by the large-score gqa case */ + static const int ms3[6] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms3, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else if (ci == 1) { + static const int ms[3] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, 0 }; + run_mutants(&c, ms, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else if (ci == 0) { + /* one token: its softmax weight is 1 whatever K says, so a K-only slot shift is invisible; KV_HEAD still shows */ + static const int ms[2] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, 0 }; + run_mutants(&c, ms, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_paged, &pc, got, want, n, 2e-4, 2e-5); + record(c, out); free(pool); free(ids); free(q); free(got); free(want); + } + /* 3b. context split (cut F): the 32q/8kv shape at ctx 1000 under every forced split against the oracle, the + * CTA count per launch grows with the split, the automatic choice at this context is 8 (hd 128: 8 chunks) or + * 16 (hd 64: 16 chunks; cut J, one chunk per split), and a short context (ctx 100, one chunk) stays unsplit. A forced launch split at or above + * the sequence's own count gives the same bits (the extra CTAs write empty partials that add exact zeros). */ + { + uint32_t nqh = 32, nkv = 8, bs = 16, layers = 2, layer = 1; + const uint32_t cx[2] = { 1000, 100 }; + for (int ci = 0; ci < 2; ci++) { + uint32_t ctx = cx[ci], nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 3; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 5 + 1) % pool_blocks; + size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *auto_got = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + PagedCtx pc = { q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv }; + OmegaGpuAttnInfo ai; + int arc = run_paged(&pc, auto_got, &ai); + uint32_t chunks = (ctx + hd - 1) / hd, want_log2 = 0; + const uint32_t gcta = nqh / omega_gpu_attention_heads_per_cta(hd, 2); /* CTAs per split: cut K groups 4 heads per CTA at hd 128 */ + while (want_log2 < OMEGA_GPU_ATTN_MAX_LOG2SPLIT && (2u << want_log2) <= chunks) want_log2++; + CHECK(arc == OMEGA_GPU_ATTN_OK && ai.ctas_last_launch == (gcta << want_log2), + "split auto ctx %u: rc=%s ctas=%u (expected %u)", ctx, omega_gpu_attention_rc_name(arc), ai.ctas_last_launch, gcta << want_log2); + for (int ls = 0; ls <= (int)OMEGA_GPU_ATTN_MAX_LOG2SPLIT; ls++) { + set_split(ls); + OmegaGpuAttnInfo fi; + char name[96]; snprintf(name, sizeof name, "paged_bf16_split%d_32q8kv_ctx%u", 1 << ls, ctx); + Case c = { .name = strdup(name), .n = n }; + c.rc = run_paged(&pc, got, &fi); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &fi); + CHECK(fi.ctas_last_launch == (gcta << ls) && fi.out_bytes == (uint64_t)nqh * (1u << ls) * (hd + 2) * 4, + "%s: ctas=%u out_bytes=%llu", name, fi.ctas_last_launch, (unsigned long long)fi.out_bytes); + if ((uint32_t)ls >= want_log2) CHECK(memcmp(got, auto_got, n * 4) == 0, "%s equals the automatic choice bit for bit (a larger launch split only adds empty partials)", name); + if (ls == 1 && ci == 0) { + static const int ms[3] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, 0 }; + run_mutants(&c, ms, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_paged, &pc, got, want, n, 2e-4, 2e-5); + record(c, out); + } + set_split(-1); + if (ci == 1 && chunks == 1) CHECK(ai.ctas_last_launch == gcta, "ctx %u: one chunk stays unsplit (%u CTAs)", ctx, ai.ctas_last_launch); + else if (ci == 1) CHECK(ai.ctas_last_launch == (gcta << want_log2), "ctx %u: %u chunks -> %u splits (%u CTAs)", ctx, chunks, 1u << want_log2, ai.ctas_last_launch); + free(pool); free(ids); free(q); free(got); free(want); free(auto_got); + } + } + /* 4. batch: three sequences (short, empty, truncated by its table), a negative table entry, table rows of 16 */ + { + uint32_t nqh = 32, nkv = 8, bs = 16, layers = 3, layer = 2, maxb = 16, nseq = 3, pool_blocks = 40; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + int32_t *tables = malloc((size_t)nseq * maxb * 4); + for (size_t i = 0; i < (size_t)nseq * maxb; i++) tables[i] = -1; + /* seq 0: ctx 40 over blocks 5, 17 (-1 in the middle closes up), 29 */ + tables[0] = 5; tables[1] = -1; tables[2] = 17; tables[3] = 29; + /* seq 1: ctx 0 with a table */ + tables[maxb + 0] = 1; + /* seq 2: ctx 100 but only 4 blocks (64 tokens used) */ + tables[2 * maxb + 0] = 30; tables[2 * maxb + 1] = 2; tables[2 * maxb + 2] = 33; tables[2 * maxb + 3] = 11; + int32_t ctxs2[3] = { 40, 0, 100 }; + size_t n = (size_t)nseq * nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_batch(q, pool, &ly, tables, ctxs2, maxb, nseq, layer, nqh, nkv, hd, want); + Case c = { .name = "paged_bf16_batch_3seq_32q8kv_ctx40_0_100", .n = n }; + OmegaGpuAttnInfo info; BatchCtx bc = { q, pool, &ly, tables, ctxs2, maxb, nseq, layer, nqh, nkv }; + c.rc = run_batch(&bc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + int zeros = 1; for (size_t i = 0; i < (size_t)nqh * hd; i++) if (got[(size_t)nqh * hd + i] != 0.0f) zeros = 0; + CHECK(zeros, "batch: the empty sequence is all zeros"); + batch_single_repeat_checks(c.name, &bc, got, &c); + static const int ms[5] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms, run_batch, &bc, got, want, n, 2e-4, 2e-5); + /* all 7 referenced blocks are distinct here, so dedupe stages exactly the naive figure */ + CHECK(c.blk_logical == 7 && c.blk_unique == 7 && c.kv_staged == c.kv_naive && c.kv_staged == 7ull * ly.layer_stride_bytes, "batch: 7 distinct blocks staged once each (%u/%u, %" PRIu64 " bytes)", c.blk_unique, c.blk_logical, c.kv_staged); + record(c, out); free(pool); free(tables); free(q); free(got); free(want); + } + /* 5. branch-heavy batch (attention hardening cut): four sequences share the same 10 physical + * prefix blocks (160 tokens, scattered ids) and own private tails of 1..3 blocks ending in a + * partial 64-token chunk. The shared prefix must be staged once per launch, keyed by the + * physical block id. Two head shapes: 8q/2kv puts all four sequences in one launch + * (unique = 10 + 9 tails), 32q/8kv splits them two per launch (unique = 2*10 + 9). + * Negative control: the legacy per-sequence staging (test hook) copies the prefix four + * times and the byte-reduction check must flag it. */ + for (int sh = 0; sh < 2; sh++) { + uint32_t nqh = sh ? 32 : 8, nkv = sh ? 8 : 2, bs = 16, layers = 2, layer = 1, nseq = 4, prefix_blocks = 10, pool_blocks = 64; + uint32_t expect_unique = sh ? 2 * prefix_blocks + 9 : prefix_blocks + 9; + uint32_t maxb = prefix_blocks + 3; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + int32_t *tables = malloc((size_t)nseq * maxb * 4); + for (size_t i = 0; i < (size_t)nseq * maxb; i++) tables[i] = -1; + const uint32_t tails[4] = { 1, 2, 3, 3 }; /* private blocks per sequence: 9 in all */ + const int32_t ctxs5[4] = { 165, 180, 193, 207 }; /* 160 + 5, 20, 33, 47: every last chunk partial */ + for (uint32_t s = 0; s < nseq; s++) { + for (uint32_t b = 0; b < prefix_blocks; b++) tables[s * maxb + b] = (int32_t)((b * 5 + 7) % pool_blocks); /* same scattered physical prefix */ + for (uint32_t b = 0; b < tails[s]; b++) tables[s * maxb + prefix_blocks + b] = (int32_t)(50 + s * 3 + b); /* private, distinct */ + } + size_t n = (size_t)nseq * nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *legacy = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_batch(q, pool, &ly, tables, ctxs5, maxb, nseq, layer, nqh, nkv, hd, want); + char name[96]; snprintf(name, sizeof name, "paged_bf16_shared_prefix_4seq_%uq%ukv_10pre", nqh, nkv); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; BatchCtx bc = { q, pool, &ly, tables, ctxs5, maxb, nseq, layer, nqh, nkv }; + c.rc = run_batch(&bc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + uint32_t logical = 4 * prefix_blocks + 9; + CHECK(c.blk_logical == logical && c.blk_unique == expect_unique, "%s: %u logical references, %u unique staged (expected %u/%u)", name, c.blk_logical, c.blk_unique, logical, expect_unique); + CHECK(c.kv_naive == (uint64_t)logical * ly.layer_stride_bytes && c.kv_staged == (uint64_t)expect_unique * ly.layer_stride_bytes && c.kv_staged < c.kv_naive, + "%s: staged %" PRIu64 " < naive %" PRIu64 " bytes (saved %" PRIu64 ")", name, c.kv_staged, c.kv_naive, c.kv_naive - c.kv_staged); + /* cut F: the output traffic is the partials, launch split = the largest own split in the call (cut J: hd 64: ctx 193 and 207 are 4 chunks, 4 splits; hd 128: 2 chunks, 2 splits) */ + uint32_t ls_max = 0; + for (uint32_t s = 0; s < nseq; s++) { uint32_t x = ((uint32_t)ctxs5[s] + hd - 1) / hd, l = 0; while (l < OMEGA_GPU_ATTN_MAX_LOG2SPLIT && (2u << l) <= x) l++; if (l > ls_max) ls_max = l; } + const uint64_t out_expect = (uint64_t)nseq * nqh * (1u << ls_max) * (hd + 2) * 4; + CHECK(info.kv_source == OMEGA_GPU_ATTN_KV_STAGED && info.q_bytes == n * 4 && info.out_bytes == out_expect && info.tab_bytes > 0, "%s: q/out/table traffic accounted (q=%" PRIu64 " out=%" PRIu64 " tab=%" PRIu64 ")", name, info.q_bytes, info.out_bytes, info.tab_bytes); + /* negative control: legacy per-sequence staging duplicates the shared prefix; same answer, more bytes */ + omega_gpu_attention_test_set_dedupe(false); + OmegaGpuAttnInfo li; int lrc = run_batch(&bc, legacy, &li); + omega_gpu_attention_test_set_dedupe(true); + double lw; size_t lbad = compare(legacy, want, n, 2e-4, 2e-5, &lw); + CHECK(lrc == OMEGA_GPU_ATTN_OK && lbad == 0, "%s legacy staging: parity (rc=%s bad=%zu)", name, omega_gpu_attention_rc_name(lrc), lbad); + CHECK(li.kv_blocks_unique == logical && li.kv_bytes_staged == li.kv_bytes_naive && li.kv_bytes_staged > c.kv_staged, + "%s negative control: duplicated prefix staging is flagged (legacy staged %" PRIu64 " == naive %" PRIu64 ", dedupe %" PRIu64 ")", name, li.kv_bytes_staged, li.kv_bytes_naive, c.kv_staged); + CHECK(memcmp(got, legacy, n * 4) == 0, "%s: dedupe and legacy staging are bit-identical", name); + batch_single_repeat_checks(name, &bc, got, &c); + static const int ms5[3] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, 0 }; + run_mutants(&c, ms5, run_batch, &bc, got, want, n, 2e-4, 2e-5); + record(c, out); free(pool); free(tables); free(q); free(got); free(want); free(legacy); + } + /* every mutant the API knows (1 .. COUNT-1) ran at least once and was caught every time; + * a mutant added to the enum without a battery entry fails here */ + for (int m = 1; m < OMEGA_GPU_ATTN_MUTANT_COUNT; m++) { + CHECK(g_mutant_run[m] > 0 && g_mutant_caught[m] == g_mutant_run[m], "mutant %s caught %d of %d runs", mutant_name(m), g_mutant_caught[m], g_mutant_run[m]); + printf("mutant %s: caught %d of %d\n", mutant_name(m), g_mutant_caught[m], g_mutant_run[m]); + } + CHECK(omega_gpu_session_open_count() == (g_sim_mode ? 0u : 1u), "device opened %s for the battery (opens=%u)", g_sim_mode ? "never (simulator)" : "once", omega_gpu_session_open_count()); + printf("device_opens=%u\n", omega_gpu_session_open_count()); + if (out) { + fprintf(out, "],\"mutant_count\":%d,\"mutants\":{", OMEGA_GPU_ATTN_MUTANT_COUNT - 1); + for (int m = 1; m < OMEGA_GPU_ATTN_MUTANT_COUNT; m++) fprintf(out, "%s\"%s\":{\"run\":%d,\"caught\":%d}", m > 1 ? "," : "", mutant_name(m), g_mutant_run[m], g_mutant_caught[m]); + fprintf(out, "},\"device_opens\":%u,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", omega_gpu_session_open_count(), g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_PASS" : "OMEGA_GPU_ATTENTION_FAIL"); + fclose(out); + } + return 0; +} + +/* ------------------------------------------------------------ host simulator + * Executes the allocated IR program (physical registers, so the register allocator's + * 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 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; +static uint32_t sim_cbank[256]; +static uint8_t sim_shared[8192]; +#define SIM_TMAX 128 +#define SIM_T ((int)g_hd) /* threads per CTA = head_dim */ +static uint32_t g_smem_cap; /* negative control: pretend the QMD declared this many bytes (0 = the real 16 * head_dim) */ +#define SIM_SMEM (g_smem_cap ? g_smem_cap : omega_gpu_attention_test_shared_bytes()) /* the shared memory the QMD declares for this kernel (launcher: shared_bytes_for) */ +static int g_sim_err; +static int g_trace, g_trace_launch; static uint32_t g_trace_cx; +static uint32_t rd(const SimThr *t, int v, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v]; return ph < 0 ? 0 : t->r[ph & 0xff]; } +static uint64_t rd64(const SimThr *t, int v, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v] & 0xff; return (uint64_t)t->r[ph] | ((uint64_t)t->r[ph + 1] << 32); } +static void wr(SimThr *t, int v, uint32_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v]; if (ph >= 0) t->r[ph & 0xff] = x; } +static void wr64(SimThr *t, int v, uint64_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v] & 0xff; t->r[ph] = (uint32_t)x; t->r[ph + 1] = (uint32_t)(x >> 32); } +static uint32_t rds(const SimThr *t, int v, unsigned sub, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v]; return ph < 0 ? 0 : t->r[(ph + sub) & 0xff]; } +static void wrs(SimThr *t, int v, unsigned sub, uint32_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v]; if (ph >= 0) t->r[(ph + sub) & 0xff] = x; } +static float u2f(uint32_t u) { float f; memcpy(&f, &u, 4); return f; } +static uint32_t f2u_(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +/* run one thread until it reaches a SHFL or BAR (not executed) or EXIT; returns 1 if parked at a sync op */ +static int sim_step(SimThr *t, const BlackwellIRProgram *p, uint32_t tid, uint32_t cx, uint32_t cy) { + for (int guard = 0; guard < 50000000; guard++) { + if (t->done) return 0; + if (t->pc < 0 || (size_t)t->pc >= p->count) { g_sim_err = 1; t->done = 1; return 0; } + const BlackwellIRInsn *in = &p->insns[t->pc]; + uint32_t a = rds(t, in->src1_vreg, in->src1_subreg, p), b = rds(t, in->src2_vreg, in->src2_subreg, p), c = rds(t, in->src3_vreg, in->src3_subreg, p); + switch (in->op) { + case BW_IR_SHFL_DOWN: case BW_IR_BAR_SYNC: return 1; + case BW_IR_EXIT: if (!in->predicate_p0 || t->p0) { t->done = 1; return 0; } break; + case BW_IR_BRA: { + int take = !in->predicate_p0 || (in->predicate_not ? !t->p0 : t->p0); + t->path = t->path * 1000003u + (((uint64_t)t->pc << 1) | (uint64_t)take); + if (take) { if ((int32_t)in->imm == 0) { g_sim_err = 2; t->done = 1; return 0; } t->pc += (int32_t)in->imm; continue; } + break; } + case BW_IR_MOV_IMM: wrs(t, in->dst_vreg, in->dst_subreg, in->imm, p); break; + case BW_IR_MOV_RZ: wrs(t, in->dst_vreg, in->dst_subreg, 0, p); break; + case BW_IR_S2R: wrs(t, in->dst_vreg, in->dst_subreg, in->imm == BW_SR_TID_X ? tid : in->imm == BW_SR_CTAID_X ? cx : in->imm == BW_SR_CTAID_Y ? cy : 0, p); break; + case BW_IR_LDC: wrs(t, in->dst_vreg, in->dst_subreg, sim_cbank[in->imm / 4], p); break; + case BW_IR_LDC64: wr64(t, in->dst_vreg, (uint64_t)sim_cbank[in->imm / 4] | ((uint64_t)sim_cbank[in->imm / 4 + 1] << 32), p); break; + case BW_IR_LDCU64: break; /* memory descriptor: not modelled */ + case BW_IR_IMAD: wrs(t, in->dst_vreg, in->dst_subreg, in->src2_vreg >= 0 ? a * b + c : a * in->imm + c, p); break; + case BW_IR_IMAD_WIDE: wr64(t, in->dst_vreg, (uint64_t)a * in->imm + rd64(t, in->src3_vreg, p), p); break; + case BW_IR_IADD3: wrs(t, in->dst_vreg, in->dst_subreg, a + b, p); break; + case BW_IR_SHF_R: wrs(t, in->dst_vreg, in->dst_subreg, a >> (in->imm & 31), p); break; + case BW_IR_LOP3_AND: wrs(t, in->dst_vreg, in->dst_subreg, a & in->imm, p); break; + case BW_IR_LOP3_XOR: wrs(t, in->dst_vreg, in->dst_subreg, a ^ b, p); break; + case BW_IR_ISETP_GE_U32: t->p0 = a >= b; break; + case BW_IR_LDG_E: { uint32_t x; memcpy(&x, (const void *)(uintptr_t)rd64(t, in->src1_vreg, p), 4); wrs(t, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_LDG_E_U16: { uint16_t x; memcpy(&x, (const void *)(uintptr_t)rd64(t, in->src1_vreg, p), 2); wrs(t, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_STG_E: memcpy((void *)(uintptr_t)rd64(t, in->src1_vreg, p), &b, 4); break; + case BW_IR_LDG_E_64: case BW_IR_LDG_E_128: { unsigned n = in->op == BW_IR_LDG_E_64 ? 8u : 16u; uint64_t ad = rd64(t, in->src1_vreg, p) + (uint64_t)(int64_t)(int32_t)in->imm; if (ad & (n - 1)) { g_sim_err = 5; t->done = 1; return 0; } uint32_t x[4]; memcpy(x, (const void *)(uintptr_t)ad, n); for (unsigned i = 0; i < n / 4; i++) wrs(t, in->dst_vreg, i, x[i], p); break; } + case BW_IR_LDS128: { uint32_t ad = a + in->imm; if ((ad & 15u) || ad + 16 > SIM_SMEM) { g_sim_err = 3; t->done = 1; return 0; } for (unsigned i = 0; i < 4; i++) { uint32_t x; memcpy(&x, sim_shared + ad + 4u * i, 4); wrs(t, in->dst_vreg, i, x, p); } break; } + case BW_IR_LDS32: { uint32_t x; if (a + 4 > SIM_SMEM) { g_sim_err = 3; t->done = 1; return 0; } memcpy(&x, sim_shared + a, 4); wrs(t, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_STS32: if (a + 4 > SIM_SMEM) { g_sim_err = 3; t->done = 1; return 0; } memcpy(sim_shared + a, &b, 4); break; + case BW_IR_FADD: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(u2f(a) + u2f(b)), p); break; + case BW_IR_FSUB: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(u2f(a) - u2f(b)), p); break; + case BW_IR_FMUL: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(u2f(a) * u2f(b)), p); break; + case BW_IR_FFMA: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(fmaf(u2f(a), u2f(b), u2f(c))), p); break; + case BW_IR_FMNMX_MAX: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(fmaxf(u2f(a), u2f(b))), p); break; + case BW_IR_MUFU_EX2: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(exp2f(u2f(a))), p); break; + case BW_IR_MUFU_RCP: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(1.0f / u2f(a)), p); break; + default: g_sim_err = 100 + (int)in->op; t->done = 1; return 0; + } + if (g_trace && tid == 0 && cx == g_trace_cx && cy == 0 && g_trace_launch == 1) { uint32_t dv = rd(t, in->dst_vreg, p); printf("T pc=%d op=%d dst=v%d(r%d)=%08x f=%g p0=%d a=%08x b=%08x c=%08x\n", t->pc, (int)in->op, in->dst_vreg, in->dst_vreg >= 0 ? p->regalloc.vreg_to_phys[in->dst_vreg] : -1, dv, u2f(dv), t->p0, a, b, c); } + t->pc++; + } + g_sim_err = 4; t->done = 1; return 0; +} +static int sim_launch(const void *progv, const OmegaGpuAttnLaunch *L, OmegaGpuAttnInfo *info) { + const BlackwellIRProgram *p = progv; + memset(sim_cbank, 0, sizeof sim_cbank); + uint64_t qa = (uintptr_t)L->q, pa = (uintptr_t)L->pool, oa = (uintptr_t)L->out, ta = (uintptr_t)L->tab; + sim_cbank[0x380 / 4] = (uint32_t)qa; sim_cbank[0x380 / 4 + 1] = (uint32_t)(qa >> 32); + sim_cbank[0x388 / 4] = (uint32_t)pa; sim_cbank[0x388 / 4 + 1] = (uint32_t)(pa >> 32); + sim_cbank[0x390 / 4] = (uint32_t)oa; sim_cbank[0x390 / 4 + 1] = (uint32_t)(oa >> 32); + sim_cbank[0x398 / 4] = (uint32_t)ta; sim_cbank[0x398 / 4 + 1] = (uint32_t)(ta >> 32); + memcpy(&sim_cbank[0x3a0 / 4], L->params, sizeof L->params); + uint32_t *outw = L->out; for (size_t i = 0; i < L->out_bytes / 4; i++) outw[i] = 0xffbadbadu; + g_sim_err = 0; + static SimThr th[SIM_TMAX]; + g_trace_launch++; if (getenv("ATTN_SIM_TRACE")) { g_trace = 1; g_trace_cx = (uint32_t)atoi(getenv("ATTN_SIM_TRACE")); } + for (uint32_t cy = 0; cy < L->grid_y && !g_sim_err; cy++) for (uint32_t cx = 0; cx < L->grid_x && !g_sim_err; cx++) { + memset(th, 0, sizeof th); memset(sim_shared, 0, sizeof sim_shared); + for (;;) { + int parked = 0, alive = 0; + for (int i = 0; i < SIM_T; i++) { if (th[i].done) continue; alive++; parked += sim_step(&th[i], p, (uint32_t)i, cx, cy); } + if (g_sim_err) break; + if (alive == 0) break; + if (parked == 0) continue; /* every live thread exited this round */ + if (parked != alive) { g_sim_err = 5; break; } /* a thread exited while others wait at a barrier */ + int pc = -1; + for (int i = 0; i < SIM_T; i++) if (!th[i].done) { if (pc < 0) pc = th[i].pc; else if (th[i].pc != pc) g_sim_err = 6; } + if (g_sim_err) break; + const BlackwellIRInsn *in = &p->insns[pc]; + if (in->op == BW_IR_SHFL_DOWN) { + for (int i = 0; i < SIM_T; i++) if (!th[i].done && !th[i & ~31].done && th[i].path != th[i & ~31].path) g_sim_err = 7; + if (g_sim_err) break; + uint32_t src[SIM_TMAX]; + for (int i = 0; i < SIM_T; i++) src[i] = rd(&th[i], in->src1_vreg, p); + for (int i = 0; i < SIM_T; i++) { int lane = i & 31, from = lane + (int)(in->imm & 31); wr(&th[i], in->dst_vreg, from < 32 ? src[(i & ~31) + from] : src[i], p); } + } + for (int i = 0; i < SIM_T; i++) th[i].pc++; + } + } + uint32_t unwritten = 0; for (size_t i = 0; i < L->out_bytes / 4; i++) if (outw[i] == 0xffbadbadu) unwritten++; + if (info) { info->chip_calls++; info->unwritten_words += unwritten; info->ctas_last_launch = L->grid_x * L->grid_y; info->threads_per_cta = SIM_T; } + if (g_sim_err) { printf("simulator error %d\n", g_sim_err); return OMEGA_GPU_ATTN_CHIP_FAIL; } + return unwritten ? OMEGA_GPU_ATTN_UNWRITTEN : OMEGA_GPU_ATTN_OK; +} + + +/* ---------------------------------------------------- timing (cut 4b) */ +/* One query step of TinyLlama attention at context 2048 (32 q heads, 4 kv heads, + * f32 KV) 100 times through the persistent session, every call checked against the + * oracle; gate: median wall time per call under 3 ms, one device open per process. */ +static double now_ms(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * 1e3 + t.tv_nsec / 1e6; } +static int cmp_d(const void *a, const void *b) { double x = *(const double *)a, y = *(const double *)b; return x < y ? -1 : x > y; } +/* --split-timing: the paged bf16 decode shape (32 q / 8 kv heads at the current head_dim, one sequence, context + * ATTN_SPLIT_CTX, default 1268: the campaign's document tasks) through the persistent session, 100 calls per + * forced launch split 1, 2, 4, 8 and the automatic choice; median wall and mean chip time per call, every call + * against the oracle. A measurement for the decode-speed work (2026-10-12): whether the kernel's time at this + * context falls with more CTAs per (sequence, head) or stays flat (bandwidth bound: the four query heads of a + * kv head each read its slice). */ +static int split_timing(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + enum { N = 100 }; + const uint32_t hd = g_hd, nqh = 32, nkv = 8, bs = 16, layers = 2, layer = 1; + const char *ce = getenv("ATTN_SPLIT_CTX"); + const uint32_t ctx = ce && atoi(ce) > 0 ? (uint32_t)atoi(ce) : 1268u; + const uint32_t nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 3; + uint32_t seed = 0x5b17c0deu; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 5 + 1) % pool_blocks; + const size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + PagedCtx pc = { q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv }; + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_SPLIT_TIMING_V1\",\"hd\":%u,\"ctx\":%u,\"calls\":%d,\"spin_us\":%u,\"cases\":[", + hd, ctx, N, omega_gpu_session_spin_us()); + int first = 1; + for (int ls = -1; ls <= (int)OMEGA_GPU_ATTN_MAX_LOG2SPLIT; ls++) { + set_split(ls); + OmegaGpuAttnInfo info; + int rc0 = run_paged(&pc, got, &info); /* warm-up: opens the device, generates this split's kernel */ + CHECK(rc0 == OMEGA_GPU_ATTN_OK, "split-timing split=%d first call rc=%s err=\"%s\"", ls, omega_gpu_attention_rc_name(rc0), omega_gpu_attention_last_error()); + double samples[N]; int ok_calls = 0; size_t bad_total = 0; double worst = 0; uint64_t chip_sum = 0; + for (int i = 0; i < N; i++) { + double t0 = now_ms(); + int rc = run_paged(&pc, got, &info); + samples[i] = now_ms() - t0; + double w; size_t bad = compare(got, want, n, 2e-4, 2e-5, &w); + if (w > worst) worst = w; + bad_total += bad; chip_sum += info.elapsed_ns; + if (rc == OMEGA_GPU_ATTN_OK && bad == 0) ok_calls++; + } + qsort(samples, N, sizeof samples[0], cmp_d); + const double median = samples[N / 2], p90 = samples[N * 9 / 10], mn = samples[0], mx = samples[N - 1]; + const int pass = ok_calls == N && bad_total == 0; + CHECK(pass, "split-timing split=%d ctx=%u ok_calls=%d/%d violations=%zu", ls, ctx, ok_calls, N, bad_total); + printf("%s split-timing split=%s ctas=%u ctx=%u ok_calls=%d/%d worst_scaled_err=%g median_ms=%.3f p90_ms=%.3f min_ms=%.3f max_ms=%.3f chip_us_mean=%.1f\n", + pass ? "PASS" : "FAIL", ls < 0 ? "auto" : (const char *[]){ "1", "2", "4", "8", "16" }[ls], info.ctas_last_launch, ctx, ok_calls, N, worst, + median, p90, mn, mx, chip_sum / 1e3 / N); + if (out) fprintf(out, "%s{\"split\":%d,\"ctas\":%u,\"ok_calls\":%d,\"violations\":%zu,\"worst_scaled_err\":%g,\"median_ms\":%.4f,\"p90_ms\":%.4f,\"min_ms\":%.4f,\"max_ms\":%.4f,\"chip_us_mean\":%.1f,\"pass\":%s}", + first ? "" : ",", ls, info.ctas_last_launch, ok_calls, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, pass ? "true" : "false"); + first = 0; + } + set_split(-1); + free(pool); free(ids); free(q); free(got); free(want); + if (out) { fprintf(out, "],\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_SPLIT_TIMING_PASS" : "OMEGA_GPU_ATTENTION_SPLIT_TIMING_FAIL"); fclose(out); } + return 0; +} + +static int timing(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + enum { N = 100 }; + const uint32_t hd = 64, nqh = 32, nkv = 4, seq = 2048; + const char *name = "gqa_f32_tinyllama_32q4kv_ctx2048"; + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_TIMING_V1\",\"gate_median_ms\":3.0,\"calls\":%d,\"cases\":[", N); + uint32_t seed = 0xfb1c004bu; + size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + double samples[N]; int ok_calls = 0; size_t bad_total = 0; double worst = 0; uint64_t chip_sum = 0; int rc_last = 0; + OmegaGpuAttnInfo info; + /* warm-up: the first call opens the device and generates the kernel (not timed) */ + int rc0 = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + double first_ms = info.call_ns / 1e6; + CHECK(rc0 == OMEGA_GPU_ATTN_OK, "%s first call rc=%s err=\"%s\"", name, omega_gpu_attention_rc_name(rc0), omega_gpu_attention_last_error()); + for (int i = 0; i < N; i++) { + double t0 = now_ms(); + int rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + samples[i] = now_ms() - t0; + double w; size_t bad = compare(got, want, n, 2e-4, 2e-5, &w); + if (w > worst) worst = w; + bad_total += bad; chip_sum += info.elapsed_ns; rc_last = rc; + if (rc == OMEGA_GPU_ATTN_OK && bad == 0) ok_calls++; + } + qsort(samples, N, sizeof samples[0], cmp_d); + double median = samples[N / 2], p90 = samples[N * 9 / 10], mn = samples[0], mx = samples[N - 1]; + uint32_t opens = omega_gpu_session_open_count(); + int pass = ok_calls == N && bad_total == 0 && median < 3.0 && opens == 1; + CHECK(pass, "timing %s ok_calls=%d/%d violations=%zu median_ms=%.3f opens=%u last_rc=%s err=\"%s\"", name, ok_calls, N, bad_total, median, opens, omega_gpu_attention_rc_name(rc_last), omega_gpu_attention_last_error()); + printf("%s timing %s first_call_ms=%.3f ok_calls=%d/%d violations=%zu worst_scaled_err=%g median_ms=%.3f p90_ms=%.3f min_ms=%.3f max_ms=%.3f chip_us_mean=%.1f device_opens=%u\n", + pass ? "PASS" : "FAIL", name, first_ms, ok_calls, N, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens); + if (out) fprintf(out, "{\"case\":\"%s\",\"first_call_ms\":%.3f,\"ok_calls\":%d,\"violations\":%zu,\"worst_scaled_err\":%g,\"median_ms\":%.4f,\"p90_ms\":%.4f,\"min_ms\":%.4f,\"max_ms\":%.4f,\"chip_us_mean\":%.1f,\"device_opens\":%u,\"pass\":%s}", + name, first_ms, ok_calls, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens, pass ? "true" : "false"); + free(q); free(kc); free(vc); free(got); free(want); + if (out) { fprintf(out, "],\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_TIMING_PASS" : "OMEGA_GPU_ATTENTION_TIMING_FAIL"); fclose(out); } + return 0; +} + +/* ------------------------------------------------ head-scaling sweep (attention hardening cut) + * `--sweep [--out sweep.json]`: the production paged bf16 path at head_dim 64 over query-head + * counts 1, 2, 4, 8, 16, 24, 32, 64 and every divisor as the kv-head count, at context 256 + * (latency) and 2048 (bandwidth), block size 16, scattered block ids. Points whose GQA ratio + * is not a power of two are mathematically legal (the generic contract allows them) but + * outside the current kernel envelope (codegen selects the kv head with a shift): they are + * called anyway, must be refused with BAD_ARGS, and are recorded as + * "unsupported_by_kernel_envelope" (no chip time). Every supported point is checked against + * the host oracle on its first call, then warmed and timed over N calls (median / p90 of the + * whole call and of the chip kernel time). Gates: parity, no unwritten word, one device open, + * every call OK; the timings are evidence, not a threshold. Only quantities the stack measures + * are recorded; SM occupancy, bandwidth utilisation and cache hit rates are not observable + * through this path and are reported as unavailable. Under --sim the timings are host-simulator + * timings and the receipt says so. */ +static int sweep(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + const int N = g_sim_mode ? 1 : 20; + const uint32_t hd = 64, bs = 16, layers = 1, layer = 0; + static const uint32_t qheads[8] = { 1, 2, 4, 8, 16, 24, 32, 64 }; + static const uint32_t ctxs[2] = { 256, 2048 }; + uint32_t seed = 0xfb1c05eeu; + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_SWEEP_V1\",\"path\":\"paged_bf16\",\"head_dim\":%u,\"block_size\":%u,\"timed_calls\":%d,\"host_simulator\":%s," + "\"tolerances\":{\"rel\":2e-4,\"abs\":2e-5},\"hardware_counters\":\"unavailable (SM occupancy, bandwidth utilisation, cache hit rates are not observable through this path)\",\"points\":[", + hd, bs, N, g_sim_mode ? "true" : "false"); + int npoints = 0, supported = 0, unsupported = 0; + double *samples = malloc((size_t)N * sizeof *samples), *ksamples = malloc((size_t)N * sizeof *ksamples); + for (int qi = 0; qi < 8; qi++) for (uint32_t nkv = 1; nkv <= qheads[qi]; nkv++) { + uint32_t nqh = qheads[qi]; + if (nqh % nkv) continue; + uint32_t ratio = nqh / nkv; int pow2 = (ratio & (ratio - 1)) == 0; + for (int ci = 0; ci < 2; ci++) { + uint32_t ctx = ctxs[ci], nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 5; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 7 + 3) % pool_blocks; + size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + OmegaGpuAttnInfo info; memset(&info, 0, sizeof info); + int rc = omega_gpu_paged_attention_bf16(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, got, &info); + const char *klass; int pass; size_t bad = 0; double worst = 0; int ok_calls = 0; uint32_t unwritten = 0, cache_hits = 0; double med = 0, p90 = 0, kmed = 0, kp90 = 0; + if (!pow2) { + klass = "unsupported_by_kernel_envelope"; + pass = rc == OMEGA_GPU_ATTN_BAD_ARGS; unsupported++; + CHECK(pass, "sweep %uq/%ukv ctx %u: ratio %u (not a power of two) refused with BAD_ARGS (got %s)", nqh, nkv, ctx, ratio, omega_gpu_attention_rc_name(rc)); + } else { + klass = "supported"; supported++; + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + bad = compare(got, want, n, 2e-4, 2e-5, &worst); + unwritten = info.unwritten_words; + uint64_t kv_staged = info.kv_bytes_staged, kv_naive = info.kv_bytes_naive, qb = info.q_bytes, tb = info.tab_bytes, ob = info.out_bytes; + uint32_t launches = info.chip_calls, ctas = info.ctas_last_launch, blk_l = info.kv_blocks_logical, blk_u = info.kv_blocks_unique, kv_src = info.kv_source; + for (int i = 0; i < N; i++) { + OmegaGpuAttnInfo ti; + int trc = omega_gpu_paged_attention_bf16(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, got, &ti); + samples[i] = ti.call_ns / 1e6; ksamples[i] = ti.elapsed_ns / 1e6; + double w; size_t b2 = compare(got, want, n, 2e-4, 2e-5, &w); + if (w > worst) worst = w; + bad += b2; unwritten += ti.unwritten_words; cache_hits += ti.kernel_cache_hit; + if (trc == OMEGA_GPU_ATTN_OK && b2 == 0) ok_calls++; + } + qsort(samples, (size_t)N, sizeof samples[0], cmp_d); qsort(ksamples, (size_t)N, sizeof ksamples[0], cmp_d); + med = samples[N / 2]; p90 = samples[N * 9 / 10]; kmed = ksamples[N / 2]; kp90 = ksamples[N * 9 / 10]; + pass = rc == OMEGA_GPU_ATTN_OK && bad == 0 && ok_calls == N && unwritten == 0 && cache_hits == (uint32_t)N; + CHECK(pass, "sweep %uq/%ukv ctx %u: rc=%s violations=%zu ok_calls=%d/%d unwritten=%u cache_hits=%u", nqh, nkv, ctx, omega_gpu_attention_rc_name(rc), bad, ok_calls, N, unwritten, cache_hits); + printf("%s sweep %2uq/%2ukv ratio %2u ctx %4u: launches=%u ctas=%u call_ms med=%.3f p90=%.3f kernel_ms med=%.3f p90=%.3f kv_staged=%" PRIu64 " (naive %" PRIu64 ") blocks=%u/%u q=%" PRIu64 " tab=%" PRIu64 " out=%" PRIu64 " worst=%g\n", + pass ? "PASS" : "FAIL", nqh, nkv, ratio, ctx, launches, ctas, med, p90, kmed, kp90, kv_staged, kv_naive, blk_u, blk_l, qb, tb, ob, worst); + if (out) fprintf(out, "%s{\"q_heads\":%u,\"kv_heads\":%u,\"gqa_ratio\":%u,\"head_dim\":%u,\"context\":%u,\"q_width\":%zu,\"out_width\":%zu,\"class\":\"%s\",\"rc\":\"%s\",\"pass\":%s," + "\"violations\":%zu,\"worst_scaled_err\":%g,\"unwritten_words\":%u,\"launches_per_call\":%u,\"ctas_last_launch\":%u,\"threads_per_cta\":%u," + "\"call_ms_median\":%.4f,\"call_ms_p90\":%.4f,\"kernel_ms_median\":%.4f,\"kernel_ms_p90\":%.4f,\"kernel_cache_hits\":%u,\"first_call_cache_hit\":%s," + "\"kv_bytes_staged\":%" PRIu64 ",\"kv_bytes_naive\":%" PRIu64 ",\"kv_blocks_logical\":%u,\"kv_blocks_unique\":%u,\"q_bytes\":%" PRIu64 ",\"tab_bytes\":%" PRIu64 ",\"out_bytes\":%" PRIu64 ",\"kv_source\":\"%s\"}", + npoints ? "," : "", nqh, nkv, ratio, hd, ctx, n, n, klass, omega_gpu_attention_rc_name(rc), pass ? "true" : "false", bad, worst, unwritten, launches, ctas, info.threads_per_cta, + med, p90, kmed, kp90, cache_hits, info.kernel_cache_hit ? "true" : "false", kv_staged, kv_naive, blk_l, blk_u, qb, tb, ob, kv_src == OMEGA_GPU_ATTN_KV_STAGED ? "staged" : "resident"); + npoints++; + } + if (!pow2) { + printf("%s sweep %2uq/%2ukv ratio %2u ctx %4u: %s (rc=%s)\n", pass ? "PASS" : "FAIL", nqh, nkv, ratio, ctx, klass, omega_gpu_attention_rc_name(rc)); + if (out) fprintf(out, "%s{\"q_heads\":%u,\"kv_heads\":%u,\"gqa_ratio\":%u,\"head_dim\":%u,\"context\":%u,\"q_width\":%zu,\"out_width\":%zu,\"class\":\"%s\",\"rc\":\"%s\",\"pass\":%s}", + npoints ? "," : "", nqh, nkv, ratio, hd, ctx, n, n, klass, omega_gpu_attention_rc_name(rc), pass ? "true" : "false"); + npoints++; + } + free(pool); free(ids); free(q); free(got); free(want); + } + } + free(samples); free(ksamples); + uint32_t opens = omega_gpu_session_open_count(); + CHECK(opens == (g_sim_mode ? 0u : 1u), "sweep: device opened %s (opens=%u)", g_sim_mode ? "never (simulator)" : "once", opens); + printf("sweep: %d points (%d supported, %d unsupported by the kernel envelope), device_opens=%u\n", npoints, supported, unsupported, opens); + if (out) { fprintf(out, "],\"points_total\":%d,\"points_supported\":%d,\"points_unsupported\":%d,\"device_opens\":%u,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", npoints, supported, unsupported, opens, g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_SWEEP_PASS" : "OMEGA_GPU_ATTENTION_SWEEP_FAIL"); fclose(out); } + return 0; +} + +/* ------------------------------------------------------------ warp simulator (omega #308) + * The per-thread simulator above has no model of a warp (its SHFL rule is "one path across the + * warp or error 7"). With --divergent the kernel carries a real lane-dependent branch inside a + * BSSY/BSYNC region, and every launch runs through tests/bw_warp_sim.h instead: 32-lane + * fragments, barrier registers, SHFL/BAR participation. Each launch runs in both fragment + * orders and the two outputs must be bit-identical. */ +static uint64_t g_ws_issues, g_ws_launches; +static int ws_attn_launch(const void *progv, const OmegaGpuAttnLaunch *L, OmegaGpuAttnInfo *info) { + const BlackwellIRProgram *p = progv; + uint32_t *outw = L->out; size_t nw = L->out_bytes / 4; + uint32_t *copy = malloc(L->out_bytes); + int err = 0; char msg[240] = ""; + for (int order = 0; order < 2 && !err && copy; order++) { + WsSim s; memset(&s, 0, sizeof s); + s.p = p; s.threads = SIM_T; s.smem = sim_shared; s.smem_bytes = SIM_SMEM; s.order = order; + uint64_t qa = (uintptr_t)L->q, pa = (uintptr_t)L->pool, oa = (uintptr_t)L->out, ta = (uintptr_t)L->tab; + s.cbank[0x380 / 4] = (uint32_t)qa; s.cbank[0x380 / 4 + 1] = (uint32_t)(qa >> 32); + s.cbank[0x388 / 4] = (uint32_t)pa; s.cbank[0x388 / 4 + 1] = (uint32_t)(pa >> 32); + s.cbank[0x390 / 4] = (uint32_t)oa; s.cbank[0x390 / 4 + 1] = (uint32_t)(oa >> 32); + s.cbank[0x398 / 4] = (uint32_t)ta; s.cbank[0x398 / 4 + 1] = (uint32_t)(ta >> 32); + memcpy(&s.cbank[0x3a0 / 4], L->params, sizeof L->params); + for (size_t i = 0; i < nw; i++) outw[i] = 0xffbadbadu; + err = ws_run(&s, L->grid_x, L->grid_y); + if (err) { snprintf(msg, sizeof msg, "order %d: %s", order, s.msg); break; } + g_ws_issues += s.warp_issues; + if (order == 0) memcpy(copy, outw, L->out_bytes); + else if (memcmp(copy, outw, L->out_bytes) != 0) { err = -1; snprintf(msg, sizeof msg, "the fragment order changed the result"); } + } + free(copy); + g_ws_launches++; + uint32_t unwritten = 0; for (size_t i = 0; i < nw; i++) if (outw[i] == 0xffbadbadu) unwritten++; + if (info) { info->chip_calls++; info->unwritten_words += unwritten; info->ctas_last_launch = L->grid_x * L->grid_y; info->threads_per_cta = SIM_T; } + if (err) { printf("warp simulator error: %s\n", msg); return OMEGA_GPU_ATTN_CHIP_FAIL; } + return unwritten ? OMEGA_GPU_ATTN_UNWRITTEN : OMEGA_GPU_ATTN_OK; +} +/* Negative control for --divergent --sim: mode 2 builds the same kernel with the BSYNC dropped; + * the warp simulator must reject it (the whole point of the simulator: the old one could not). */ +static void divergent_negative_control(void) { + enum { SEQ = 65, NQH = 8, NKV = 2 }; + const uint32_t HD = g_hd; + float *q = malloc(NQH * HD * 4), *kv = malloc((size_t)SEQ * NKV * HD * 4), *out = malloc(NQH * HD * 4); + uint32_t seed = 0x308u; + for (uint32_t i = 0; i < NQH * HD; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < (size_t)SEQ * NKV * HD; i++) kv[i] = frand(&seed, -1.0f, 1.0f); + omega_gpu_attention_test_set_divergent(2); + int rc = omega_gpu_gqa_attention_f32(q, kv, kv, SEQ, NQH, NKV, HD, out, NULL); + omega_gpu_attention_test_set_divergent(1); + CHECK(rc == OMEGA_GPU_ATTN_CHIP_FAIL, "divergent mode 2 (BSYNC dropped) rejected by the warp simulator (rc %s)", omega_gpu_attention_rc_name(rc)); + int rc1 = omega_gpu_gqa_attention_f32(q, kv, kv, SEQ, NQH, NKV, HD, out, NULL); + CHECK(rc1 == OMEGA_GPU_ATTN_OK, "divergent mode 1 (regioned branch) runs clean on the same input (rc %s)", omega_gpu_attention_rc_name(rc1)); + free(q); free(kv); free(out); +} + +/* ------------------------------------------------------------ head_dim 128 (CPU phase) + * Checks that need the public API only, so the same code runs on the host simulators now and on + * the chip in the coordinated window. Run with --hd 128 (--sim for the host simulators). + * They target what head_dim 128 changed: four warps per CTA, so the chunk max and the chunk sum + * each combine FOUR warp partials (lane 0 of warps 0..3), and 128-token chunks. + * (a) uniform scores (K = 0): every weight is 1, the output is the mean of V over the context; + * a sum that drops the partial of warp 2 or 3 gives about twice the mean; + * (b) one dominant token with a score above the f32 exponent range (EX2 overflows without the + * right running max): the token sits in each of the four warps of chunk 0 and in the later, + * partial chunks; a max that ignores warp 2 or 3 overflows to inf / NaN. + * Negative controls: the comparison rejects the answer of a different token, and a shared-memory + * declaration of 1024 bytes (the head_dim 64 size) is refused by the simulators. */ +static void hd128_checks(void) { + const uint32_t hd = 128, nqh = 8, nkv = 2, seq = 300; + uint32_t seed = 0x128u; + size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = 1.0f; + for (size_t i = 0; i < nkvs; i++) vc[i] = frand(&seed, -1.0f, 1.0f); + OmegaGpuAttnInfo info; + /* (a) uniform */ + memset(kc, 0, nkvs * 4); + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + int rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + double w; size_t bad = compare(got, want, n, 2e-4, 2e-5, &w); + CHECK(rc == OMEGA_GPU_ATTN_OK && bad == 0 && info.threads_per_cta == 128, "hd128 uniform scores: mean of V over 300 tokens (rc %s, %zu bad, worst %g, %u threads)", omega_gpu_attention_rc_name(rc), bad, w, info.threads_per_cta); + float *half = malloc(n * 4); for (size_t i = 0; i < n; i++) half[i] = want[i] * 0.5f; + size_t neg = compare(got, half, n, 2e-4, 2e-5, &w); + CHECK(neg > n / 2, "hd128 uniform negative control: a result with the sum of two warps dropped (half the mean) is flagged (%zu of %zu)", neg, n); + free(half); + /* (b) one dominant token */ + static const uint32_t pos[] = { 5, 40, 70, 100, 127, 128 + 3, 256 + 43 }; + int all_ok = 1; size_t worst_bad = 0; + for (size_t pi = 0; pi < sizeof pos / sizeof pos[0]; pi++) { + memset(kc, 0, nkvs * 4); + for (uint32_t kvh = 0; kvh < nkv; kvh++) for (uint32_t d = 0; d < hd; d++) kc[((size_t)pos[pi] * nkv + kvh) * hd + d] = 12.0f; /* dot 1536, scaled by log2e / sqrt(128): about 2^196 */ + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + bad = compare(got, want, n, 2e-4, 2e-5, &w); + if (rc != OMEGA_GPU_ATTN_OK || bad) { all_ok = 0; if (bad > worst_bad) worst_bad = bad; } + printf(" hd128 dominant token %u (warp %u of chunk %u): rc %s, %zu bad, worst %g\n", pos[pi], (pos[pi] % 128) / 32, pos[pi] / 128, omega_gpu_attention_rc_name(rc), bad, w); + if (pi == 0) { + /* negative control: the answer of token 6 instead of token 5 must be flagged */ + float *other = malloc(n * 4); + for (uint32_t h = 0; h < nqh; h++) for (uint32_t d = 0; d < hd; d++) other[h * hd + d] = vc[((size_t)6 * nkv + h / (nqh / nkv)) * hd + d]; + size_t negb = compare(got, other, n, 2e-4, 2e-5, &w); + CHECK(negb > n / 2, "hd128 dominant-token negative control: the neighbouring token's V is flagged (%zu of %zu)", negb, n); + free(other); + } + } + CHECK(all_ok, "hd128 dominant token in every warp and chunk: exact max/sum over four warp partials (worst bad %zu)", worst_bad); + /* a kernel that needs 2048 bytes of shared memory must not run in a 1024-byte declaration (simulators only: they bound shared accesses) */ + if (g_sim_mode) { + g_smem_cap = 1024; + rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, NULL); + g_smem_cap = 0; + CHECK(rc == OMEGA_GPU_ATTN_CHIP_FAIL, "hd128 kernel refused under a 1024-byte shared-memory declaration (rc %s)", omega_gpu_attention_rc_name(rc)); + rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, NULL); + CHECK(rc == OMEGA_GPU_ATTN_OK, "hd128 kernel runs under the 2048-byte declaration (rc %s)", omega_gpu_attention_rc_name(rc)); + } + free(q); free(kc); free(vc); free(got); free(want); +} + +/* head_dim 64 byte-identity pin and head_dim 128 codegen facts (CPU only, no device, no simulator). + * The digests are SHA-256 of the encoded kernel bytes as emitted by the batched-load program of 2026-10-12 + * (speed/attention-batched-loads; before it, main c0369e6 was pinned at 160 instructions); any change to the head_dim 64 program changes a digest and fails here. */ +typedef struct { bool f32; uint32_t log2bs, log2gqa; size_t insns; const char *sha256; } Pin; +static const Pin k_pins64[] = { + { false, 4, 3, 216, "44d27fae78ea21ee77fd7a0ebd2ebfcac52e9e45a81de84b035868092e13e424" }, + { false, 4, 2, 216, "3bc79d4a54fd0d82024b376dfdb718e8326431917251f13f5c44be6ba8eb6f0c" }, + { false, 4, 0, 216, "83eca9872e32c17321d2f8ec6a6ec92638ed72b136d8958cda5cdfc451c01ef8" }, + { true, 12, 3, 184, "b6a25d8739185bbd944bfcc1ec174abb24ce46529f06c56f8d5ac77bf6883ddd" }, + { true, 12, 2, 184, "46a2b82ebcb55237f4a7585679b42ac9558c7a434e8e80ccef6cc0bfaed8fcb9" }, + { true, 12, 0, 184, "970db9533c836eca7c86783875a2ad898cd69bc3070cae418cc92b3ce2dbbd9c" }, +}; +static void hex_digest(const uint8_t d[32], char out[65]) { for (int i = 0; i < 32; i++) snprintf(out + 2 * i, 3, "%02x", d[i]); } +static void hd_codegen_checks(void) { + char hex[65]; + for (size_t i = 0; i < sizeof k_pins64 / sizeof k_pins64[0]; i++) { + const Pin *p = &k_pins64[i]; + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + int rc = omega_gpu_attention_codegen_hd(p->f32, p->log2bs, p->log2gqa, 64, &k); + hex_digest(k.code_digest, hex); + CHECK(rc == OMEGA_GPU_ATTN_OK && k.insn_count == p->insns && strcmp(hex, p->sha256) == 0, "hd64 %s log2bs %u log2gqa %u: encoded kernel is byte-identical to the pinned program (%zu insns, sha256 %s)", p->f32 ? "f32 " : "bf16", p->log2bs, p->log2gqa, k.insn_count, hex); + free(k.code); + /* the 4-argument entry point is the same kernel */ + OmegaBlackwellKernel k4; memset(&k4, 0, sizeof k4); + CHECK(omega_gpu_attention_codegen(p->f32, p->log2bs, p->log2gqa, &k4) == OMEGA_GPU_ATTN_OK && memcmp(k4.code_digest, k.code_digest, 32) == 0, "hd64 4-argument codegen entry is the same kernel"); + free(k4.code); + /* head_dim 128: encodes, inside the register budget, a different (longer) program */ + OmegaBlackwellKernel k2; memset(&k2, 0, sizeof k2); + int rc2 = omega_gpu_attention_codegen_hd(p->f32, p->log2bs, p->log2gqa, 128, &k2); + CHECK(rc2 == OMEGA_GPU_ATTN_OK && k2.code_size > 0 && k2.gpr_count <= 96 /* AT_GPR_BUDGET; cut K: the four-head kernel peaks at 84 */ && k2.insn_count > p->insns && memcmp(k2.code_digest, k.code_digest, 32) != 0, + "hd128 %s log2bs %u log2gqa %u: kernel encodes (%zu insns vs %zu, %u gprs)", p->f32 ? "f32 " : "bf16", p->log2bs, p->log2gqa, k2.insn_count, p->insns, k2.gpr_count); + free(k2.code); + } + OmegaBlackwellKernel kx; memset(&kx, 0, sizeof kx); + CHECK(omega_gpu_attention_codegen_hd(false, 4, 3, 96, &kx) == OMEGA_GPU_ATTN_TOO_LARGE, "codegen refuses head_dim 96"); + CHECK(omega_gpu_attention_codegen_hd(false, 4, 3, 256, &kx) == OMEGA_GPU_ATTN_TOO_LARGE, "codegen refuses head_dim 256"); + /* negative control for the pin itself: a one-bit change to a pinned digest must not match */ + OmegaBlackwellKernel kn; memset(&kn, 0, sizeof kn); + (void)omega_gpu_attention_codegen_hd(k_pins64[0].f32, k_pins64[0].log2bs, k_pins64[0].log2gqa, 64, &kn); + kn.code_digest[0] ^= 1u; hex_digest(kn.code_digest, hex); + CHECK(strcmp(hex, k_pins64[0].sha256) != 0, "pin negative control: a flipped digest bit does not match the pin"); + free(kn.code); +} + + +int main(int argc, char **argv) { + const char *out_path = NULL; int host = 0, sim = 0, timing_mode = 0, sweep_mode = 0, split_timing_mode = 0; + uint32_t spin_us = 0; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--host-only") == 0) host = 1; + else if (strcmp(argv[i], "--sim") == 0) sim = 1; + else if (strcmp(argv[i], "--divergent") == 0) g_divergent = 1; + else if (strcmp(argv[i], "--timing") == 0) timing_mode = 1; + else if (strcmp(argv[i], "--split-timing") == 0) split_timing_mode = 1; + else if (strcmp(argv[i], "--sweep") == 0) sweep_mode = 1; + else if (strcmp(argv[i], "--hd") == 0 && i + 1 < argc) g_hd = (uint32_t)atoi(argv[++i]); + else if (strcmp(argv[i], "--spin-us") == 0 && i + 1 < argc) spin_us = (uint32_t)atoi(argv[++i]); + else if (strcmp(argv[i], "--out") == 0 && i + 1 < argc) out_path = argv[++i]; + } + if (g_hd != 64 && g_hd != 128) { printf("--hd must be 64 or 128\n"); return 2; } + if (g_hd == 128 && (timing_mode || sweep_mode)) { printf("--hd 128 supports the battery, --split-timing and --host-only (timing and sweep are head_dim 64 only)\n"); return 2; } + if (spin_us && omega_gpu_session_set_spin_us(spin_us) != 0) { printf("--spin-us %u refused\n", spin_us); return 2; } + if (g_divergent) omega_gpu_attention_test_set_divergent(1); + if (sim) { g_sim_mode = 1; omega_gpu_attention_test_set_simulator(g_divergent ? ws_attn_launch : sim_launch); } + if (sim && g_divergent && !host) divergent_negative_control(); + if (host) { host_only(); hd_codegen_checks(); } + else if (split_timing_mode) { if (split_timing(out_path) != 0) return 2; } + else if (timing_mode) { if (timing(out_path) != 0) return 2; } + else if (sweep_mode) { if (sweep(out_path) != 0) return 2; } + else { if (chip(out_path) != 0) return 2; if (g_hd == 128) hd128_checks(); } + printf("%s: %d checks, %d failed\n", g_failed ? "FAIL" : "PASS", g_checks, g_failed); + return g_failed ? 1 : 0; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.c new file mode 100644 index 000000000..d9d56b121 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.c @@ -0,0 +1,1436 @@ +/* omega_gpu_attention_api.c: FB-1 cut 5 (2026-10-04). See the header. + * + * Layout: (1) kernel codegen on the BlackwellIR with the serialising scheduler + * of cut 4 (every instruction waits on everything still pending; slow and safe), + * extended with forward branches and more loops; (2) the launcher, cloned from + * cut 4's run_abc with a fourth buffer (block tables and context lengths), 16 + * argument words, and cut 1b's shader-cache invalidate; (3) the public entry + * points, which stage the referenced KV blocks per launch and apply the oracle's + * argument rules (dropped tokens past the table, negative table entries, zero + * context) on the host. + * + * One CTA per (query head, sequence), head_dim threads (64 or 128; the text below says 64, the + * constants scale with KSpec.hd). The context is walked in chunks of head_dim tokens: + * phase A thread t owns token base+t: block lookup, K dot q (f32 FFMA), s = dot * scale + * (scale folds 1/sqrt(d) and log2 e), s and the token's byte offset go to shared; + * reduce chunk max (SHFL.DOWN tree per warp, lane partials to shared, BAR.SYNC, 2 LDS), + * m_new = max(m, chunk max), alpha = EX2(m - m_new), p = EX2(s - m_new) to shared, + * chunk sum the same way, l = l * alpha + chunk sum; + * phase B thread d owns dimension d: acc = acc * alpha + sum over the chunk of p_t * V[t][d]. + * Then out[d] = acc * RCP(l). The first chunk sees m = -inf, so alpha = EX2(-inf) = 0 and + * the initial l and acc drop out (PTX ISA ex2.approx: ex2(-Inf) = +0). + * + * Shared memory (16 * head_dim bytes; hd 64: 1024 bytes, the QMD default): [0,4hd) q, [4hd,8hd) s then p, + * [8hd,12hd) token byte offsets, [12hd,16hd) warp partials for the reductions (hd 64: 0, 256, 512, + * 768; hd 128: 0, 512, 1024, 1536; the partials of warp w are read at 12hd + 128w). + */ +#include "omega_gpu_attention_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_bw_reconv.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" +#include "omega_gpu_session.h" +#include "omega_gpu_fmt.h" +#include "sha256.h" +#ifdef OMEGA_ATTN_DEBUG +#include /* the debug trace only; never in the freestanding build */ +#endif +#include + +/* ------------------------------------------------------------------ codegen */ + +#define CW(stall, wbar, rbar, wait) \ + (((uint32_t)(stall) << 9) | ((uint32_t)(wbar) << 14) | ((uint32_t)(rbar) << 17) | ((uint32_t)(wait) << 20)) +#define CW_YIELD 0x2000u +#define SB_NONE 7u +#define SB_GPR 0u +#define SB_RD 1u +#define SB_UGPR 2u +#define SB_LD2 4u /* second scoreboard for batched loads (the matmul kernel's B-load word, omega #328) */ +#define SB_LD3 3u /* third: phase B keeps shared loads and the two halves of the V loads on separate scoreboards */ +#define AT_BATCH_MAX 4 /* loads in flight per scoreboard: 4 complete on the chip, 8 never did (omega #328) */ + +enum { K_FIXED, K_PRED, K_VAR, K_UVAR, K_STORE, K_SYNC, K_EXIT, K_BRA, K_BSSY, K_BSYNC }; + +#define AT_MAX_LOOPS 8 +typedef struct { + BlackwellIRProgram *p; + uint32_t pending; + uint32_t batch; /* scoreboards the open load batch is filling (no wait on them inside the batch) */ + int batch_n[8]; /* loads issued per scoreboard in the open batch */ + int err; + int loop_start[AT_MAX_LOOPS], loop_end[AT_MAX_LOOPS]; + int n_loops, depth, stack[AT_MAX_LOOPS]; + BwRegions rg; /* structured reconvergence regions (omega #308) */ + int rg_mutant; /* test only: 1 = drop the BSYNC at join (the 2026-10-04 bug shape; host sim must catch it) */ +} Em; + +static void emit(Em *e, BlackwellIRInsn in, int kind) { + uint32_t wait = e->pending; + e->batch = 0; memset(e->batch_n, 0, sizeof e->batch_n); /* an ordinary instruction waits on the whole batch */ + switch (kind) { + case K_FIXED: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_PRED: in.control = CW(13, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_VAR: in.control = CW(4, SB_GPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_GPR; break; + case K_UVAR: in.control = CW(4, SB_UGPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_UGPR; break; + case K_STORE: in.control = CW(4, SB_NONE, SB_RD, wait) | CW_YIELD; e->pending = 1u << SB_RD; break; + case K_SYNC: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_EXIT: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + case K_BRA: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + /* stall counts as nvcc 13.0.88 writes them for sm_121 (see src/omega_gpu_elementwise_api.c) */ + case K_BSSY: in.control = CW(1, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + case K_BSYNC: in.control = CW(5, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + default: e->err = -1; return; + } + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; +} + +static int V(Em *e) { int v = omega_bw_ir_alloc_vreg(e->p); if (v < 0) e->err = -1; return v; } +static int V64(Em *e) { int v = omega_bw_ir_alloc_vreg64(e->p); if (v < 0) e->err = -1; return v; } +static int V128(Em *e) { int v = omega_bw_ir_alloc_vreg128(e->p); if (v < 0) e->err = -1; return v; } +static int UV64(Em *e) { int v = omega_bw_ir_alloc_uvreg64(e->p); if (v < 0) e->err = -1; return v; } +static int here(const Em *e) { return (int)e->p->count; } + +#define NOREG -1 +static BlackwellIRInsn I0(BlackwellIROpcode op) { + BlackwellIRInsn in; memset(&in, 0, sizeof in); + in.op = op; in.dst_vreg = NOREG; in.src1_vreg = NOREG; in.src2_vreg = NOREG; in.src3_vreg = NOREG; in.ureg = NOREG; + return in; +} +static void ldcu64(Em *e, int udst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDCU64); i.dst_vreg = udst; i.imm = off; i.is_uniform = true; emit(e, i, K_UVAR); } +static void ldc64(Em *e, int dst64, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC64); i.dst_vreg = dst64; i.imm = off; emit(e, i, K_VAR); } +static void ldc32(Em *e, int dst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC); i.dst_vreg = dst; i.imm = off; emit(e, i, K_VAR); } +static void s2r(Em *e, int dst, uint32_t sr) { BlackwellIRInsn i = I0(BW_IR_S2R); i.dst_vreg = dst; i.imm = sr; emit(e, i, K_VAR); } +static void movi(Em *e, int dst, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_MOV_IMM); i.dst_vreg = dst; i.imm = imm; emit(e, i, K_FIXED); } +static void movf(Em *e, int dst, float f) { uint32_t u; memcpy(&u, &f, 4); movi(e, dst, u); } +static void movrz(Em *e, int dst) { BlackwellIRInsn i = I0(BW_IR_MOV_RZ); i.dst_vreg = dst; emit(e, i, K_FIXED); } +/* dst = a * imm + c (c may be NOREG for RZ) */ +static void imadi(Em *e, int dst, int a, uint32_t imm, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); } +/* dst = a * b + c (registers; c may be NOREG) */ +static void imadr(Em *e, int dst, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void iadd3(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IADD3); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void lop3xor(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_LOP3_XOR); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void lop3andi(Em *e, int dst, int a, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_LOP3_AND); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; emit(e, i, K_FIXED); } +static void shri(Em *e, int dst, int a, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_SHF_R); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; emit(e, i, K_FIXED); } +/* dst64 = idx * imm + base64 (byte address) */ +static void wide(Em *e, int dst64, int idx, uint32_t imm, int base64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.imm = imm; i.src3_vreg = base64; emit(e, i, K_FIXED); } +static void ldg(Em *e, int dst, int addr64, int udesc) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit(e, i, K_VAR); } +/* Batched loads (2026-10-12, long-context finding): every load above waits on the previous one, so + * phase A paid one global latency per dim pair and phase B one per token (~6 GB/s at 1268 ctx). A + * batched load sets `sb` and waits on every pending scoreboard except the ones the open batch is + * filling (and SB_RD, its read barrier), so up to AT_BATCH_MAX loads per scoreboard are in flight. + * The next ordinary instruction (emit) waits on all of them. SB_RD covers the address register: the + * allocator may hand that register to a later load's data before this load has read it. */ +static void emit_batched(Em *e, BlackwellIRInsn in, uint32_t sb) { + if (sb >= 8 || e->batch_n[sb] >= AT_BATCH_MAX) { e->err = -1; return; } + in.control = CW(4, sb, SB_RD, e->pending & ~e->batch) | CW_YIELD; + e->batch |= (1u << sb) | (1u << SB_RD); e->batch_n[sb]++; + e->pending |= (1u << sb) | (1u << SB_RD); + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; +} +/* A fixed-latency instruction inside an open load batch: it waits on the batch's read barrier (its + * destination may be a load's address register, which the load may read late) but not on the loads' + * data, so the address of the next load is computed while the earlier loads are in flight. Only for + * instructions that read no result of the open batch. */ +static void emit_fixed_in_batch(Em *e, BlackwellIRInsn in) { + uint32_t wait = (e->pending & ~e->batch) | (e->batch ? (1u << SB_RD) : 0u); + in.control = CW(6, SB_NONE, SB_NONE, wait); + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; +} +static void ldg128_b(Em *e, int dst128, int addr64, uint32_t imm, int udesc, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDG_E_128); i.dst_vreg = dst128; i.src1_vreg = addr64; i.imm = imm; i.ureg = udesc; emit_batched(e, i, sb); } +static void ldg_b(Em *e, int dst, int addr64, int udesc, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit_batched(e, i, sb); } +static void ldg16_b(Em *e, int dst, int addr64, int udesc, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDG_E_U16); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit_batched(e, i, sb); } +static void lds128_b(Em *e, int dst128, int addr, uint32_t imm, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDS128); i.dst_vreg = dst128; i.src1_vreg = addr; i.imm = imm; emit_batched(e, i, sb); } +/* sub-register operands of a quad */ +static void e_ffma_s(Em *e, int d, int a, int as, int b, int bs, int c) { BlackwellIRInsn i = I0(BW_IR_FFMA); i.dst_vreg = d; i.src1_vreg = a; i.src1_subreg = (uint8_t)as; i.src2_vreg = b; i.src2_subreg = (uint8_t)bs; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void imadi_s(Em *e, int dst, int a, int as, uint32_t imm, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.src1_subreg = (uint8_t)as; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void lop3andi_s(Em *e, int dst, int a, int as, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_LOP3_AND); i.dst_vreg = dst; i.src1_vreg = a; i.src1_subreg = (uint8_t)as; i.imm = imm; emit(e, i, K_FIXED); } +static void wide_s(Em *e, int dst64, int idx, int is, uint32_t imm, int base64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.src1_subreg = (uint8_t)is; i.imm = imm; i.src3_vreg = base64; emit(e, i, K_FIXED); } +static void wide_s_b(Em *e, int dst64, int idx, int is, uint32_t imm, int base64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.src1_subreg = (uint8_t)is; i.imm = imm; i.src3_vreg = base64; emit_fixed_in_batch(e, i); } +static void stg(Em *e, int addr64, int val, int udesc) { BlackwellIRInsn i = I0(BW_IR_STG_E); i.src1_vreg = addr64; i.src2_vreg = val; i.ureg = udesc; emit(e, i, K_STORE); } +static void e_fadd(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FADD); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void e_fsub(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FSUB); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void e_fmul(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FMUL); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void e_ffma(Em *e, int d, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_FFMA); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void e_fmax(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FMNMX_MAX); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void mufu(Em *e, BlackwellIROpcode op, int d, int a) { BlackwellIRInsn i = I0(op); i.dst_vreg = d; i.src1_vreg = a; emit(e, i, K_VAR); } +/* SHFL and BAR.SYNC are refused inside an open reconvergence region (omega #308): on a split + * warp they read inactive lanes / count a partial warp, which is what produced wrong dims on + * the chip on 2026-10-04. The build fails closed instead. */ +static int in_region(Em *e) { if (e->rg.depth > 0) { e->err = -1; return 1; } return 0; } +static void shfl_down(Em *e, int d, int a, uint32_t off) { if (in_region(e)) return; BlackwellIRInsn i = I0(BW_IR_SHFL_DOWN); i.dst_vreg = d; i.src1_vreg = a; i.imm = off; emit(e, i, K_VAR); } +static void sts32(Em *e, int addr, int val) { BlackwellIRInsn i = I0(BW_IR_STS32); i.src1_vreg = addr; i.src2_vreg = val; emit(e, i, K_STORE); } +static void lds32(Em *e, int d, int addr) { BlackwellIRInsn i = I0(BW_IR_LDS32); i.dst_vreg = d; i.src1_vreg = addr; emit(e, i, K_VAR); } +static void bar_sync(Em *e) { if (in_region(e)) return; emit(e, I0(BW_IR_BAR_SYNC), K_SYNC); } +static void isetp_ge_u32(Em *e, int a, int b) { BlackwellIRInsn i = I0(BW_IR_ISETP_GE_U32); i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_PRED); } +static void bra_back_if_not_p0(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.predicate_not = true; i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } +/* @P0 BRA forward; the target is patched in when known */ +static int bra_fwd_if_p0(Em *e) { int at = here(e); BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.imm = 0; emit(e, i, K_BRA); return at; } +static void patch_fwd(Em *e, int at) { if (at >= 0 && (size_t)at < e->p->count) e->p->insns[at].imm = (uint32_t)(here(e) - at); else e->err = -1; } + +/* ---- structured reconvergence regions (omega #308); same API as the elementwise emitter ---- */ +enum { RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0 }; +static int region_begin(Em *e) { + int bar = bw_regions_next_bar(&e->rg); + if (bar < 0) { e->err = -1; return -1; } + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BSSY); i.bar_reg = (uint8_t)bar; i.imm = 2; emit(e, i, K_BSSY); + if (bw_regions_begin(&e->rg, at) < 0) e->err = -1; + return bar; +} +static void region_exit(Em *e, int cond) { + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = 1; + if (cond != RX_ALWAYS) { i.predicate_p0 = true; i.predicate_not = (cond == RX_IF_NOT_P0); } + emit(e, i, K_BRA); + if (bw_regions_exit(&e->rg, at) < 0) e->err = -1; +} +static void region_join(Em *e) { + if (e->rg.depth <= 0) { e->err = -1; return; } + int d = e->rg.depth - 1, bsync = here(e); + BlackwellIRInsn i = I0(e->rg_mutant == 1 ? BW_IR_NOP : BW_IR_BSYNC); i.bar_reg = (uint8_t)d; emit(e, i, K_BSYNC); + if (e->rg_mutant == 1) { + BwRegions *r = &e->rg; r->depth--; + e->p->insns[r->bssy_at[d]].imm = (uint32_t)(bsync + 1 - r->bssy_at[d]); + for (int k = 0; k < r->n_exits[d]; k++) e->p->insns[r->exits[d][k]].imm = (uint32_t)(bsync - r->exits[d][k]); + return; + } + if (bw_regions_join(&e->rg, e->p, bsync) != d) e->err = -1; +} +static void tail(Em *e) { + emit(e, I0(BW_IR_EXIT), K_EXIT); + BlackwellIRInsn self = I0(BW_IR_BRA); + self.control = 0x000fc000u; + if (omega_bw_ir_append(e->p, &self) < 0) e->err = -1; +} +/* Loops nest; loop_end() extends every value defined before the loop and read inside + * it to the back-branch (the linear-scan allocator knows nothing about back-edges). */ +static void loop_begin(Em *e) { + if (e->depth >= AT_MAX_LOOPS || e->n_loops >= AT_MAX_LOOPS) { e->err = -1; return; } + e->stack[e->depth++] = here(e); +} +static void loop_end(Em *e) { + if (e->depth == 0 || e->n_loops >= AT_MAX_LOOPS) { e->err = -1; return; } + int start = e->stack[--e->depth], end = here(e) - 1; + e->loop_start[e->n_loops] = start; e->loop_end[e->n_loops] = end; e->n_loops++; + OmegaRegAlloc *ra = &e->p->regalloc; + for (int v = 0; v < ra->num_vregs; v++) { + OmegaLiveInterval *iv = &ra->intervals[v]; + if (iv->first_def >= 0 && iv->first_def < start && iv->last_use >= start && iv->last_use < end) iv->last_use = end; + } +} +/* A value first defined inside a loop may not be read after it before being redefined. */ +static int check_loop_invariant(const Em *e) { + const OmegaRegAlloc *ra = &e->p->regalloc; + for (int L = 0; L < e->n_loops; L++) + for (int v = 0; v < ra->num_vregs; v++) { + int fd = ra->intervals[v].first_def; + if (fd < e->loop_start[L] || fd > e->loop_end[L]) continue; + for (size_t i = (size_t)e->loop_end[L] + 1; i < e->p->count; i++) { + const BlackwellIRInsn *in = &e->p->insns[i]; + if (in->src1_vreg == v || in->src2_vreg == v || in->src3_vreg == v) return -1; + if (in->dst_vreg == v && !in->is_uniform) break; + } + } + return 0; +} + +/* Kernel argument words (constant bank 0 at 0x380; the bank is 1024 bytes, so 32 words fit). */ +#define ARG_Q 0x380u +#define ARG_POOL 0x388u +#define ARG_OUT 0x390u +#define ARG_TAB 0x398u +#define ARG_MAXB 0x3a0u /* words per block-table row */ +#define ARG_SCALE 0x3a4u /* bits of log2(e) / sqrt(head_dim) */ +#define ARG_BSTRIDE 0x3a8u /* bytes between staged blocks */ +#define ARG_TSTRIDE 0x3acu /* bytes between tokens */ +#define ARG_KVP 0x3b0u /* bytes from the K plane to the V plane */ +#define ARG_HSTRIDE 0x3b4u /* bytes between kv heads */ +#define ARG_NQH 0x3b8u /* query heads (q and out row count per sequence) */ +#define ARG_CTXOFF 0x3bcu /* byte offset of the context-length array inside the table buffer */ +#define ARG_WORDS 16u +#define DESC_OFF 0x358u + +/* Head dimension is a kernel parameter (64 or 128, see KSpec.hd). Shared memory is four arrays of hd words: + * q at SH_Q, s then p at hd*4, token byte offsets at hd*8, warp partials at hd*12 (hd 64: 0, 256, 512, 768, + * the layout of every cut before head_dim 128). */ +#define SH_Q 0u +#define F32_NEG_INF 0xff800000u + +/* divergent (omega #308 regression R2): 0 = production branch-free chunk loop; 1 = the + * lane-dependent "j >= ctx" branch restored inside a reconvergence region (BSSY/BSYNC) so + * the SHFL reductions run on a joined warp; 2 = the same with the BSYNC dropped (the + * 2026-10-04 bug shape, a negative control the host simulator must catch). */ +typedef struct { bool f32; uint32_t log2bs, log2gqa; int mutant; int divergent; uint32_t hd; int split; } KSpec; +/* split (cut F, 2026-10-12): -1 = direct output (the gqa f32 and rows callers; byte for byte the kernel before). + * 0..MAX_LOG2SPLIT = the paged path: 2^split CTAs share one (sequence, head). Each sequence derives its own split + * count from its own context (so its result never depends on the other sequences in the launch), every CTA writes + * an unnormalised partial (acc[hd], running max, running sum; an empty slice writes acc 0, max -inf) and the host + * combines them, also when split == 0. */ + +/* cut K (2026-10-12, GQA group): at head_dim 128 one CTA serves the GC query heads of one kv head, GC = + * min(2^log2gqa, 4), so every K and V byte of a launch is read once instead of once per query head. The KV + * pool is GPU-uncached (host-written), so the four CTAs of a GQA group were four DRAM reads of the same + * bytes: 21 MB per call at 1268 tokens, the memory ceiling (sc leg smoke-ctx-chunk: 152 us per call). + * Grid x is the head group (num_q_heads / GC CTAs per sequence and split). Shared memory: q, scores and + * warp partials per head, token offsets once. GC = 1 (every hd 64 kernel, hd 128 with gqa 1) emits exactly + * the program before this cut (digest fixtures). */ +static uint32_t heads_per_cta(uint32_t hd, uint32_t log2gqa) { return hd == 128u ? (1u << (log2gqa < 2u ? log2gqa : 2u)) : 1u; } +static uint32_t shared_bytes_for(uint32_t hd, uint32_t log2gqa) { return (3u * heads_per_cta(hd, log2gqa) + 1u) * hd * 4u; } +uint32_t omega_gpu_attention_heads_per_cta(uint32_t head_dim, uint32_t log2_gqa) { return heads_per_cta(head_dim, log2_gqa); } + +static void gen_attention(Em *e, const KSpec *k) { + const uint32_t elem = k->f32 ? 4u : 2u; + const uint32_t HD = k->hd, GC = heads_per_cta(HD, k->log2gqa), log2gc = GC == 4u ? 2u : GC == 2u ? 1u : 0u; + const uint32_t HB = HD * 4u; /* bytes of one per-head shared array */ + const uint32_t SH_S = GC * HB, SH_O = 2u * GC * HB, SH_R = SH_O + HB; /* warps per CTA: HD / 32 */ + int udesc = UV64(e), A = V64(e), B = V64(e), C = V64(e), D = V64(e); + int tid = V(e), h = V(e), seq = V(e); + int p_maxb = V(e), scale = V(e), p_bstride = V(e), p_tstride = V(e), p_kvp = V(e), p_hstride = V(e), p_nqh = V(e), p_ctxoff = V(e); + ldcu64(e, udesc, DESC_OFF); + ldc64(e, A, ARG_Q); ldc64(e, B, ARG_POOL); ldc64(e, C, ARG_OUT); ldc64(e, D, ARG_TAB); + ldc32(e, p_maxb, ARG_MAXB); ldc32(e, scale, ARG_SCALE); ldc32(e, p_bstride, ARG_BSTRIDE); ldc32(e, p_tstride, ARG_TSTRIDE); + ldc32(e, p_kvp, ARG_KVP); ldc32(e, p_hstride, ARG_HSTRIDE); ldc32(e, p_nqh, ARG_NQH); ldc32(e, p_ctxoff, ARG_CTXOFF); + s2r(e, tid, BW_SR_TID_X); s2r(e, h, BW_SR_CTAID_X); s2r(e, seq, BW_SR_CTAID_Y); + + /* cut F, partial mode: grid y = sequence * S + split; the split index picks this CTA's slice of the context (below) */ + const bool part = k->split >= 0; + const uint32_t LS = part ? (uint32_t)k->split : 0u, S = 1u << LS, log2hd = (HD == 128u) ? 7u : 6u; + int split = -1, kb = -1, kend = -1; + if (part) { split = V(e); if (LS) { lop3andi(e, split, seq, S - 1u); shri(e, seq, seq, LS); } else movrz(e, split); } + + int c1 = V(e), c4 = V(e), c32 = V(e), c64 = V(e), c256 = V(e), c512 = V(e), c768 = V(e), c896 = V(e), zero = V(e); + /* c32 / c64 keep their hd 64 names: the inner (dim pair) loop trip count HD / 2 and the chunk size HD */ + movi(e, c1, 1); movi(e, c4, 4); movi(e, c32, HD / 2); movi(e, c64, HD); + movi(e, c256, SH_S); movi(e, c512, SH_O); movi(e, c768, SH_R); movi(e, c896, SH_R + 128); movrz(e, zero); + /* warp partials 2 and 3 (lane 0 of warps 2 and 3): only a 128-thread CTA has them. Created and emitted only + * when HD == 128, so the hd 64 program (vreg numbering, instruction sequence) is exactly the one before. */ + int c1024 = -1, c1152 = -1, rc_ = -1, rd_ = -1; + if (HD == 128) { c1024 = V(e); c1152 = V(e); rc_ = V(e); rd_ = V(e); movi(e, c1024, SH_R + 256); movi(e, c1152, SH_R + 384); } + + /* q[tid] -> shared; out address kept for the end. Row = seq * num_q_heads + head for + * both q and out (flattened head-major, the oracle's layout). The head-wiring mutants + * swap the row of head h with h ^ 1 on one side only. GC > 1: head g of the group is + * h * GC + g; q goes to SH_Q + g * HB; the output rows are derived in the epilogue. */ + int tid4 = V(e), qrow = V(e), qoff = V(e), qaddr = V64(e), qv = V(e), oaddr = GC == 1 ? V64(e) : -1; + int hq = h, ho = h; + if (GC == 1 && k->mutant == OMEGA_GPU_ATTN_MUTANT_Q_ROW) { hq = V(e); lop3xor(e, hq, h, c1); } + if (GC == 1 && k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) { ho = V(e); lop3xor(e, ho, h, c1); } + imadi(e, tid4, tid, 4, NOREG); + if (GC == 1) { + imadr(e, qrow, seq, p_nqh, hq); + imadi(e, qoff, qrow, HD * 4, tid4); + wide(e, qaddr, qoff, 1, A); + ldg(e, qv, qaddr, udesc); + sts32(e, tid4, qv); /* SH_Q + tid*4 */ + if (!part) { /* direct output address; partial mode derives its row in the epilogue */ + if (ho == hq) wide(e, oaddr, qoff, 1, C); + else { + int orow = V(e), ooff = V(e); + imadr(e, orow, seq, p_nqh, ho); + imadi(e, ooff, orow, HD * 4, tid4); + wide(e, oaddr, ooff, 1, C); + } + } + } else { + int h0 = V(e), hg = V(e), qsh = V(e); + imadi(e, h0, h, GC, NOREG); + for (uint32_t g = 0; g < GC; g++) { + imadi(e, hg, c1, g, h0); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_Q_ROW) lop3xor(e, hg, hg, c1); + imadr(e, qrow, seq, p_nqh, hg); + imadi(e, qoff, qrow, HD * 4, tid4); + wide(e, qaddr, qoff, 1, A); + ldg(e, qv, qaddr, udesc); + imadi(e, qsh, c1, g * HB, tid4); + sts32(e, qsh, qv); + } + } + + /* kv head offset, this sequence's table row and context length */ + int kvh = V(e), kvoff = V(e), t1 = V(e), tab = V64(e), ca = V64(e), ctx = V(e), vb = V64(e); + shri(e, kvh, h, k->log2gqa - log2gc); /* GC heads per CTA: kv head = (h * GC) >> log2gqa */ + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_KV_HEAD) lop3xor(e, kvh, kvh, c1); + imadr(e, kvoff, kvh, p_hstride, NOREG); + imadr(e, t1, seq, p_maxb, NOREG); + imadi(e, t1, t1, 4, NOREG); + wide(e, tab, t1, 1, D); + imadi(e, t1, seq, 4, p_ctxoff); + wide(e, ca, t1, 1, D); + ldg(e, ctx, ca, udesc); + if (part) { + /* This sequence's own split count s_own = min(S, pow2floor(chunks)), chunks = ceil(ctx / HD), from its own + * context alone (the host picks the launch S the same way over the batch); per = roundup(ceil(ctx / s_own), HD) + * whole chunks per split; this CTA's slice is [kb, kend), kend = min(ctx, kb + per) through the sign bit of + * ctx - (kb + per). Splits past s_own get kb >= kend: an empty partial. Branch-free: candidate 2^c replaces + * per when chunks >= 2^c; the candidates nest, so the largest that fits wins. */ + int per = V(e), x = V(e), cand = V(e), dd = V(e), lt = V(e), cH1 = V(e), cK = V(e); + kb = V(e); kend = V(e); + movi(e, cH1, HD - 1u); + iadd3(e, per, ctx, cH1); lop3andi(e, per, per, ~(HD - 1u)); /* roundup(ctx, HD): one split takes it all */ + shri(e, x, per, log2hd); /* chunks (cut J: one whole chunk per split) */ + for (uint32_t c = 1; c <= LS; c++) { + movi(e, cK, (1u << c) - 1u); iadd3(e, cand, ctx, cK); shri(e, cand, cand, c); + iadd3(e, cand, cand, cH1); lop3andi(e, cand, cand, ~(HD - 1u)); /* roundup(ceil(ctx / 2^c), HD) */ + movi(e, cK, 0u - (1u << c)); iadd3(e, dd, x, cK); shri(e, lt, dd, 31); /* lt = (x < 2^c) */ + imadi(e, dd, cand, 0xFFFFFFFFu, per); /* per - cand */ + imadr(e, per, lt, dd, cand); /* lt ? per : cand */ + } + imadr(e, kb, split, per, NOREG); + iadd3(e, kend, kb, per); + imadi(e, dd, kend, 0xFFFFFFFFu, ctx); + shri(e, lt, dd, 31); + imadr(e, kend, lt, dd, kend); + } + const int lim = part ? kend : ctx; /* the end of this CTA's token range */ + /* V column base for dimension tid: pool + kv plane + tid * elem. The kv head offset is + * already inside the per-token offset phase A leaves in shared memory (found by the host + * simulator: adding it here too read V from the wrong head for every kv head but 0). */ + wide(e, vb, tid, elem, B); + wide(e, vb, p_kvp, 1, vb); + + /* running max, sum and accumulator per head of the group (GC = 1: one of each, as before) */ + int M[4], L[4], acc[4]; + for (uint32_t g = 0; g < GC; g++) M[g] = V(e); + for (uint32_t g = 0; g < GC; g++) L[g] = V(e); + for (uint32_t g = 0; g < GC; g++) acc[g] = V(e); + int base = V(e), sOff = V(e), oOff = V(e), rOff = V(e); + for (uint32_t g = 0; g < GC; g++) movi(e, M[g], F32_NEG_INF); + for (uint32_t g = 0; g < GC; g++) { if (k->mutant == OMEGA_GPU_ATTN_MUTANT_NO_MAX) movrz(e, L[g]); else movf(e, L[g], 1.0f); } /* alpha = 0 on the first chunk clears it */ + for (uint32_t g = 0; g < GC; g++) movrz(e, acc[g]); + if (part) iadd3(e, base, kb, zero); else movrz(e, base); + iadd3(e, sOff, tid4, c256); iadd3(e, oOff, tid4, c512); iadd3(e, rOff, tid4, c768); + bar_sync(e); /* q visible to every thread */ + if (part) isetp_ge_u32(e, kb, kend); else isetp_ge_u32(e, zero, ctx); /* empty range: out = 0 (an empty partial) */ + int bZ = bra_fwd_if_p0(e); + + /* ---------------- chunk loop ---------------- */ + int j = V(e), s[4], koff; + for (uint32_t g = 0; g < GC; g++) s[g] = V(e); + koff = V(e); + int bi = V(e), sl = V(e), ta = V64(e), blk = V(e), ka = V64(e), dot[4], d; + for (uint32_t g = 0; g < GC; g++) dot[g] = V(e); + d = V(e); + int lo = V(e), hi = V(e), qa = V(e), j1 = V(e); + int dneg = V(e), over = V(e), ot = V(e), ctxm1 = V(e), cm1 = V(e), cninf = V(e), nb = V(e), ns = V(e); + int tsh = GC > 1 ? V(e) : -1; /* per-head shared address temporary (GC > 1 only) */ + movi(e, cm1, 0xFFFFFFFFu); iadd3(e, ctxm1, lim, cm1); movi(e, cninf, F32_NEG_INF); + loop_begin(e); + int Lout = here(e); + /* 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); + for (uint32_t g = 0; g < GC; g++) movi(e, s[g], F32_NEG_INF); + movrz(e, koff); + if (k->divergent) { + /* omega #308 R2: the lane-dependent branch, inside a reconvergence region. Lanes with + * j >= ctx skip phase A (s stays -inf, koff 0); the BSYNC at region_join rejoins them + * before the SHFL reductions below. divergent == 2 drops that BSYNC (negative control). */ + region_begin(e); + isetp_ge_u32(e, j, lim); + region_exit(e, RX_IF_P0); + } else { + imadi(e, dneg, j, 0xFFFFFFFFu, ctxm1); /* ctx - 1 - j */ + shri(e, over, dneg, 31); + imadr(e, ot, over, tid, NOREG); + imadi(e, j, ot, 0xFFFFFFFFu, j); /* j - over*tid */ + } + /* phase A: token j */ + shri(e, bi, j, k->log2bs); + lop3andi(e, sl, j, (1u << k->log2bs) - 1u); + wide(e, ta, bi, 4, tab); + ldg(e, blk, ta, udesc); + imadr(e, koff, blk, p_bstride, NOREG); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_SLOT) { + /* K read from slot (t + 1) % block_size, V from the right slot: a K/V mismatch. + * (Shifting both only permutes matched pairs inside a full block, which softmax cannot see.) */ + int sl1 = V(e); + iadd3(e, j1, j, c1); lop3andi(e, sl1, j1, (1u << k->log2bs) - 1u); + imadr(e, sl1, sl1, p_tstride, koff); + iadd3(e, sl1, sl1, kvoff); + wide(e, ka, sl1, 1, B); + imadr(e, koff, sl, p_tstride, koff); + iadd3(e, koff, koff, kvoff); + } else { + imadr(e, koff, sl, p_tstride, koff); + iadd3(e, koff, koff, kvoff); + wide(e, ka, koff, 1, B); + } + /* phase A inner loop (batched, 2026-10-12): two 128-bit global loads of K per pass on SB_GPR (16 dims + * bf16, 8 dims f32) with the first half of the matching q slice as 128-bit shared loads on SB_LD2, one + * wait; then the second half of q, one more (short) wait. The serial loop before paid one global + * latency per dim pair. Two halves keep the pass inside AT_GPR_BUDGET (the whole slice at once is + * 65 to 76 registers). qa = d * 4 is the shared byte offset of q[d]. GC > 1: the same K pass feeds + * every head of the group, each from its own q slice at SH_Q + g * HB (cut K). */ + const uint32_t dims = k->f32 ? 8u : 16u; /* dims per pass: 32 bytes of K either way */ + const uint32_t nq = dims / 4u; /* q quads per pass, loaded in two halves */ + int kx[2], qq[4]; + kx[0] = V128(e); kx[1] = V128(e); + for (uint32_t i = 0; i < nq; i++) qq[i] = V128(e); + for (uint32_t g = 0; g < GC; g++) movrz(e, dot[g]); + movrz(e, d); + loop_begin(e); + int Lin = here(e); + imadi(e, qa, d, 4, NOREG); + ldg128_b(e, kx[0], ka, 0u, udesc, SB_GPR); + ldg128_b(e, kx[1], ka, 16u, udesc, SB_GPR); + for (uint32_t g = 0; g < GC; g++) { + for (int hh = 0; hh < 2; hh++) { + for (uint32_t i = 0; i < nq / 2u; i++) { uint32_t qi = (uint32_t)hh * (nq / 2u) + i; lds128_b(e, qq[qi], qa, g * HB + qi * 16u, SB_LD2); } + if (k->f32) { + for (int s4 = 0; s4 < 4; s4++) e_ffma_s(e, dot[g], qq[hh], s4, kx[hh], s4, dot[g]); /* dim hh*4+s4 */ + } else { + for (int s4 = 0; s4 < 4; s4++) { + int pi = hh * 4 + s4; /* bf16 pair: dims 2*pi (low half) and 2*pi+1 (high half) */ + imadi_s(e, lo, kx[hh], s4, 0x10000u, NOREG); /* low bf16 -> f32: bits << 16 */ + lop3andi_s(e, hi, kx[hh], s4, 0xffff0000u); /* high bf16 -> f32: keep the top half */ + e_ffma_s(e, dot[g], qq[pi / 2], (pi % 2) * 2, lo, 0, dot[g]); + e_ffma_s(e, dot[g], qq[pi / 2], (pi % 2) * 2 + 1, hi, 0, dot[g]); + } + } + } + } + wide(e, ka, c1, 32u, ka); + imadi(e, d, c1, dims, d); + isetp_ge_u32(e, d, c64); + bra_back_if_not_p0(e, Lin); + loop_end(e); + for (uint32_t g = 0; g < GC; g++) e_fmul(e, s[g], dot[g], scale); + if (k->divergent) { + region_join(e); /* every lane back before the cross-lane reductions */ + } else { + imadi(e, nb, over, 0x80000000u, cninf); /* over ? +inf : -inf (bits) */ + for (uint32_t g = 0; g < GC; g++) { e_fsub(e, ns, zero, s[g]); e_fmax(e, ns, ns, nb); e_fsub(e, s[g], zero, ns); } + } + for (uint32_t g = 0; g < GC; g++) { + if (g == 0) sts32(e, sOff, s[0]); + else { imadi(e, tsh, c1, g * HB, sOff); sts32(e, tsh, s[g]); } + } + sts32(e, oOff, koff); + + /* chunk max, per head */ + int t = V(e), mw = V(e), ra = V(e), rb = V(e), mc = V(e), Mn = V(e), diff = V(e), alpha[4], parg, p, sw, lc; + alpha[0] = V(e); parg = V(e); p = V(e); sw = V(e); lc = V(e); + for (uint32_t g = 1; g < GC; g++) alpha[g] = V(e); + static const uint32_t steps[5] = { 16, 8, 4, 2, 1 }; + for (uint32_t g = 0; g < GC; g++) { + shfl_down(e, t, s[g], steps[0]); e_fmax(e, mw, s[g], t); + for (int i = 1; i < 5; i++) { shfl_down(e, t, mw, steps[i]); e_fmax(e, mw, mw, t); } + if (g == 0) sts32(e, rOff, mw); + else { imadi(e, tsh, c1, g * HB, rOff); sts32(e, tsh, mw); } + } + bar_sync(e); + for (uint32_t g = 0; g < GC; g++) { + const int pg = GC == 1 ? p : s[g]; /* GC > 1: p overwrites the score register of its head */ + if (g == 0) { lds32(e, ra, c768); lds32(e, rb, c896); } + else { imadi(e, tsh, c1, g * HB, c768); lds32(e, ra, tsh); imadi(e, tsh, c1, g * HB, c896); lds32(e, rb, tsh); } + e_fmax(e, mc, ra, rb); + if (HD == 128) { + if (g == 0) { lds32(e, rc_, c1024); lds32(e, rd_, c1152); } + else { imadi(e, tsh, c1, g * HB, c1024); lds32(e, rc_, tsh); imadi(e, tsh, c1, g * HB, c1152); lds32(e, rd_, tsh); } + e_fmax(e, mc, mc, rc_); e_fmax(e, mc, mc, rd_); + } + e_fmax(e, Mn, M[g], mc); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_NO_MAX) { + movf(e, alpha[g], 1.0f); + mufu(e, BW_IR_MUFU_EX2, pg, s[g]); + e_fmax(e, M[g], Mn, mc); + } else { + e_fsub(e, diff, M[g], Mn); + mufu(e, BW_IR_MUFU_EX2, alpha[g], diff); + e_fmax(e, M[g], Mn, mc); /* M = Mn */ + e_fsub(e, parg, s[g], Mn); + mufu(e, BW_IR_MUFU_EX2, pg, parg); + } + } + bar_sync(e); /* everyone has read the max partials before they are overwritten */ + for (uint32_t g = 0; g < GC; g++) { + const int pg = GC == 1 ? p : s[g]; + if (g == 0) sts32(e, sOff, pg); + else { imadi(e, tsh, c1, g * HB, sOff); sts32(e, tsh, pg); } + shfl_down(e, t, pg, steps[0]); e_fadd(e, sw, pg, t); + for (int i = 1; i < 5; i++) { shfl_down(e, t, sw, steps[i]); e_fadd(e, sw, sw, t); } + if (g == 0) sts32(e, rOff, sw); + else { imadi(e, tsh, c1, g * HB, rOff); sts32(e, tsh, sw); } + } + bar_sync(e); + for (uint32_t g = 0; g < GC; g++) { + if (g == 0) { lds32(e, ra, c768); lds32(e, rb, c896); } + else { imadi(e, tsh, c1, g * HB, c768); lds32(e, ra, tsh); imadi(e, tsh, c1, g * HB, c896); lds32(e, rb, tsh); } + e_fadd(e, lc, ra, rb); + if (HD == 128) { + if (g == 0) { lds32(e, rc_, c1024); lds32(e, rd_, c1152); } + else { imadi(e, tsh, c1, g * HB, c1024); lds32(e, rc_, tsh); imadi(e, tsh, c1, g * HB, c1152); lds32(e, rd_, tsh); } + e_fadd(e, lc, lc, rc_); e_fadd(e, lc, lc, rd_); + } + e_ffma(e, L[g], L[g], alpha[g], lc); + if (k->mutant != OMEGA_GPU_ATTN_MUTANT_NO_RESCALE) e_fmul(e, acc[g], acc[g], alpha[g]); + } + + /* phase B (batched, 2026-10-12): dimension tid over the chunk's tokens, AT_TOK tokens per pass. The + * token offsets of a pass come in two 128-bit shared loads (SB_LD2, one wait), then each V address is + * computed into one register pair while the earlier V loads are in flight (emit_fixed_in_batch: the + * read barrier orders the overwrite after the load has read it) and its load issued on SB_GPR or + * SB_LD3; the p values follow as two more shared loads on SB_LD2; one wait for all of it. A token past + * ctx inside a pass has p = 0 and the offset of a real token (phase A), so it adds exactly 0. + * GC > 1: one V load per token feeds every head's accumulator from that head's p slice (cut K). */ + enum { AT_TOK = 8 }; + int kk = V(e), tt = V(e), oa = V(e), pa = V(e), ko4[2], pv4[2], va = V64(e), v[AT_TOK]; + for (int i = 0; i < 2; i++) { ko4[i] = V128(e); pv4[i] = V128(e); } + for (int i = 0; i < AT_TOK; i++) v[i] = V(e); + movrz(e, kk); + loop_begin(e); + int LB = here(e); + iadd3(e, tt, base, kk); + isetp_ge_u32(e, tt, lim); + int bB = bra_fwd_if_p0(e); + imadi(e, oa, kk, 4, c512); + imadi(e, pa, kk, 4, c256); + for (int i = 0; i < 2; i++) lds128_b(e, ko4[i], oa, (uint32_t)i * 16u, SB_LD2); + for (int i = 0; i < AT_TOK; i++) { + if (i == 0) wide_s(e, va, ko4[0], 0, 1, vb); /* ordinary: waits for the offsets */ + else wide_s_b(e, va, ko4[i / 4], i % 4, 1, vb); + uint32_t sb = (i < AT_TOK / 2) ? SB_GPR : SB_LD3; + if (k->f32) ldg_b(e, v[i], va, udesc, sb); else ldg16_b(e, v[i], va, udesc, sb); + } + if (GC == 1) { + for (int i = 0; i < 2; i++) lds128_b(e, pv4[i], pa, (uint32_t)i * 16u, SB_LD2); + for (int i = 0; i < AT_TOK; i++) { + if (!k->f32) imadi(e, v[i], v[i], 0x10000u, NOREG); + e_ffma_s(e, acc[0], pv4[i / 4], i % 4, v[i], 0, acc[0]); + } + } else { + if (!k->f32) for (int i = 0; i < AT_TOK; i++) imadi(e, v[i], v[i], 0x10000u, NOREG); + for (uint32_t g = 0; g < GC; g++) { + for (int i = 0; i < 2; i++) lds128_b(e, pv4[i], pa, g * HB + (uint32_t)i * 16u, SB_LD2); + for (int i = 0; i < AT_TOK; i++) e_ffma_s(e, acc[g], pv4[i / 4], i % 4, v[i], 0, acc[g]); + } + } + imadi(e, kk, c1, AT_TOK, kk); + isetp_ge_u32(e, kk, c64); + bra_back_if_not_p0(e, LB); + loop_end(e); + patch_fwd(e, bB); + bar_sync(e); /* phase B reads of s/p and offsets finish before the next chunk writes them */ + iadd3(e, base, base, c64); + isetp_ge_u32(e, base, lim); + bra_back_if_not_p0(e, Lout); + loop_end(e); + + patch_fwd(e, bZ); + if (part && GC == 1) { + /* partial row (seq * nqh + out head) * S + split: acc[HD] unnormalised, then M and L at words HD and HD + 1 + * (every lane stores the same CTA-wide M and L). Everything is re-derived here from the CTA ids and the + * constant bank so no extra value lives across the chunk loop (the hd 128 kernel sits at the register budget). */ + int cy = V(e), sq = V(e), sp = V(e), hh = V(e), nq_ = V(e), t4 = V(e), prow = V(e), poff = V(e); + int paddr = V64(e), maddr = V64(e), laddr = V64(e), Cp = V64(e); + s2r(e, cy, BW_SR_CTAID_Y); s2r(e, hh, BW_SR_CTAID_X); ldc32(e, nq_, ARG_NQH); ldc64(e, Cp, ARG_OUT); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) lop3xor(e, hh, hh, c1); + if (LS) { lop3andi(e, sp, cy, S - 1u); shri(e, sq, cy, LS); } else { movrz(e, sp); iadd3(e, sq, cy, zero); } + imadr(e, prow, sq, nq_, hh); + imadi(e, prow, prow, S, sp); + imadi(e, t4, tid, 4, NOREG); + imadi(e, poff, prow, (HD + 2u) * 4u, t4); + wide(e, paddr, poff, 1, Cp); + stg(e, paddr, acc[0], udesc); + imadi(e, poff, prow, (HD + 2u) * 4u, NOREG); + wide(e, maddr, poff, 1, Cp); + wide(e, maddr, c64, 4, maddr); + stg(e, maddr, M[0], udesc); + wide(e, laddr, c1, 4, maddr); + stg(e, laddr, L[0], udesc); + } else if (part) { + /* GC heads: row (seq * nqh + h * GC + g) * S + split for head g (OUT_ROW: g ^ 1 on the output side) */ + int cy = V(e), sq = V(e), sp = V(e), h0 = V(e), hg = V(e), nq_ = V(e), t4 = V(e), prow = V(e), poff = V(e); + int paddr = V64(e), maddr = V64(e), laddr = V64(e), Cp = V64(e); + s2r(e, cy, BW_SR_CTAID_Y); s2r(e, h0, BW_SR_CTAID_X); ldc32(e, nq_, ARG_NQH); ldc64(e, Cp, ARG_OUT); + imadi(e, h0, h0, GC, NOREG); + if (LS) { lop3andi(e, sp, cy, S - 1u); shri(e, sq, cy, LS); } else { movrz(e, sp); iadd3(e, sq, cy, zero); } + imadi(e, t4, tid, 4, NOREG); + for (uint32_t g = 0; g < GC; g++) { + imadi(e, hg, c1, g, h0); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) lop3xor(e, hg, hg, c1); + imadr(e, prow, sq, nq_, hg); + imadi(e, prow, prow, S, sp); + imadi(e, poff, prow, (HD + 2u) * 4u, t4); + wide(e, paddr, poff, 1, Cp); + stg(e, paddr, acc[g], udesc); + imadi(e, poff, prow, (HD + 2u) * 4u, NOREG); + wide(e, maddr, poff, 1, Cp); + wide(e, maddr, c64, 4, maddr); + stg(e, maddr, M[g], udesc); + wide(e, laddr, c1, 4, maddr); + stg(e, laddr, L[g], udesc); + } + } else if (GC == 1) { + int inv = V(e), o = V(e); + mufu(e, BW_IR_MUFU_RCP, inv, L[0]); + e_fmul(e, o, acc[0], inv); + stg(e, oaddr, o, udesc); + } else { + /* direct output, GC heads: row seq * nqh + h * GC + g (OUT_ROW: g ^ 1), re-derived from the CTA ids */ + int inv = V(e), o = V(e), cy = V(e), h0 = V(e), hg = V(e), nq_ = V(e), t4 = V(e), orow = V(e), ooff = V(e); + int oa64 = V64(e), Cp = V64(e); + s2r(e, cy, BW_SR_CTAID_Y); s2r(e, h0, BW_SR_CTAID_X); ldc32(e, nq_, ARG_NQH); ldc64(e, Cp, ARG_OUT); + imadi(e, h0, h0, GC, NOREG); + imadi(e, t4, tid, 4, NOREG); + for (uint32_t g = 0; g < GC; g++) { + imadi(e, hg, c1, g, h0); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) lop3xor(e, hg, hg, c1); + imadr(e, orow, cy, nq_, hg); + imadi(e, ooff, orow, HD * 4, t4); + wide(e, oa64, ooff, 1, Cp); + mufu(e, BW_IR_MUFU_RCP, inv, L[g]); + e_fmul(e, o, acc[g], inv); + stg(e, oa64, o, udesc); + } + } + tail(e); +} + +#define AT_GPR_BUDGET 96u /* cut K: the GQA-group hd 128 kernel carries four heads of running state (the matmul blocked kernels launch at 108) */ + +static int build_kernel(const KSpec *k, OmegaBlackwellKernel *kernel, BlackwellIRProgram **keep) { + BlackwellIRProgram *prog = omega_gpu_host_calloc(1, sizeof *prog); + if (!prog) return OMEGA_GPU_ATTN_CODEGEN_FAIL; + omega_bw_ir_init(prog); + Em e; memset(&e, 0, sizeof e); e.p = prog; + e.rg_mutant = (k->divergent == 2) ? 1 : 0; + gen_attention(&e, k); + if (e.depth != 0) e.err = -1; + if (e.rg.depth != 0) e.err = -1; /* a region left open has no join: refuse the build */ + int rc = OMEGA_GPU_ATTN_CODEGEN_FAIL; + int ra_rc = (e.err == 0) ? omega_bw_regalloc_solve(prog) : -1; + int loop_rc = (ra_rc == 0) ? check_loop_invariant(&e) : -1; +#ifdef OMEGA_ATTN_DEBUG + fprintf(stderr, "attn codegen f32=%d log2bs=%u log2gqa=%u mutant=%d emit_err=%d insns=%zu vregs=%d regalloc=%d loops=%d peak_gpr=%u\n", + (int)k->f32, k->log2bs, k->log2gqa, k->mutant, e.err, prog->count, prog->regalloc.num_vregs, ra_rc, loop_rc, prog->regalloc.peak_gpr_usage); +#endif + if (e.err == 0 && ra_rc == 0 && loop_rc == 0 && prog->regalloc.peak_gpr_usage <= AT_GPR_BUDGET) { + size_t max_bytes = (size_t)BW_MAX_IR_INSNS * 16; + memset(kernel, 0, sizeof *kernel); + kernel->code = omega_gpu_host_alloc(max_bytes); + size_t emitted = 0; + if (kernel->code && omega_bw_encode_program(prog, kernel->code, max_bytes, &emitted) == 0) { + kernel->code_size = emitted; + kernel->insn_count = emitted / 16; + kernel->gpr_count = prog->regalloc.peak_gpr_usage; + kernel->uniform_gpr_count = prog->regalloc.peak_ugpr_usage; + sha256_hash(kernel->code, kernel->code_size, kernel->code_digest); + rc = OMEGA_GPU_ATTN_OK; + } else { + omega_gpu_host_free(kernel->code); kernel->code = NULL; + } + } + if (keep && rc == OMEGA_GPU_ATTN_OK) *keep = prog; else omega_gpu_host_free(prog); + return rc; +} + +/* --------------------------------------------------------- kernel cache */ + +/* One kernel per KSpec; the device copy is uploaded once and stays resident for + * the process (cut 4b). The IR program is kept for the host simulator. */ +static int g_mutant; +static int g_divergent; /* omega #308 R2 test hook: see KSpec.divergent */ +static bool g_dedupe = true; /* shared-prefix staging dedupe; false = legacy per-sequence staging (test hook) */ +typedef struct { int used; KSpec k; OmegaBlackwellKernel kernel; BlackwellIRProgram *prog; OmegaGpuMem code; } Slot; +static OmegaGpuAttnSim g_sim; +static Slot g_cache[16]; /* split variants (cut F) multiply the shapes in flight */ +static int g_split = -1; /* test hook: forced log2split (0..OMEGA_GPU_ATTN_MAX_LOG2SPLIT), -1 = chosen per launch from the context */ +static OmegaGpuScratch g_q, g_pool, g_tab, g_out; /* staging, grown to the high-water mark, reused per call */ +static OmegaGpuMem g_resident; /* the resident KV pool (omega_gpu_attention_pool_alloc); cpu NULL = none */ +static bool g_hooked; +#define LOCK() omega_gpu_session_lock() +#define UNLOCK() omega_gpu_session_unlock() + +void omega_gpu_attention_test_set_simulator(OmegaGpuAttnSim sim) { LOCK(); g_sim = sim; UNLOCK(); } +static uint32_t g_sim_shared_bytes; /* shared bytes the launcher would declare for the kernel the simulator is running */ +uint32_t omega_gpu_attention_test_shared_bytes(void) { return g_sim_shared_bytes; } +void omega_gpu_attention_test_set_dedupe(bool on) { LOCK(); g_dedupe = on; UNLOCK(); } +void omega_gpu_attention_test_set_split(int log2split) { LOCK(); g_split = (log2split >= 0 && log2split <= (int)OMEGA_GPU_ATTN_MAX_LOG2SPLIT) ? log2split : -1; UNLOCK(); } + +/* ---- resident KV pool (see the header) ---- */ + +static int dev_open_locked(void); + +/* The kernel computes block_id * block_stride + slot * token_stride + head offset in 32 bits before + * widening onto the 64-bit layer base: one layer slice (both planes, every token and head of the + * block) past the block's start must stay inside 32 bits. */ +static bool resident_fits(const OmegaGpuKvLayout *ly, uint32_t block_id) { + return ly->block_stride_bytes <= 0xffffffffull && + (uint64_t)block_id * ly->block_stride_bytes + ly->layer_stride_bytes <= 0xffffffffull; +} +bool omega_gpu_attention_test_resident_fits(const OmegaGpuKvLayout *layout, uint32_t block_id) { + return layout && resident_fits(layout, block_id); +} + +int omega_gpu_attention_pool_alloc(size_t bytes, void **cpu) { + if (!cpu || bytes == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + *cpu = NULL; + LOCK(); + if (g_resident.cpu) { omega_gpu_session_set_error("attention pool: already allocated"); UNLOCK(); return OMEGA_GPU_ATTN_BAD_ARGS; } + if (g_sim) { + g_resident.cpu = omega_gpu_host_calloc(1, bytes); + if (!g_resident.cpu) { UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + g_resident.va = (uintptr_t)g_resident.cpu; g_resident.size = bytes; + } else { + int rc = dev_open_locked(); + if (rc != OMEGA_GPU_ATTN_OK) { UNLOCK(); return rc; } + if (omega_gpu_session_alloc(bytes, &g_resident) != 0) { memset(&g_resident, 0, sizeof g_resident); UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + } + *cpu = g_resident.cpu; + UNLOCK(); + return OMEGA_GPU_ATTN_OK; +} + +void omega_gpu_attention_pool_free(void) { + LOCK(); + if (g_resident.cpu) { if (g_sim) omega_gpu_host_free(g_resident.cpu); else omega_gpu_session_free(&g_resident); } + memset(&g_resident, 0, sizeof g_resident); + UNLOCK(); +} + +static void cache_clear_locked(void) { + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used) { omega_gpu_host_free(g_cache[i].kernel.code); omega_gpu_host_free(g_cache[i].prog); omega_gpu_session_free(&g_cache[i].code); memset(&g_cache[i], 0, sizeof g_cache[i]); } +} + +void omega_gpu_attention_cache_clear(void) { + LOCK(); + cache_clear_locked(); + UNLOCK(); +} + +/* Called by the session (lock held, device still open) right before it closes. */ +static void on_session_close(void) { + cache_clear_locked(); + memset(&g_resident, 0, sizeof g_resident); /* the session's memory goes with it; the caller's mapping is dead */ + omega_gpu_session_scratch_free(&g_q); omega_gpu_session_scratch_free(&g_pool); + omega_gpu_session_scratch_free(&g_tab); omega_gpu_session_scratch_free(&g_out); +} + +void omega_gpu_attention_test_set_mutant(OmegaGpuAttnMutant m) { + LOCK(); + g_mutant = (int)m; + cache_clear_locked(); + UNLOCK(); +} + +/* Caller holds the lock. Builds the kernel if needed; uploads the device copy when + * `upload` (the chip path; the simulator never needs one). */ +static int kernel_for(bool f32, uint32_t log2bs, uint32_t log2gqa, uint32_t hd, int split, bool upload, Slot **out, bool *hit) { + KSpec k = { .f32 = f32, .log2bs = log2bs, .log2gqa = log2gqa, .mutant = g_mutant, .divergent = g_divergent, .hd = hd, .split = split }; + Slot *s = NULL; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used && g_cache[i].k.f32 == k.f32 && g_cache[i].k.log2bs == k.log2bs && g_cache[i].k.log2gqa == k.log2gqa && g_cache[i].k.mutant == k.mutant && g_cache[i].k.divergent == k.divergent && g_cache[i].k.hd == k.hd && g_cache[i].k.split == k.split) { /* field compare: memcmp would read struct padding */ + s = &g_cache[i]; *hit = true; break; + } + if (!s) { + OmegaBlackwellKernel kern; BlackwellIRProgram *kp = NULL; + int rc = build_kernel(&k, &kern, &kp); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + size_t slot = 0; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) if (!g_cache[i].used) { slot = i; break; } + s = &g_cache[slot]; + if (s->used) { omega_gpu_host_free(s->kernel.code); omega_gpu_host_free(s->prog); omega_gpu_session_free(&s->code); } /* full: evict slot 0 */ + memset(s, 0, sizeof *s); + s->used = 1; s->k = k; s->kernel = kern; s->prog = kp; + *hit = false; + } + if (upload && !s->code.cpu) { + if (omega_gpu_session_alloc_code(s->kernel.code_size, &s->code) != 0) return OMEGA_GPU_ATTN_CHIP_FAIL; + memcpy(s->code.cpu, s->kernel.code, s->kernel.code_size); + if (omega_gpu_session_sync_to_gpu(&s->code) != 0) { omega_gpu_session_free(&s->code); return OMEGA_GPU_ATTN_CHIP_FAIL; } + } + *out = s; + return OMEGA_GPU_ATTN_OK; +} + +int omega_gpu_attention_codegen_hd(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, uint32_t head_dim, OmegaBlackwellKernel *kernel) { + if (!kernel || log2_block_size > 16 || log2_gqa > 6) return OMEGA_GPU_ATTN_BAD_ARGS; + if (head_dim != 64u && head_dim != 128u) return OMEGA_GPU_ATTN_TOO_LARGE; + LOCK(); + KSpec k = { .f32 = kv_f32, .log2bs = log2_block_size, .log2gqa = log2_gqa, .mutant = g_mutant, .divergent = g_divergent, .hd = head_dim, .split = -1 }; + UNLOCK(); + return build_kernel(&k, kernel, NULL); +} + +int omega_gpu_attention_codegen(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, OmegaBlackwellKernel *kernel) { + return omega_gpu_attention_codegen_hd(kv_f32, log2_block_size, log2_gqa, OMEGA_GPU_ATTN_HEAD_DIM, kernel); +} + +const char *omega_gpu_attention_last_error(void) { return omega_gpu_session_last_error(); } + +/* ------------------------------------------------------------ launcher */ + +#define AT_POISON 0xffbadbadu +#define AT_WAIT_MS 600000ull + +static uint64_t now_ns(void) { return omega_gpu_session_now_ns(); } /* the platform clock (CLOCK_NS) */ + +typedef OmegaGpuAttnLaunch Launch; + +/* Caller holds the lock. Chip path: open the shared device on first use. */ +static int dev_open_locked(void) { + if (!g_hooked) { (void)omega_gpu_session_on_close(on_session_close); g_hooked = true; } + return omega_gpu_session_open() ? OMEGA_GPU_ATTN_OK : OMEGA_GPU_ATTN_CHIP_FAIL; +} + +/* Where a call stages the KV slice it is about to hand the kernel: straight into the + * device staging buffer on the chip path (one copy), a host buffer under the simulator. + * Caller holds the lock; the result is valid until the next staging call. */ +static void *stage_target(size_t bytes, void **host_tmp, int *fail_rc) { + *host_tmp = NULL; + *fail_rc = OMEGA_GPU_ATTN_CHIP_FAIL; + if (g_sim) { *host_tmp = omega_gpu_host_alloc(bytes ? bytes : 1); return *host_tmp; } + int r = omega_gpu_session_scratch(&g_pool, bytes); + if (r != 0) { if (r == OMEGA_GPU_SESSION_SCRATCH_RESERVED) *fail_rc = OMEGA_GPU_ATTN_TOO_LARGE; return NULL; } /* reserved bound exceeded: loud, no allocation */ + return g_pool.mem.cpu; +} + +/* One launch through the shared session (omega_gpu_session_launch: shader-cache + * invalidate, constant bank, QMD0/QMD1, first marker, L2_FLUSH_DIRTY, second marker), + * then readback and the poison scan. L->pool may already be the pool staging buffer. */ +static int run_launch(const Slot *ks, const Launch *L, OmegaGpuAttnInfo *info) { + int sr = omega_gpu_session_scratch(&g_q, L->q_bytes); + if (!sr) sr = omega_gpu_session_scratch(&g_tab, L->tab_bytes); + if (!sr) sr = omega_gpu_session_scratch(&g_out, L->out_bytes); + if (!sr && !L->pool_va && L->pool != g_pool.mem.cpu) sr = omega_gpu_session_scratch(&g_pool, L->pool_bytes); + if (sr) return sr == OMEGA_GPU_SESSION_SCRATCH_RESERVED ? OMEGA_GPU_ATTN_TOO_LARGE : OMEGA_GPU_ATTN_CHIP_FAIL; + memcpy(g_q.mem.cpu, L->q, L->q_bytes); + if (!L->pool_va && L->pool != g_pool.mem.cpu) memcpy(g_pool.mem.cpu, L->pool, L->pool_bytes); + const uint64_t pool_va = L->pool_va ? L->pool_va : g_pool.mem.va; /* resident: the caller's KV, read in place */ + memcpy(g_tab.mem.cpu, L->tab, L->tab_bytes); + size_t out_words = L->out_bytes / 4; + uint32_t *out_dev = (uint32_t *)g_out.mem.cpu; + for (size_t i = 0; i < out_words; i++) out_dev[i] = AT_POISON; + /* the KV this launch reads: the staged pool, or the resident pool the caller wrote in place */ + if (omega_gpu_session_sync_to_gpu(&g_q.mem) != 0 || omega_gpu_session_sync_to_gpu(&g_tab.mem) != 0 || + omega_gpu_session_sync_to_gpu(&g_out.mem) != 0 || omega_gpu_session_sync_to_gpu(L->pool_va ? &g_resident : &g_pool.mem) != 0) + return OMEGA_GPU_ATTN_CHIP_FAIL; + + uint32_t args[ARG_WORDS]; + args[0] = (uint32_t)g_q.mem.va; args[1] = (uint32_t)(g_q.mem.va >> 32); + args[2] = (uint32_t)pool_va; args[3] = (uint32_t)(pool_va >> 32); + args[4] = (uint32_t)g_out.mem.va; args[5] = (uint32_t)(g_out.mem.va >> 32); + args[6] = (uint32_t)g_tab.mem.va; args[7] = (uint32_t)(g_tab.mem.va >> 32); + memcpy(&args[8], L->params, sizeof L->params); + OmegaGpuLaunch GL = { + .code_va = ks->code.va, .gpr_count = AT_GPR_BUDGET, .threads_x = ks->k.hd, .threads_y = 1, .shared_bytes = shared_bytes_for(ks->k.hd, ks->k.log2gqa), /* (3 GC + 1) arrays of hd words: 1024 B for hd 64, 2048 B for hd 128 gqa 1, 6656 B for hd 128 gqa 4 */ + .grid_x = L->grid_x, .grid_y = L->grid_y, .num_elements = out_words, + .args = args, .n_args = ARG_WORDS, .timeout_ms = AT_WAIT_MS, + }; + uint64_t elapsed = 0; uint32_t marker = 0; + if (omega_gpu_session_launch(&GL, &elapsed, &marker) != 0) return OMEGA_GPU_ATTN_CHIP_FAIL; + if (omega_gpu_session_sync_to_cpu(&g_out.mem) != 0) return OMEGA_GPU_ATTN_CHIP_FAIL; + + memcpy(L->out, g_out.mem.cpu, L->out_bytes); + uint32_t unwritten = 0; + for (size_t i = 0; i < out_words; i++) if (((uint32_t *)L->out)[i] == AT_POISON) unwritten++; + if (info) { + info->chip_calls++; + info->elapsed_ns += elapsed; + info->completion_marker = marker; + info->unwritten_words += unwritten; + info->threads_per_cta = ks->k.hd; + info->ctas_last_launch = L->grid_x * L->grid_y; + } + return unwritten ? OMEGA_GPU_ATTN_UNWRITTEN : OMEGA_GPU_ATTN_OK; +} + +/* Caller holds the lock. Accounts the launch's q / table / output traffic (the KV + * staging bytes are accounted where the slices are copied). */ +static int launch(const Slot *ks, const Launch *L, OmegaGpuAttnInfo *info) { + if (info) { + info->q_bytes += L->q_bytes; info->tab_bytes += L->tab_bytes; info->out_bytes += L->out_bytes; + info->kv_source = L->pool_va ? OMEGA_GPU_ATTN_KV_RESIDENT : OMEGA_GPU_ATTN_KV_STAGED; + } + if (g_sim) { g_sim_shared_bytes = shared_bytes_for(ks->k.hd, ks->k.log2gqa); return g_sim(ks->prog, L, info); } + return run_launch(ks, L, info); +} + +/* ---- opt-in serving reservation (see the header) ---- */ + +static int check_heads(uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t *log2gqa); +static int log2_exact(uint32_t v, uint32_t *out); + +int omega_gpu_attention_reserve(uint32_t max_context, uint32_t max_seqs, uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t kv_block_size) { + uint32_t log2gqa, log2bs; + if (max_context == 0 || max_seqs == 0) { omega_gpu_session_set_error("attention reserve: zero bound"); return OMEGA_GPU_ATTN_BAD_ARGS; } + if (kv_block_size && log2_exact(kv_block_size, &log2bs) != 0) { omega_gpu_session_set_error("attention reserve: block size not a power of two"); return OMEGA_GPU_ATTN_BAD_ARGS; } + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) { omega_gpu_session_set_error("attention reserve: bad head shape"); return rc; } + /* KV staging, worst case over the two paths, per sequence: contiguous f32 holds both planes for max_context tokens + * (2 * ctx * kvh * hd * 4); paged bf16 stages whole blocks of both planes (round_up(ctx, block) * kvh * hd * 4), which + * is the larger one when max_context is under half a block. */ + size_t per_seq = 2u * max_context * (size_t)num_kv_heads * head_dim * 4u; + if (kv_block_size) { + size_t paged = ((size_t)max_context + kv_block_size - 1) / kv_block_size * kv_block_size * num_kv_heads * head_dim * 4u; + if (paged > per_seq) per_seq = paged; + } + const size_t pool = per_seq * max_seqs; + /* q rows for every sequence, and the output buffer sized for the paged path's partials of one launch + * (cut J: up to 2^MAX_LOG2SPLIT partials of head_dim + 2 words per (sequence, head), at most + * MAX_CTAS / num_q_heads sequences per launch; the rows reserve usually asks for more). */ + const size_t q_bytes = (size_t)max_seqs * num_q_heads * head_dim * 4u; + size_t launch_seqs = OMEGA_GPU_ATTN_MAX_CTAS / num_q_heads; + if (launch_seqs == 0) launch_seqs = 1; + if (launch_seqs > max_seqs) launch_seqs = max_seqs; + const size_t partials = launch_seqs * num_q_heads * ((size_t)1u << OMEGA_GPU_ATTN_MAX_LOG2SPLIT) * ((size_t)head_dim + 2u) * 4u; + const size_t qo = q_bytes > partials ? q_bytes : partials; + const size_t tab = ((size_t)max_seqs * max_context + max_seqs) * 4u; + LOCK(); + rc = OMEGA_GPU_ATTN_OK; + if (g_sim) rc = OMEGA_GPU_ATTN_OK; /* the simulator stages in host memory: nothing to reserve */ + else if (dev_open_locked() != OMEGA_GPU_ATTN_OK) rc = OMEGA_GPU_ATTN_CHIP_FAIL; + else if (omega_gpu_session_scratch_reserve(&g_pool, pool) || omega_gpu_session_scratch_reserve(&g_q, q_bytes) || + omega_gpu_session_scratch_reserve(&g_out, qo) || omega_gpu_session_scratch_reserve(&g_tab, tab < 8 ? 8 : tab)) { + /* roll back this API's own buffers: a failed reserve leaves nothing flagged (growth allowed as before) */ + omega_gpu_session_scratch_unreserve(&g_pool); omega_gpu_session_scratch_unreserve(&g_q); + omega_gpu_session_scratch_unreserve(&g_out); omega_gpu_session_scratch_unreserve(&g_tab); + rc = OMEGA_GPU_ATTN_CHIP_FAIL; + } + UNLOCK(); + return rc; +} + +int omega_gpu_attention_reserve_rows(uint32_t max_rows, uint32_t num_q_heads, uint32_t head_dim) { + if (max_rows == 0 || num_q_heads == 0 || num_q_heads > OMEGA_GPU_ATTN_MAX_Q_HEADS || (head_dim != 64u && head_dim != 128u)) { + omega_gpu_session_set_error("attention reserve rows: bad bound"); + return OMEGA_GPU_ATTN_BAD_ARGS; + } + uint32_t per = OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads; + if (per == 0) per = 1; + if (per > max_rows) per = max_rows; + const size_t qo = (size_t)per * num_q_heads * head_dim * 4u, tab = (size_t)per * 8u; + LOCK(); + int rc = OMEGA_GPU_ATTN_OK; + if (g_sim) rc = OMEGA_GPU_ATTN_OK; + else if (dev_open_locked() != OMEGA_GPU_ATTN_OK) rc = OMEGA_GPU_ATTN_CHIP_FAIL; + else if ((qo > g_q.cap && omega_gpu_session_scratch_reserve(&g_q, qo)) || + (qo > g_out.cap && omega_gpu_session_scratch_reserve(&g_out, qo)) || + (tab > g_tab.cap && omega_gpu_session_scratch_reserve(&g_tab, tab))) + rc = OMEGA_GPU_ATTN_CHIP_FAIL; /* growth failed; whatever grew stays reserved at its larger size */ + UNLOCK(); + return rc; +} +void omega_gpu_attention_unreserve(void) { + LOCK(); + omega_gpu_session_scratch_unreserve(&g_pool); omega_gpu_session_scratch_unreserve(&g_q); + omega_gpu_session_scratch_unreserve(&g_out); omega_gpu_session_scratch_unreserve(&g_tab); + UNLOCK(); +} + +/* ------------------------------------------------------- public entries */ + +static void info_begin(OmegaGpuAttnInfo *info, const OmegaBlackwellKernel *k, bool hit) { + if (!info) return; + memset(info, 0, sizeof *info); + info->kernel_cache_hit = hit; + info->gpr_count = k->gpr_count; + info->insn_count = (uint32_t)k->insn_count; + omega_gpu_fmt(info->target_chip, sizeof info->target_chip, "NVIDIA DGX Spark (Grace Blackwell GB10)"); + info->sm_architecture = 121; +} +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static int log2_exact(uint32_t v, uint32_t *out) { + if (v == 0 || (v & (v - 1))) return -1; + uint32_t l = 0; while ((1u << l) != v) l++; + *out = l; return 0; +} +/* log2(e) / sqrt(head_dim) with the square roots as literals (8 and 11.313708498984761 = sqrt(128), both exactly what sqrt() returns): + * the library must not need libm (omegatool links without -lm; a constant head_dim folded sqrt away, a runtime one does not). */ +static float score_scale(uint32_t hd) { return (float)(1.4426950408889634 / (hd == 128u ? 11.313708498984761 : 8.0)); } + +/* Common head-shape checks; returns log2 of the gqa ratio. */ +static int check_heads(uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t *log2gqa) { + if (num_q_heads == 0 || num_kv_heads == 0 || head_dim == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + if ((head_dim != 64u && head_dim != 128u) || num_q_heads > OMEGA_GPU_ATTN_MAX_Q_HEADS) return OMEGA_GPU_ATTN_TOO_LARGE; + if (num_q_heads % num_kv_heads != 0 || log2_exact(num_q_heads / num_kv_heads, log2gqa) != 0) return OMEGA_GPU_ATTN_BAD_ARGS; + return OMEGA_GPU_ATTN_OK; +} + +/* Common prologue of every chip entry (lock held on success): device, kernel, info. */ +static int begin(bool f32, uint32_t log2bs, uint32_t log2gqa, uint32_t hd, int split, Slot **ks, OmegaGpuAttnInfo *info) { + LOCK(); + int rc = g_sim ? OMEGA_GPU_ATTN_OK : dev_open_locked(); + bool hit = false; + if (rc == OMEGA_GPU_ATTN_OK) rc = kernel_for(f32, log2bs, log2gqa, hd, split, !g_sim, ks, &hit); + if (rc != OMEGA_GPU_ATTN_OK) { UNLOCK(); return rc; } + info_begin(info, &(*ks)->kernel, hit); + return OMEGA_GPU_ATTN_OK; +} + +int omega_gpu_gqa_attention_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t seq_len, uint32_t num_q_heads, uint32_t num_kv_heads, + uint32_t head_dim, float *out, OmegaGpuAttnInfo *info) { + uint64_t t0 = now_ns(); + if (!q || !k_cache || !v_cache || !out) return OMEGA_GPU_ATTN_BAD_ARGS; + uint32_t log2gqa; + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + if (seq_len > OMEGA_GPU_ATTN_MAX_GQA_CTX) return OMEGA_GPU_ATTN_TOO_LARGE; + const uint32_t HD = head_dim; + size_t n_out = (size_t)num_q_heads * HD; + if (seq_len == 0) { memset(out, 0, n_out * 4); if (info) { memset(info, 0, sizeof *info); info->call_ns = now_ns() - t0; } return OMEGA_GPU_ATTN_OK; } + Slot *ks = NULL; + const uint32_t log2bs = 12; /* one block of 4096 slots */ + rc = begin(true, log2bs, log2gqa, HD, -1, &ks, info); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + size_t plane = (size_t)seq_len * num_kv_heads * HD * 4; + void *host_tmp = NULL; + int stage_rc; + uint8_t *pool = stage_target(2 * plane, &host_tmp, &stage_rc); + if (!pool) { UNLOCK(); return stage_rc; } + memcpy(pool, k_cache, plane); + memcpy(pool + plane, v_cache, plane); + if (info) { info->kv_bytes_staged += 2 * plane; info->kv_bytes_naive += 2 * plane; info->kv_blocks_logical += 1; info->kv_blocks_unique += 1; } /* one contiguous pseudo-block */ + uint32_t tab[2] = { 0, seq_len }; /* table row {0}, then the context length at byte 4 */ + Launch L = { + .q = q, .q_bytes = n_out * 4, .pool = pool, .pool_bytes = 2 * plane, .tab = tab, .tab_bytes = sizeof tab, + .out = out, .out_bytes = n_out * 4, .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = 1, + .params = { 1, f2u(score_scale(HD)), (uint32_t)(2 * plane), num_kv_heads * HD * 4, (uint32_t)plane, HD * 4, num_q_heads, 4 } + }; + rc = launch(ks, &L, info); + omega_gpu_host_free(host_tmp); + UNLOCK(); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +/* Rows per launch of the rows path: the CTA bound, then (under a reservation) what the q buffer holds. Caller holds the lock. */ +static uint32_t rows_per_launch(uint32_t num_rows, uint32_t num_q_heads, size_t row_bytes) { + uint32_t per = OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads; + if (per == 0) per = 1; + if (per > num_rows) per = num_rows; + if (!g_sim && g_q.reserved && g_q.cap >= row_bytes) { + size_t fit = g_q.cap / row_bytes; + if (fit < per) per = (uint32_t)fit; + } + return per; +} + +int omega_gpu_gqa_attention_rows_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t base_len, uint32_t num_rows, uint32_t num_q_heads, + uint32_t num_kv_heads, uint32_t head_dim, float *out, OmegaGpuAttnInfo *info) { + uint64_t t0 = now_ns(); + if (!q || !k_cache || !v_cache || !out || num_rows == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + uint32_t log2gqa; + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + if ((uint64_t)base_len + num_rows > OMEGA_GPU_ATTN_MAX_GQA_CTX) return OMEGA_GPU_ATTN_TOO_LARGE; + const uint32_t HD = head_dim, total = base_len + num_rows; + const size_t row = (size_t)num_q_heads * HD; + Slot *ks = NULL; + const uint32_t log2bs = 12; /* one block of 4096 slots, as the single-row call */ + rc = begin(true, log2bs, log2gqa, HD, -1, &ks, info); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + /* the whole context (every row's keys are a prefix of it) staged once */ + size_t plane = (size_t)total * num_kv_heads * HD * 4; + void *host_tmp = NULL; + int stage_rc; + uint8_t *pool = stage_target(2 * plane, &host_tmp, &stage_rc); + if (!pool) { UNLOCK(); return stage_rc; } + memcpy(pool, k_cache, plane); + memcpy(pool + plane, v_cache, plane); + if (info) { info->kv_bytes_staged += 2 * plane; info->kv_bytes_naive += (uint64_t)num_rows * 2 * plane; info->kv_blocks_logical += num_rows; info->kv_blocks_unique += 1; } + const uint32_t per = rows_per_launch(num_rows, num_q_heads, row * 4); + /* table of one launch: per block ids (all 0: the one staged block), then per context lengths */ + uint32_t *tab = omega_gpu_host_calloc(2 * (size_t)per, sizeof *tab); + if (!tab) { omega_gpu_host_free(host_tmp); UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + for (uint32_t r0 = 0; r0 < num_rows && rc == OMEGA_GPU_ATTN_OK; r0 += per) { + const uint32_t nr = num_rows - r0 < per ? num_rows - r0 : per; + for (uint32_t i = 0; i < nr; i++) { tab[i] = 0; tab[nr + i] = base_len + r0 + i + 1; } + Launch L = { + .q = q + (size_t)r0 * row, .q_bytes = (size_t)nr * row * 4, .pool = pool, .pool_bytes = 2 * plane, + .tab = tab, .tab_bytes = (size_t)2 * nr * 4, .out = out + (size_t)r0 * row, .out_bytes = (size_t)nr * row * 4, + .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = nr, + .params = { 1, f2u(score_scale(HD)), (uint32_t)(2 * plane), num_kv_heads * HD * 4, (uint32_t)plane, HD * 4, num_q_heads, nr * 4 } + }; + rc = launch(ks, &L, info); + } + omega_gpu_host_free(tab); + omega_gpu_host_free(host_tmp); + UNLOCK(); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +/* Paged path shared by the single and batched entries. tables[s] has n_blocks[s] entries + * (already filtered of negatives), ctx[s] the context length. */ +/* cut F: a sequence's own split count from its context alone (the kernel computes the same): log2 of the largest + * power of two <= min(2^MAX_LOG2SPLIT, chunks), chunks = ceil(ctx / HD) (cut J: one whole chunk per split; cut F took two). */ +static uint32_t own_log2split(uint32_t ctx, uint32_t HD) { + uint32_t x = (ctx + HD - 1) / HD, l = 0; + while (l < OMEGA_GPU_ATTN_MAX_LOG2SPLIT && (2u << l) <= x) l++; + return l; +} + +/* 2^x in float without the math library (the engine archive also links where there is none): round x to the + * nearest integer n, 2^f on f in [-0.5, 0.5] by the Cephes exp2f polynomial, scale by 2^n through the exponent + * bits. x <= -127 (so also -inf, an empty split) is 0. The combine only passes x <= 0. */ +static float host_exp2(float x) { + if (x <= -127.0f) return 0.0f; + if (x > 127.0f) x = 127.0f; + int n = (int)(x + (x < 0.0f ? -0.5f : 0.5f)); + const float f = x - (float)n; + float px = 1.535336188319500e-4f; + px = px * f + 1.339887440266574e-3f; + px = px * f + 9.618437357674640e-3f; + px = px * f + 5.550332471162809e-2f; + px = px * f + 2.402264791363012e-1f; + px = px * f + 6.931472028550421e-1f; + px = 1.0f + f * px; + if (n < -126) { px *= 0.5f; n = -126; } + union { uint32_t u; float f; } sc; + sc.u = (uint32_t)(n + 127) << 23; + return px * sc.f; +} + +/* cut F: fold the per-split partials of each (sequence, head) row into out. w_s = 2^(M_s - max M): the kernel's + * running max and sum live in the log2 domain (scale carries log2 e, MUFU.EX2). A row whose every split is empty + * (context 0) is 0. */ +static void combine_splits(const float *part, float *out, size_t rows, uint32_t S, uint32_t HD) { + const size_t pw = (size_t)HD + 2; + for (size_t r = 0; r < rows; r++) { + const float *p = part + r * S * pw; + float *o = out + r * HD; + float mx = -__builtin_inff(); + for (uint32_t s = 0; s < S; s++) if (p[s * pw + HD] > mx) mx = p[s * pw + HD]; + if (!(mx > -__builtin_inff())) { memset(o, 0, (size_t)HD * 4); continue; } + float w[1u << OMEGA_GPU_ATTN_MAX_LOG2SPLIT], lsum = 0.0f; + for (uint32_t s = 0; s < S; s++) { w[s] = host_exp2(p[s * pw + HD] - mx); lsum += w[s] * p[s * pw + HD + 1]; } + const float inv = 1.0f / lsum; + for (uint32_t d = 0; d < HD; d++) { + float a = 0.0f; + for (uint32_t s = 0; s < S; s++) a += w[s] * p[s * pw + d]; + o[d] = a * inv; + } + } +} + +static int paged_core(const float *q, const uint8_t *pool, const OmegaGpuKvLayout *ly, + const uint32_t *const *tables, const uint32_t *n_blocks, const uint32_t *ctx, + uint32_t num_seqs, uint32_t layer_idx, uint32_t num_q_heads, uint32_t num_kv_heads, + uint32_t head_dim, float *out, OmegaGpuAttnInfo *info) { + uint64_t t0 = now_ns(); + uint32_t log2gqa, log2bs; + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + const uint32_t HD = head_dim; + if (!ly || layer_idx >= ly->num_layers || log2_exact(ly->block_size, &log2bs) != 0) return OMEGA_GPU_ATTN_BAD_ARGS; + /* the oracle addresses heads as kv_head * head_dim * 2 inside a token: the layout must agree */ + if (ly->head_stride_bytes != HD * 2 || ly->token_stride_bytes != (uint64_t)num_kv_heads * HD * 2 || + ly->kv_plane_stride_bytes != (uint64_t)ly->block_size * ly->token_stride_bytes || + ly->layer_stride_bytes != 2 * ly->kv_plane_stride_bytes || ly->block_stride_bytes < (uint64_t)ly->num_layers * ly->layer_stride_bytes) + return OMEGA_GPU_ATTN_BAD_ARGS; + size_t row = (size_t)num_q_heads * HD; + /* effective context per sequence and block id range check */ + uint32_t *eff = omega_gpu_host_calloc(num_seqs ? num_seqs : 1, sizeof *eff); + if (!eff) return OMEGA_GPU_ATTN_CHIP_FAIL; + for (uint32_t s = 0; s < num_seqs; s++) { + uint64_t cap = (uint64_t)n_blocks[s] * ly->block_size; + eff[s] = (uint32_t)(ctx[s] < cap ? ctx[s] : cap); + for (uint32_t b = 0; b < n_blocks[s]; b++) { + uint64_t id = tables[s][b]; + if (id >= ly->num_blocks || id * ly->block_stride_bytes + (uint64_t)(layer_idx + 1) * ly->layer_stride_bytes > ly->pool_bytes) { omega_gpu_host_free(eff); return OMEGA_GPU_ATTN_BAD_ARGS; } + } + } + uint32_t seqs_per_launch = OMEGA_GPU_ATTN_MAX_CTAS / num_q_heads; + if (seqs_per_launch == 0) seqs_per_launch = 1; + /* cut F: split each (sequence, head) over 2^log2split CTAs along the context: at least one whole chunk per + * split, from the longest context in the call, within the split launch bound (the test hook forces it). */ + uint32_t log2split = 0; + if (g_split >= 0) log2split = (uint32_t)g_split; + else for (uint32_t s = 0; s < num_seqs; s++) { uint32_t l = own_log2split(eff[s], HD); if (l > log2split) log2split = l; } + while (log2split && ((uint64_t)num_q_heads * seqs_per_launch << log2split) > OMEGA_GPU_ATTN_SPLIT_MAX_CTAS) log2split--; + const uint32_t S = 1u << log2split; + float *part = omega_gpu_host_alloc((size_t)seqs_per_launch * num_q_heads * S * (HD + 2) * 4); /* the partials of one launch */ + if (!part) { omega_gpu_host_free(eff); return OMEGA_GPU_ATTN_CHIP_FAIL; } + Slot *ks = NULL; + rc = begin(false, log2bs, log2gqa, HD, (int)log2split, &ks, info); + if (rc != OMEGA_GPU_ATTN_OK) { omega_gpu_host_free(eff); omega_gpu_host_free(part); return rc; } + uint32_t maxb = 1; + for (uint32_t s = 0; s < num_seqs; s++) if (n_blocks[s] > maxb) maxb = n_blocks[s]; + /* Resident pool (2026-10-12): the caller's pool IS omega's allocation. Read it in place when the + * layout fits the allocation and every referenced block passes the 32-bit fit rule; else stage. */ + bool resident = g_resident.cpu && (const void *)pool == g_resident.cpu && ly->pool_bytes <= g_resident.size; + for (uint32_t s = 0; resident && s < num_seqs; s++) { + uint32_t need = eff[s] ? (eff[s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++) if (!resident_fits(ly, tables[s][b])) { resident = false; break; } + } + /* Dedupe map: physical block id -> staged slot of the current launch (-1 = not staged yet), + * plus the list of ids touched by the launch (in slot order) so the reset is O(unique). */ + int32_t *slot_of = NULL; uint32_t *touched = NULL; + if (g_dedupe && !resident) { + size_t nb = ly->num_blocks ? ly->num_blocks : 1; + slot_of = omega_gpu_host_alloc(nb * sizeof *slot_of); + touched = omega_gpu_host_alloc(nb * sizeof *touched); + if (!slot_of || !touched) { omega_gpu_host_free(slot_of); omega_gpu_host_free(touched); omega_gpu_host_free(eff); UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + memset(slot_of, 0xff, nb * sizeof *slot_of); /* every entry -1 */ + } + for (uint32_t s0 = 0; s0 < num_seqs && rc == OMEGA_GPU_ATTN_OK; s0 += seqs_per_launch) { + uint32_t ns = num_seqs - s0 < seqs_per_launch ? num_seqs - s0 : seqs_per_launch; + /* logical references: every sequence's blocks up to its (truncated) context */ + uint32_t total = 0; + for (uint32_t s = 0; s < ns; s++) total += eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + uint32_t *tab = omega_gpu_host_calloc((size_t)ns * maxb + ns, sizeof *tab); + if (!tab) { rc = OMEGA_GPU_ATTN_CHIP_FAIL; break; } + if (resident) { + /* the table carries the physical ids; the kernel's block stride is the pool's; the layer + * base is the chip address of this layer's slice of block 0 */ + for (uint32_t s = 0; s < ns; s++) { + uint32_t need = eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++) tab[(size_t)s * maxb + b] = tables[s0 + s][b]; + tab[(size_t)ns * maxb + s] = eff[s0 + s]; + } + if (info) { info->kv_blocks_logical += total; info->kv_bytes_naive += (uint64_t)total * ly->layer_stride_bytes; } + Launch L = { + .q = q + (size_t)s0 * row, .q_bytes = (size_t)ns * row * 4, + .pool = (const uint8_t *)pool + (size_t)layer_idx * ly->layer_stride_bytes, .pool_bytes = 0, + .tab = tab, .tab_bytes = ((size_t)ns * maxb + ns) * 4, + .out = part, .out_bytes = (size_t)ns * num_q_heads * S * (HD + 2) * 4, + .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = ns * S, + .params = { maxb, f2u(score_scale(HD)), (uint32_t)ly->block_stride_bytes, (uint32_t)ly->token_stride_bytes, + (uint32_t)ly->kv_plane_stride_bytes, (uint32_t)ly->head_stride_bytes, num_q_heads, ns * maxb * 4 }, + .pool_va = g_resident.va + (uint64_t)layer_idx * ly->layer_stride_bytes, + }; + rc = launch(ks, &L, info); + if (rc == OMEGA_GPU_ATTN_OK) combine_splits(part, out + (size_t)s0 * row, (size_t)ns * num_q_heads, S, HD); + omega_gpu_host_free(tab); + continue; + } + /* pass 1: assign staged slots. Dedupe keys on the PHYSICAL block id (not the table + * position): a CoW prefix block shared by several branches gets one slot. Each + * sequence's compact table keeps its own block order and truncated context. */ + uint32_t g = 0; + for (uint32_t s = 0; s < ns; s++) { + uint32_t need = eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++) { + uint32_t id = tables[s0 + s][b]; + if (g_dedupe) { + if (slot_of[id] < 0) { slot_of[id] = (int32_t)g; touched[g] = id; g++; } + tab[(size_t)s * maxb + b] = (uint32_t)slot_of[id]; + } else { + tab[(size_t)s * maxb + b] = g++; /* legacy: one slot per reference */ + } + } + tab[(size_t)ns * maxb + s] = eff[s0 + s]; + } + uint64_t staged_bytes = (uint64_t)(g ? g : 1) * ly->layer_stride_bytes; + if (staged_bytes > 0xffffffffull) { omega_gpu_host_free(tab); rc = OMEGA_GPU_ATTN_TOO_LARGE; break; } + void *host_tmp = NULL; + int stage_rc; + uint8_t *staged = stage_target((size_t)staged_bytes, &host_tmp, &stage_rc); + if (!staged) { omega_gpu_host_free(tab); rc = stage_rc; break; } + /* pass 2: copy each staged slot's (physical block, layer) slice exactly once */ + if (g_dedupe) { + for (uint32_t u = 0; u < g; u++) { + const uint8_t *src = pool + (size_t)touched[u] * ly->block_stride_bytes + (size_t)layer_idx * ly->layer_stride_bytes; + memcpy(staged + (size_t)u * ly->layer_stride_bytes, src, (size_t)ly->layer_stride_bytes); + slot_of[touched[u]] = -1; /* reset for the next launch */ + } + } else { + uint32_t w = 0; + for (uint32_t s = 0; s < ns; s++) { + uint32_t need = eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++, w++) { + const uint8_t *src = pool + (size_t)tables[s0 + s][b] * ly->block_stride_bytes + (size_t)layer_idx * ly->layer_stride_bytes; + memcpy(staged + (size_t)w * ly->layer_stride_bytes, src, (size_t)ly->layer_stride_bytes); + } + } + } + if (info) { + info->kv_blocks_logical += total; info->kv_blocks_unique += g; + info->kv_bytes_staged += (uint64_t)g * ly->layer_stride_bytes; + info->kv_bytes_naive += (uint64_t)total * ly->layer_stride_bytes; + } + Launch L = { + .q = q + (size_t)s0 * row, .q_bytes = (size_t)ns * row * 4, .pool = staged, .pool_bytes = (size_t)staged_bytes, + .tab = tab, .tab_bytes = ((size_t)ns * maxb + ns) * 4, + .out = part, .out_bytes = (size_t)ns * num_q_heads * S * (HD + 2) * 4, + .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = ns * S, + .params = { maxb, f2u(score_scale(HD)), (uint32_t)ly->layer_stride_bytes, (uint32_t)ly->token_stride_bytes, + (uint32_t)ly->kv_plane_stride_bytes, (uint32_t)ly->head_stride_bytes, num_q_heads, ns * maxb * 4 } + }; + rc = launch(ks, &L, info); + if (rc == OMEGA_GPU_ATTN_OK) combine_splits(part, out + (size_t)s0 * row, (size_t)ns * num_q_heads, S, HD); + omega_gpu_host_free(host_tmp); omega_gpu_host_free(tab); + } + UNLOCK(); + omega_gpu_host_free(eff); omega_gpu_host_free(slot_of); omega_gpu_host_free(touched); omega_gpu_host_free(part); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +int omega_gpu_paged_attention_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const uint32_t *block_ids, uint32_t num_block_ids, + uint32_t context_len, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info) { + if (!q || !pool || !layout || !out || (num_block_ids && !block_ids)) return OMEGA_GPU_ATTN_BAD_ARGS; + const uint32_t *tables[1] = { block_ids }; + uint32_t nb[1] = { num_block_ids }, cx[1] = { context_len }; + return paged_core(q, pool, layout, tables, nb, cx, 1, layer_idx, num_q_heads, num_kv_heads, head_dim, out, info); +} + +int omega_gpu_paged_attention_batch_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const int32_t *block_tables, const int32_t *context_lens, + uint32_t max_blocks_per_seq, uint32_t num_seqs, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info) { + if (!q || !pool || !layout || !out || !block_tables || !context_lens || num_seqs == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + /* the oracle's rules: ctx <= 0 -> 0; a table row past the array -> empty; negatives removed */ + uint32_t **tables = omega_gpu_host_calloc(num_seqs, sizeof *tables); + uint32_t *nb = omega_gpu_host_calloc(num_seqs, sizeof *nb), *cx = omega_gpu_host_calloc(num_seqs, sizeof *cx); + if (!tables || !nb || !cx) { omega_gpu_host_free(tables); omega_gpu_host_free(nb); omega_gpu_host_free(cx); return OMEGA_GPU_ATTN_CHIP_FAIL; } + int rc = OMEGA_GPU_ATTN_OK; + for (uint32_t s = 0; s < num_seqs; s++) { + cx[s] = context_lens[s] > 0 ? (uint32_t)context_lens[s] : 0; + tables[s] = omega_gpu_host_calloc(max_blocks_per_seq ? max_blocks_per_seq : 1, sizeof **tables); + if (!tables[s]) { rc = OMEGA_GPU_ATTN_CHIP_FAIL; break; } + for (uint32_t b = 0; b < max_blocks_per_seq; b++) { + int32_t v = block_tables[(size_t)s * max_blocks_per_seq + b]; + if (v >= 0) tables[s][nb[s]++] = (uint32_t)v; + } + } + if (rc == OMEGA_GPU_ATTN_OK) + rc = paged_core(q, pool, layout, (const uint32_t *const *)tables, nb, cx, num_seqs, layer_idx, num_q_heads, num_kv_heads, head_dim, out, info); + for (uint32_t s = 0; s < num_seqs; s++) omega_gpu_host_free(tables[s]); + omega_gpu_host_free(tables); omega_gpu_host_free(nb); omega_gpu_host_free(cx); + return rc; +} + +static const char *const k_mutant_names[OMEGA_GPU_ATTN_MUTANT_COUNT] = { + "none", "NO_MAX", "KV_HEAD", "SLOT", "NO_RESCALE", "Q_ROW", "OUT_ROW" +}; +_Static_assert(sizeof k_mutant_names / sizeof k_mutant_names[0] == OMEGA_GPU_ATTN_MUTANT_COUNT, "mutant name table"); + +const char *omega_gpu_attention_mutant_name(OmegaGpuAttnMutant m) { + return (m >= 0 && m < OMEGA_GPU_ATTN_MUTANT_COUNT && k_mutant_names[m]) ? k_mutant_names[m] : "?"; +} + +const char *omega_gpu_attention_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_ATTN_OK: return "OK"; + case OMEGA_GPU_ATTN_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_ATTN_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_ATTN_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_ATTN_CHIP_FAIL: return "CHIP_FAIL"; + case OMEGA_GPU_ATTN_UNWRITTEN: return "UNWRITTEN"; + default: return "UNKNOWN"; + } +} + +/* omega #308 R2 test hook: 0 production, 1 lane-dependent branch inside a reconvergence + * region, 2 the same with the BSYNC dropped (negative control). Clears the kernel cache. */ +void omega_gpu_attention_test_set_divergent(int mode) { + LOCK(); + g_divergent = (mode < 0 || mode > 2) ? 0 : mode; + cache_clear_locked(); + UNLOCK(); +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.h new file mode 100644 index 000000000..3610af047 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/omega_gpu_attention_api.h @@ -0,0 +1,290 @@ +#ifndef OMEGA_GPU_ATTENTION_API_H +#define OMEGA_GPU_ATTENTION_API_H +/* + * omega_gpu_attention_api: native (no CUDA) decode attention for the AIEN + * inference stack (FB-1 cut 5, 2026-10-04). + * + * Two kernel families, one query per (sequence, query head), generated by our + * own codegen (src/omega_blackwell_codegen.c IR) and launched through the same + * chip-proven sequence as cuts 1b and 4: every buffer GPU-uncached (nvos.h + * NVOS32_ATTR2_GPU_CACHEABLE: system memory cached by the GPU is not coherent + * with CPU mappings), shader caches invalidated before the launch (clcec0.h + * NVCEC0_INVALIDATE_SHADER_CACHES, cut 1b finding), first marker, + * L2_FLUSH_DIRTY, second marker (C3 tail), poison-filled output scanned for + * unwritten words after readback. + * + * The math follows aien-sovereign-core crates/aien-inference-abi/src/backend.rs + * (ReferenceCpuBackend / TensorBackend defaults), read 2026-10-04 at main 8b5caed: + * gqa_attention(out, q, k_cache, v_cache, seq_len, num_q_heads, num_kv_heads, head_dim) + * k_cache / v_cache are f32 [seq_len][num_kv_heads][head_dim]; query head h reads + * kv head h / (num_q_heads / num_kv_heads); score = (q . k) / sqrt(head_dim); + * softmax over all seq_len tokens (no mask: one query attends to the whole history); + * out[h] = sum_t softmax_t v_t. seq_len == 0 writes zeros. + * paged_attention(out, q, pool, block_ids, context_len, layer_idx, ...) + * the KV pool is bf16 in aien-kv-cache's canonical layout (KvLayout strides in + * bytes: block, layer, kv plane (0 = K, 1 = V), token, head); token t lives in + * block_ids[t / block_size] at slot t % block_size; tokens whose block index is + * past the end of block_ids are dropped; context_len == 0 or no blocks writes zeros. + * paged_attention_batch: per sequence s, context_lens[s] <= 0 means 0, the block + * table row is block_tables[s*max_blocks .. (s+1)*max_blocks] (empty if that row + * runs past the array), negative entries are removed (the rest close up). + * + * Chip math: scores in f32 (FFMA over the head), online softmax per chunk of + * head_dim tokens: running max (FMNMX), p = EX2((s - m) * log2 e) folded into the + * score scale, rescale factor alpha = EX2(m_old - m_new), f32 sums, final MUFU.RCP. + * bf16 K is read as 32-bit pairs (LDG.E) and widened by a 16-bit shift (bf16 is + * the top half of an f32); bf16 V by LDG.E.U16 and the same shift. f32 K/V are + * read directly. Tolerances are stated and justified in tests/gpu_attention_test.c. + * + * Launch envelope: at most OMEGA_GPU_ATTN_MAX_CTAS / num_q_heads sequences per launch (investigation + * I42, same as cuts 1b and 4): grid = (num_q_heads, sequences per launch * context splits); the paged + * path adds up to 2^OMEGA_GPU_ATTN_MAX_LOG2SPLIT context splits per (sequence, head) within + * OMEGA_GPU_ATTN_SPLIT_MAX_CTAS (cut F, the rows path proved 1024 CTAs on the chip). + * Shared memory: the QMD declares 16 * head_dim bytes (clcec0qmd.h SHARED_MEMORY_SIZE_SHIFTED7, + * src/omega_blackwell_qmd.c word 36); the kernel uses exactly 4 arrays of head_dim words: + * 1024 bytes for head_dim 64 (TinyLlama, Llama-3.2-1B; the QMD default) and 2048 bytes for + * head_dim 128 (Qwen3-4B; GB10 parity PASS 126/0 at 7dd92dc, evidence/FB1-CUT5-HD128-7dd92dc). + * head_dim is a kernel parameter (64 or 128): threads per CTA = head_dim = chunk size, one warp + * partial per 32 threads in the softmax reductions. + * + * Staging: the host copies q, the referenced KV blocks' layer slice, the (compacted, + * renumbered) block tables and the context lengths into GPU-uncached staging buffers + * for each launch and copies the result back. The kernel itself walks the block + * table. Resident pool (2026-10-12): a paged call whose pool pointer is the allocation + * omega_gpu_attention_pool_alloc returned reads the KV in place instead (no staging; see + * that declaration for the one rule). Since the attention hardening cut + * (2026-10-04) a launch stages each physical block's layer slice once however many + * sequences of the batch reference it (shared CoW prefixes), and OmegaGpuAttnInfo + * reports the bytes staged against the per-sequence (naive) figure. + * + * Cut 4b (2026-10-04): the device, channel and launch scratch are the process-wide + * session shared with the matmul and elementwise APIs (omega_gpu_session.h): one + * open per process instead of one per call (~40 ms), kernels resident after first + * use, staging buffers reused at their high-water mark (the KV slice is written + * straight into the device staging buffer). Calls serialise on one lock. + */ +#include +#include +#include +#include "omega_blackwell_matmul.h" /* OmegaBlackwellKernel */ +#ifdef __cplusplus +extern "C" { +#endif + +enum { + OMEGA_GPU_ATTN_OK = 0, + OMEGA_GPU_ATTN_BAD_ARGS = -1, /* NULL pointer, zero dimension, head mapping or block id out of range */ + OMEGA_GPU_ATTN_TOO_LARGE = -2, /* head_dim not in {64, 128}, num_q_heads > 64, context past the envelope */ + OMEGA_GPU_ATTN_CODEGEN_FAIL = -3, /* our codegen refused or exceeded the register budget */ + OMEGA_GPU_ATTN_CHIP_FAIL = -4, /* device open, alloc, submit, marker or release failed */ + OMEGA_GPU_ATTN_UNWRITTEN = -5 /* output words still equal to their poison after the run */ +}; + +#define OMEGA_GPU_ATTN_HEAD_DIM 64u /* the original head_dim; threads per CTA = head_dim (one thread per dimension / per token of a chunk) */ +#define OMEGA_GPU_ATTN_HEAD_DIM_128 128u /* the second supported head_dim (Qwen3-4B) */ +#define OMEGA_GPU_ATTN_MAX_CTAS 64u +/* Cut F (2026-10-12): a paged call splits each (sequence, head) over up to 2^MAX_LOG2SPLIT CTAs along the context + * (whole chunks each, at least one chunk per split since cut J, 2026-10-12, which also raised the cap from 8 to 16: at + * 1268 tokens the busiest CTA went from three chunks to two; the launch takes the largest count in the batch) within + * SPLIT_MAX_CTAS CTAs per launch (the rows path proved 1024 on the chip); the CTAs write unnormalised partials + * (acc[head_dim], running max, running sum) that the host combines, also when the split is 1 (the gqa f32 and rows + * kernels keep the direct output and are byte for byte the ones before). Each sequence picks its own split count + * from its own context, so a result never depends on the other sequences in a launch. */ +#define OMEGA_GPU_ATTN_MAX_LOG2SPLIT 4u +#define OMEGA_GPU_ATTN_SPLIT_MAX_CTAS 1024u +#define OMEGA_GPU_ATTN_MAX_Q_HEADS 64u +#define OMEGA_GPU_ATTN_MAX_GQA_CTX 4096u /* contiguous path: one block of 2^12 slots */ + +/* Mirror of aien-kv-cache KvLayoutDesc (crates/aien-kv-cache/src/lib.rs, main 8b5caed), + * field for field, strides in bytes. */ +typedef struct { + uint64_t block_stride_bytes; + uint64_t layer_stride_bytes; + uint64_t kv_plane_stride_bytes; + uint64_t token_stride_bytes; + uint64_t head_stride_bytes; + uint64_t pool_bytes; + uint32_t num_blocks; + uint32_t num_layers; + uint32_t block_size; /* must be a power of two (the kernel shifts and masks) */ +} OmegaGpuKvLayout; + +typedef struct { + uint32_t chip_calls; /* launches made */ + uint64_t elapsed_ns; /* sum of submit-to-second-marker over the launches */ + uint64_t call_ns; /* wall time of the whole API call (staging, launches, copy-out) */ + uint32_t completion_marker; /* first marker word of the last launch */ + uint32_t unwritten_words; /* poison words left in the outputs (0 on OK) */ + uint32_t gpr_count, insn_count; + bool kernel_cache_hit; /* the kernel was already generated */ + uint32_t ctas_last_launch, threads_per_cta; + char target_chip[64]; + uint32_t sm_architecture; + /* Appended (attention hardening cut, 2026-10-04): transfer accounting for the call. + * Existing field order above is ABI; sovereign-core mirrors this struct field for field. */ + uint64_t kv_bytes_staged; /* KV layer-slice bytes actually copied into staging (sum over launches) */ + uint64_t kv_bytes_naive; /* what per-sequence staging would have copied (every sequence its own blocks) */ + uint32_t kv_blocks_logical; /* block references summed over sequences, truncated to each context */ + uint32_t kv_blocks_unique; /* distinct (physical block, layer) slices staged, summed over launches */ + uint64_t q_bytes, tab_bytes, out_bytes; /* q, block-table/context and result traffic (sum over launches) */ + uint32_t kv_source; /* OMEGA_GPU_ATTN_KV_STAGED (slices copied per call) or OMEGA_GPU_ATTN_KV_RESIDENT (read in place) */ +} OmegaGpuAttnInfo; +#define OMEGA_GPU_ATTN_KV_STAGED 0u +#define OMEGA_GPU_ATTN_KV_RESIDENT 1u + +/* Contiguous f32 KV (TensorBackend::gqa_attention). q and out: [num_q_heads][head_dim]. */ +int omega_gpu_gqa_attention_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t seq_len, uint32_t num_q_heads, uint32_t num_kv_heads, + uint32_t head_dim, float *out, OmegaGpuAttnInfo *info); + +/* Contiguous f32 KV, many query rows in one call (the prompt read, 2026-10-12). q and out are + * [num_rows][num_q_heads][head_dim]; k_cache and v_cache hold base_len + num_rows tokens as + * [token][num_kv_heads][head_dim]. Row i attends over the first base_len + i + 1 tokens (causal: + * its own token and everything before it). The KV is staged once per call; the rows go to the + * chip in launches of up to OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads rows (grid y = row, the + * same kernel as omega_gpu_gqa_attention_f32, so one row per launch is bit-identical to that + * call). Under a serving reservation the rows per launch are also bounded by the q buffer + * omega_gpu_attention_reserve_rows sized. base_len + num_rows <= OMEGA_GPU_ATTN_MAX_GQA_CTX. */ +#define OMEGA_GPU_ATTN_ROWS_MAX_CTAS 1024u +int omega_gpu_gqa_attention_rows_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t base_len, uint32_t num_rows, uint32_t num_q_heads, + uint32_t num_kv_heads, uint32_t head_dim, float *out, + OmegaGpuAttnInfo *info); + +/* Paged bf16 KV (TensorBackend::paged_attention). pool points at the pool base. */ +int omega_gpu_paged_attention_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const uint32_t *block_ids, uint32_t num_block_ids, + uint32_t context_len, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info); + +/* Batched (TensorBackend::paged_attention_batch). block_tables: [num_seqs][max_blocks_per_seq] i32 + * (negative = none), context_lens: [num_seqs] i32. q and out: [num_seqs][num_q_heads][head_dim]. */ +int omega_gpu_paged_attention_batch_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const int32_t *block_tables, const int32_t *context_lens, + uint32_t max_blocks_per_seq, uint32_t num_seqs, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info); + +/* Resident KV pool (2026-10-12). One GPU-uncached, host-visible allocation of `bytes` that the caller + * writes its paged bf16 KV into directly (sovereign-core's pool buffer). A paged call whose `pool` + * pointer is this allocation reads the KV in place: nothing is staged, the block table carries the + * physical block ids and the kernel's block stride is the layout's block stride. The kernel forms + * block_id * block_stride + the in-block offsets in 32 bits, so a call takes the resident path only + * when block_stride_bytes and, for every block it references, block_id * block_stride_bytes + + * layer_stride_bytes fit in 32 bits, and the layout's pool_bytes fit the allocation; otherwise that + * call stages exactly as before. OmegaGpuAttnInfo.kv_source says which path ran. One pool per + * process: a second alloc is refused (BAD_ARGS) until omega_gpu_attention_pool_free. The alloc opens + * the session (CHIP_FAIL carries the driver text in omega_gpu_attention_last_error()); under the host + * simulator it is plain host memory. The caller must not free the pool while a call is in flight. */ +int omega_gpu_attention_pool_alloc(size_t bytes, void **cpu); +void omega_gpu_attention_pool_free(void); + +const char *omega_gpu_attention_rc_name(int rc); +void omega_gpu_attention_cache_clear(void); + +/* OPT-IN serving reservation (omega_gpu_reserve_serving in omega_gpu_serving.h calls this). Allocates the KV staging + * pool (2 planes f32, 8 KiB per token at 8 kv heads x 128), q, output and table buffers once for contexts up to + * max_context and up to max_seqs sequences per call. A later call that fits never allocates; one that does not + * returns OMEGA_GPU_ATTN_TOO_LARGE ("serving reservation exceeded" in omega_gpu_attention_last_error()) and asks the + * driver for nothing. Never called = behaviour unchanged. The f32 contiguous path still refuses contexts past + * OMEGA_GPU_ATTN_MAX_GQA_CTX on its own. kv_block_size (power of two, 0 = no paged use) sizes the pool for the paged bf16 + * path too: it stages whole blocks, so under half a block of context it needs more than the f32 formula. The pool is + * sized in BYTES for the larger of the two paths: the paged path therefore admits up to about 2 x max_context tokens + * (whole blocks of the same bytes); what it refuses is a call whose staging exceeds the reserved bytes. max_seqs is + * checked per launch chunk (the batched call splits sequences into chunks of 64 / num_q_heads), so a call with more + * sequences than max_seqs succeeds when every chunk fits. A paged or batched call refused on a LATER chunk has already + * written the outputs of the earlier chunks: treat TOO_LARGE as "output incomplete". If the reserve fails part way it + * rolls back: none of this API's buffers stays flagged. 0 on success, else an OMEGA_GPU_ATTN_* code. */ +int omega_gpu_attention_reserve(uint32_t max_context, uint32_t max_seqs, uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t kv_block_size); +/* Grows the reservation's q, output and table buffers (never shrinks them) so that + * omega_gpu_gqa_attention_rows_f32 can send min(max_rows, OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads) + * rows per launch. The KV staging pool is untouched: the rows of one call share one staged context, + * which omega_gpu_attention_reserve already sized for max_context tokens. Call it after + * omega_gpu_attention_reserve (omega_gpu_reserve_serving does, with its max_rows). Without it the + * rows path still works under a reservation, in launches of as many rows as the q buffer holds. */ +int omega_gpu_attention_reserve_rows(uint32_t max_rows, uint32_t num_q_heads, uint32_t head_dim); +void omega_gpu_attention_unreserve(void); + +/* Stage name of the most recent CHIP_FAIL ("" if none), shared with the other GPU APIs + * (omega_gpu_session_last_error); an open failure carries the driver text. */ +const char *omega_gpu_attention_last_error(void); + +/* Test hooks. Mutants are deliberately wrong kernels the parity test must catch; + * never set in production. */ +typedef enum { + OMEGA_GPU_ATTN_MUTANT_NONE = 0, + OMEGA_GPU_ATTN_MUTANT_NO_MAX, /* softmax without the running-max subtraction (overflows for large scores) */ + OMEGA_GPU_ATTN_MUTANT_KV_HEAD, /* reads kv head (h / ratio) ^ 1 */ + OMEGA_GPU_ATTN_MUTANT_SLOT, /* K read from slot (t + 1) % block_size while V keeps slot t (K/V mismatch) */ + OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, /* the accumulator is not rescaled when the max moves between chunks */ + /* Head-wiring mutants (attention hardening cut, 2026-10-04). Both swap the rows of + * query heads h and h ^ 1, so they need num_q_heads even (>= 2); never run them on a + * one-head shape (row h ^ 1 of the last sequence would be past the buffer). */ + OMEGA_GPU_ATTN_MUTANT_Q_ROW, /* q loaded from query-head row h ^ 1 (kv head and output row stay h) */ + OMEGA_GPU_ATTN_MUTANT_OUT_ROW, /* the correct result for head h stored in flattened output row h ^ 1 */ + OMEGA_GPU_ATTN_MUTANT_COUNT /* one past the last mutant: every battery enumerates 1 .. COUNT-1 */ +} OmegaGpuAttnMutant; +void omega_gpu_attention_test_set_mutant(OmegaGpuAttnMutant m); + +/* TEST ONLY (omega #308 regression R2). 0 = production branch-free chunk loop; 1 = the + * lane-dependent j >= ctx branch restored inside a BSSY/BSYNC reconvergence region; + * 2 = that kernel with the BSYNC dropped (negative control: the host simulator must refuse + * it). Clears the kernel cache. */ +void omega_gpu_attention_test_set_divergent(int mode); +/* "none", "NO_MAX", ... ; "?" past COUNT. The table is checked against COUNT at compile time. */ +const char *omega_gpu_attention_mutant_name(OmegaGpuAttnMutant m); + +/* Generate a kernel without launching (host tests, nvdisasm listings). + * log2_block_size: shift for token -> block; log2_gqa: shift for query head -> kv head. */ +int omega_gpu_attention_codegen(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, + OmegaBlackwellKernel *kernel); + +/* The same with an explicit head_dim (64 or 128; anything else is TOO_LARGE). The 4-argument + * omega_gpu_attention_codegen above is head_dim 64 and emits the same bytes as before head_dim 128 existed. */ +int omega_gpu_attention_codegen_hd(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, uint32_t head_dim, + OmegaBlackwellKernel *kernel); + +/* One launch as the launcher sees it (test hook below). Pointers are host buffers; + * params are the eight argument words after the four buffer addresses: + * max_blocks, scale bits, block stride, token stride, kv plane stride, head stride, + * num_q_heads, context-array byte offset. */ +typedef struct { + const void *q; size_t q_bytes; + const void *pool; size_t pool_bytes; + const void *tab; size_t tab_bytes; + void *out; size_t out_bytes; + uint32_t grid_x, grid_y; + uint32_t params[8]; + uint64_t pool_va; /* resident pool: chip address of the layer base (`pool` is its host mapping, pool_bytes 0); 0 = stage `pool` */ +} OmegaGpuAttnLaunch; + +/* Host simulator hook (tests): when set, every launch runs the allocated IR program + * through `sim` instead of the chip. Lets the whole battery run on the host first + * (review before chip time). The program is post register allocation. */ +struct BlackwellIRProgramTag; +typedef int (*OmegaGpuAttnSim)(const void *prog /* const BlackwellIRProgram * */, const OmegaGpuAttnLaunch *L, OmegaGpuAttnInfo *info); +void omega_gpu_attention_test_set_simulator(OmegaGpuAttnSim sim); +/* The shared memory the launcher declares for the kernel the simulator is running (set before each simulated launch). */ +uint32_t omega_gpu_attention_test_shared_bytes(void); +/* Query heads one CTA serves (cut K): hd 128 groups min(2^log2_gqa, 4) heads of one kv head; hd 64 keeps one head per CTA. */ +uint32_t omega_gpu_attention_heads_per_cta(uint32_t head_dim, uint32_t log2_gqa); + +/* Shared-prefix staging dedupe (attention hardening cut, 2026-10-04): within one launch + * every (physical block, layer) slice referenced by the batch is staged once, keyed by the + * physical block id, and every sequence's compact table points at that one staged slot. + * On by default. `false` selects the legacy per-sequence staging (every sequence copies + * its own blocks), kept as the reference fallback and as the negative control of the + * staging-byte tests. Test hook; never cleared in production. */ +void omega_gpu_attention_test_set_dedupe(bool on); +/* Test hook: force the context split (log2, 0 = one CTA per head) on every paged call; -1 = automatic. */ +void omega_gpu_attention_test_set_split(int log2split); + +/* The resident pool's per-block fit rule (see omega_gpu_attention_pool_alloc), exposed so the + * 4 GiB edge can be checked without allocating a 4 GiB pool. Test hook. */ +bool omega_gpu_attention_test_resident_fits(const OmegaGpuKvLayout *layout, uint32_t block_id); + +#ifdef __cplusplus +} +#endif +#endif /* OMEGA_GPU_ATTENTION_API_H */ diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/receipt.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/receipt.json new file mode 100644 index 000000000..1ec3367ca --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/receipt.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_V1","tolerances":{"rel":2e-4,"abs":2e-5,"large_scores_rel":1e-3,"large_scores_abs":1e-4},"cases":[{"case":"gqa_f32_tinyllama_32q4kv_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":195602,"call_ns":134747908,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048,"kv_bytes_naive":2048,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00189431,"pass":true,"chip_elapsed_ns":103569,"call_ns":226706,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":34816,"kv_bytes_naive":34816,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00189409,"pass":true,"chip_elapsed_ns":106018,"call_ns":334004,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0028582,"pass":true,"chip_elapsed_ns":519574,"call_ns":1142284,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4194304,"kv_bytes_naive":4194304,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_tinyllama_32q4kv_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00174821,"pass":true,"chip_elapsed_ns":104209,"call_ns":212866,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":133120,"kv_bytes_naive":133120,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00197914,"pass":true,"chip_elapsed_ns":103505,"call_ns":108289,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00177573,"pass":true,"chip_elapsed_ns":103249,"call_ns":108033,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":264192,"kv_bytes_naive":264192,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00259576,"pass":true,"chip_elapsed_ns":207906,"call_ns":216434,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":614400,"kv_bytes_naive":614400,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00247545,"pass":true,"chip_elapsed_ns":331540,"call_ns":364036,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048000,"kv_bytes_naive":2048000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":104529,"call_ns":210226,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00174276,"pass":true,"chip_elapsed_ns":95857,"call_ns":99025,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":69632,"kv_bytes_naive":69632,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_llama32_1b_32q8kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00161378,"pass":true,"chip_elapsed_ns":106193,"call_ns":221331,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1048576,"kv_bytes_naive":1048576,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0029454,"pass":true,"chip_elapsed_ns":501589,"call_ns":1637889,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8388608,"kv_bytes_naive":8388608,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042)"},{"case":"gqa_f32_llama32_1b_32q8kv_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0014332,"pass":true,"chip_elapsed_ns":201938,"call_ns":324771,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":266240,"kv_bytes_naive":266240,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00186415,"pass":true,"chip_elapsed_ns":106753,"call_ns":116401,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00185519,"pass":true,"chip_elapsed_ns":104225,"call_ns":111905,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":528384,"kv_bytes_naive":528384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00162705,"pass":true,"chip_elapsed_ns":208019,"call_ns":228259,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1228800,"kv_bytes_naive":1228800,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00330327,"pass":true,"chip_elapsed_ns":313011,"call_ns":397092,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096000,"kv_bytes_naive":4096000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base0_rows1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":105313,"call_ns":276339,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048,"kv_bytes_naive":2048,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base17_rows5","n":10240,"rc":"OK","violations":0,"worst_scaled_err":0.00298047,"pass":true,"chip_elapsed_ns":104545,"call_ns":343875,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":45056,"kv_bytes_naive":225280,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base300_rows40","n":81920,"rc":"OK","violations":0,"worst_scaled_err":0.00332929,"pass":true,"chip_elapsed_ns":635718,"call_ns":993450,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":696320,"kv_bytes_naive":27852800,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812)"},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base0_rows1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":104977,"call_ns":196178,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base17_rows5","n":10240,"rc":"OK","violations":0,"worst_scaled_err":0.00177684,"pass":true,"chip_elapsed_ns":104193,"call_ns":113473,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":90112,"kv_bytes_naive":450560,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base300_rows40","n":81920,"rc":"OK","violations":0,"worst_scaled_err":0.00325614,"pass":true,"chip_elapsed_ns":830184,"call_ns":913674,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":1392640,"kv_bytes_naive":55705600,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=81806) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824)"},{"case":"gqa_f32_large_scores_32q4kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0830785,"pass":true,"chip_elapsed_ns":106402,"call_ns":239379,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"NO_MAX:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_mha_16q16kv_ctx300","n":1024,"rc":"OK","violations":0,"worst_scaled_err":0.00184,"pass":true,"chip_elapsed_ns":107921,"call_ns":282483,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2457600,"kv_bytes_naive":2457600,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":3,"mutants_caught":3,"mutant_note":"Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":106177,"call_ns":212066,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":16384,"kv_bytes_naive":16384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00158694,"pass":true,"chip_elapsed_ns":104193,"call_ns":198946,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":32768,"kv_bytes_naive":32768,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00106953,"pass":true,"chip_elapsed_ns":105329,"call_ns":251843,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000545881,"pass":true,"chip_elapsed_ns":212946,"call_ns":457732,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2097152,"kv_bytes_naive":2097152,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00144367,"pass":true,"chip_elapsed_ns":104465,"call_ns":246179,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":81920,"kv_bytes_naive":81920,"kv_blocks_unique":5,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00159999,"pass":true,"chip_elapsed_ns":104641,"call_ns":112449,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":131072,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00170812,"pass":true,"chip_elapsed_ns":105089,"call_ns":112673,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":147456,"kv_bytes_naive":147456,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00140672,"pass":true,"chip_elapsed_ns":106225,"call_ns":254947,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":311296,"kv_bytes_naive":311296,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00143935,"pass":true,"chip_elapsed_ns":106705,"call_ns":282195,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":163840,"kv_bytes_naive":1032192,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":106994,"call_ns":231139,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":32768,"kv_bytes_naive":32768,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00205197,"pass":true,"chip_elapsed_ns":104529,"call_ns":217362,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":65536,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00105953,"pass":true,"chip_elapsed_ns":106145,"call_ns":265762,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00055855,"pass":true,"chip_elapsed_ns":211762,"call_ns":530549,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4194304,"kv_bytes_naive":4194304,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00171737,"pass":true,"chip_elapsed_ns":106449,"call_ns":246723,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":163840,"kv_bytes_naive":163840,"kv_blocks_unique":5,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00153626,"pass":true,"chip_elapsed_ns":105169,"call_ns":114449,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00162582,"pass":true,"chip_elapsed_ns":105537,"call_ns":115265,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":294912,"kv_bytes_naive":294912,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00144548,"pass":true,"chip_elapsed_ns":106753,"call_ns":243954,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":622592,"kv_bytes_naive":622592,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00094646,"pass":true,"chip_elapsed_ns":197186,"call_ns":401028,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":327680,"kv_bytes_naive":2064384,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0028454,"pass":true,"chip_elapsed_ns":212482,"call_ns":369044,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00202911,"pass":true,"chip_elapsed_ns":206658,"call_ns":251714,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041)"},{"case":"paged_bf16_split4_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00111551,"pass":true,"chip_elapsed_ns":208882,"call_ns":355540,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000737182,"pass":true,"chip_elapsed_ns":210722,"call_ns":368692,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000577315,"pass":true,"chip_elapsed_ns":210370,"call_ns":379828,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0018292,"pass":true,"chip_elapsed_ns":103873,"call_ns":202674,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":82433,"call_ns":88641,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split4_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":103985,"call_ns":114193,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":103521,"call_ns":121522,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":103217,"call_ns":136881,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_batch_3seq_32q8kv_ctx40_0_100","n":6144,"rc":"OK","violations":0,"worst_scaled_err":0.00173417,"pass":true,"chip_elapsed_ns":209346,"call_ns":221522,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":229376,"kv_bytes_naive":229376,"kv_blocks_unique":7,"kv_blocks_logical":7,"mutants_run":4,"mutants_caught":4,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092)"},{"case":"paged_bf16_shared_prefix_4seq_8q2kv_10pre","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00136352,"pass":true,"chip_elapsed_ns":112689,"call_ns":253522,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":155648,"kv_bytes_naive":401408,"kv_blocks_unique":19,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046)"},{"case":"paged_bf16_shared_prefix_4seq_32q8kv_10pre","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.00205105,"pass":true,"chip_elapsed_ns":210274,"call_ns":390900,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":950272,"kv_bytes_naive":1605632,"kv_blocks_unique":29,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186)"}],"mutant_count":6,"mutants":{"NO_MAX":{"run":1,"caught":1},"KV_HEAD":{"run":12,"caught":12},"SLOT":{"run":12,"caught":12},"NO_RESCALE":{"run":6,"caught":6},"Q_ROW":{"run":8,"caught":8},"OUT_ROW":{"run":8,"caught":8}},"device_opens":1,"checks":219,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/run.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/run.log new file mode 100644 index 000000000..b85688366 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/run.log @@ -0,0 +1,65 @@ +PASS gqa_f32_tinyllama_32q4kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=195602 call_ns=134747908 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00189431 chip_ns=103569 call_ns=226706 calls=1 unwritten=0 kv_staged=34816/34816 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00189409 chip_ns=106018 call_ns=334004 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0028582 chip_ns=519574 call_ns=1142284 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_tinyllama_32q4kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00174821 chip_ns=104209 call_ns=212866 calls=1 unwritten=0 kv_staged=133120/133120 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00197914 chip_ns=103505 call_ns=108289 calls=1 unwritten=0 kv_staged=262144/262144 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00177573 chip_ns=103249 call_ns=108033 calls=1 unwritten=0 kv_staged=264192/264192 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00259576 chip_ns=207906 call_ns=216434 calls=1 unwritten=0 kv_staged=614400/614400 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00247545 chip_ns=331540 call_ns=364036 calls=1 unwritten=0 kv_staged=2048000/2048000 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=104529 call_ns=210226 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00174276 chip_ns=95857 call_ns=99025 calls=1 unwritten=0 kv_staged=69632/69632 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_llama32_1b_32q8kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00161378 chip_ns=106193 call_ns=221331 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0029454 chip_ns=501589 call_ns=1637889 calls=1 unwritten=0 kv_staged=8388608/8388608 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042) +PASS gqa_f32_llama32_1b_32q8kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.0014332 chip_ns=201938 call_ns=324771 calls=1 unwritten=0 kv_staged=266240/266240 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00186415 chip_ns=106753 call_ns=116401 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00185519 chip_ns=104225 call_ns=111905 calls=1 unwritten=0 kv_staged=528384/528384 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00162705 chip_ns=208019 call_ns=228259 calls=1 unwritten=0 kv_staged=1228800/1228800 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00330327 chip_ns=313011 call_ns=397092 calls=1 unwritten=0 kv_staged=4096000/4096000 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=105313 call_ns=276339 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00298047 chip_ns=104545 call_ns=343875 calls=1 unwritten=0 kv_staged=45056/225280 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00332929 chip_ns=635718 call_ns=993450 calls=2 unwritten=0 kv_staged=696320/27852800 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812) +PASS gqa_rows_f32_llama32_1b_32q8kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=104977 call_ns=196178 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00177684 chip_ns=104193 call_ns=113473 calls=1 unwritten=0 kv_staged=90112/450560 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00325614 chip_ns=830184 call_ns=913674 calls=2 unwritten=0 kv_staged=1392640/55705600 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81806) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824) +PASS gqa_f32_large_scores_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.0830785 chip_ns=106402 call_ns=239379 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 1/1 NO_MAX:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_mha_16q16kv_ctx300 n=1024 rc=OK violations=0 worst_scaled_err=0.00184 chip_ns=107921 call_ns=282483 calls=1 unwritten=0 kv_staged=2457600/2457600 blocks=1/1 | mutants 3/3 Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=106177 call_ns=212066 calls=1 unwritten=0 kv_staged=16384/16384 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00158694 chip_ns=104193 call_ns=198946 calls=1 unwritten=0 kv_staged=32768/32768 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00106953 chip_ns=105329 call_ns=251843 calls=1 unwritten=0 kv_staged=262144/262144 blocks=16/16 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.000545881 chip_ns=212946 call_ns=457732 calls=1 unwritten=0 kv_staged=2097152/2097152 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00144367 chip_ns=104465 call_ns=246179 calls=1 unwritten=0 kv_staged=81920/81920 blocks=5/5 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00159999 chip_ns=104641 call_ns=112449 calls=1 unwritten=0 kv_staged=131072/131072 blocks=8/8 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00170812 chip_ns=105089 call_ns=112673 calls=1 unwritten=0 kv_staged=147456/147456 blocks=9/9 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00140672 chip_ns=106225 call_ns=254947 calls=1 unwritten=0 kv_staged=311296/311296 blocks=19/19 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00143935 chip_ns=106705 call_ns=282195 calls=1 unwritten=0 kv_staged=163840/1032192 blocks=10/63 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=106994 call_ns=231139 calls=1 unwritten=0 kv_staged=32768/32768 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00205197 chip_ns=104529 call_ns=217362 calls=1 unwritten=0 kv_staged=65536/65536 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00105953 chip_ns=106145 call_ns=265762 calls=1 unwritten=0 kv_staged=524288/524288 blocks=16/16 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.00055855 chip_ns=211762 call_ns=530549 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00171737 chip_ns=106449 call_ns=246723 calls=1 unwritten=0 kv_staged=163840/163840 blocks=5/5 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00153626 chip_ns=105169 call_ns=114449 calls=1 unwritten=0 kv_staged=262144/262144 blocks=8/8 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00162582 chip_ns=105537 call_ns=115265 calls=1 unwritten=0 kv_staged=294912/294912 blocks=9/9 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00144548 chip_ns=106753 call_ns=243954 calls=1 unwritten=0 kv_staged=622592/622592 blocks=19/19 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00094646 chip_ns=197186 call_ns=401028 calls=1 unwritten=0 kv_staged=327680/2064384 blocks=10/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.0028454 chip_ns=212482 call_ns=369044 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00202911 chip_ns=206658 call_ns=251714 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041) +PASS paged_bf16_split4_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00111551 chip_ns=208882 call_ns=355540 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000737182 chip_ns=210722 call_ns=368692 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000577315 chip_ns=210370 call_ns=379828 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.0018292 chip_ns=103873 call_ns=202674 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=82433 call_ns=88641 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split4_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=103985 call_ns=114193 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=103521 call_ns=121522 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=103217 call_ns=136881 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_batch_3seq_32q8kv_ctx40_0_100 n=6144 rc=OK violations=0 worst_scaled_err=0.00173417 chip_ns=209346 call_ns=221522 calls=2 unwritten=0 kv_staged=229376/229376 blocks=7/7 | mutants 4/4 KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092) +PASS paged_bf16_shared_prefix_4seq_8q2kv_10pre n=2048 rc=OK violations=0 worst_scaled_err=0.00136352 chip_ns=112689 call_ns=253522 calls=1 unwritten=0 kv_staged=155648/401408 blocks=19/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_shared_prefix_4seq_32q8kv_10pre n=8192 rc=OK violations=0 worst_scaled_err=0.00205105 chip_ns=210274 call_ns=390900 calls=2 unwritten=0 kv_staged=950272/1605632 blocks=29/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186) +mutant NO_MAX: caught 1 of 1 +mutant KV_HEAD: caught 12 of 12 +mutant SLOT: caught 12 of 12 +mutant NO_RESCALE: caught 6 of 6 +mutant Q_ROW: caught 8 of 8 +mutant OUT_ROW: caught 8 of 8 +device_opens=1 +PASS: 219 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sim.log new file mode 100644 index 000000000..ac9a6e448 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sim.log @@ -0,0 +1,65 @@ +PASS gqa_f32_tinyllama_32q4kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2372297 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00189313 chip_ns=0 call_ns=3269394 calls=1 unwritten=0 kv_staged=34816/34816 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00183169 chip_ns=0 call_ns=15849523 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.00274869 chip_ns=0 call_ns=123250659 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_tinyllama_32q4kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00145684 chip_ns=0 call_ns=6145119 calls=1 unwritten=0 kv_staged=133120/133120 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00206007 chip_ns=0 call_ns=7975474 calls=1 unwritten=0 kv_staged=262144/262144 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00165735 chip_ns=0 call_ns=9854517 calls=1 unwritten=0 kv_staged=264192/264192 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00201893 chip_ns=0 call_ns=18848242 calls=1 unwritten=0 kv_staged=614400/614400 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00297055 chip_ns=0 call_ns=60179034 calls=1 unwritten=0 kv_staged=2048000/2048000 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2321832 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00187227 chip_ns=0 call_ns=2913838 calls=1 unwritten=0 kv_staged=69632/69632 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_llama32_1b_32q8kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00201723 chip_ns=0 call_ns=15617121 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0029454 chip_ns=0 call_ns=124083419 calls=1 unwritten=0 kv_staged=8388608/8388608 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042) +PASS gqa_f32_llama32_1b_32q8kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00195964 chip_ns=0 call_ns=6206464 calls=1 unwritten=0 kv_staged=266240/266240 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00170583 chip_ns=0 call_ns=8108723 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.0017034 chip_ns=0 call_ns=9952999 calls=1 unwritten=0 kv_staged=528384/528384 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00187268 chip_ns=0 call_ns=19031604 calls=1 unwritten=0 kv_staged=1228800/1228800 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00303901 chip_ns=0 call_ns=61011619 calls=1 unwritten=0 kv_staged=4096000/4096000 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2327016 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00268496 chip_ns=0 call_ns=14343300 calls=1 unwritten=0 kv_staged=45056/225280 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00333664 chip_ns=0 call_ns=810597529 calls=2 unwritten=0 kv_staged=696320/27852800 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812) +PASS gqa_rows_f32_llama32_1b_32q8kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2336888 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00181178 chip_ns=0 call_ns=14356131 calls=1 unwritten=0 kv_staged=90112/450560 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00302101 chip_ns=0 call_ns=810878386 calls=2 unwritten=0 kv_staged=1392640/55705600 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81805) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824) +PASS gqa_f32_large_scores_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.0830785 chip_ns=0 call_ns=15575535 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 1/1 NO_MAX:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_mha_16q16kv_ctx300 n=1024 rc=OK violations=0 worst_scaled_err=0.00163802 chip_ns=0 call_ns=9542962 calls=1 unwritten=0 kv_staged=2457600/2457600 blocks=1/1 | mutants 3/3 Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2661115 calls=1 unwritten=0 kv_staged=16384/16384 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00259673 chip_ns=0 call_ns=3303826 calls=1 unwritten=0 kv_staged=32768/32768 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.0012428 chip_ns=0 call_ns=20009021 calls=1 unwritten=0 kv_staged=262144/262144 blocks=16/16 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.000511585 chip_ns=0 call_ns=150175363 calls=1 unwritten=0 kv_staged=2097152/2097152 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00182922 chip_ns=0 call_ns=7713231 calls=1 unwritten=0 kv_staged=81920/81920 blocks=5/5 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00143826 chip_ns=0 call_ns=9862805 calls=1 unwritten=0 kv_staged=131072/131072 blocks=8/8 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.0017437 chip_ns=0 call_ns=11874570 calls=1 unwritten=0 kv_staged=147456/147456 blocks=9/9 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00124488 chip_ns=0 call_ns=23580514 calls=1 unwritten=0 kv_staged=311296/311296 blocks=19/19 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00102811 chip_ns=0 call_ns=80588058 calls=1 unwritten=0 kv_staged=163840/1032192 blocks=10/63 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2698060 calls=1 unwritten=0 kv_staged=32768/32768 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00172089 chip_ns=0 call_ns=3292514 calls=1 unwritten=0 kv_staged=65536/65536 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00106374 chip_ns=0 call_ns=20004893 calls=1 unwritten=0 kv_staged=524288/524288 blocks=16/16 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0005717 chip_ns=0 call_ns=151308446 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00153464 chip_ns=0 call_ns=7683567 calls=1 unwritten=0 kv_staged=163840/163840 blocks=5/5 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00162767 chip_ns=0 call_ns=9821221 calls=1 unwritten=0 kv_staged=262144/262144 blocks=8/8 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.0018236 chip_ns=0 call_ns=11964203 calls=1 unwritten=0 kv_staged=294912/294912 blocks=9/9 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00136517 chip_ns=0 call_ns=23511089 calls=1 unwritten=0 kv_staged=622592/622592 blocks=19/19 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00108243 chip_ns=0 call_ns=80928109 calls=1 unwritten=0 kv_staged=327680/2064384 blocks=10/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00243892 chip_ns=0 call_ns=68284220 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00224498 chip_ns=0 call_ns=69096196 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041) +PASS paged_bf16_split4_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00103684 chip_ns=0 call_ns=70600995 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000722397 chip_ns=0 call_ns=73871461 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00058086 chip_ns=0 call_ns=80841052 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00156533 chip_ns=0 call_ns=8221621 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=8887275 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split4_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=10218312 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=13225528 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=19558136 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_batch_3seq_32q8kv_ctx40_0_100 n=6144 rc=OK violations=0 worst_scaled_err=0.002081 chip_ns=0 call_ns=9275247 calls=2 unwritten=0 kv_staged=229376/229376 blocks=7/7 | mutants 4/4 KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092) +PASS paged_bf16_shared_prefix_4seq_8q2kv_10pre n=2048 rc=OK violations=0 worst_scaled_err=0.00158345 chip_ns=0 call_ns=16326600 calls=1 unwritten=0 kv_staged=155648/401408 blocks=19/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_shared_prefix_4seq_32q8kv_10pre n=8192 rc=OK violations=0 worst_scaled_err=0.00205105 chip_ns=0 call_ns=65495934 calls=2 unwritten=0 kv_staged=950272/1605632 blocks=29/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186) +mutant NO_MAX: caught 1 of 1 +mutant KV_HEAD: caught 12 of 12 +mutant SLOT: caught 12 of 12 +mutant NO_RESCALE: caught 6 of 6 +mutant Q_ROW: caught 8 of 8 +mutant OUT_ROW: caught 8 of 8 +device_opens=0 +PASS: 219 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sweep.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sweep.json new file mode 100644 index 000000000..4ed2294de --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sweep.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_SWEEP_V1","path":"paged_bf16","head_dim":64,"block_size":16,"timed_calls":20,"host_simulator":false,"tolerances":{"rel":2e-4,"abs":2e-5},"hardware_counters":"unavailable (SM occupancy, bandwidth utilisation, cache hit rates are not observable through this path)","points":[{"q_heads":1,"kv_heads":1,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":64,"out_width":64,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00054275,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":4,"threads_per_cta":64,"call_ms_median":0.1045,"call_ms_p90":0.1047,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1033,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":12288,"kv_bytes_naive":65536,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":256,"tab_bytes":68,"out_bytes":1056,"kv_source":"staged"},{"q_heads":1,"kv_heads":1,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":64,"out_width":64,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000613896,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":16,"threads_per_cta":64,"call_ms_median":0.1061,"call_ms_p90":0.1099,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1038,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":77824,"kv_bytes_naive":524288,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":256,"tab_bytes":516,"out_bytes":4224,"kv_source":"staged"},{"q_heads":2,"kv_heads":1,"gqa_ratio":2,"head_dim":64,"context":256,"q_width":128,"out_width":128,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000915783,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":8,"threads_per_cta":64,"call_ms_median":0.1043,"call_ms_p90":0.1045,"kernel_ms_median":0.1029,"kernel_ms_p90":0.1032,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":12288,"kv_bytes_naive":65536,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":512,"tab_bytes":68,"out_bytes":2112,"kv_source":"staged"},{"q_heads":2,"kv_heads":1,"gqa_ratio":2,"head_dim":64,"context":2048,"q_width":128,"out_width":128,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00051606,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":32,"threads_per_cta":64,"call_ms_median":0.1068,"call_ms_p90":0.1072,"kernel_ms_median":0.1029,"kernel_ms_p90":0.1030,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":77824,"kv_bytes_naive":524288,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":512,"tab_bytes":516,"out_bytes":8448,"kv_source":"staged"},{"q_heads":2,"kv_heads":2,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":128,"out_width":128,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00103359,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":8,"threads_per_cta":64,"call_ms_median":0.1045,"call_ms_p90":0.1047,"kernel_ms_median":0.1029,"kernel_ms_p90":0.1031,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":24576,"kv_bytes_naive":131072,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":512,"tab_bytes":68,"out_bytes":2112,"kv_source":"staged"},{"q_heads":2,"kv_heads":2,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":128,"out_width":128,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000660894,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":32,"threads_per_cta":64,"call_ms_median":0.1079,"call_ms_p90":0.1082,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1034,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":155648,"kv_bytes_naive":1048576,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":512,"tab_bytes":516,"out_bytes":8448,"kv_source":"staged"},{"q_heads":4,"kv_heads":1,"gqa_ratio":4,"head_dim":64,"context":256,"q_width":256,"out_width":256,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00114263,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":16,"threads_per_cta":64,"call_ms_median":0.1053,"call_ms_p90":0.1055,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1034,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":12288,"kv_bytes_naive":65536,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":1024,"tab_bytes":68,"out_bytes":4224,"kv_source":"staged"},{"q_heads":4,"kv_heads":1,"gqa_ratio":4,"head_dim":64,"context":2048,"q_width":256,"out_width":256,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000593025,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1092,"call_ms_p90":0.1095,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":77824,"kv_bytes_naive":524288,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":1024,"tab_bytes":516,"out_bytes":16896,"kv_source":"staged"},{"q_heads":4,"kv_heads":2,"gqa_ratio":2,"head_dim":64,"context":256,"q_width":256,"out_width":256,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000809567,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":16,"threads_per_cta":64,"call_ms_median":0.1053,"call_ms_p90":0.1056,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1034,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":24576,"kv_bytes_naive":131072,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":1024,"tab_bytes":68,"out_bytes":4224,"kv_source":"staged"},{"q_heads":4,"kv_heads":2,"gqa_ratio":2,"head_dim":64,"context":2048,"q_width":256,"out_width":256,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000605015,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1098,"call_ms_p90":0.1101,"kernel_ms_median":0.1031,"kernel_ms_p90":0.1033,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":155648,"kv_bytes_naive":1048576,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":1024,"tab_bytes":516,"out_bytes":16896,"kv_source":"staged"},{"q_heads":4,"kv_heads":4,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":256,"out_width":256,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00100267,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":16,"threads_per_cta":64,"call_ms_median":0.1057,"call_ms_p90":0.1059,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1035,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":49152,"kv_bytes_naive":262144,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":1024,"tab_bytes":68,"out_bytes":4224,"kv_source":"staged"},{"q_heads":4,"kv_heads":4,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":256,"out_width":256,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000600994,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1114,"call_ms_p90":0.1121,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1039,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":311296,"kv_bytes_naive":2097152,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":1024,"tab_bytes":516,"out_bytes":16896,"kv_source":"staged"},{"q_heads":8,"kv_heads":1,"gqa_ratio":8,"head_dim":64,"context":256,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.0012878,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":32,"threads_per_cta":64,"call_ms_median":0.1061,"call_ms_p90":0.1075,"kernel_ms_median":0.1029,"kernel_ms_p90":0.1041,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":12288,"kv_bytes_naive":65536,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":2048,"tab_bytes":68,"out_bytes":8448,"kv_source":"staged"},{"q_heads":8,"kv_heads":1,"gqa_ratio":8,"head_dim":64,"context":2048,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000633052,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1133,"call_ms_p90":0.1144,"kernel_ms_median":0.1030,"kernel_ms_p90":0.1034,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":77824,"kv_bytes_naive":524288,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":2048,"tab_bytes":516,"out_bytes":33792,"kv_source":"staged"},{"q_heads":8,"kv_heads":2,"gqa_ratio":4,"head_dim":64,"context":256,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00108287,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":32,"threads_per_cta":64,"call_ms_median":0.1065,"call_ms_p90":0.1069,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":24576,"kv_bytes_naive":131072,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":2048,"tab_bytes":68,"out_bytes":8448,"kv_source":"staged"},{"q_heads":8,"kv_heads":2,"gqa_ratio":4,"head_dim":64,"context":2048,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000777759,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1138,"call_ms_p90":0.1144,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":155648,"kv_bytes_naive":1048576,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":2048,"tab_bytes":516,"out_bytes":33792,"kv_source":"staged"},{"q_heads":8,"kv_heads":4,"gqa_ratio":2,"head_dim":64,"context":256,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00106688,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":32,"threads_per_cta":64,"call_ms_median":0.1067,"call_ms_p90":0.1072,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1037,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":49152,"kv_bytes_naive":262144,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":2048,"tab_bytes":68,"out_bytes":8448,"kv_source":"staged"},{"q_heads":8,"kv_heads":4,"gqa_ratio":2,"head_dim":64,"context":2048,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00075066,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1152,"call_ms_p90":0.1161,"kernel_ms_median":0.1031,"kernel_ms_p90":0.1038,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":311296,"kv_bytes_naive":2097152,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":2048,"tab_bytes":516,"out_bytes":33792,"kv_source":"staged"},{"q_heads":8,"kv_heads":8,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000945711,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":32,"threads_per_cta":64,"call_ms_median":0.1072,"call_ms_p90":0.1076,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1038,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":98304,"kv_bytes_naive":524288,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":2048,"tab_bytes":68,"out_bytes":8448,"kv_source":"staged"},{"q_heads":8,"kv_heads":8,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":512,"out_width":512,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00074738,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1185,"call_ms_p90":0.2202,"kernel_ms_median":0.1033,"kernel_ms_p90":0.2049,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":622592,"kv_bytes_naive":4194304,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":2048,"tab_bytes":516,"out_bytes":33792,"kv_source":"staged"},{"q_heads":16,"kv_heads":1,"gqa_ratio":16,"head_dim":64,"context":256,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00116708,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1082,"call_ms_p90":0.1086,"kernel_ms_median":0.1029,"kernel_ms_p90":0.1033,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":12288,"kv_bytes_naive":65536,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":4096,"tab_bytes":68,"out_bytes":16896,"kv_source":"staged"},{"q_heads":16,"kv_heads":1,"gqa_ratio":16,"head_dim":64,"context":2048,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000804221,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1215,"call_ms_p90":0.1222,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1042,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":77824,"kv_bytes_naive":524288,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":4096,"tab_bytes":516,"out_bytes":67584,"kv_source":"staged"},{"q_heads":16,"kv_heads":2,"gqa_ratio":8,"head_dim":64,"context":256,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.0012559,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1085,"call_ms_p90":0.1092,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":24576,"kv_bytes_naive":131072,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":4096,"tab_bytes":68,"out_bytes":16896,"kv_source":"staged"},{"q_heads":16,"kv_heads":2,"gqa_ratio":8,"head_dim":64,"context":2048,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000721877,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1222,"call_ms_p90":0.1229,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1039,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":155648,"kv_bytes_naive":1048576,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":4096,"tab_bytes":516,"out_bytes":67584,"kv_source":"staged"},{"q_heads":16,"kv_heads":4,"gqa_ratio":4,"head_dim":64,"context":256,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00105089,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1089,"call_ms_p90":0.1092,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1034,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":49152,"kv_bytes_naive":262144,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":4096,"tab_bytes":68,"out_bytes":16896,"kv_source":"staged"},{"q_heads":16,"kv_heads":4,"gqa_ratio":4,"head_dim":64,"context":2048,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000986507,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1238,"call_ms_p90":0.1241,"kernel_ms_median":0.1034,"kernel_ms_p90":0.1038,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":311296,"kv_bytes_naive":2097152,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":4096,"tab_bytes":516,"out_bytes":67584,"kv_source":"staged"},{"q_heads":16,"kv_heads":8,"gqa_ratio":2,"head_dim":64,"context":256,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000962271,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1094,"call_ms_p90":0.1097,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":98304,"kv_bytes_naive":524288,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":4096,"tab_bytes":68,"out_bytes":16896,"kv_source":"staged"},{"q_heads":16,"kv_heads":8,"gqa_ratio":2,"head_dim":64,"context":2048,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000765968,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1271,"call_ms_p90":0.1285,"kernel_ms_median":0.1034,"kernel_ms_p90":0.1045,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":622592,"kv_bytes_naive":4194304,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":4096,"tab_bytes":516,"out_bytes":67584,"kv_source":"staged"},{"q_heads":16,"kv_heads":16,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00104407,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":64,"threads_per_cta":64,"call_ms_median":0.1101,"call_ms_p90":0.1106,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1034,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":196608,"kv_bytes_naive":1048576,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":4096,"tab_bytes":68,"out_bytes":16896,"kv_source":"staged"},{"q_heads":16,"kv_heads":16,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":1024,"out_width":1024,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000910028,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1343,"call_ms_p90":0.1353,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1037,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":1245184,"kv_bytes_naive":8388608,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":4096,"tab_bytes":516,"out_bytes":67584,"kv_source":"staged"},{"q_heads":24,"kv_heads":1,"gqa_ratio":24,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":1,"gqa_ratio":24,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":2,"gqa_ratio":12,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":2,"gqa_ratio":12,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":3,"gqa_ratio":8,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00116392,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":96,"threads_per_cta":64,"call_ms_median":0.1107,"call_ms_p90":0.1112,"kernel_ms_median":0.1030,"kernel_ms_p90":0.1031,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":36864,"kv_bytes_naive":196608,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":6144,"tab_bytes":68,"out_bytes":25344,"kv_source":"staged"},{"q_heads":24,"kv_heads":3,"gqa_ratio":8,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000687275,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":384,"threads_per_cta":64,"call_ms_median":0.1307,"call_ms_p90":0.2323,"kernel_ms_median":0.1029,"kernel_ms_p90":0.2044,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":233472,"kv_bytes_naive":1572864,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":6144,"tab_bytes":516,"out_bytes":101376,"kv_source":"staged"},{"q_heads":24,"kv_heads":4,"gqa_ratio":6,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":4,"gqa_ratio":6,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":6,"gqa_ratio":4,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00134672,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":96,"threads_per_cta":64,"call_ms_median":0.1113,"call_ms_p90":0.1116,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":73728,"kv_bytes_naive":393216,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":6144,"tab_bytes":68,"out_bytes":25344,"kv_source":"staged"},{"q_heads":24,"kv_heads":6,"gqa_ratio":4,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000869373,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":384,"threads_per_cta":64,"call_ms_median":0.1337,"call_ms_p90":0.1345,"kernel_ms_median":0.1035,"kernel_ms_p90":0.1040,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":466944,"kv_bytes_naive":3145728,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":6144,"tab_bytes":516,"out_bytes":101376,"kv_source":"staged"},{"q_heads":24,"kv_heads":8,"gqa_ratio":3,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":8,"gqa_ratio":3,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"unsupported_by_kernel_envelope","rc":"BAD_ARGS","pass":true},{"q_heads":24,"kv_heads":12,"gqa_ratio":2,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00109466,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":96,"threads_per_cta":64,"call_ms_median":0.1116,"call_ms_p90":0.1122,"kernel_ms_median":0.1030,"kernel_ms_p90":0.1035,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":147456,"kv_bytes_naive":786432,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":6144,"tab_bytes":68,"out_bytes":25344,"kv_source":"staged"},{"q_heads":24,"kv_heads":12,"gqa_ratio":2,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000905124,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":384,"threads_per_cta":64,"call_ms_median":0.1389,"call_ms_p90":0.1396,"kernel_ms_median":0.1034,"kernel_ms_p90":0.1039,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":933888,"kv_bytes_naive":6291456,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":6144,"tab_bytes":516,"out_bytes":101376,"kv_source":"staged"},{"q_heads":24,"kv_heads":24,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00115814,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":96,"threads_per_cta":64,"call_ms_median":0.1131,"call_ms_p90":0.1137,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1039,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":294912,"kv_bytes_naive":1572864,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":6144,"tab_bytes":68,"out_bytes":25344,"kv_source":"staged"},{"q_heads":24,"kv_heads":24,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":1536,"out_width":1536,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000723758,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":384,"threads_per_cta":64,"call_ms_median":0.1528,"call_ms_p90":0.1554,"kernel_ms_median":0.1034,"kernel_ms_p90":0.1048,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":1867776,"kv_bytes_naive":12582912,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":6144,"tab_bytes":516,"out_bytes":101376,"kv_source":"staged"},{"q_heads":32,"kv_heads":1,"gqa_ratio":32,"head_dim":64,"context":256,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000983527,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1123,"call_ms_p90":0.1128,"kernel_ms_median":0.1028,"kernel_ms_p90":0.1030,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":12288,"kv_bytes_naive":65536,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":8192,"tab_bytes":68,"out_bytes":33792,"kv_source":"staged"},{"q_heads":32,"kv_heads":1,"gqa_ratio":32,"head_dim":64,"context":2048,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00096523,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":512,"threads_per_cta":64,"call_ms_median":0.1378,"call_ms_p90":0.1386,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1046,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":77824,"kv_bytes_naive":524288,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":8192,"tab_bytes":516,"out_bytes":135168,"kv_source":"staged"},{"q_heads":32,"kv_heads":2,"gqa_ratio":16,"head_dim":64,"context":256,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00107618,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1131,"call_ms_p90":0.1133,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":24576,"kv_bytes_naive":131072,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":8192,"tab_bytes":68,"out_bytes":33792,"kv_source":"staged"},{"q_heads":32,"kv_heads":2,"gqa_ratio":16,"head_dim":64,"context":2048,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000909898,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":512,"threads_per_cta":64,"call_ms_median":0.3424,"call_ms_p90":0.3442,"kernel_ms_median":0.3073,"kernel_ms_p90":0.3091,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":155648,"kv_bytes_naive":1048576,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":8192,"tab_bytes":516,"out_bytes":135168,"kv_source":"staged"},{"q_heads":32,"kv_heads":4,"gqa_ratio":8,"head_dim":64,"context":256,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00148519,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1130,"call_ms_p90":0.1136,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":49152,"kv_bytes_naive":262144,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":8192,"tab_bytes":68,"out_bytes":33792,"kv_source":"staged"},{"q_heads":32,"kv_heads":4,"gqa_ratio":8,"head_dim":64,"context":2048,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000728955,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":512,"threads_per_cta":64,"call_ms_median":0.3435,"call_ms_p90":0.3450,"kernel_ms_median":0.3069,"kernel_ms_p90":0.3084,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":311296,"kv_bytes_naive":2097152,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":8192,"tab_bytes":516,"out_bytes":135168,"kv_source":"staged"},{"q_heads":32,"kv_heads":8,"gqa_ratio":4,"head_dim":64,"context":256,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00120324,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1136,"call_ms_p90":0.1140,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1037,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":98304,"kv_bytes_naive":524288,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":8192,"tab_bytes":68,"out_bytes":33792,"kv_source":"staged"},{"q_heads":32,"kv_heads":8,"gqa_ratio":4,"head_dim":64,"context":2048,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000902204,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":512,"threads_per_cta":64,"call_ms_median":0.2451,"call_ms_p90":0.2480,"kernel_ms_median":0.2050,"kernel_ms_p90":0.2078,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":622592,"kv_bytes_naive":4194304,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":8192,"tab_bytes":516,"out_bytes":135168,"kv_source":"staged"},{"q_heads":32,"kv_heads":16,"gqa_ratio":2,"head_dim":64,"context":256,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00134401,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1144,"call_ms_p90":0.4178,"kernel_ms_median":0.1032,"kernel_ms_p90":0.4049,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":196608,"kv_bytes_naive":1048576,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":8192,"tab_bytes":68,"out_bytes":33792,"kv_source":"staged"},{"q_heads":32,"kv_heads":16,"gqa_ratio":2,"head_dim":64,"context":2048,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000943157,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":512,"threads_per_cta":64,"call_ms_median":0.3480,"call_ms_p90":0.4199,"kernel_ms_median":0.2945,"kernel_ms_p90":0.3690,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":1245184,"kv_bytes_naive":8388608,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":8192,"tab_bytes":516,"out_bytes":135168,"kv_source":"staged"},{"q_heads":32,"kv_heads":32,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.0011642,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":128,"threads_per_cta":64,"call_ms_median":0.1174,"call_ms_p90":0.2188,"kernel_ms_median":0.1040,"kernel_ms_p90":0.2040,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":393216,"kv_bytes_naive":2097152,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":8192,"tab_bytes":68,"out_bytes":33792,"kv_source":"staged"},{"q_heads":32,"kv_heads":32,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":2048,"out_width":2048,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000786263,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":512,"threads_per_cta":64,"call_ms_median":0.2906,"call_ms_p90":0.3799,"kernel_ms_median":0.2125,"kernel_ms_p90":0.3103,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":2490368,"kv_bytes_naive":16777216,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":8192,"tab_bytes":516,"out_bytes":135168,"kv_source":"staged"},{"q_heads":64,"kv_heads":1,"gqa_ratio":64,"head_dim":64,"context":256,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00130635,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1207,"call_ms_p90":0.1216,"kernel_ms_median":0.1030,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":12288,"kv_bytes_naive":65536,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":16384,"tab_bytes":68,"out_bytes":67584,"kv_source":"staged"},{"q_heads":64,"kv_heads":1,"gqa_ratio":64,"head_dim":64,"context":2048,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00103163,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":1024,"threads_per_cta":64,"call_ms_median":0.1701,"call_ms_p90":0.2305,"kernel_ms_median":0.1031,"kernel_ms_p90":0.1639,"kernel_cache_hits":20,"first_call_cache_hit":false,"kv_bytes_staged":77824,"kv_bytes_naive":524288,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":16384,"tab_bytes":516,"out_bytes":270336,"kv_source":"staged"},{"q_heads":64,"kv_heads":2,"gqa_ratio":32,"head_dim":64,"context":256,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00117469,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1212,"call_ms_p90":0.1214,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1036,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":24576,"kv_bytes_naive":131072,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":16384,"tab_bytes":68,"out_bytes":67584,"kv_source":"staged"},{"q_heads":64,"kv_heads":2,"gqa_ratio":32,"head_dim":64,"context":2048,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000887297,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":1024,"threads_per_cta":64,"call_ms_median":0.3754,"call_ms_p90":0.3769,"kernel_ms_median":0.3078,"kernel_ms_p90":0.3098,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":155648,"kv_bytes_naive":1048576,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":16384,"tab_bytes":516,"out_bytes":270336,"kv_source":"staged"},{"q_heads":64,"kv_heads":4,"gqa_ratio":16,"head_dim":64,"context":256,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.0014115,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1215,"call_ms_p90":0.1224,"kernel_ms_median":0.1034,"kernel_ms_p90":0.1043,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":49152,"kv_bytes_naive":262144,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":16384,"tab_bytes":68,"out_bytes":67584,"kv_source":"staged"},{"q_heads":64,"kv_heads":4,"gqa_ratio":16,"head_dim":64,"context":2048,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000843739,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":1024,"threads_per_cta":64,"call_ms_median":0.4788,"call_ms_p90":0.4811,"kernel_ms_median":0.4096,"kernel_ms_p90":0.4123,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":311296,"kv_bytes_naive":2097152,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":16384,"tab_bytes":516,"out_bytes":270336,"kv_source":"staged"},{"q_heads":64,"kv_heads":8,"gqa_ratio":8,"head_dim":64,"context":256,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.0011426,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1219,"call_ms_p90":0.1222,"kernel_ms_median":0.1034,"kernel_ms_p90":0.1038,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":98304,"kv_bytes_naive":524288,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":16384,"tab_bytes":68,"out_bytes":67584,"kv_source":"staged"},{"q_heads":64,"kv_heads":8,"gqa_ratio":8,"head_dim":64,"context":2048,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000889638,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":1024,"threads_per_cta":64,"call_ms_median":0.5898,"call_ms_p90":0.6898,"kernel_ms_median":0.5166,"kernel_ms_p90":0.6171,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":622592,"kv_bytes_naive":4194304,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":16384,"tab_bytes":516,"out_bytes":270336,"kv_source":"staged"},{"q_heads":64,"kv_heads":16,"gqa_ratio":4,"head_dim":64,"context":256,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00133774,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1226,"call_ms_p90":0.1230,"kernel_ms_median":0.1032,"kernel_ms_p90":0.1034,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":196608,"kv_bytes_naive":1048576,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":16384,"tab_bytes":68,"out_bytes":67584,"kv_source":"staged"},{"q_heads":64,"kv_heads":16,"gqa_ratio":4,"head_dim":64,"context":2048,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000935371,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":1024,"threads_per_cta":64,"call_ms_median":0.6018,"call_ms_p90":0.7065,"kernel_ms_median":0.5193,"kernel_ms_p90":0.6216,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":1245184,"kv_bytes_naive":8388608,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":16384,"tab_bytes":516,"out_bytes":270336,"kv_source":"staged"},{"q_heads":64,"kv_heads":32,"gqa_ratio":2,"head_dim":64,"context":256,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.0013971,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1247,"call_ms_p90":0.1253,"kernel_ms_median":0.1033,"kernel_ms_p90":0.1040,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":393216,"kv_bytes_naive":2097152,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":16384,"tab_bytes":68,"out_bytes":67584,"kv_source":"staged"},{"q_heads":64,"kv_heads":32,"gqa_ratio":2,"head_dim":64,"context":2048,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.000789703,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":1024,"threads_per_cta":64,"call_ms_median":0.5213,"call_ms_p90":0.5317,"kernel_ms_median":0.4149,"kernel_ms_p90":0.4244,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":2490368,"kv_bytes_naive":16777216,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":16384,"tab_bytes":516,"out_bytes":270336,"kv_source":"staged"},{"q_heads":64,"kv_heads":64,"gqa_ratio":1,"head_dim":64,"context":256,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00124046,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":256,"threads_per_cta":64,"call_ms_median":0.1293,"call_ms_p90":0.1308,"kernel_ms_median":0.1034,"kernel_ms_p90":0.1043,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":786432,"kv_bytes_naive":4194304,"kv_blocks_logical":16,"kv_blocks_unique":3,"q_bytes":16384,"tab_bytes":68,"out_bytes":67584,"kv_source":"staged"},{"q_heads":64,"kv_heads":64,"gqa_ratio":1,"head_dim":64,"context":2048,"q_width":4096,"out_width":4096,"class":"supported","rc":"OK","pass":true,"violations":0,"worst_scaled_err":0.00162937,"unwritten_words":0,"launches_per_call":1,"ctas_last_launch":1024,"threads_per_cta":64,"call_ms_median":0.5622,"call_ms_p90":0.6612,"kernel_ms_median":0.4131,"kernel_ms_p90":0.5158,"kernel_cache_hits":20,"first_call_cache_hit":true,"kv_bytes_staged":4980736,"kv_bytes_naive":33554432,"kv_blocks_logical":128,"kv_blocks_unique":19,"q_bytes":16384,"tab_bytes":516,"out_bytes":270336,"kv_source":"staged"}],"points_total":72,"points_supported":64,"points_unsupported":8,"device_opens":1,"checks":73,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_SWEEP_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sweep.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sweep.log new file mode 100644 index 000000000..68ee0fa64 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/sweep.log @@ -0,0 +1,74 @@ +PASS sweep 1q/ 1kv ratio 1 ctx 256: launches=1 ctas=4 call_ms med=0.104 p90=0.105 kernel_ms med=0.103 p90=0.103 kv_staged=12288 (naive 65536) blocks=3/16 q=256 tab=68 out=1056 worst=0.00054275 +PASS sweep 1q/ 1kv ratio 1 ctx 2048: launches=1 ctas=16 call_ms med=0.106 p90=0.110 kernel_ms med=0.103 p90=0.104 kv_staged=77824 (naive 524288) blocks=19/128 q=256 tab=516 out=4224 worst=0.000613896 +PASS sweep 2q/ 1kv ratio 2 ctx 256: launches=1 ctas=8 call_ms med=0.104 p90=0.105 kernel_ms med=0.103 p90=0.103 kv_staged=12288 (naive 65536) blocks=3/16 q=512 tab=68 out=2112 worst=0.000915783 +PASS sweep 2q/ 1kv ratio 2 ctx 2048: launches=1 ctas=32 call_ms med=0.107 p90=0.107 kernel_ms med=0.103 p90=0.103 kv_staged=77824 (naive 524288) blocks=19/128 q=512 tab=516 out=8448 worst=0.00051606 +PASS sweep 2q/ 2kv ratio 1 ctx 256: launches=1 ctas=8 call_ms med=0.105 p90=0.105 kernel_ms med=0.103 p90=0.103 kv_staged=24576 (naive 131072) blocks=3/16 q=512 tab=68 out=2112 worst=0.00103359 +PASS sweep 2q/ 2kv ratio 1 ctx 2048: launches=1 ctas=32 call_ms med=0.108 p90=0.108 kernel_ms med=0.103 p90=0.103 kv_staged=155648 (naive 1048576) blocks=19/128 q=512 tab=516 out=8448 worst=0.000660894 +PASS sweep 4q/ 1kv ratio 4 ctx 256: launches=1 ctas=16 call_ms med=0.105 p90=0.106 kernel_ms med=0.103 p90=0.103 kv_staged=12288 (naive 65536) blocks=3/16 q=1024 tab=68 out=4224 worst=0.00114263 +PASS sweep 4q/ 1kv ratio 4 ctx 2048: launches=1 ctas=64 call_ms med=0.109 p90=0.110 kernel_ms med=0.103 p90=0.104 kv_staged=77824 (naive 524288) blocks=19/128 q=1024 tab=516 out=16896 worst=0.000593025 +PASS sweep 4q/ 2kv ratio 2 ctx 256: launches=1 ctas=16 call_ms med=0.105 p90=0.106 kernel_ms med=0.103 p90=0.103 kv_staged=24576 (naive 131072) blocks=3/16 q=1024 tab=68 out=4224 worst=0.000809567 +PASS sweep 4q/ 2kv ratio 2 ctx 2048: launches=1 ctas=64 call_ms med=0.110 p90=0.110 kernel_ms med=0.103 p90=0.103 kv_staged=155648 (naive 1048576) blocks=19/128 q=1024 tab=516 out=16896 worst=0.000605015 +PASS sweep 4q/ 4kv ratio 1 ctx 256: launches=1 ctas=16 call_ms med=0.106 p90=0.106 kernel_ms med=0.103 p90=0.103 kv_staged=49152 (naive 262144) blocks=3/16 q=1024 tab=68 out=4224 worst=0.00100267 +PASS sweep 4q/ 4kv ratio 1 ctx 2048: launches=1 ctas=64 call_ms med=0.111 p90=0.112 kernel_ms med=0.103 p90=0.104 kv_staged=311296 (naive 2097152) blocks=19/128 q=1024 tab=516 out=16896 worst=0.000600994 +PASS sweep 8q/ 1kv ratio 8 ctx 256: launches=1 ctas=32 call_ms med=0.106 p90=0.108 kernel_ms med=0.103 p90=0.104 kv_staged=12288 (naive 65536) blocks=3/16 q=2048 tab=68 out=8448 worst=0.0012878 +PASS sweep 8q/ 1kv ratio 8 ctx 2048: launches=1 ctas=128 call_ms med=0.113 p90=0.114 kernel_ms med=0.103 p90=0.103 kv_staged=77824 (naive 524288) blocks=19/128 q=2048 tab=516 out=33792 worst=0.000633052 +PASS sweep 8q/ 2kv ratio 4 ctx 256: launches=1 ctas=32 call_ms med=0.107 p90=0.107 kernel_ms med=0.103 p90=0.104 kv_staged=24576 (naive 131072) blocks=3/16 q=2048 tab=68 out=8448 worst=0.00108287 +PASS sweep 8q/ 2kv ratio 4 ctx 2048: launches=1 ctas=128 call_ms med=0.114 p90=0.114 kernel_ms med=0.103 p90=0.104 kv_staged=155648 (naive 1048576) blocks=19/128 q=2048 tab=516 out=33792 worst=0.000777759 +PASS sweep 8q/ 4kv ratio 2 ctx 256: launches=1 ctas=32 call_ms med=0.107 p90=0.107 kernel_ms med=0.103 p90=0.104 kv_staged=49152 (naive 262144) blocks=3/16 q=2048 tab=68 out=8448 worst=0.00106688 +PASS sweep 8q/ 4kv ratio 2 ctx 2048: launches=1 ctas=128 call_ms med=0.115 p90=0.116 kernel_ms med=0.103 p90=0.104 kv_staged=311296 (naive 2097152) blocks=19/128 q=2048 tab=516 out=33792 worst=0.00075066 +PASS sweep 8q/ 8kv ratio 1 ctx 256: launches=1 ctas=32 call_ms med=0.107 p90=0.108 kernel_ms med=0.103 p90=0.104 kv_staged=98304 (naive 524288) blocks=3/16 q=2048 tab=68 out=8448 worst=0.000945711 +PASS sweep 8q/ 8kv ratio 1 ctx 2048: launches=1 ctas=128 call_ms med=0.119 p90=0.220 kernel_ms med=0.103 p90=0.205 kv_staged=622592 (naive 4194304) blocks=19/128 q=2048 tab=516 out=33792 worst=0.00074738 +PASS sweep 16q/ 1kv ratio 16 ctx 256: launches=1 ctas=64 call_ms med=0.108 p90=0.109 kernel_ms med=0.103 p90=0.103 kv_staged=12288 (naive 65536) blocks=3/16 q=4096 tab=68 out=16896 worst=0.00116708 +PASS sweep 16q/ 1kv ratio 16 ctx 2048: launches=1 ctas=256 call_ms med=0.122 p90=0.122 kernel_ms med=0.103 p90=0.104 kv_staged=77824 (naive 524288) blocks=19/128 q=4096 tab=516 out=67584 worst=0.000804221 +PASS sweep 16q/ 2kv ratio 8 ctx 256: launches=1 ctas=64 call_ms med=0.108 p90=0.109 kernel_ms med=0.103 p90=0.104 kv_staged=24576 (naive 131072) blocks=3/16 q=4096 tab=68 out=16896 worst=0.0012559 +PASS sweep 16q/ 2kv ratio 8 ctx 2048: launches=1 ctas=256 call_ms med=0.122 p90=0.123 kernel_ms med=0.103 p90=0.104 kv_staged=155648 (naive 1048576) blocks=19/128 q=4096 tab=516 out=67584 worst=0.000721877 +PASS sweep 16q/ 4kv ratio 4 ctx 256: launches=1 ctas=64 call_ms med=0.109 p90=0.109 kernel_ms med=0.103 p90=0.103 kv_staged=49152 (naive 262144) blocks=3/16 q=4096 tab=68 out=16896 worst=0.00105089 +PASS sweep 16q/ 4kv ratio 4 ctx 2048: launches=1 ctas=256 call_ms med=0.124 p90=0.124 kernel_ms med=0.103 p90=0.104 kv_staged=311296 (naive 2097152) blocks=19/128 q=4096 tab=516 out=67584 worst=0.000986507 +PASS sweep 16q/ 8kv ratio 2 ctx 256: launches=1 ctas=64 call_ms med=0.109 p90=0.110 kernel_ms med=0.103 p90=0.104 kv_staged=98304 (naive 524288) blocks=3/16 q=4096 tab=68 out=16896 worst=0.000962271 +PASS sweep 16q/ 8kv ratio 2 ctx 2048: launches=1 ctas=256 call_ms med=0.127 p90=0.128 kernel_ms med=0.103 p90=0.104 kv_staged=622592 (naive 4194304) blocks=19/128 q=4096 tab=516 out=67584 worst=0.000765968 +PASS sweep 16q/16kv ratio 1 ctx 256: launches=1 ctas=64 call_ms med=0.110 p90=0.111 kernel_ms med=0.103 p90=0.103 kv_staged=196608 (naive 1048576) blocks=3/16 q=4096 tab=68 out=16896 worst=0.00104407 +PASS sweep 16q/16kv ratio 1 ctx 2048: launches=1 ctas=256 call_ms med=0.134 p90=0.135 kernel_ms med=0.103 p90=0.104 kv_staged=1245184 (naive 8388608) blocks=19/128 q=4096 tab=516 out=67584 worst=0.000910028 +PASS sweep 24q/ 1kv ratio 24 ctx 256: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/ 1kv ratio 24 ctx 2048: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/ 2kv ratio 12 ctx 256: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/ 2kv ratio 12 ctx 2048: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/ 3kv ratio 8 ctx 256: launches=1 ctas=96 call_ms med=0.111 p90=0.111 kernel_ms med=0.103 p90=0.103 kv_staged=36864 (naive 196608) blocks=3/16 q=6144 tab=68 out=25344 worst=0.00116392 +PASS sweep 24q/ 3kv ratio 8 ctx 2048: launches=1 ctas=384 call_ms med=0.131 p90=0.232 kernel_ms med=0.103 p90=0.204 kv_staged=233472 (naive 1572864) blocks=19/128 q=6144 tab=516 out=101376 worst=0.000687275 +PASS sweep 24q/ 4kv ratio 6 ctx 256: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/ 4kv ratio 6 ctx 2048: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/ 6kv ratio 4 ctx 256: launches=1 ctas=96 call_ms med=0.111 p90=0.112 kernel_ms med=0.103 p90=0.104 kv_staged=73728 (naive 393216) blocks=3/16 q=6144 tab=68 out=25344 worst=0.00134672 +PASS sweep 24q/ 6kv ratio 4 ctx 2048: launches=1 ctas=384 call_ms med=0.134 p90=0.134 kernel_ms med=0.103 p90=0.104 kv_staged=466944 (naive 3145728) blocks=19/128 q=6144 tab=516 out=101376 worst=0.000869373 +PASS sweep 24q/ 8kv ratio 3 ctx 256: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/ 8kv ratio 3 ctx 2048: unsupported_by_kernel_envelope (rc=BAD_ARGS) +PASS sweep 24q/12kv ratio 2 ctx 256: launches=1 ctas=96 call_ms med=0.112 p90=0.112 kernel_ms med=0.103 p90=0.103 kv_staged=147456 (naive 786432) blocks=3/16 q=6144 tab=68 out=25344 worst=0.00109466 +PASS sweep 24q/12kv ratio 2 ctx 2048: launches=1 ctas=384 call_ms med=0.139 p90=0.140 kernel_ms med=0.103 p90=0.104 kv_staged=933888 (naive 6291456) blocks=19/128 q=6144 tab=516 out=101376 worst=0.000905124 +PASS sweep 24q/24kv ratio 1 ctx 256: launches=1 ctas=96 call_ms med=0.113 p90=0.114 kernel_ms med=0.103 p90=0.104 kv_staged=294912 (naive 1572864) blocks=3/16 q=6144 tab=68 out=25344 worst=0.00115814 +PASS sweep 24q/24kv ratio 1 ctx 2048: launches=1 ctas=384 call_ms med=0.153 p90=0.155 kernel_ms med=0.103 p90=0.105 kv_staged=1867776 (naive 12582912) blocks=19/128 q=6144 tab=516 out=101376 worst=0.000723758 +PASS sweep 32q/ 1kv ratio 32 ctx 256: launches=1 ctas=128 call_ms med=0.112 p90=0.113 kernel_ms med=0.103 p90=0.103 kv_staged=12288 (naive 65536) blocks=3/16 q=8192 tab=68 out=33792 worst=0.000983527 +PASS sweep 32q/ 1kv ratio 32 ctx 2048: launches=1 ctas=512 call_ms med=0.138 p90=0.139 kernel_ms med=0.103 p90=0.105 kv_staged=77824 (naive 524288) blocks=19/128 q=8192 tab=516 out=135168 worst=0.00096523 +PASS sweep 32q/ 2kv ratio 16 ctx 256: launches=1 ctas=128 call_ms med=0.113 p90=0.113 kernel_ms med=0.103 p90=0.104 kv_staged=24576 (naive 131072) blocks=3/16 q=8192 tab=68 out=33792 worst=0.00107618 +PASS sweep 32q/ 2kv ratio 16 ctx 2048: launches=1 ctas=512 call_ms med=0.342 p90=0.344 kernel_ms med=0.307 p90=0.309 kv_staged=155648 (naive 1048576) blocks=19/128 q=8192 tab=516 out=135168 worst=0.000909898 +PASS sweep 32q/ 4kv ratio 8 ctx 256: launches=1 ctas=128 call_ms med=0.113 p90=0.114 kernel_ms med=0.103 p90=0.104 kv_staged=49152 (naive 262144) blocks=3/16 q=8192 tab=68 out=33792 worst=0.00148519 +PASS sweep 32q/ 4kv ratio 8 ctx 2048: launches=1 ctas=512 call_ms med=0.344 p90=0.345 kernel_ms med=0.307 p90=0.308 kv_staged=311296 (naive 2097152) blocks=19/128 q=8192 tab=516 out=135168 worst=0.000728955 +PASS sweep 32q/ 8kv ratio 4 ctx 256: launches=1 ctas=128 call_ms med=0.114 p90=0.114 kernel_ms med=0.103 p90=0.104 kv_staged=98304 (naive 524288) blocks=3/16 q=8192 tab=68 out=33792 worst=0.00120324 +PASS sweep 32q/ 8kv ratio 4 ctx 2048: launches=1 ctas=512 call_ms med=0.245 p90=0.248 kernel_ms med=0.205 p90=0.208 kv_staged=622592 (naive 4194304) blocks=19/128 q=8192 tab=516 out=135168 worst=0.000902204 +PASS sweep 32q/16kv ratio 2 ctx 256: launches=1 ctas=128 call_ms med=0.114 p90=0.418 kernel_ms med=0.103 p90=0.405 kv_staged=196608 (naive 1048576) blocks=3/16 q=8192 tab=68 out=33792 worst=0.00134401 +PASS sweep 32q/16kv ratio 2 ctx 2048: launches=1 ctas=512 call_ms med=0.348 p90=0.420 kernel_ms med=0.295 p90=0.369 kv_staged=1245184 (naive 8388608) blocks=19/128 q=8192 tab=516 out=135168 worst=0.000943157 +PASS sweep 32q/32kv ratio 1 ctx 256: launches=1 ctas=128 call_ms med=0.117 p90=0.219 kernel_ms med=0.104 p90=0.204 kv_staged=393216 (naive 2097152) blocks=3/16 q=8192 tab=68 out=33792 worst=0.0011642 +PASS sweep 32q/32kv ratio 1 ctx 2048: launches=1 ctas=512 call_ms med=0.291 p90=0.380 kernel_ms med=0.212 p90=0.310 kv_staged=2490368 (naive 16777216) blocks=19/128 q=8192 tab=516 out=135168 worst=0.000786263 +PASS sweep 64q/ 1kv ratio 64 ctx 256: launches=1 ctas=256 call_ms med=0.121 p90=0.122 kernel_ms med=0.103 p90=0.104 kv_staged=12288 (naive 65536) blocks=3/16 q=16384 tab=68 out=67584 worst=0.00130635 +PASS sweep 64q/ 1kv ratio 64 ctx 2048: launches=1 ctas=1024 call_ms med=0.170 p90=0.231 kernel_ms med=0.103 p90=0.164 kv_staged=77824 (naive 524288) blocks=19/128 q=16384 tab=516 out=270336 worst=0.00103163 +PASS sweep 64q/ 2kv ratio 32 ctx 256: launches=1 ctas=256 call_ms med=0.121 p90=0.121 kernel_ms med=0.103 p90=0.104 kv_staged=24576 (naive 131072) blocks=3/16 q=16384 tab=68 out=67584 worst=0.00117469 +PASS sweep 64q/ 2kv ratio 32 ctx 2048: launches=1 ctas=1024 call_ms med=0.375 p90=0.377 kernel_ms med=0.308 p90=0.310 kv_staged=155648 (naive 1048576) blocks=19/128 q=16384 tab=516 out=270336 worst=0.000887297 +PASS sweep 64q/ 4kv ratio 16 ctx 256: launches=1 ctas=256 call_ms med=0.122 p90=0.122 kernel_ms med=0.103 p90=0.104 kv_staged=49152 (naive 262144) blocks=3/16 q=16384 tab=68 out=67584 worst=0.0014115 +PASS sweep 64q/ 4kv ratio 16 ctx 2048: launches=1 ctas=1024 call_ms med=0.479 p90=0.481 kernel_ms med=0.410 p90=0.412 kv_staged=311296 (naive 2097152) blocks=19/128 q=16384 tab=516 out=270336 worst=0.000843739 +PASS sweep 64q/ 8kv ratio 8 ctx 256: launches=1 ctas=256 call_ms med=0.122 p90=0.122 kernel_ms med=0.103 p90=0.104 kv_staged=98304 (naive 524288) blocks=3/16 q=16384 tab=68 out=67584 worst=0.0011426 +PASS sweep 64q/ 8kv ratio 8 ctx 2048: launches=1 ctas=1024 call_ms med=0.590 p90=0.690 kernel_ms med=0.517 p90=0.617 kv_staged=622592 (naive 4194304) blocks=19/128 q=16384 tab=516 out=270336 worst=0.000889638 +PASS sweep 64q/16kv ratio 4 ctx 256: launches=1 ctas=256 call_ms med=0.123 p90=0.123 kernel_ms med=0.103 p90=0.103 kv_staged=196608 (naive 1048576) blocks=3/16 q=16384 tab=68 out=67584 worst=0.00133774 +PASS sweep 64q/16kv ratio 4 ctx 2048: launches=1 ctas=1024 call_ms med=0.602 p90=0.706 kernel_ms med=0.519 p90=0.622 kv_staged=1245184 (naive 8388608) blocks=19/128 q=16384 tab=516 out=270336 worst=0.000935371 +PASS sweep 64q/32kv ratio 2 ctx 256: launches=1 ctas=256 call_ms med=0.125 p90=0.125 kernel_ms med=0.103 p90=0.104 kv_staged=393216 (naive 2097152) blocks=3/16 q=16384 tab=68 out=67584 worst=0.0013971 +PASS sweep 64q/32kv ratio 2 ctx 2048: launches=1 ctas=1024 call_ms med=0.521 p90=0.532 kernel_ms med=0.415 p90=0.424 kv_staged=2490368 (naive 16777216) blocks=19/128 q=16384 tab=516 out=270336 worst=0.000789703 +PASS sweep 64q/64kv ratio 1 ctx 256: launches=1 ctas=256 call_ms med=0.129 p90=0.131 kernel_ms med=0.103 p90=0.104 kv_staged=786432 (naive 4194304) blocks=3/16 q=16384 tab=68 out=67584 worst=0.00124046 +PASS sweep 64q/64kv ratio 1 ctx 2048: launches=1 ctas=1024 call_ms med=0.562 p90=0.661 kernel_ms med=0.413 p90=0.516 kv_staged=4980736 (naive 33554432) blocks=19/128 q=16384 tab=516 out=270336 worst=0.00162937 +sweep: 72 points (64 supported, 8 unsupported by the kernel envelope), device_opens=1 +PASS: 73 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/timing.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/timing.json new file mode 100644 index 000000000..7bd7eac12 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/timing.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_TIMING_V1","gate_median_ms":3.0,"calls":100,"cases":[{"case":"gqa_f32_tinyllama_32q4kv_ctx2048","first_call_ms":138.472,"ok_calls":100,"violations":0,"worst_scaled_err":0.00323017,"median_ms":0.5815,"p90_ms":0.5896,"min_ms":0.5443,"max_ms":0.8859,"chip_us_mean":523.4,"device_opens":1,"pass":true}],"checks":2,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/timing.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/timing.log new file mode 100644 index 000000000..8b45a9362 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/attention/FB1-CUT5-710d438c/timing.log @@ -0,0 +1,2 @@ +PASS timing gqa_f32_tinyllama_32q4kv_ctx2048 first_call_ms=138.472 ok_calls=100/100 violations=0 worst_scaled_err=0.00323017 median_ms=0.581 p90_ms=0.590 min_ms=0.544 max_ms=0.886 chip_us_mean=523.4 device_opens=1 +PASS: 2 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv.out new file mode 100644 index 000000000..16f62aa14 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv.out @@ -0,0 +1,83 @@ +host-only: emulation, oracle, budgets +emulation vs oracle: abs 3.577e-08, scale 63.821 +codegen rows 1 warps 4 depth 8: 266 instructions, 60 registers (declared 64, register file 8192 of 65536) +codegen rows 1 warps 8 depth 8: 234 instructions, 60 registers (declared 64, register file 16384 of 65536) +codegen rows 1 warps 16 depth 8: 218 instructions, 60 registers (declared 64, register file 32768 of 65536) +codegen rows 1 warps 32 depth 8: 210 instructions, 60 registers (declared 64, register file 65536 of 65536) +gpu_bf16_gemv_test: 185 checks, 0 failed: PASS +sim k 2048 n 100 rows 1 warps 8 depth 8 grid 2: ok 0 of 100 rows differ from the emulation (bit-identical) +sim k 2048 n 100 rows 1 warps 8 depth 4 grid 3: ok 0 of 100 rows differ from the emulation (bit-identical) +sim k 2048 n 64 rows 1 warps 8 depth 1 grid 2: ok 0 of 64 rows differ from the emulation (bit-identical) +sim k 2048 n 96 rows 2 warps 8 depth 4 grid 2: ok 0 of 96 rows differ from the emulation (bit-identical) +sim k 2048 n 96 rows 4 warps 8 depth 4 grid 1: ok 0 of 96 rows differ from the emulation (bit-identical) +sim k 512 n 70 rows 1 warps 8 depth 2 grid 2: ok 0 of 70 rows differ from the emulation (bit-identical) +sim k 512 n 70 rows 2 warps 4 depth 1 grid 3: ok 0 of 70 rows differ from the emulation (bit-identical) +sim k 4096 n 40 rows 1 warps 8 depth 16 grid 2: ok 0 of 40 rows differ from the emulation (bit-identical) +sim mutant 1: caught 64 of 64 rows differ from the emulation +sim mutant 2: caught 64 of 64 rows differ from the emulation +sim mutant 3: caught 64 of 64 rows differ from the emulation +sim: 297068 warp issues in total +gpu_bf16_gemv_test: 11 checks, 0 failed: PASS +PASS timing 1x2048x8192 upload_ms=239.1 ok_calls=100 median_ms=0.411 p90_ms=0.479 min_ms=0.297 max_ms=1.026 chip_ns_mean=411717 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.2 ok_calls=100 median_ms=0.513 p90_ms=0.627 min_ms=0.418 max_ms=1.068 chip_ns_mean=540529 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) +upload 151936 x 2048 bf16 (622 MB): rc=OK 312 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 50, evict 1): rows 1 warps 16 depth 8 ctas 96: chip 2935.1 us = 212.0 GB/s on 622 MB; call 3044.9 us = 204.4 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +upload 151936 x 2048 bf16 (622 MB): rc=OK 304 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 0): rows 1 warps 16 depth 8 ctas 96: chip 2920.3 us = 213.1 GB/s on 622 MB; call 3016.1 us = 206.3 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--no-evict exit 0 (informational) +upload 151936 x 2048 bf16 (622 MB): rc=OK 302 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 1): rows 1 warps 16 depth 4 ctas 96: chip 2933.0 us = 212.2 GB/s on 622 MB; call 3039.4 us = 204.8 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--depth 4 exit 0 (informational) +upload 151936 x 2048 bf16 (622 MB): rc=OK 305 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 1): rows 1 warps 32 depth 8 ctas 96: chip 3034.5 us = 205.1 GB/s on 622 MB; call 3141.7 us = 198.1 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--warps 32 exit 0 (informational) +upload 151936 x 2048 bf16 (622 MB): rc=OK 312 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 1): rows 1 warps 16 depth 8 ctas 48: chip 3028.9 us = 205.5 GB/s on 622 MB; call 3138.6 us = 198.3 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--ctas 48 exit 0 (informational) +quantised lm_head: weight rms error 0.0265 of weight rms (block-scaled e4m3) +uploads: bf16 OK, fp8 OK +state 0: bf16 argmax 68534 (18.378), fp8 argmax 68534 (18.330), margin 3.2326, logit rms rel diff 0.0276 +lm_head fp8 vs bf16 argmax study (real lm_head.weight, 1000 random hidden states = gaussian x model.norm.weight, seed 20261013) +argmax agreement: 931 of 1000 (93.10%); bf16 argmax within fp8 top-5: 1000 of 1000 +logit rms relative difference, worst over states: 0.0284 +agreement by bf16 top1-top2 logit gap: <0.05: 30/66 disagree, <0.2: 36/154, <1: 3/490, >=1: 0/290 +chip medians: bf16 kernel 2920.9 us, fp8 kernel 1545.7 us +study exit 0 (informational) +GPU_BF16_GEMV_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/SHA256SUMS new file mode 100644 index 000000000..5722d5461 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/SHA256SUMS @@ -0,0 +1,18 @@ +c30ce0570b48a3dfd633a707e89232cb94298004c1766c15b7f69794181c22a4 receipt-baseline-matmul.json +3e7b0b081da03897ee26d084b9c19fbddfdc8b966ac422fa2caf7000e9ba1245 receipt-c48.json +2bddc5fd5dc162319c381561db0583bd9c93288a121c5c677843b766efc82af8 receipt-d4.json +3b932f11acdd24bc99e5336be8754b119c415b9e97c65639a050006f92ecdf16 receipt-main.json +d591ddae0932d85f7b75c4f5c1fc055ec5234ea278721dafd0e1c9bf83bb07ea receipt-noevict.json +56160f45f6bd46fae1fea7f8473664ea6a97506d1358e758a46079c5567e943f receipt-w32.json +3c79518545f86cd1cf23b39b2736f4b766e8bfc5e6f6c265a3b30e1bff2204d4 argmax-study.log +ce143cd8bcc80fe52c158180203029c62d8fe267ab05b5974e431de98cd751d8 baseline-matmul.log +44e4397ef3869cb7ba829bcafe6d3eea50e131737329e9b01c13ac944ddb6435 build.log +48b0f59368c5dbbb0106709c7c92578b1a9a0c852d6f114ef68bd7e873dbdee3 c48.log +f9777ba52406fb11012b166939d9c5374a6037e8a3f86ab762fa1a46d22b64c5 d4.log +4c1f60495b79c58a6f5ec1ea63e40ff751422fd4b6352010730151d777034d45 host-only.log +34beab99dc077b5c5558dcc27786f707f74fed89dcdd294efb1013b2deaf788b main.log +a9c6e2f5ab479cd2c3c5bbade0f33be12e56de203364741728489344d9b3e201 noevict.log +266b57b755f3daceb851de6be9e35d6ce10ff57bfd25320cf660159c588b0a68 sim.log +6d2acee120dab886cce1550b20291eb68b511c81a891a487a4e5258fb286c06d w32.log +c8ad2b00b50647c021d67152192a5733cce0be342d42f153c1fab6fccc270f7a argmax-study.txt +08e1e83ce2ce1a2fe2f896a6d9f1b9fcd5b98d4bc37d0c96ce93acf350dd6a5e device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/argmax-study.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/argmax-study.log new file mode 100644 index 000000000..1d91e7aa2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/argmax-study.log @@ -0,0 +1,9 @@ +quantised lm_head: weight rms error 0.0265 of weight rms (block-scaled e4m3) +uploads: bf16 OK, fp8 OK +state 0: bf16 argmax 68534 (18.378), fp8 argmax 68534 (18.330), margin 3.2326, logit rms rel diff 0.0276 +lm_head fp8 vs bf16 argmax study (real lm_head.weight, 1000 random hidden states = gaussian x model.norm.weight, seed 20261013) +argmax agreement: 931 of 1000 (93.10%); bf16 argmax within fp8 top-5: 1000 of 1000 +logit rms relative difference, worst over states: 0.0284 +agreement by bf16 top1-top2 logit gap: <0.05: 30/66 disagree, <0.2: 36/154, <1: 3/490, >=1: 0/290 +chip medians: bf16 kernel 2920.9 us, fp8 kernel 1545.7 us +study exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/argmax-study.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/argmax-study.txt new file mode 100644 index 000000000..8717bf657 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/argmax-study.txt @@ -0,0 +1,5 @@ +lm_head fp8 vs bf16 argmax study (real lm_head.weight, 1000 random hidden states = gaussian x model.norm.weight, seed 20261013) +argmax agreement: 931 of 1000 (93.10%); bf16 argmax within fp8 top-5: 1000 of 1000 +logit rms relative difference, worst over states: 0.0284 +agreement by bf16 top1-top2 logit gap: <0.05: 30/66 disagree, <0.2: 36/154, <1: 3/490, >=1: 0/290 +chip medians: bf16 kernel 2920.9 us, fp8 kernel 1545.7 us diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/baseline-matmul.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/baseline-matmul.log new file mode 100644 index 000000000..f1891fb11 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/baseline-matmul.log @@ -0,0 +1,4 @@ +PASS timing 1x2048x8192 upload_ms=239.1 ok_calls=100 median_ms=0.411 p90_ms=0.479 min_ms=0.297 max_ms=1.026 chip_ns_mean=411717 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.2 ok_calls=100 median_ms=0.513 p90_ms=0.627 min_ms=0.418 max_ms=1.068 chip_ns_mean=540529 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/build.log new file mode 100644 index 000000000..0abcbde4f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/build.log @@ -0,0 +1,2 @@ +make: 'build/gpu_matmul_api_test' is up to date. +make: 'build/gpu_lmhead_fp8_study' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/c48.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/c48.log new file mode 100644 index 000000000..b94e0bd7e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/c48.log @@ -0,0 +1,10 @@ +upload 151936 x 2048 bf16 (622 MB): rc=OK 312 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 1): rows 1 warps 16 depth 8 ctas 48: chip 3028.9 us = 205.5 GB/s on 622 MB; call 3138.6 us = 198.3 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--ctas 48 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/d4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/d4.log new file mode 100644 index 000000000..f5459bead --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/d4.log @@ -0,0 +1,10 @@ +upload 151936 x 2048 bf16 (622 MB): rc=OK 302 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 1): rows 1 warps 16 depth 4 ctas 96: chip 2933.0 us = 212.2 GB/s on 622 MB; call 3039.4 us = 204.8 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--depth 4 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/device.txt new file mode 100644 index 000000000..14eb2a228 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:55:00Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 14 75 2 36 107 +end 2026-10-15T00:55:26Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/host-only.log new file mode 100644 index 000000000..59abc5658 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/host-only.log @@ -0,0 +1,7 @@ +host-only: emulation, oracle, budgets +emulation vs oracle: abs 3.577e-08, scale 63.821 +codegen rows 1 warps 4 depth 8: 266 instructions, 60 registers (declared 64, register file 8192 of 65536) +codegen rows 1 warps 8 depth 8: 234 instructions, 60 registers (declared 64, register file 16384 of 65536) +codegen rows 1 warps 16 depth 8: 218 instructions, 60 registers (declared 64, register file 32768 of 65536) +codegen rows 1 warps 32 depth 8: 210 instructions, 60 registers (declared 64, register file 65536 of 65536) +gpu_bf16_gemv_test: 185 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/main.log new file mode 100644 index 000000000..94ece1442 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/main.log @@ -0,0 +1,9 @@ +upload 151936 x 2048 bf16 (622 MB): rc=OK 312 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 50, evict 1): rows 1 warps 16 depth 8 ctas 96: chip 2935.1 us = 212.0 GB/s on 622 MB; call 3044.9 us = 204.4 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/noevict.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/noevict.log new file mode 100644 index 000000000..786c1761f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/noevict.log @@ -0,0 +1,10 @@ +upload 151936 x 2048 bf16 (622 MB): rc=OK 304 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 0): rows 1 warps 16 depth 8 ctas 96: chip 2920.3 us = 213.1 GB/s on 622 MB; call 3016.1 us = 206.3 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--no-evict exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-baseline-matmul.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-baseline-matmul.json new file mode 100644 index 000000000..9df7900e7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-baseline-matmul.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_TIMING_V1","cta_budget":64,"spin_us":0,"calls":100,"shapes":[{"m":1,"k":2048,"n":8192,"pass":true,"upload_ms":239.055,"ok_calls":100,"median_ms":0.4115,"p90_ms":0.4787,"min_ms":0.2966,"max_ms":1.0261,"chip_ns_mean":411717,"grid_x":64,"grid_y":1,"e2e_first":2.36603e-07,"e2e_last":2.36603e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0},{"m":1,"k":8192,"n":2048,"pass":true,"upload_ms":105.229,"ok_calls":100,"median_ms":0.5128,"p90_ms":0.6274,"min_ms":0.4185,"max_ms":1.0677,"chip_ns_mean":540529,"grid_x":64,"grid_y":1,"e2e_first":5.21488e-07,"e2e_last":5.21488e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-c48.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-c48.json new file mode 100644 index 000000000..429067e98 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-c48.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_BF16_GEMV_V1","n":151936,"k":2048,"reps":30,"evict":1,"spin_us":2000,"points":[{"point":"parity","rows_bad":0,"worst_rel":2.360e-08,"argmax_chip":74730,"argmax_oracle":74730},{"point":"timing","rows":1,"warps":16,"depth":8,"ctas":48,"reps":30,"chip_median_ns":3028858,"call_median_ns":3138635,"weight_bytes":622329856,"chip_gbps":205.47,"call_gbps":198.28,"marker":1145324612},{"point":"mutant 1","caught":1},{"point":"mutant 2","caught":1},{"point":"mutant 3","caught":1}],"checks":12,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-d4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-d4.json new file mode 100644 index 000000000..36176251f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-d4.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_BF16_GEMV_V1","n":151936,"k":2048,"reps":30,"evict":1,"spin_us":2000,"points":[{"point":"parity","rows_bad":0,"worst_rel":2.360e-08,"argmax_chip":74730,"argmax_oracle":74730},{"point":"timing","rows":1,"warps":16,"depth":4,"ctas":96,"reps":30,"chip_median_ns":2932969,"call_median_ns":3039402,"weight_bytes":622329856,"chip_gbps":212.18,"call_gbps":204.75,"marker":1145324612},{"point":"mutant 1","caught":1},{"point":"mutant 2","caught":1},{"point":"mutant 3","caught":1}],"checks":12,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-main.json new file mode 100644 index 000000000..564e03b57 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-main.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_BF16_GEMV_V1","n":151936,"k":2048,"reps":50,"evict":1,"spin_us":2000,"points":[{"point":"parity","rows_bad":0,"worst_rel":2.360e-08,"argmax_chip":74730,"argmax_oracle":74730},{"point":"timing","rows":1,"warps":16,"depth":8,"ctas":96,"reps":50,"chip_median_ns":2935113,"call_median_ns":3044922,"weight_bytes":622329856,"chip_gbps":212.03,"call_gbps":204.38,"marker":1145324612},{"point":"mutant 1","caught":1},{"point":"mutant 2","caught":1},{"point":"mutant 3","caught":1}],"checks":12,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-noevict.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-noevict.json new file mode 100644 index 000000000..cdeb8089c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-noevict.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_BF16_GEMV_V1","n":151936,"k":2048,"reps":30,"evict":0,"spin_us":2000,"points":[{"point":"parity","rows_bad":0,"worst_rel":2.360e-08,"argmax_chip":74730,"argmax_oracle":74730},{"point":"timing","rows":1,"warps":16,"depth":8,"ctas":96,"reps":30,"chip_median_ns":2920345,"call_median_ns":3016089,"weight_bytes":622329856,"chip_gbps":213.10,"call_gbps":206.34,"marker":1145324612},{"point":"mutant 1","caught":1},{"point":"mutant 2","caught":1},{"point":"mutant 3","caught":1}],"checks":12,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-w32.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-w32.json new file mode 100644 index 000000000..8520967a2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/receipt-w32.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_BF16_GEMV_V1","n":151936,"k":2048,"reps":30,"evict":1,"spin_us":2000,"points":[{"point":"parity","rows_bad":0,"worst_rel":2.360e-08,"argmax_chip":74730,"argmax_oracle":74730},{"point":"timing","rows":1,"warps":32,"depth":8,"ctas":96,"reps":30,"chip_median_ns":3034505,"call_median_ns":3141691,"weight_bytes":622329856,"chip_gbps":205.08,"call_gbps":198.09,"marker":1145324612},{"point":"mutant 1","caught":1},{"point":"mutant 2","caught":1},{"point":"mutant 3","caught":1}],"checks":12,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/sim.log new file mode 100644 index 000000000..b1192252a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/sim.log @@ -0,0 +1,13 @@ +sim k 2048 n 100 rows 1 warps 8 depth 8 grid 2: ok 0 of 100 rows differ from the emulation (bit-identical) +sim k 2048 n 100 rows 1 warps 8 depth 4 grid 3: ok 0 of 100 rows differ from the emulation (bit-identical) +sim k 2048 n 64 rows 1 warps 8 depth 1 grid 2: ok 0 of 64 rows differ from the emulation (bit-identical) +sim k 2048 n 96 rows 2 warps 8 depth 4 grid 2: ok 0 of 96 rows differ from the emulation (bit-identical) +sim k 2048 n 96 rows 4 warps 8 depth 4 grid 1: ok 0 of 96 rows differ from the emulation (bit-identical) +sim k 512 n 70 rows 1 warps 8 depth 2 grid 2: ok 0 of 70 rows differ from the emulation (bit-identical) +sim k 512 n 70 rows 2 warps 4 depth 1 grid 3: ok 0 of 70 rows differ from the emulation (bit-identical) +sim k 4096 n 40 rows 1 warps 8 depth 16 grid 2: ok 0 of 40 rows differ from the emulation (bit-identical) +sim mutant 1: caught 64 of 64 rows differ from the emulation +sim mutant 2: caught 64 of 64 rows differ from the emulation +sim mutant 3: caught 64 of 64 rows differ from the emulation +sim: 297068 warp issues in total +gpu_bf16_gemv_test: 11 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/w32.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/w32.log new file mode 100644 index 000000000..57072408f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/bf16_gemv/w32.log @@ -0,0 +1,10 @@ +upload 151936 x 2048 bf16 (622 MB): rc=OK 305 ms () +parity: 0 of 151936 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.36e-08 of the term scale (y -1.416); argmax chip 74730 oracle 74730 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 30, evict 1): rows 1 warps 32 depth 8 ctas 96: chip 3034.5 us = 205.1 GB/s on 622 MB; call 3141.7 us = 198.1 GB/s +chip mutant 1: caught (4096 of 4096 rows differ) +chip mutant 2: caught (4096 of 4096 rows differ) +chip mutant 3: caught (4096 of 4096 rows differ) +gpu_bf16_gemv_test: 12 checks, 0 failed: PASS +--warps 32 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist.out new file mode 100644 index 000000000..995a12915 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist.out @@ -0,0 +1,47 @@ +codegen axpy: 23 insns, peak 12 gprs, declared 16 +codegen res add|norm: 128 insns, peak 40 gprs, declared 48 +codegen res combine|norm: 264 insns, peak 49 gprs, declared 56 +codegen res add: 45 insns, peak 28 gprs, declared 32 +codegen swiglu: 29 insns, peak 16 gprs, declared 24 +codegen argmax: 165 insns, peak 32 gprs, declared 40 +codegen argmax indexed: 160 insns, peak 40 gprs, declared 48 +host-only: 20 checks, 0 failed: PASS +sim res mode 5 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 1 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 1 mutant 1: x DIFFERS, y 2047/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 1: x DIFFERS, y 2048/2048 outside tolerance +sim swiglu mutant 0: 0/6144 outside tolerance +sim swiglu mutant 1: 6144/6144 outside tolerance +sim argmax tie 0 mutant 0: index 151625 value 49.9996 (ref 151625) +sim argmax tie 0 mutant 1: index 151625 value 49.9996 (ref 151625) +sim argmax tie 1 mutant 0: index 1007 value 60 (ref 1007) +sim argmax tie 1 mutant 1: index 28784 value 49.9999 (ref 1007) +sim: 39 checks, 0 failed: PASS +L=64: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 3.20 us/launch (wall 3.21, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 103.2 us/launch (chip 103.2 us, wall 103.5 us per launch); PCAS ok 3.17 us/launch (wall 3.18, 1 submits); INLINE ok 3.90 us/launch (4 submits) +L=1024: baseline 104.6 us/launch (chip 104.6 us, wall 105.2 us per launch); PCAS ok 2.72 us/launch (wall 2.73, 1 submits); INLINE ok 3.94 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1458.1 us; BARRIER_NONE rc 0 16256 differ 1349.8 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 113.5 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 109.4 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS +L=64: baseline 101.0 us/launch (chip 101.0 us, wall 101.4 us per launch); PCAS ok 3.19 us/launch (wall 3.20, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 104.2 us/launch (chip 104.2 us, wall 104.8 us per launch); PCAS ok 2.87 us/launch (wall 2.87, 1 submits); INLINE ok 3.97 us/launch (4 submits) +L=1024: baseline 103.6 us/launch (chip 103.6 us, wall 104.1 us per launch); PCAS ok 2.72 us/launch (wall 2.73, 1 submits); INLINE ok 3.87 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1847.3 us; BARRIER_NONE rc 0 18560 differ 1547.0 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 105.6 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 103.4 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS +spin-us 0 exit 0 (informational) +GPU_CMDLIST_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/SHA256SUMS new file mode 100644 index 000000000..4c7229c96 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/SHA256SUMS @@ -0,0 +1,8 @@ +c48ff61675ddd6862243392fe125d7fb95ff6dc1b0303e37ee4819decd4c0eac receipt-main.json +f4721b4e7b3e1d4b2cf0bbde13b309abaa8922d4c7d79520282f4d3a6a73f19f receipt-spin0.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +19a5e1c7793eb4bd2cd68172703e3a6996966dbc8ba3d6b015f38b6455aa75d8 host-only.log +52c2a28f56346a16b96cce0779de712f7fd05b6b9af6498ad9694305cbc87d0a main.log +90fb388d6494bb76d147f0ff1cccda96c5e01bc64fc0cb650a694e71f26769c5 sim.log +41d4f211a9263bd76b1d27caef92a57fda3e9f1f5bfc582236848cb8bab36337 spin0.log +6e94c6ac32caafe676145bf2c945755860468b40adc5f95b567491edd90fc050 device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/device.txt new file mode 100644 index 000000000..45171f24b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:55:26Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 73 2 36 106 +end 2026-10-15T00:55:33Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/host-only.log new file mode 100644 index 000000000..ea7cd0e33 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/host-only.log @@ -0,0 +1,8 @@ +codegen axpy: 23 insns, peak 12 gprs, declared 16 +codegen res add|norm: 128 insns, peak 40 gprs, declared 48 +codegen res combine|norm: 264 insns, peak 49 gprs, declared 56 +codegen res add: 45 insns, peak 28 gprs, declared 32 +codegen swiglu: 29 insns, peak 16 gprs, declared 24 +codegen argmax: 165 insns, peak 32 gprs, declared 40 +codegen argmax indexed: 160 insns, peak 40 gprs, declared 48 +host-only: 20 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/main.log new file mode 100644 index 000000000..62ea80f74 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/main.log @@ -0,0 +1,11 @@ +L=64: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 3.20 us/launch (wall 3.21, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 103.2 us/launch (chip 103.2 us, wall 103.5 us per launch); PCAS ok 3.17 us/launch (wall 3.18, 1 submits); INLINE ok 3.90 us/launch (4 submits) +L=1024: baseline 104.6 us/launch (chip 104.6 us, wall 105.2 us per launch); PCAS ok 2.72 us/launch (wall 2.73, 1 submits); INLINE ok 3.94 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1458.1 us; BARRIER_NONE rc 0 16256 differ 1349.8 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 113.5 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 109.4 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/receipt-main.json new file mode 100644 index 000000000..f4bb21aca --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/receipt-main.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_CMDLIST_V1","reps":20,"spin_us":0,"rows":[{"L":64,"baseline_ns":6606998,"baseline_wall_ns":6627206,"pcas_ok":1,"pcas_ns":204979,"pcas_wall_ns":205555,"pcas_submits":1,"inline_ok":1,"inline_ns":307348,"inline_submits":1,"stamps_span_ns":199200,"stamps_min_ns":2720,"stamps_max_ns":3264,"stamps_chip_ns":204963},{"L":289,"baseline_ns":29812339,"baseline_wall_ns":29910069,"pcas_ok":1,"pcas_ns":917404,"pcas_wall_ns":918476,"pcas_submits":1,"inline_ok":1,"inline_ns":1127727,"inline_submits":4,"stamps_span_ns":912288,"stamps_min_ns":2784,"stamps_max_ns":3392,"stamps_chip_ns":1019517},{"L":1024,"baseline_ns":107161028,"baseline_wall_ns":107674646,"pcas_ok":1,"pcas_ns":2787668,"pcas_wall_ns":2793940,"pcas_submits":1,"inline_ok":1,"inline_ns":4033205,"inline_submits":13,"stamps_span_ns":2984512,"stamps_min_ns":2560,"stamps_max_ns":3392,"stamps_chip_ns":2995431}],"skip_control":{"rc":-1,"first_missing":32,"sems_done":63},"no_barrier_control":{"wfi_rc":0,"wfi_diff":0,"wfi_ns":1458099,"none_rc":0,"none_diff":16256,"none_ns":1349777},"glue_tie0":{"rc":0,"chip_ns":113474,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":45508,"argmax_ref":45508},"glue_tie1":{"rc":0,"chip_ns":109377,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":1007,"argmax_ref":1007},"checks":31,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/receipt-spin0.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/receipt-spin0.json new file mode 100644 index 000000000..d3590d96c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/receipt-spin0.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_CMDLIST_V1","reps":20,"spin_us":0,"rows":[{"L":64,"baseline_ns":6465093,"baseline_wall_ns":6491189,"pcas_ok":1,"pcas_ns":204370,"pcas_wall_ns":204882,"pcas_submits":1,"inline_ok":1,"inline_ns":306916,"inline_submits":1,"stamps_span_ns":196992,"stamps_min_ns":2720,"stamps_max_ns":3296,"stamps_chip_ns":205571},{"L":289,"baseline_ns":30115783,"baseline_wall_ns":30277225,"pcas_ok":1,"pcas_ns":828107,"pcas_wall_ns":830539,"pcas_submits":1,"inline_ok":1,"inline_ns":1147503,"inline_submits":4,"stamps_span_ns":893344,"stamps_min_ns":2720,"stamps_max_ns":3552,"stamps_chip_ns":931292},{"L":1024,"baseline_ns":106094416,"baseline_wall_ns":106557349,"pcas_ok":1,"pcas_ns":2786244,"pcas_wall_ns":2792116,"pcas_submits":1,"inline_ok":1,"inline_ns":3965058,"inline_submits":13,"stamps_span_ns":3009120,"stamps_min_ns":2528,"stamps_max_ns":13696,"stamps_chip_ns":3098968}],"skip_control":{"rc":-1,"first_missing":32,"sems_done":63},"no_barrier_control":{"wfi_rc":0,"wfi_diff":0,"wfi_ns":1847272,"none_rc":0,"none_diff":18560,"none_ns":1546964},"glue_tie0":{"rc":0,"chip_ns":105601,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":45508,"argmax_ref":45508},"glue_tie1":{"rc":0,"chip_ns":103426,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":1007,"argmax_ref":1007},"checks":31,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/sim.log new file mode 100644 index 000000000..25130326e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/sim.log @@ -0,0 +1,15 @@ +sim res mode 5 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 1 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 1 mutant 1: x DIFFERS, y 2047/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 1: x DIFFERS, y 2048/2048 outside tolerance +sim swiglu mutant 0: 0/6144 outside tolerance +sim swiglu mutant 1: 6144/6144 outside tolerance +sim argmax tie 0 mutant 0: index 151625 value 49.9996 (ref 151625) +sim argmax tie 0 mutant 1: index 151625 value 49.9996 (ref 151625) +sim argmax tie 1 mutant 0: index 1007 value 60 (ref 1007) +sim argmax tie 1 mutant 1: index 28784 value 49.9999 (ref 1007) +sim: 39 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/spin0.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/spin0.log new file mode 100644 index 000000000..08dd2ed23 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cmdlist/spin0.log @@ -0,0 +1,12 @@ +L=64: baseline 101.0 us/launch (chip 101.0 us, wall 101.4 us per launch); PCAS ok 3.19 us/launch (wall 3.20, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 104.2 us/launch (chip 104.2 us, wall 104.8 us per launch); PCAS ok 2.87 us/launch (wall 2.87, 1 submits); INLINE ok 3.97 us/launch (4 submits) +L=1024: baseline 103.6 us/launch (chip 103.6 us, wall 104.1 us per launch); PCAS ok 2.72 us/launch (wall 2.73, 1 submits); INLINE ok 3.87 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1847.3 us; BARRIER_NONE rc 0 18560 differ 1547.0 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 105.6 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 103.4 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS +spin-us 0 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b.out new file mode 100644 index 000000000..6499e7eb7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b.out @@ -0,0 +1,9 @@ +elementwise rc=0 :: PASS: 35 checks, 0 failed +elementwise_timing rc=0 :: PASS: 4 checks, 0 failed +attention_sim rc=0 :: PASS: 219 checks, 0 failed +attention rc=0 :: PASS: 219 checks, 0 failed +attention_timing rc=0 :: PASS: 2 checks, 0 failed +matmul rc=0 :: PASS: 25 checks, 0 failed +matmul_timing rc=0 :: PASS: 4 checks, 0 failed +PROBE_GPU_OPEN: negative_control_exit=127 first_call_failures=0/90 (details /home/drakestapleton/workspace/requal-0c63/omega-gates/cut4b/FB1-CUT4B-710d438c/probe/failures.txt) +FB1-CUT4B chip gate failed_steps=0 probe_rc=0 receipt=/home/drakestapleton/workspace/requal-0c63/omega-gates/cut4b/FB1-CUT4B-710d438c diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/SHA256SUMS new file mode 100644 index 000000000..4ec923678 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/SHA256SUMS @@ -0,0 +1,40 @@ +8bb3ce259912101917d45f3a89fbdfe9e1cd02264256b396ce81a1670d71d96f attention.json +bcf1a68a29686f078440d154aa3d59be93f45544ba345363e04630a4027b68a4 attention.log +58d8b723b21999036551e0840820e8662a747e39c895f8784356b50a2a972f6b attention_sim.log +650168b7648e8b43644b9b51039f19a1d08ecede731a267dbc5c947dcfc46696 attention_timing.json +9bba5b97997d8fb1fdbd44f3a25a983905301065bec366fcde7ecba3703ab436 attention_timing.log +fc2f6f1d5bdc6288e398189cde1b7062f269e5c2132d4edff0c56ac5052154e6 build.log +07891bf3dce24bfc67f1791065a625d87d775decf50c846aa59789f34dec7dac device.txt +669d2268f45f4f6054e99dd7384b93db55c646ca7ee4a33c0353932b150aac25 elementwise.json +e0ce642823a00d8970e16566b61c59caa576ed5bb8c6c76c17a843dd86784f3a elementwise.log +b9f0c003756d13f5a832f4d9167ab5b5a5d9ba1a2121101be34cf467b00f5308 elementwise_timing.json +2b8847ee38e1df6b44bbfb0e71f2c3c562efbd5036c2d3f68b8e8dd31851e0d6 elementwise_timing.log +ad6ab1b22937beddaa843d17a4c00e902df529aa02d92ee2ee61102951f43006 gpu_attention_test.c +f4b7865a3459036719024599d5a81718bd3039812dd4b23f556464581dbff5ac gpu_elementwise_test.c +bbb5bc33d49dfc83aa2f63246ee28f8149ff0cbff3a99ffe1d729f87dae4c04f gpu_matmul_api_test.c +17476f515a4cf5acb50b04d302ac7b2d0551cbed1d5b258c02b33bc50ffd661b matmul.json +18bfbce5600342efbba3ccf4bf2e439eb952c2cb34b8d8217e4e354074cee574 matmul.log +0f12d1630236f76d93cf61a050af3e0ca25858c8e39ea8991e696a43bbf0a22c matmul_timing.json +3fd588901101178dd6b7b671c9ef6e9af12d26c99e956b61993e6b73f858fe7e matmul_timing.log +db8e44ff47d2012049763b1adebf8c4724f07988bfb6f858fe5173e40fa4a066 omega_gpu_attention_api.c +f9be0e256e10e0664bc0602e862b544041a658248bd7200b463753fde81b396a omega_gpu_attention_api.h +7366eb0f8bbeb012f680bacc7c28b2b4bb6489726df08c6dc80dae640c0ba71c omega_gpu_elementwise_api.c +5d62a2ea6209fc5a0133f866b60469a74d3ef2a32da67a30312e4daacc96b97f omega_gpu_elementwise_api.h +95e68935ed93cac63b454a2e46a4bcae646eb337b706d2eb6c53a5165763280f omega_gpu_fmt.c +d9bcc61fb5b15230889c5fac459c2ccc4c055bfa10c4052c34d79ef7eb4933f8 omega_gpu_matmul_api.c +f89c08a11b1c0a37a0f76f895899cfe261e76dee71dbcd911f2125647a3e34f2 omega_gpu_platform.c +949515810f07f0e7ecb6c7fe71dad17d51c33c3f8ebbebd0ecd7b67abdb64f93 omega_gpu_platform_linux.c +36ffb699ce73e8d7e8be4fc8c4327ad84be678c539712972590d0bd81932d960 omega_gpu_session.c +af3df8707b9d54fd317baaa9a37d8bd869b2efc07f8928fe6f34a8366210a590 omega_gpu_session.h +0a2c87ff1ccfc766b26d85e20d97c91d9baa1b91999eb99d453cc5184b7b4d58 probe.log +5710b558e139890131ce02bd4ef96c3b611b7ecd61f997a381b7cac359839368 probe/SHA256SUMS +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 probe/build.log +179ff826bc590b1fcec5580dae5994f2a22ea649eb6f9e4877c3f47e46a3fa25 probe/device.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 probe/failures.txt +2cf1630f99767bd7a9ab1e1f0940516dd3b534dd71906ef0a6c7d8e7ae0c63c8 probe/gpu_session_probe.c +97b912eb4a61df5f806ca6239dde3e1a4f51ad20aced1642cbb83dc510a5fa6b probe/ok_count.txt +f89c08a11b1c0a37a0f76f895899cfe261e76dee71dbcd911f2125647a3e34f2 probe/omega_gpu_platform.c +949515810f07f0e7ecb6c7fe71dad17d51c33c3f8ebbebd0ecd7b67abdb64f93 probe/omega_gpu_platform_linux.c +36ffb699ce73e8d7e8be4fc8c4327ad84be678c539712972590d0bd81932d960 probe/omega_gpu_session.c +c63c2b52e20cec5f83b7879d7a1e9884e3d04f726e2f8622070882fa712daee2 probe/probe.log +62917b652c99e4d01906f9071000c41049ab610052de2e6f3661f2aadd0097d5 probe/probe_gpu_open.sh diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention.json new file mode 100644 index 000000000..384ad090a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_V1","tolerances":{"rel":2e-4,"abs":2e-5,"large_scores_rel":1e-3,"large_scores_abs":1e-4},"cases":[{"case":"gqa_f32_tinyllama_32q4kv_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":213714,"call_ns":133666083,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048,"kv_bytes_naive":2048,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00189431,"pass":true,"chip_elapsed_ns":103553,"call_ns":222898,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":34816,"kv_bytes_naive":34816,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00189409,"pass":true,"chip_elapsed_ns":104833,"call_ns":343971,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0028582,"pass":true,"chip_elapsed_ns":416453,"call_ns":988539,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4194304,"kv_bytes_naive":4194304,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_tinyllama_32q4kv_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00174821,"pass":true,"chip_elapsed_ns":103361,"call_ns":214818,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":133120,"kv_bytes_naive":133120,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00197914,"pass":true,"chip_elapsed_ns":103921,"call_ns":108737,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00177573,"pass":true,"chip_elapsed_ns":103953,"call_ns":108449,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":264192,"kv_bytes_naive":264192,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00259576,"pass":true,"chip_elapsed_ns":205298,"call_ns":213250,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":614400,"kv_bytes_naive":614400,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_tinyllama_32q4kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00247545,"pass":true,"chip_elapsed_ns":311235,"call_ns":341236,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048000,"kv_bytes_naive":2048000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103985,"call_ns":201618,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00174276,"pass":true,"chip_elapsed_ns":100305,"call_ns":103297,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":69632,"kv_bytes_naive":69632,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_llama32_1b_32q8kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00161378,"pass":true,"chip_elapsed_ns":105137,"call_ns":235395,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1048576,"kv_bytes_naive":1048576,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0029454,"pass":true,"chip_elapsed_ns":495557,"call_ns":1590673,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":8388608,"kv_bytes_naive":8388608,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042)"},{"case":"gqa_f32_llama32_1b_32q8kv_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0014332,"pass":true,"chip_elapsed_ns":103841,"call_ns":239218,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":266240,"kv_bytes_naive":266240,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00186415,"pass":true,"chip_elapsed_ns":103121,"call_ns":110145,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00185519,"pass":true,"chip_elapsed_ns":103041,"call_ns":110049,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":528384,"kv_bytes_naive":528384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00162705,"pass":true,"chip_elapsed_ns":183410,"call_ns":198946,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":1228800,"kv_bytes_naive":1228800,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_f32_llama32_1b_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00330327,"pass":true,"chip_elapsed_ns":211811,"call_ns":287699,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096000,"kv_bytes_naive":4096000,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base0_rows1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103489,"call_ns":208002,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2048,"kv_bytes_naive":2048,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base17_rows5","n":10240,"rc":"OK","violations":0,"worst_scaled_err":0.00298047,"pass":true,"chip_elapsed_ns":103089,"call_ns":320179,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":45056,"kv_bytes_naive":225280,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_tinyllama_32q4kv_base300_rows40","n":81920,"rc":"OK","violations":0,"worst_scaled_err":0.00332929,"pass":true,"chip_elapsed_ns":726184,"call_ns":1057467,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":696320,"kv_bytes_naive":27852800,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812)"},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base0_rows1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103729,"call_ns":187554,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4096,"kv_bytes_naive":4096,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base17_rows5","n":10240,"rc":"OK","violations":0,"worst_scaled_err":0.00177684,"pass":true,"chip_elapsed_ns":103521,"call_ns":112753,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":90112,"kv_bytes_naive":450560,"kv_blocks_unique":1,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"gqa_rows_f32_llama32_1b_32q8kv_base300_rows40","n":81920,"rc":"OK","violations":0,"worst_scaled_err":0.00325614,"pass":true,"chip_elapsed_ns":827224,"call_ns":906185,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":1392640,"kv_bytes_naive":55705600,"kv_blocks_unique":1,"kv_blocks_logical":40,"mutants_run":4,"mutants_caught":4,"mutant_note":"SLOT:CAUGHT(rc=OK,bad=81806) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824)"},{"case":"gqa_f32_large_scores_32q4kv_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0830785,"pass":true,"chip_elapsed_ns":103986,"call_ns":223203,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"NO_MAX:CAUGHT(rc=OK,bad=2048)"},{"case":"gqa_f32_mha_16q16kv_ctx300","n":1024,"rc":"OK","violations":0,"worst_scaled_err":0.00184,"pass":true,"chip_elapsed_ns":209202,"call_ns":365491,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2457600,"kv_bytes_naive":2457600,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":3,"mutants_caught":3,"mutant_note":"Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":104049,"call_ns":205794,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":16384,"kv_bytes_naive":16384,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00158694,"pass":true,"chip_elapsed_ns":103297,"call_ns":196450,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":32768,"kv_bytes_naive":32768,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00106953,"pass":true,"chip_elapsed_ns":103169,"call_ns":237043,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000545881,"pass":true,"chip_elapsed_ns":217011,"call_ns":442533,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2097152,"kv_bytes_naive":2097152,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046)"},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00144367,"pass":true,"chip_elapsed_ns":103201,"call_ns":231874,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":81920,"kv_bytes_naive":81920,"kv_blocks_unique":5,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00159999,"pass":true,"chip_elapsed_ns":103105,"call_ns":110481,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":131072,"kv_bytes_naive":131072,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00170812,"pass":true,"chip_elapsed_ns":103345,"call_ns":110753,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":147456,"kv_bytes_naive":147456,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00140672,"pass":true,"chip_elapsed_ns":104161,"call_ns":243986,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":311296,"kv_bytes_naive":311296,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_tinyllama_32q4kv_bs16_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00143935,"pass":true,"chip_elapsed_ns":206418,"call_ns":372692,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":163840,"kv_bytes_naive":1032192,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx1","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103825,"call_ns":220867,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":32768,"kv_bytes_naive":32768,"kv_blocks_unique":1,"kv_blocks_logical":1,"mutants_run":1,"mutants_caught":1,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx17","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00205197,"pass":true,"chip_elapsed_ns":103105,"call_ns":212834,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":65536,"kv_blocks_unique":2,"kv_blocks_logical":2,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx256","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00105953,"pass":true,"chip_elapsed_ns":104113,"call_ns":220338,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":524288,"kv_bytes_naive":524288,"kv_blocks_unique":16,"kv_blocks_logical":16,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx2048","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00055855,"pass":true,"chip_elapsed_ns":210275,"call_ns":494405,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":4194304,"kv_bytes_naive":4194304,"kv_blocks_unique":128,"kv_blocks_logical":128,"mutants_run":5,"mutants_caught":5,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048)"},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx65","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00171737,"pass":true,"chip_elapsed_ns":105153,"call_ns":238931,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":163840,"kv_bytes_naive":163840,"kv_blocks_unique":5,"kv_blocks_logical":5,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx128","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00153626,"pass":true,"chip_elapsed_ns":103569,"call_ns":112801,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":262144,"kv_bytes_naive":262144,"kv_blocks_unique":8,"kv_blocks_logical":8,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx129","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00162582,"pass":true,"chip_elapsed_ns":103921,"call_ns":113473,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":294912,"kv_bytes_naive":294912,"kv_blocks_unique":9,"kv_blocks_logical":9,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx300","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00144548,"pass":true,"chip_elapsed_ns":105281,"call_ns":229826,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":622592,"kv_bytes_naive":622592,"kv_blocks_unique":19,"kv_blocks_logical":19,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_llama32_1b_32q8kv_bs16_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00094646,"pass":true,"chip_elapsed_ns":207074,"call_ns":405076,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":327680,"kv_bytes_naive":2064384,"kv_blocks_unique":10,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0028454,"pass":true,"chip_elapsed_ns":206562,"call_ns":358692,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00202911,"pass":true,"chip_elapsed_ns":103137,"call_ns":143537,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041)"},{"case":"paged_bf16_split4_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00111551,"pass":true,"chip_elapsed_ns":103633,"call_ns":242915,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000737182,"pass":true,"chip_elapsed_ns":103761,"call_ns":248402,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx1000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.000577315,"pass":true,"chip_elapsed_ns":104081,"call_ns":265347,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":2064384,"kv_bytes_naive":2064384,"kv_blocks_unique":63,"kv_blocks_logical":63,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split1_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.0018292,"pass":true,"chip_elapsed_ns":103393,"call_ns":201666,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split2_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":103009,"call_ns":109297,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split4_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":102801,"call_ns":112625,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split8_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":106321,"call_ns":124529,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_split16_32q8kv_ctx100","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00134618,"pass":true,"chip_elapsed_ns":103745,"call_ns":137266,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":65536,"kv_bytes_naive":229376,"kv_blocks_unique":2,"kv_blocks_logical":7,"mutants_run":0,"mutants_caught":0,"mutant_note":""},{"case":"paged_bf16_batch_3seq_32q8kv_ctx40_0_100","n":6144,"rc":"OK","violations":0,"worst_scaled_err":0.00173417,"pass":true,"chip_elapsed_ns":206834,"call_ns":219218,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":229376,"kv_bytes_naive":229376,"kv_blocks_unique":7,"kv_blocks_logical":7,"mutants_run":4,"mutants_caught":4,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092)"},{"case":"paged_bf16_shared_prefix_4seq_8q2kv_10pre","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0.00136352,"pass":true,"chip_elapsed_ns":104049,"call_ns":213218,"chip_calls":1,"unwritten_words":0,"kv_bytes_staged":155648,"kv_bytes_naive":401408,"kv_blocks_unique":19,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046)"},{"case":"paged_bf16_shared_prefix_4seq_32q8kv_10pre","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.00205105,"pass":true,"chip_elapsed_ns":209762,"call_ns":363652,"chip_calls":2,"unwritten_words":0,"kv_bytes_staged":950272,"kv_bytes_naive":1605632,"kv_blocks_unique":29,"kv_blocks_logical":49,"mutants_run":2,"mutants_caught":2,"mutant_note":"KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186)"}],"mutant_count":6,"mutants":{"NO_MAX":{"run":1,"caught":1},"KV_HEAD":{"run":12,"caught":12},"SLOT":{"run":12,"caught":12},"NO_RESCALE":{"run":6,"caught":6},"Q_ROW":{"run":8,"caught":8},"OUT_ROW":{"run":8,"caught":8}},"device_opens":1,"checks":219,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention.log new file mode 100644 index 000000000..01387455c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention.log @@ -0,0 +1,65 @@ +PASS gqa_f32_tinyllama_32q4kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=213714 call_ns=133666083 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00189431 chip_ns=103553 call_ns=222898 calls=1 unwritten=0 kv_staged=34816/34816 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00189409 chip_ns=104833 call_ns=343971 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0028582 chip_ns=416453 call_ns=988539 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_tinyllama_32q4kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00174821 chip_ns=103361 call_ns=214818 calls=1 unwritten=0 kv_staged=133120/133120 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00197914 chip_ns=103921 call_ns=108737 calls=1 unwritten=0 kv_staged=262144/262144 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00177573 chip_ns=103953 call_ns=108449 calls=1 unwritten=0 kv_staged=264192/264192 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00259576 chip_ns=205298 call_ns=213250 calls=1 unwritten=0 kv_staged=614400/614400 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00247545 chip_ns=311235 call_ns=341236 calls=1 unwritten=0 kv_staged=2048000/2048000 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103985 call_ns=201618 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00174276 chip_ns=100305 call_ns=103297 calls=1 unwritten=0 kv_staged=69632/69632 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_llama32_1b_32q8kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00161378 chip_ns=105137 call_ns=235395 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0029454 chip_ns=495557 call_ns=1590673 calls=1 unwritten=0 kv_staged=8388608/8388608 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042) +PASS gqa_f32_llama32_1b_32q8kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.0014332 chip_ns=103841 call_ns=239218 calls=1 unwritten=0 kv_staged=266240/266240 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00186415 chip_ns=103121 call_ns=110145 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00185519 chip_ns=103041 call_ns=110049 calls=1 unwritten=0 kv_staged=528384/528384 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00162705 chip_ns=183410 call_ns=198946 calls=1 unwritten=0 kv_staged=1228800/1228800 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00330327 chip_ns=211811 call_ns=287699 calls=1 unwritten=0 kv_staged=4096000/4096000 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103489 call_ns=208002 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00298047 chip_ns=103089 call_ns=320179 calls=1 unwritten=0 kv_staged=45056/225280 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00332929 chip_ns=726184 call_ns=1057467 calls=2 unwritten=0 kv_staged=696320/27852800 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812) +PASS gqa_rows_f32_llama32_1b_32q8kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103729 call_ns=187554 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00177684 chip_ns=103521 call_ns=112753 calls=1 unwritten=0 kv_staged=90112/450560 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00325614 chip_ns=827224 call_ns=906185 calls=2 unwritten=0 kv_staged=1392640/55705600 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81806) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824) +PASS gqa_f32_large_scores_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.0830785 chip_ns=103986 call_ns=223203 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 1/1 NO_MAX:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_mha_16q16kv_ctx300 n=1024 rc=OK violations=0 worst_scaled_err=0.00184 chip_ns=209202 call_ns=365491 calls=1 unwritten=0 kv_staged=2457600/2457600 blocks=1/1 | mutants 3/3 Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=104049 call_ns=205794 calls=1 unwritten=0 kv_staged=16384/16384 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00158694 chip_ns=103297 call_ns=196450 calls=1 unwritten=0 kv_staged=32768/32768 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00106953 chip_ns=103169 call_ns=237043 calls=1 unwritten=0 kv_staged=262144/262144 blocks=16/16 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.000545881 chip_ns=217011 call_ns=442533 calls=1 unwritten=0 kv_staged=2097152/2097152 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00144367 chip_ns=103201 call_ns=231874 calls=1 unwritten=0 kv_staged=81920/81920 blocks=5/5 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00159999 chip_ns=103105 call_ns=110481 calls=1 unwritten=0 kv_staged=131072/131072 blocks=8/8 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00170812 chip_ns=103345 call_ns=110753 calls=1 unwritten=0 kv_staged=147456/147456 blocks=9/9 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00140672 chip_ns=104161 call_ns=243986 calls=1 unwritten=0 kv_staged=311296/311296 blocks=19/19 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00143935 chip_ns=206418 call_ns=372692 calls=1 unwritten=0 kv_staged=163840/1032192 blocks=10/63 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103825 call_ns=220867 calls=1 unwritten=0 kv_staged=32768/32768 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00205197 chip_ns=103105 call_ns=212834 calls=1 unwritten=0 kv_staged=65536/65536 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00105953 chip_ns=104113 call_ns=220338 calls=1 unwritten=0 kv_staged=524288/524288 blocks=16/16 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.00055855 chip_ns=210275 call_ns=494405 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00171737 chip_ns=105153 call_ns=238931 calls=1 unwritten=0 kv_staged=163840/163840 blocks=5/5 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00153626 chip_ns=103569 call_ns=112801 calls=1 unwritten=0 kv_staged=262144/262144 blocks=8/8 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00162582 chip_ns=103921 call_ns=113473 calls=1 unwritten=0 kv_staged=294912/294912 blocks=9/9 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00144548 chip_ns=105281 call_ns=229826 calls=1 unwritten=0 kv_staged=622592/622592 blocks=19/19 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00094646 chip_ns=207074 call_ns=405076 calls=1 unwritten=0 kv_staged=327680/2064384 blocks=10/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.0028454 chip_ns=206562 call_ns=358692 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00202911 chip_ns=103137 call_ns=143537 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041) +PASS paged_bf16_split4_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00111551 chip_ns=103633 call_ns=242915 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000737182 chip_ns=103761 call_ns=248402 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000577315 chip_ns=104081 call_ns=265347 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.0018292 chip_ns=103393 call_ns=201666 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=103009 call_ns=109297 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split4_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=102801 call_ns=112625 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=106321 call_ns=124529 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00134618 chip_ns=103745 call_ns=137266 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_batch_3seq_32q8kv_ctx40_0_100 n=6144 rc=OK violations=0 worst_scaled_err=0.00173417 chip_ns=206834 call_ns=219218 calls=2 unwritten=0 kv_staged=229376/229376 blocks=7/7 | mutants 4/4 KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092) +PASS paged_bf16_shared_prefix_4seq_8q2kv_10pre n=2048 rc=OK violations=0 worst_scaled_err=0.00136352 chip_ns=104049 call_ns=213218 calls=1 unwritten=0 kv_staged=155648/401408 blocks=19/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_shared_prefix_4seq_32q8kv_10pre n=8192 rc=OK violations=0 worst_scaled_err=0.00205105 chip_ns=209762 call_ns=363652 calls=2 unwritten=0 kv_staged=950272/1605632 blocks=29/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186) +mutant NO_MAX: caught 1 of 1 +mutant KV_HEAD: caught 12 of 12 +mutant SLOT: caught 12 of 12 +mutant NO_RESCALE: caught 6 of 6 +mutant Q_ROW: caught 8 of 8 +mutant OUT_ROW: caught 8 of 8 +device_opens=1 +PASS: 219 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_sim.log new file mode 100644 index 000000000..c5921eb75 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_sim.log @@ -0,0 +1,65 @@ +PASS gqa_f32_tinyllama_32q4kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=4805937 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00189313 chip_ns=0 call_ns=5833052 calls=1 unwritten=0 kv_staged=34816/34816 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00183169 chip_ns=0 call_ns=32602206 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.00274869 chip_ns=0 call_ns=122653207 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2041) NO_RESCALE:CAUGHT(rc=OK,bad=1959) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_tinyllama_32q4kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00145684 chip_ns=0 call_ns=6082990 calls=1 unwritten=0 kv_staged=133120/133120 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00206007 chip_ns=0 call_ns=7967457 calls=1 unwritten=0 kv_staged=262144/262144 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.00165735 chip_ns=0 call_ns=9804324 calls=1 unwritten=0 kv_staged=264192/264192 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00201893 chip_ns=0 call_ns=18750336 calls=1 unwritten=0 kv_staged=614400/614400 blocks=1/1 | mutants 0/0 +PASS gqa_f32_tinyllama_32q4kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00297055 chip_ns=0 call_ns=60073222 calls=1 unwritten=0 kv_staged=2048000/2048000 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2374616 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00187227 chip_ns=0 call_ns=2890622 calls=1 unwritten=0 kv_staged=69632/69632 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_llama32_1b_32q8kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00201723 chip_ns=0 call_ns=15587775 calls=1 unwritten=0 kv_staged=1048576/1048576 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0029454 chip_ns=0 call_ns=123949828 calls=1 unwritten=0 kv_staged=8388608/8388608 blocks=1/1 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=2045) NO_RESCALE:CAUGHT(rc=OK,bad=1904) Q_ROW:CAUGHT(rc=OK,bad=2042) OUT_ROW:CAUGHT(rc=OK,bad=2042) +PASS gqa_f32_llama32_1b_32q8kv_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00195964 chip_ns=0 call_ns=6154783 calls=1 unwritten=0 kv_staged=266240/266240 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00170583 chip_ns=0 call_ns=8058547 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.0017034 chip_ns=0 call_ns=9962470 calls=1 unwritten=0 kv_staged=528384/528384 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00187268 chip_ns=0 call_ns=19048787 calls=1 unwritten=0 kv_staged=1228800/1228800 blocks=1/1 | mutants 0/0 +PASS gqa_f32_llama32_1b_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00303901 chip_ns=0 call_ns=60950592 calls=1 unwritten=0 kv_staged=4096000/4096000 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2354424 calls=1 unwritten=0 kv_staged=2048/2048 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00268496 chip_ns=0 call_ns=14244050 calls=1 unwritten=0 kv_staged=45056/225280 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_tinyllama_32q4kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00333664 chip_ns=0 call_ns=813091341 calls=2 unwritten=0 kv_staged=696320/27852800 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81807) NO_RESCALE:CAUGHT(rc=OK,bad=64191) Q_ROW:CAUGHT(rc=OK,bad=81812) OUT_ROW:CAUGHT(rc=OK,bad=81812) +PASS gqa_rows_f32_llama32_1b_32q8kv_base0_rows1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2384968 calls=1 unwritten=0 kv_staged=4096/4096 blocks=1/1 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base17_rows5 n=10240 rc=OK violations=0 worst_scaled_err=0.00181178 chip_ns=0 call_ns=14387363 calls=1 unwritten=0 kv_staged=90112/450560 blocks=1/5 | mutants 0/0 +PASS gqa_rows_f32_llama32_1b_32q8kv_base300_rows40 n=81920 rc=OK violations=0 worst_scaled_err=0.00302101 chip_ns=0 call_ns=812726720 calls=2 unwritten=0 kv_staged=1392640/55705600 blocks=1/40 | mutants 4/4 SLOT:CAUGHT(rc=OK,bad=81805) NO_RESCALE:CAUGHT(rc=OK,bad=65973) Q_ROW:CAUGHT(rc=OK,bad=81824) OUT_ROW:CAUGHT(rc=OK,bad=81824) +PASS gqa_f32_large_scores_32q4kv_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.0830785 chip_ns=0 call_ns=15560287 calls=1 unwritten=0 kv_staged=524288/524288 blocks=1/1 | mutants 1/1 NO_MAX:CAUGHT(rc=OK,bad=2048) +PASS gqa_f32_mha_16q16kv_ctx300 n=1024 rc=OK violations=0 worst_scaled_err=0.00163802 chip_ns=0 call_ns=9512689 calls=1 unwritten=0 kv_staged=2457600/2457600 blocks=1/1 | mutants 3/3 Q_ROW:CAUGHT(rc=OK,bad=1024) OUT_ROW:CAUGHT(rc=OK,bad=1020) KV_HEAD:CAUGHT(rc=OK,bad=1023) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2661915 calls=1 unwritten=0 kv_staged=16384/16384 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00259673 chip_ns=0 call_ns=3305298 calls=1 unwritten=0 kv_staged=32768/32768 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2047) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.0012428 chip_ns=0 call_ns=19877867 calls=1 unwritten=0 kv_staged=262144/262144 blocks=16/16 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.000511585 chip_ns=0 call_ns=150256622 calls=1 unwritten=0 kv_staged=2097152/2097152 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2047) SLOT:CAUGHT(rc=OK,bad=2038) NO_RESCALE:CAUGHT(rc=OK,bad=1901) Q_ROW:CAUGHT(rc=OK,bad=2046) OUT_ROW:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00182922 chip_ns=0 call_ns=7650110 calls=1 unwritten=0 kv_staged=81920/81920 blocks=5/5 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00143826 chip_ns=0 call_ns=9791892 calls=1 unwritten=0 kv_staged=131072/131072 blocks=8/8 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.0017437 chip_ns=0 call_ns=11903322 calls=1 unwritten=0 kv_staged=147456/147456 blocks=9/9 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00124488 chip_ns=0 call_ns=23584417 calls=1 unwritten=0 kv_staged=311296/311296 blocks=19/19 | mutants 0/0 +PASS paged_bf16_tinyllama_32q4kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00102811 chip_ns=0 call_ns=80744488 calls=1 unwritten=0 kv_staged=163840/1032192 blocks=10/63 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=0 call_ns=2672619 calls=1 unwritten=0 kv_staged=32768/32768 blocks=1/1 | mutants 1/1 KV_HEAD:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx17 n=2048 rc=OK violations=0 worst_scaled_err=0.00172089 chip_ns=0 call_ns=3310834 calls=1 unwritten=0 kv_staged=65536/65536 blocks=2/2 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2046) SLOT:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx256 n=2048 rc=OK violations=0 worst_scaled_err=0.00106374 chip_ns=0 call_ns=19995596 calls=1 unwritten=0 kv_staged=524288/524288 blocks=16/16 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx2048 n=2048 rc=OK violations=0 worst_scaled_err=0.0005717 chip_ns=0 call_ns=151573307 calls=1 unwritten=0 kv_staged=4194304/4194304 blocks=128/128 | mutants 5/5 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2044) NO_RESCALE:CAUGHT(rc=OK,bad=1963) Q_ROW:CAUGHT(rc=OK,bad=2048) OUT_ROW:CAUGHT(rc=OK,bad=2048) +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx65 n=2048 rc=OK violations=0 worst_scaled_err=0.00153464 chip_ns=0 call_ns=7742015 calls=1 unwritten=0 kv_staged=163840/163840 blocks=5/5 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx128 n=2048 rc=OK violations=0 worst_scaled_err=0.00162767 chip_ns=0 call_ns=9982102 calls=1 unwritten=0 kv_staged=262144/262144 blocks=8/8 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx129 n=2048 rc=OK violations=0 worst_scaled_err=0.0018236 chip_ns=0 call_ns=11955418 calls=1 unwritten=0 kv_staged=294912/294912 blocks=9/9 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx300 n=2048 rc=OK violations=0 worst_scaled_err=0.00136517 chip_ns=0 call_ns=23689713 calls=1 unwritten=0 kv_staged=622592/622592 blocks=19/19 | mutants 0/0 +PASS paged_bf16_llama32_1b_32q8kv_bs16_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00108243 chip_ns=0 call_ns=80854089 calls=1 unwritten=0 kv_staged=327680/2064384 blocks=10/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00243892 chip_ns=0 call_ns=68374810 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00224498 chip_ns=0 call_ns=69024768 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2041) +PASS paged_bf16_split4_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00103684 chip_ns=0 call_ns=70509103 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.000722397 chip_ns=0 call_ns=73916178 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx1000 n=2048 rc=OK violations=0 worst_scaled_err=0.00058086 chip_ns=0 call_ns=80835016 calls=1 unwritten=0 kv_staged=2064384/2064384 blocks=63/63 | mutants 0/0 +PASS paged_bf16_split1_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00156533 chip_ns=0 call_ns=8207667 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split2_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=8818506 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split4_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=10153160 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split8_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=13166358 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_split16_32q8kv_ctx100 n=2048 rc=OK violations=0 worst_scaled_err=0.00122616 chip_ns=0 call_ns=19594504 calls=1 unwritten=0 kv_staged=65536/229376 blocks=2/7 | mutants 0/0 +PASS paged_bf16_batch_3seq_32q8kv_ctx40_0_100 n=6144 rc=OK violations=0 worst_scaled_err=0.002081 chip_ns=0 call_ns=9250815 calls=2 unwritten=0 kv_staged=229376/229376 blocks=7/7 | mutants 4/4 KV_HEAD:CAUGHT(rc=OK,bad=4095) SLOT:CAUGHT(rc=OK,bad=4095) Q_ROW:CAUGHT(rc=OK,bad=4092) OUT_ROW:CAUGHT(rc=OK,bad=4092) +PASS paged_bf16_shared_prefix_4seq_8q2kv_10pre n=2048 rc=OK violations=0 worst_scaled_err=0.00158345 chip_ns=0 call_ns=16330583 calls=1 unwritten=0 kv_staged=155648/401408 blocks=19/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=2048) SLOT:CAUGHT(rc=OK,bad=2046) +PASS paged_bf16_shared_prefix_4seq_32q8kv_10pre n=8192 rc=OK violations=0 worst_scaled_err=0.00205105 chip_ns=0 call_ns=65549916 calls=2 unwritten=0 kv_staged=950272/1605632 blocks=29/49 | mutants 2/2 KV_HEAD:CAUGHT(rc=OK,bad=8190) SLOT:CAUGHT(rc=OK,bad=8186) +mutant NO_MAX: caught 1 of 1 +mutant KV_HEAD: caught 12 of 12 +mutant SLOT: caught 12 of 12 +mutant NO_RESCALE: caught 6 of 6 +mutant Q_ROW: caught 8 of 8 +mutant OUT_ROW: caught 8 of 8 +device_opens=0 +PASS: 219 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_timing.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_timing.json new file mode 100644 index 000000000..96fce0a70 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_timing.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ATTENTION_TIMING_V1","gate_median_ms":3.0,"calls":100,"cases":[{"case":"gqa_f32_tinyllama_32q4kv_ctx2048","first_call_ms":135.068,"ok_calls":100,"violations":0,"worst_scaled_err":0.00323017,"median_ms":0.4762,"p90_ms":0.4806,"min_ms":0.4500,"max_ms":0.4895,"chip_us_mean":410.0,"device_opens":1,"pass":true}],"checks":2,"failed":0,"verdict":"OMEGA_GPU_ATTENTION_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_timing.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_timing.log new file mode 100644 index 000000000..15e8537b8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/attention_timing.log @@ -0,0 +1,2 @@ +PASS timing gqa_f32_tinyllama_32q4kv_ctx2048 first_call_ms=135.068 ok_calls=100/100 violations=0 worst_scaled_err=0.00323017 median_ms=0.476 p90_ms=0.481 min_ms=0.450 max_ms=0.489 chip_us_mean=410.0 device_opens=1 +PASS: 2 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/build.log new file mode 100644 index 000000000..5b699e2d5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/build.log @@ -0,0 +1,3 @@ +make: 'build/gpu_attention_test' is up to date. +make: 'build/gpu_matmul_api_test' is up to date. +make: 'build/gpu_session_probe' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/device.txt new file mode 100644 index 000000000..ef082894e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/device.txt @@ -0,0 +1,6 @@ +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 +omega 710d438cac6c1159b4ca2b39af49812ce08f554b (0 uncommitted paths) +physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +2026-10-15T01:04:39Z +end 2026-10-15T01:05:43Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise.json new file mode 100644 index 000000000..b1142ad1b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ELEMENTWISE_V1","tolerances":{"ex2_rel":1e-6,"xchg":"exact","rmsnorm_rel":1e-5,"rmsnorm_abs":1e-6,"rope":"exact","swiglu_rel":1e-5,"swiglu_abs":1e-6},"cases":[{"case":"ex2_probe","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.152538,"pass":true,"chip_elapsed_ns":217426,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":4096,"mutant_caught":true},{"case":"shared_xchg_probe","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103361,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":4096,"mutant_caught":true},{"case":"rmsnorm_4x2048","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.0244808,"pass":true,"chip_elapsed_ns":103745,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":8192,"mutant_caught":true},{"case":"rmsnorm_1x256","n":256,"rc":"OK","violations":0,"worst_scaled_err":0.0206888,"pass":true,"chip_elapsed_ns":103457,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":256,"mutant_caught":true},{"case":"rmsnorm_2x8192","n":16384,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103697,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":16384,"mutant_caught":true},{"case":"rope_32h_64d_pos17_theta10000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103457,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1024,"mutant_caught":true},{"case":"rope_4h_64d_pos17_theta10000","n":256,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103153,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":128,"mutant_caught":true},{"case":"rope_32h_64d_pos1023_theta500000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":102817,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1024,"mutant_caught":true},{"case":"rope_8h_64d_pos1023_theta500000","n":512,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":102881,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":256,"mutant_caught":true},{"case":"swiglu_5632","n":5632,"rc":"OK","violations":0,"worst_scaled_err":0.0196297,"pass":true,"chip_elapsed_ns":103249,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":5630,"mutant_caught":true},{"case":"swiglu_8192","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.0177689,"pass":true,"chip_elapsed_ns":102962,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":8192,"mutant_caught":true},{"case":"swiglu_1000","n":1000,"rc":"OK","violations":0,"worst_scaled_err":0.017264,"pass":true,"chip_elapsed_ns":102993,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1000,"mutant_caught":true},{"case":"swiglu_131073","n":131073,"rc":"OK","violations":0,"worst_scaled_err":0.0236441,"pass":true,"chip_elapsed_ns":210722,"chip_calls":2,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":131059,"mutant_caught":true},{"case":"swiglu_1572864","n":1572864,"rc":"OK","violations":0,"worst_scaled_err":0.0250368,"pass":true,"chip_elapsed_ns":1221661,"chip_calls":12,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1572612,"mutant_caught":true},{"case":"icache_reuse_rotation","n":20,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":2022181,"chip_calls":20,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":0,"mutant_caught":true}],"device_opens":1,"checks":35,"failed":0,"verdict":"OMEGA_GPU_ELEMENTWISE_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise.log new file mode 100644 index 000000000..6a0cac8d7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise.log @@ -0,0 +1,17 @@ +PASS ex2_probe n=4096 rc=OK violations=0 worst_scaled_err=0.152538 chip_ns=217426 calls=1 unwritten=0 | mutant rc=OK violations=4096 CAUGHT +PASS shared_xchg_probe n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=103361 calls=1 unwritten=0 | mutant rc=OK violations=4096 CAUGHT +PASS rmsnorm_4x2048 n=8192 rc=OK violations=0 worst_scaled_err=0.0244808 chip_ns=103745 calls=1 unwritten=0 | mutant rc=OK violations=8192 CAUGHT +PASS rmsnorm_1x256 n=256 rc=OK violations=0 worst_scaled_err=0.0206888 chip_ns=103457 calls=1 unwritten=0 | mutant rc=OK violations=256 CAUGHT +PASS rmsnorm_2x8192 n=16384 rc=OK violations=0 worst_scaled_err=0 chip_ns=103697 calls=1 unwritten=0 | mutant rc=OK violations=16384 CAUGHT +PASS rope_32h_64d_pos17_theta10000 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103457 calls=1 unwritten=0 | mutant rc=OK violations=1024 CAUGHT +PASS rope_4h_64d_pos17_theta10000 n=256 rc=OK violations=0 worst_scaled_err=0 chip_ns=103153 calls=1 unwritten=0 | mutant rc=OK violations=128 CAUGHT +PASS rope_32h_64d_pos1023_theta500000 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=102817 calls=1 unwritten=0 | mutant rc=OK violations=1024 CAUGHT +PASS rope_8h_64d_pos1023_theta500000 n=512 rc=OK violations=0 worst_scaled_err=0 chip_ns=102881 calls=1 unwritten=0 | mutant rc=OK violations=256 CAUGHT +PASS swiglu_5632 n=5632 rc=OK violations=0 worst_scaled_err=0.0196297 chip_ns=103249 calls=1 unwritten=0 | mutant rc=OK violations=5630 CAUGHT +PASS swiglu_8192 n=8192 rc=OK violations=0 worst_scaled_err=0.0177689 chip_ns=102962 calls=1 unwritten=0 | mutant rc=OK violations=8192 CAUGHT +PASS swiglu_1000 n=1000 rc=OK violations=0 worst_scaled_err=0.017264 chip_ns=102993 calls=1 unwritten=0 | mutant rc=OK violations=1000 CAUGHT +PASS swiglu_131073 n=131073 rc=OK violations=0 worst_scaled_err=0.0236441 chip_ns=210722 calls=2 unwritten=0 | mutant rc=OK violations=131059 CAUGHT +PASS swiglu_1572864 n=1572864 rc=OK violations=0 worst_scaled_err=0.0250368 chip_ns=1221661 calls=12 unwritten=0 | mutant rc=OK violations=1572612 CAUGHT +PASS icache_reuse_rotation n=20 rc=OK violations=0 worst_scaled_err=0 chip_ns=2022181 calls=20 unwritten=0 | mutant rc=OK violations=0 CAUGHT +device_opens=1 +PASS: 35 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.json new file mode 100644 index 000000000..ed3ba439d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ELEMENTWISE_TIMING_V1","gate_median_ms":0.5,"calls":100,"cases":[{"case":"rmsnorm_1x2048","first_call_ms":134.199,"ok_calls":100,"violations":0,"worst_scaled_err":0,"median_ms":0.1056,"p90_ms":0.1061,"min_ms":0.1051,"max_ms":0.1115,"chip_us_mean":103.5,"device_opens":1,"pass":true},{"case":"swiglu_5632","first_call_ms":0.471,"ok_calls":100,"violations":0,"worst_scaled_err":0.0208791,"median_ms":0.1083,"p90_ms":0.1086,"min_ms":0.0954,"max_ms":0.1097,"chip_us_mean":103.1,"device_opens":1,"pass":true}],"checks":4,"failed":0,"verdict":"OMEGA_GPU_ELEMENTWISE_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.log new file mode 100644 index 000000000..d04c48cc9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/elementwise_timing.log @@ -0,0 +1,3 @@ +PASS timing rmsnorm_1x2048 first_call_ms=134.199 ok_calls=100/100 violations=0 worst_scaled_err=0 median_ms=0.106 p90_ms=0.106 min_ms=0.105 max_ms=0.111 chip_us_mean=103.5 device_opens=1 +PASS timing swiglu_5632 first_call_ms=0.471 ok_calls=100/100 violations=0 worst_scaled_err=0.0208791 median_ms=0.108 p90_ms=0.109 min_ms=0.095 max_ms=0.110 chip_us_mean=103.1 device_opens=1 +PASS: 4 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_attention_test.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_attention_test.c new file mode 100644 index 000000000..45790315a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_attention_test.c @@ -0,0 +1,1182 @@ +/* gpu_attention_test: FB-1 cut 5 gate for omega_gpu_attention_api. + * + * ./gpu_attention_test --host-only refusals, codegen (both kernel families and every + * mutant), register budget, nvdisasm listing check + * ./gpu_attention_test --split-timing [--hd 128] [--spin-us N] [--out r.json] paged bf16 32q/8kv at ATTN_SPLIT_CTX + * (default 1268): 100 calls per forced split 1,2,4,8 + auto, parity + * ./gpu_attention_test --timing [--out r.json] cut 4b gate: 1 query x 32 heads x 2048 ctx, 100 calls + * through the persistent session, median under 3 ms + * ./gpu_attention_test --sweep [--out s.json] head-scaling sweep: paged bf16 at head_dim 64 over q heads + * 1..64 x every kv-head divisor x ctx 256/2048, parity + timings + * (receipt OMEGA_GPU_ATTENTION_SWEEP_V1; --sim marks host timings) + * ./gpu_attention_test --out receipt.json chip gate: every shape against the host oracle, the + * mutants (deliberately wrong kernels, all of + * 1 .. OMEGA_GPU_ATTN_MUTANT_COUNT-1) which the same + * check must catch, a negative control, timings + * + * Oracles re-state aien-sovereign-core crates/aien-inference-abi/src/backend.rs (main 8b5caed) in C: + * ReferenceCpuBackend::gqa_attention (f64 scores, max, exp, sum, 1/max(sum,1e-12), f64 weighted sum), + * TensorBackend::paged_attention (f64 online softmax token by token over the paged bf16 pool, tokens + * past the block table dropped, zeros for empty context) and paged_attention_batch (ctx <= 0 -> 0, + * table rows past the array -> empty, negative entries removed). Compiled with -ffp-contract=off. + * + * Tolerance (why): the chip accumulates the 64-term dot products, the per-chunk sums and the + * rescaled running sums in f32 (worst case about n * 2^-24 relative over n = 2048 terms, 1.2e-4), + * uses MUFU.EX2 (PTX ex2.approx: 2^-22.5 relative) for every weight and for the 32 chunk rescale + * factors, and MUFU.RCP for the final normalisation. Every output is a convex combination of V + * values of unit scale, so |error| <= 2e-4 * |want| + 2e-5 covers these with margin; the mutants + * move results by 1e-2 or more (wrong head, wrong token) or produce NaN (overflow without the max). + * The large-score case (scores up to ~300) carries the f32 rounding of the score itself into the + * exponent (3e-5 absolute per score), so it uses 1e-3 relative + 1e-4 absolute. + */ +#include "omega_gpu_attention_api.h" +#include "omega_gpu_session.h" +#include "omega_blackwell_codegen.h" +#include "bw_warp_sim.h" /* omega #308: SIMT warp simulator for --divergent */ +#include +#include +#include +#include +#include +#include +#include + +static int g_checks, g_failed; +static int g_sim_mode; /* --sim: the host simulator never opens the device */ +static int g_divergent; /* --divergent (omega #308 R2): the j >= ctx branch inside a BSSY/BSYNC region */ +static uint32_t g_hd = 64; /* --hd 128: the whole battery at head_dim 128 (Qwen3-4B shapes); both simulators size the CTA from it */ +#define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0) + +static uint32_t lcg(uint32_t *s) { *s = *s * 1664525u + 1013904223u; return *s; } +static float frand(uint32_t *s, float lo, float hi) { return lo + (hi - lo) * ((float)(lcg(s) >> 8) / 16777216.0f); } +static uint16_t f2bf(float f) { uint32_t u; memcpy(&u, &f, 4); uint32_t r = ((u >> 16) & 1u) + 0x7fffu; return (uint16_t)((u + r) >> 16); } +static float bf2f(uint16_t b) { uint32_t u = (uint32_t)b << 16; float f; memcpy(&f, &u, 4); return f; } + +/* ----------------------------------------------------------------- oracles */ +static void oracle_gqa(const float *q, const float *kc, const float *vc, size_t seq_len, size_t nqh, size_t nkv, size_t hd, float *out) { + if (seq_len == 0) { memset(out, 0, nqh * hd * 4); return; } + size_t ratio = nqh / nkv; double inv_sqrt_d = 1.0 / sqrt((double)hd); + double *scores = malloc(seq_len * sizeof *scores); + for (size_t h = 0; h < nqh; h++) { + size_t kvh = h / ratio; const float *qh = q + h * hd; + for (size_t t = 0; t < seq_len; t++) { + const float *kt = kc + (t * nkv + kvh) * hd; double dot = 0.0; + for (size_t d = 0; d < hd; d++) dot += (double)qh[d] * (double)kt[d]; + scores[t] = dot * inv_sqrt_d; + } + double mx = -INFINITY; for (size_t t = 0; t < seq_len; t++) if (scores[t] > mx) mx = scores[t]; + double sum = 0.0; for (size_t t = 0; t < seq_len; t++) { scores[t] = exp(scores[t] - mx); sum += scores[t]; } + double inv = 1.0 / (sum > 1e-12 ? sum : 1e-12); + for (size_t t = 0; t < seq_len; t++) scores[t] *= inv; + for (size_t d = 0; d < hd; d++) { + double s = 0.0; + for (size_t t = 0; t < seq_len; t++) s += scores[t] * (double)vc[(t * nkv + kvh) * hd + d]; + out[h * hd + d] = (float)s; + } + } + free(scores); +} +/* bf16 pool in the canonical layout; the oracle's read_kv_head: element_offset(block, layer, is_value, token) + kv_head*head_dim*2 */ +static const uint16_t *kv_head(const uint8_t *pool, const OmegaGpuKvLayout *ly, size_t blk, size_t layer, int is_v, size_t tok, size_t kvh, size_t hd) { + size_t off = blk * ly->block_stride_bytes + layer * ly->layer_stride_bytes + (is_v ? ly->kv_plane_stride_bytes : 0) + tok * ly->token_stride_bytes + kvh * hd * 2; + return (const uint16_t *)(pool + off); +} +static void oracle_paged(const float *q, const uint8_t *pool, const OmegaGpuKvLayout *ly, const uint32_t *ids, size_t nids, size_t ctx, size_t layer, + size_t nqh, size_t nkv, size_t hd, float *out) { + if (ctx == 0 || nids == 0) { memset(out, 0, nqh * hd * 4); return; } + size_t ratio = nqh / nkv; double inv_sqrt_d = 1.0 / sqrt((double)hd); size_t bs = ly->block_size; + double *acc = malloc(hd * sizeof *acc); + for (size_t h = 0; h < nqh; h++) { + size_t kvh = h / ratio; const float *qh = q + h * hd; + double m = -INFINITY, l = 0.0; for (size_t d = 0; d < hd; d++) acc[d] = 0.0; + for (size_t t = 0; t < ctx; t++) { + size_t bi = t / bs; if (bi >= nids) break; + const uint16_t *kh = kv_head(pool, ly, ids[bi], layer, 0, t % bs, kvh, hd); + const uint16_t *vh = kv_head(pool, ly, ids[bi], layer, 1, t % bs, kvh, hd); + double dot = 0.0; for (size_t d = 0; d < hd; d++) dot += (double)qh[d] * (double)bf2f(kh[d]); + double score = dot * inv_sqrt_d, mn = m > score ? m : score, alpha = exp(m - mn), beta = exp(score - mn); + l = l * alpha + beta; + for (size_t d = 0; d < hd; d++) acc[d] = acc[d] * alpha + beta * (double)bf2f(vh[d]); + m = mn; + } + double inv = l > 0.0 ? 1.0 / l : 0.0; + for (size_t d = 0; d < hd; d++) out[h * hd + d] = (float)(acc[d] * inv); + } + free(acc); +} +static void oracle_batch(const float *q, const uint8_t *pool, const OmegaGpuKvLayout *ly, const int32_t *tables, const int32_t *ctxs, size_t maxb, size_t nseq, + size_t layer, size_t nqh, size_t nkv, size_t hd, float *out) { + size_t stride = nqh * hd; + uint32_t *ids = malloc((maxb ? maxb : 1) * sizeof *ids); + for (size_t s = 0; s < nseq; s++) { + size_t ctx = ctxs[s] > 0 ? (size_t)ctxs[s] : 0, n = 0; + size_t total = nseq * maxb; /* the table array length as the trait sees it */ + if ((s + 1) * maxb <= total) for (size_t b = 0; b < maxb; b++) if (tables[s * maxb + b] >= 0) ids[n++] = (uint32_t)tables[s * maxb + b]; + oracle_paged(q + s * stride, pool, ly, ids, n, ctx, layer, nqh, nkv, hd, out + s * stride); + } + free(ids); +} + +static size_t compare(const float *got, const float *want, size_t n, double rel, double abs_tol, double *worst) { + size_t bad = 0; *worst = 0.0; + for (size_t i = 0; i < n; i++) { + double d = fabs((double)got[i] - (double)want[i]); + double lim = rel * fabs((double)want[i]) + abs_tol; + double scaled = lim > 0 ? d / lim : (d > 0 ? INFINITY : 0.0); + if (scaled > *worst) *worst = scaled; + if (!(d <= lim)) bad++; /* NaN counts as bad */ + } + return bad; +} + +/* ------------------------------------------------------------- host only */ +static int nvdisasm_check(bool f32, const char *name, const char *const *must, int n_must) { + const char *nv = "/usr/local/cuda/bin/nvdisasm"; + if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + if (omega_gpu_attention_codegen_hd(f32, f32 ? 12 : 4, 3, g_hd, &k) != OMEGA_GPU_ATTN_OK) return -1; + char bin[64], lst[64], cmd[256]; + snprintf(bin, sizeof bin, "/tmp/omega_attn_%s_%d.bin", name, (int)getpid()); + snprintf(lst, sizeof lst, "/tmp/omega_attn_%s_%d.sass", name, (int)getpid()); + FILE *f = fopen(bin, "wb"); if (!f) { free(k.code); return -1; } + fwrite(k.code, 1, k.code_size, f); fclose(f); + snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); + int rc = system(cmd); + free(k.code); + FILE *l = fopen(lst, "r"); if (!l) return -1; + char line[512]; int seen[16] = {0}; int bad = 0, insns = 0; + while (fgets(line, sizeof line, l)) { + if (!strstr(line, "/*0")) continue; + insns++; + if (strstr(line, "?") || strstr(line, "error")) bad++; + for (int i = 0; i < n_must; i++) if (strstr(line, must[i])) seen[i] = 1; + } + fclose(l); + int miss = 0; + for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } + printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); + unlink(bin); + return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; +} + +static OmegaGpuKvLayout layout_for(uint32_t num_blocks, uint32_t bs, uint32_t layers, uint32_t nkv, uint32_t hd) { + OmegaGpuKvLayout ly; + ly.head_stride_bytes = (uint64_t)hd * 2; ly.token_stride_bytes = ly.head_stride_bytes * nkv; + ly.kv_plane_stride_bytes = ly.token_stride_bytes * bs; ly.layer_stride_bytes = 2 * ly.kv_plane_stride_bytes; + ly.block_stride_bytes = ly.layer_stride_bytes * layers; ly.pool_bytes = ly.block_stride_bytes * num_blocks; + ly.num_blocks = num_blocks; ly.num_layers = layers; ly.block_size = bs; + return ly; +} + +static void host_only(void) { + float q[64 * 64], kv[64 * 64], out[64 * 64]; memset(q, 0, sizeof q); memset(kv, 0, sizeof kv); + CHECK(omega_gpu_gqa_attention_f32(NULL, kv, kv, 1, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "NULL q refused"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 32, 4, 96, out, NULL) == OMEGA_GPU_ATTN_TOO_LARGE, "head_dim 96 refused (TOO_LARGE)"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 32, 4, 256, out, NULL) == OMEGA_GPU_ATTN_TOO_LARGE, "head_dim 256 refused (TOO_LARGE)"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 6, 2, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "gqa ratio 3 refused"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 1, 32, 5, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "32 q heads / 5 kv heads refused"); + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, OMEGA_GPU_ATTN_MAX_GQA_CTX + 1, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_TOO_LARGE, "context past the envelope refused"); + for (int i = 0; i < 64; i++) out[i] = 1.0f; + OmegaGpuAttnInfo info; + CHECK(omega_gpu_gqa_attention_f32(q, kv, kv, 0, 1, 1, 64, out, &info) == OMEGA_GPU_ATTN_OK && out[0] == 0.0f && out[63] == 0.0f && info.chip_calls == 0, "seq_len 0 writes zeros without a launch"); + OmegaGpuKvLayout ly = layout_for(8, 16, 2, 4, 64); + uint8_t *pool = calloc(ly.pool_bytes, 1); + uint32_t ids[2] = { 1, 9 }; + CHECK(omega_gpu_paged_attention_bf16(q, pool, &ly, ids, 2, 20, 0, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "block id past the pool refused"); + CHECK(omega_gpu_paged_attention_bf16(q, pool, &ly, ids, 1, 20, 2, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "layer past the pool refused"); + OmegaGpuKvLayout bad = ly; bad.block_size = 12; + CHECK(omega_gpu_paged_attention_bf16(q, pool, &bad, ids, 1, 10, 0, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "block size 12 (not a power of two) refused"); + bad = ly; bad.head_stride_bytes = 256; + CHECK(omega_gpu_paged_attention_bf16(q, pool, &bad, ids, 1, 10, 0, 32, 4, 64, out, NULL) == OMEGA_GPU_ATTN_BAD_ARGS, "layout whose head stride is not head_dim*2 refused"); + free(pool); + CHECK(strcmp(omega_gpu_attention_rc_name(OMEGA_GPU_ATTN_UNWRITTEN), "UNWRITTEN") == 0, "rc name"); + + /* with --divergent the listing must also show the region ops (last two entries) */ + static const char *const must_bf16[] = { "MUFU.EX2", "MUFU.RCP", "FMNMX", "BAR.SYNC", "SHFL.DOWN", "@P0 BRA", "@!P0 BRA", "LDG.E.U16", "LDG.E ", "LDG.E.128", "LDS.128", "LDS R", "STS [R", "STG.E", "LOP3.LUT", "SHF.R.U32.HI", "BSSY", "BSYNC" }; + static const char *const must_f32[] = { "MUFU.EX2", "MUFU.RCP", "FMNMX", "BAR.SYNC", "SHFL.DOWN", "@P0 BRA", "@!P0 BRA", "LDG.E ", "LDG.E.128", "LDS.128", "LDS R", "STS [R", "STG.E", "BSSY", "BSYNC" }; + for (int f32 = 0; f32 < 2; f32++) { + const char *name = f32 ? "gqa_f32" : "paged_bf16"; + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + int rc = omega_gpu_attention_codegen_hd(f32 != 0, f32 ? 12 : 4, 3, g_hd, &k); + CHECK(rc == OMEGA_GPU_ATTN_OK && k.code_size > 0 && k.gpr_count <= 64, "%s kernel generated (rc %s, %zu insns, %u gprs)", name, omega_gpu_attention_rc_name(rc), k.insn_count, k.gpr_count); + printf("codegen %s: %zu insns, %u gprs, %u ugprs\n", name, k.insn_count, k.gpr_count, k.uniform_gpr_count); + /* every mutant (1 .. COUNT-1) is a distinct kernel: different from the baseline and from + * every other mutant, named, and inside the register budget */ + uint8_t digests[OMEGA_GPU_ATTN_MUTANT_COUNT][32]; memcpy(digests[0], k.code_digest, 32); + free(k.code); + for (int m = 1; m < OMEGA_GPU_ATTN_MUTANT_COUNT; m++) { + omega_gpu_attention_test_set_mutant((OmegaGpuAttnMutant)m); + memset(&k, 0, sizeof k); + int mrc = omega_gpu_attention_codegen_hd(f32 != 0, f32 ? 12 : 4, 3, g_hd, &k); + CHECK(mrc == OMEGA_GPU_ATTN_OK && k.gpr_count <= 64, "%s mutant %s generated (rc %s, %u gprs)", name, omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m), omega_gpu_attention_rc_name(mrc), k.gpr_count); + CHECK(strcmp(omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m), "?") != 0, "mutant %d has a name", m); + memcpy(digests[m], k.code_digest, 32); + free(k.code); + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_NONE); + for (int o = 0; o < m; o++) + CHECK(memcmp(digests[o], digests[m], 32) != 0, "%s mutant %s kernel differs from %s", name, omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m), omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)o)); + } + CHECK(strcmp(omega_gpu_attention_mutant_name(OMEGA_GPU_ATTN_MUTANT_COUNT), "?") == 0, "COUNT has no name"); + /* a different shape key is a different kernel */ + memset(&k, 0, sizeof k); + CHECK(omega_gpu_attention_codegen_hd(f32 != 0, f32 ? 12 : 4, 2, g_hd, &k) == OMEGA_GPU_ATTN_OK && memcmp(digests[0], k.code_digest, 32) != 0, "%s log2gqa 2 kernel differs from log2gqa 3", name); + free(k.code); + CHECK(nvdisasm_check(f32 != 0, name, f32 ? must_f32 : must_bf16, (f32 ? 11 : 14) + (g_divergent ? 2 : 0)) == 0, "%s nvdisasm listing decodes and shows the expected instructions", name); + } +} + +/* ------------------------------------------------------------- chip gate */ +typedef struct { const char *name; size_t n; int rc; size_t bad; double worst; int pass; uint64_t chip_ns, call_ns; uint32_t calls, unwritten; + int mutants_run, mutants_caught; char mutant_note[400]; + uint64_t kv_staged, kv_naive; uint32_t blk_logical, blk_unique; } Case; +static void case_info(Case *c, const OmegaGpuAttnInfo *i) { + c->chip_ns = i->elapsed_ns; c->call_ns = i->call_ns; c->calls = i->chip_calls; c->unwritten = i->unwritten_words; + c->kv_staged = i->kv_bytes_staged; c->kv_naive = i->kv_bytes_naive; c->blk_logical = i->kv_blocks_logical; c->blk_unique = i->kv_blocks_unique; +} +static Case g_cases[64]; static int g_ncases; +static int g_mutant_caught[OMEGA_GPU_ATTN_MUTANT_COUNT], g_mutant_run[OMEGA_GPU_ATTN_MUTANT_COUNT]; + +static void record(Case c, FILE *out) { + g_cases[g_ncases++] = c; + CHECK(c.pass, "%s rc=%s violations=%zu worst=%g", c.name, omega_gpu_attention_rc_name(c.rc), c.bad, c.worst); + CHECK(c.mutants_caught == c.mutants_run, "%s mutants caught %d of %d (%s)", c.name, c.mutants_caught, c.mutants_run, c.mutant_note); + printf("%s %s n=%zu rc=%s violations=%zu worst_scaled_err=%g chip_ns=%" PRIu64 " call_ns=%" PRIu64 " calls=%u unwritten=%u kv_staged=%" PRIu64 "/%" PRIu64 " blocks=%u/%u | mutants %d/%d %s\n", + c.pass && c.mutants_caught == c.mutants_run ? "PASS" : "FAIL", c.name, c.n, omega_gpu_attention_rc_name(c.rc), c.bad, c.worst, c.chip_ns, c.call_ns, c.calls, c.unwritten, + c.kv_staged, c.kv_naive, c.blk_unique, c.blk_logical, c.mutants_caught, c.mutants_run, c.mutant_note); + if (out) fprintf(out, "%s{\"case\":\"%s\",\"n\":%zu,\"rc\":\"%s\",\"violations\":%zu,\"worst_scaled_err\":%g,\"pass\":%s,\"chip_elapsed_ns\":%" PRIu64 ",\"call_ns\":%" PRIu64 ",\"chip_calls\":%u,\"unwritten_words\":%u," + "\"kv_bytes_staged\":%" PRIu64 ",\"kv_bytes_naive\":%" PRIu64 ",\"kv_blocks_unique\":%u,\"kv_blocks_logical\":%u,\"mutants_run\":%d,\"mutants_caught\":%d,\"mutant_note\":\"%s\"}", + g_ncases > 1 ? "," : "", c.name, c.n, omega_gpu_attention_rc_name(c.rc), c.bad, c.worst, c.pass ? "true" : "false", c.chip_ns, c.call_ns, c.calls, c.unwritten, + c.kv_staged, c.kv_naive, c.blk_unique, c.blk_logical, c.mutants_run, c.mutants_caught, c.mutant_note); +} + +static const char *mutant_name(int m) { return omega_gpu_attention_mutant_name((OmegaGpuAttnMutant)m); } + +/* Runs the mutants listed in `ms` (terminated by 0) through `run` and counts the catches. */ +typedef int (*RunFn)(void *ctx, float *got, OmegaGpuAttnInfo *info); +/* The forced launch split the battery currently holds (the engine hook has no getter); -1 = automatic. */ +static int g_forced_split = -1; +static void set_split(int log2split) { g_forced_split = log2split; omega_gpu_attention_test_set_split(log2split); } + +static void run_mutants(Case *c, const int *ms, RunFn run, void *ctx, float *got, const float *want, size_t n, double rel, double abs_tol) { + size_t pos = strlen(c->mutant_note); /* appends: a case may call this more than once */ + for (int i = 0; ms[i]; i++) { + OmegaGpuAttnInfo info; double w; + omega_gpu_attention_test_set_mutant((OmegaGpuAttnMutant)ms[i]); + /* cut J (one chunk per split): a paged call at up to 16 chunks gives every CTA one chunk, so the in-kernel + * rescale between chunks never runs and the NO_RESCALE mutant would be invisible. That mutant runs with the + * whole context in one CTA per head (forced split 1), where the rescale happens on every chunk after the first. */ + const int one_cta = ms[i] == OMEGA_GPU_ATTN_MUTANT_NO_RESCALE; + if (one_cta) omega_gpu_attention_test_set_split(0); + int rc = run(ctx, got, &info); + if (one_cta) omega_gpu_attention_test_set_split(g_forced_split); + size_t bad = compare(got, want, n, rel, abs_tol, &w); + int caught = rc != OMEGA_GPU_ATTN_OK || bad > 0; + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_NONE); + c->mutants_run++; c->mutants_caught += caught; g_mutant_run[ms[i]]++; g_mutant_caught[ms[i]] += caught; + pos += (size_t)snprintf(c->mutant_note + pos, sizeof c->mutant_note - pos, "%s%s:%s(rc=%s,bad=%zu)", pos ? " " : "", mutant_name(ms[i]), caught ? "CAUGHT" : "MISSED", omega_gpu_attention_rc_name(rc), bad); + if (pos >= sizeof c->mutant_note) break; + } +} + +typedef struct { const float *q, *kc, *vc; uint32_t seq, nqh, nkv; } GqaCtx; +static int run_gqa(void *p, float *got, OmegaGpuAttnInfo *info) { GqaCtx *c = p; return omega_gpu_gqa_attention_f32(c->q, c->kc, c->vc, c->seq, c->nqh, c->nkv, g_hd, got, info); } +typedef struct { const float *q, *kc, *vc; uint32_t base, nr, nqh, nkv; } RowsCtx; +static int run_rows(void *p, float *got, OmegaGpuAttnInfo *info) { RowsCtx *c = p; return omega_gpu_gqa_attention_rows_f32(c->q, c->kc, c->vc, c->base, c->nr, c->nqh, c->nkv, g_hd, got, info); } +typedef struct { const float *q; const uint8_t *pool; const OmegaGpuKvLayout *ly; const uint32_t *ids; uint32_t nids, ctx, layer, nqh, nkv; } PagedCtx; +static int run_paged(void *p, float *got, OmegaGpuAttnInfo *info) { PagedCtx *c = p; return omega_gpu_paged_attention_bf16(c->q, c->pool, c->ly, c->ids, c->nids, c->ctx, c->layer, c->nqh, c->nkv, g_hd, got, info); } +typedef struct { const float *q; const uint8_t *pool; const OmegaGpuKvLayout *ly; const int32_t *tables, *ctxs; uint32_t maxb, nseq, layer, nqh, nkv; } BatchCtx; +static int run_batch(void *p, float *got, OmegaGpuAttnInfo *info) { BatchCtx *c = p; return omega_gpu_paged_attention_batch_bf16(c->q, c->pool, c->ly, c->tables, c->ctxs, c->maxb, c->nseq, c->layer, c->nqh, c->nkv, g_hd, got, info); } +/* single vs batched parity and repeat (L6-KV, CAND-0 coverage): each sequence of a batch, run + * alone through the single-sequence entry point with the batch's own rules applied by hand + * (negative table entries removed, ctx <= 0 -> 0), must equal its row of the batched output bit + * for bit (same kernel, same per-CTA inputs; the batch only shares staging). Then the batch is + * called again with the same inputs: kernel cache hit, bit-identical output, identical staging + * counters. `got` must hold the batched output of `bc`. */ +static void batch_single_repeat_checks(const char *name, const BatchCtx *bc, const float *got, const Case *c) { + size_t row = (size_t)bc->nqh * g_hd, n = (size_t)bc->nseq * row; + float *one = malloc(row * 4), *again = malloc(n * 4); + uint32_t *ids = malloc((bc->maxb ? bc->maxb : 1) * 4); + for (uint32_t s = 0; s < bc->nseq; s++) { + uint32_t nb = 0; + for (uint32_t b = 0; b < bc->maxb; b++) { int32_t v = bc->tables[(size_t)s * bc->maxb + b]; if (v >= 0) ids[nb++] = (uint32_t)v; } + uint32_t ctx = bc->ctxs[s] > 0 ? (uint32_t)bc->ctxs[s] : 0; + for (size_t i = 0; i < row; i++) one[i] = -7.0f; /* poison: an unwritten row cannot match */ + OmegaGpuAttnInfo si; + int src = omega_gpu_paged_attention_bf16(bc->q + (size_t)s * row, bc->pool, bc->ly, ids, nb, ctx, bc->layer, bc->nqh, bc->nkv, g_hd, one, &si); + CHECK(src == OMEGA_GPU_ATTN_OK && memcmp(one, got + (size_t)s * row, row * 4) == 0, + "%s: sequence %u alone (single entry point, %u blocks, ctx %u) is bit-identical to its batched row (rc=%s)", name, s, nb, ctx, omega_gpu_attention_rc_name(src)); + } + OmegaGpuAttnInfo ri; + int rrc = omega_gpu_paged_attention_batch_bf16(bc->q, bc->pool, bc->ly, bc->tables, bc->ctxs, bc->maxb, bc->nseq, bc->layer, bc->nqh, bc->nkv, g_hd, again, &ri); + CHECK(rrc == OMEGA_GPU_ATTN_OK && ri.kernel_cache_hit && memcmp(again, got, n * 4) == 0 && ri.kv_bytes_staged == c->kv_staged && ri.kv_bytes_naive == c->kv_naive + && ri.kv_blocks_unique == c->blk_unique && ri.kv_blocks_logical == c->blk_logical, + "%s: repeated batch call is a cache hit, bit-identical, same staging counters (rc=%s hit=%d staged %" PRIu64 "/%" PRIu64 ")", + name, omega_gpu_attention_rc_name(rrc), (int)ri.kernel_cache_hit, ri.kv_bytes_staged, c->kv_staged); + free(one); free(again); free(ids); +} + + +static int chip(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_V1\",\"tolerances\":{\"rel\":2e-4,\"abs\":2e-5,\"large_scores_rel\":1e-3,\"large_scores_abs\":1e-4},\"cases\":["); + uint32_t seed = 0xfb1c0005u; + const uint32_t hd = g_hd; + typedef struct { uint32_t nqh, nkv; const char *model; } Shape; + const Shape shapes64[2] = { { 32, 4, "tinyllama" }, { 32, 8, "llama32_1b" } }; + /* head_dim 128: Qwen3-4B (32 q heads, 8 kv heads, GQA 4:1) and a ratio-8 shape */ + const Shape shapes128[2] = { { 32, 8, "qwen3_4b" }, { 32, 4, "gqa8" } }; + const Shape *shapes = hd == 128 ? shapes128 : shapes64; + /* 65, 129, 300 and 1000 end in a partial 64-token chunk after whole ones: the case that + * caught the diverged-warp shuffle on the chip (2026-10-04); 1, 17, 128, 256, 2048 did not. */ + /* head_dim 128 chunks are 128 tokens: 127, 128, 129 straddle a chunk, 300 and 1000 end in a partial one */ + const uint32_t ctxs64[9] = { 1, 17, 256, 2048, 65, 128, 129, 300, 1000 }, ctxs128[9] = { 1, 17, 256, 2048, 127, 128, 129, 300, 1000 }; + const uint32_t *ctxs = hd == 128 ? ctxs128 : ctxs64; + const int no_mutants[1] = { 0 }; + + /* 1. contiguous f32 KV (gqa_attention) */ + for (int sh = 0; sh < 2; sh++) for (int ci = 0; ci < 9; ci++) { + uint32_t nqh = shapes[sh].nqh, nkv = shapes[sh].nkv, seq = ctxs[ci]; + size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4), *again = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + char name[96]; snprintf(name, sizeof name, "gqa_f32_%s_%uq%ukv_ctx%u", shapes[sh].model, nqh, nkv, seq); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; + GqaCtx gc = { q, kc, vc, seq, nqh, nkv }; + c.rc = run_gqa(&gc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + if (ci == 3) { + OmegaGpuAttnInfo i2; int rc2 = run_gqa(&gc, again, &i2); + CHECK(rc2 == OMEGA_GPU_ATTN_OK && i2.kernel_cache_hit && memcmp(got, again, n * 4) == 0, "%s repeat run (cache hit) is bit-identical", name); + /* negative control: the comparison must reject a wrong expectation (kv heads swapped) */ + float *wrong = malloc(n * 4); double w2; + for (uint32_t h = 0; h < nqh; h++) memcpy(wrong + (size_t)h * hd, want + (size_t)((h + nqh / nkv) % nqh) * hd, hd * 4); + size_t neg = compare(got, wrong, n, 2e-4, 2e-5, &w2); + CHECK(neg > n / 2, "%s negative control: wrong expectation flagged (%zu of %zu)", name, neg, n); + free(wrong); + static const int ms[5] = { OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + } else if (ci == 1 && sh == 1) { + static const int ms[2] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, 0 }; + run_mutants(&c, ms, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); free(again); + } + /* 1b. rows path (prompt read, 2026-10-12): base_len tokens already in the KV, then num_rows + * query rows in one call; row i attends over base_len + i + 1 tokens. Expected per row from + * oracle_gqa on that prefix. 40 rows at 32 q heads exceed the 1024-CTA launch bound: 2 launches. */ + for (int sh = 0; sh < 2; sh++) for (int ri = 0; ri < 3; ri++) { + static const uint32_t bases[3] = { 0, 17, 300 }, nrows[3] = { 1, 5, 40 }; + uint32_t nqh = shapes[sh].nqh, nkv = shapes[sh].nkv, base = bases[ri], nr = nrows[ri], total = base + nr; + size_t row = (size_t)nqh * hd, n = row * nr, nkvs = (size_t)total * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + for (uint32_t i = 0; i < nr; i++) oracle_gqa(q + i * row, kc, vc, base + i + 1, nqh, nkv, hd, want + i * row); + char name[96]; snprintf(name, sizeof name, "gqa_rows_f32_%s_%uq%ukv_base%u_rows%u", shapes[sh].model, nqh, nkv, base, nr); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; + RowsCtx rx = { q, kc, vc, base, nr, nqh, nkv }; + c.rc = run_rows(&rx, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + if (nr == 1) { + /* one row is the single-row call, bit for bit */ + float *one = malloc(row * 4); OmegaGpuAttnInfo i1; + int rc1 = omega_gpu_gqa_attention_f32(q, kc, vc, total, nqh, nkv, hd, one, &i1); + CHECK(rc1 == OMEGA_GPU_ATTN_OK && memcmp(got, one, row * 4) == 0, "%s equals omega_gpu_gqa_attention_f32 bit for bit", name); + free(one); + } + if (nr == 40) { + CHECK(info.chip_calls == 2, "%s 40 rows x %u heads go in 2 launches (got %u)", name, nqh, info.chip_calls); + CHECK(info.kv_bytes_staged == 2 * nkvs * 4, "%s KV staged once (%" PRIu64 " bytes, expected %zu)", name, info.kv_bytes_staged, 2 * nkvs * 4); + /* negative control: every row scored over the whole context (no causal cut) must be flagged */ + float *wrong = malloc(n * 4); double w2; + for (uint32_t i = 0; i < nr; i++) oracle_gqa(q + i * row, kc, vc, total, nqh, nkv, hd, wrong + i * row); + size_t neg = compare(got, wrong, n, 2e-4, 2e-5, &w2); + CHECK(neg > n / 4, "%s negative control: non-causal expectation flagged (%zu of %zu)", name, neg, n); + free(wrong); + static const int ms[5] = { OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms, run_rows, &rx, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_rows, &rx, got, want, n, 2e-4, 2e-5); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); + } + { /* rows path refusals */ + float d[1]; OmegaGpuAttnInfo i0; + CHECK(omega_gpu_gqa_attention_rows_f32(d, d, d, 0, 0, 32, 4, hd, d, &i0) == OMEGA_GPU_ATTN_BAD_ARGS, "rows: zero rows refused"); + CHECK(omega_gpu_gqa_attention_rows_f32(d, d, d, OMEGA_GPU_ATTN_MAX_GQA_CTX, 1, 32, 4, hd, d, &i0) == OMEGA_GPU_ATTN_TOO_LARGE, "rows: base + rows past the context bound refused"); + } + /* 2. large scores (q scaled by 200): the softmax without the running max overflows */ + { + uint32_t nqh = 32, nkv = 4, seq = 256; size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -200.0f, 200.0f); /* scores ~ +-200 natural: EX2 without the max subtraction overflows f32 (2^128) */ + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + Case c = { .name = "gqa_f32_large_scores_32q4kv_ctx256", .n = n }; + OmegaGpuAttnInfo info; GqaCtx gc = { q, kc, vc, seq, nqh, nkv }; + c.rc = run_gqa(&gc, got, &info); + c.bad = compare(got, want, n, 1e-3, 1e-4, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + static const int ms[2] = { OMEGA_GPU_ATTN_MUTANT_NO_MAX, 0 }; + run_mutants(&c, ms, run_gqa, &gc, got, want, n, 1e-3, 1e-4); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); + } + /* 2b. MHA (16q/16kv, ratio 1, ctx 300 = 4 full chunks + a partial one): the head-wiring + * mutants Q_ROW and OUT_ROW are observably different here (Q_ROW keeps kv head h, OUT_ROW + * lands on kv head h^1), unlike GQA where both swap the same pair of outputs. */ + { + uint32_t nqh = 16, nkv = 16, seq = 300; size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4), *got_q = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + Case c = { .name = "gqa_f32_mha_16q16kv_ctx300", .n = n }; + OmegaGpuAttnInfo info; GqaCtx gc = { q, kc, vc, seq, nqh, nkv }; + c.rc = run_gqa(&gc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + static const int ms_q[2] = { OMEGA_GPU_ATTN_MUTANT_Q_ROW, 0 }; + static const int ms_o[3] = { OMEGA_GPU_ATTN_MUTANT_OUT_ROW, OMEGA_GPU_ATTN_MUTANT_KV_HEAD, 0 }; + run_mutants(&c, ms_q, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + memcpy(got_q, got, n * 4); /* Q_ROW output */ + run_mutants(&c, ms_o, run_gqa, &gc, got, want, n, 2e-4, 2e-5); + /* `got` now holds the KV_HEAD output; rerun OUT_ROW alone to compare it with Q_ROW */ + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_OUT_ROW); + OmegaGpuAttnInfo i3; int rc3 = run_gqa(&gc, got, &i3); + omega_gpu_attention_test_set_mutant(OMEGA_GPU_ATTN_MUTANT_NONE); + double wq; size_t differ = compare(got, got_q, n, 2e-4, 2e-5, &wq); + CHECK(rc3 == OMEGA_GPU_ATTN_OK && differ > n / 2, "mha: Q_ROW and OUT_ROW outputs are distinct wrong answers (%zu of %zu differ)", differ, n); + record(c, out); free(q); free(kc); free(vc); free(got); free(want); free(got_q); + } + /* resident fit rule at the 32-bit edge (Qwen3-8B geometry: 36 layers, 8 kv heads x 128, block 16), no allocation */ + { + OmegaGpuKvLayout big = layout_for(4096, 16, 36, 8, 128); + uint32_t id_ok = (uint32_t)((0xffffffffull - big.layer_stride_bytes) / big.block_stride_bytes); + CHECK(omega_gpu_attention_test_resident_fits(&big, id_ok) && !omega_gpu_attention_test_resident_fits(&big, id_ok + 1), + "resident fit rule at the 4 GiB edge: block %u fits, %u does not (block stride %llu)", id_ok, id_ok + 1, + (unsigned long long)big.block_stride_bytes); + } + /* 3. paged bf16 KV, block size 16, 2 layers (layer 1 under test), scattered block ids */ + for (int sh = 0; sh < 2; sh++) for (int ci = 0; ci < 9; ci++) { + uint32_t nqh = shapes[sh].nqh, nkv = shapes[sh].nkv, ctx = ctxs[ci], bs = 16, layers = 2, layer = 1; + uint32_t nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 7; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); /* a scattered permutation of the pool blocks */ + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 7 + 3) % pool_blocks; + size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + char name[96]; snprintf(name, sizeof name, "paged_bf16_%s_%uq%ukv_bs%u_ctx%u", shapes[sh].model, nqh, nkv, bs, ctx); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; PagedCtx pc = { q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv }; + c.rc = run_paged(&pc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + /* Resident pool (2026-10-12): the same bytes in omega's own allocation, read in place. Same kernel, + * same data, only the addressing differs: bit-identical to the staged result just computed (which is + * the negative control: a plain host pool reports STAGED), nothing staged, info says RESIDENT. */ + if (c.rc == OMEGA_GPU_ATTN_OK) { + void *rp = NULL; + int arc = omega_gpu_attention_pool_alloc(ly.pool_bytes, &rp); + CHECK(arc == OMEGA_GPU_ATTN_OK && rp, "%s: resident pool alloc rc=%d (%s)", name, arc, omega_gpu_attention_last_error()); + if (arc == OMEGA_GPU_ATTN_OK) { + memcpy(rp, pool, ly.pool_bytes); + float *got_r = malloc(n * 4); OmegaGpuAttnInfo ri; + PagedCtx rpc = { q, rp, &ly, ids, nblk, ctx, layer, nqh, nkv }; + int rrc = run_paged(&rpc, got_r, &ri); + int same = memcmp(got_r, got, n * 4) == 0; + CHECK(rrc == OMEGA_GPU_ATTN_OK && ri.kv_source == OMEGA_GPU_ATTN_KV_RESIDENT && ri.kv_bytes_staged == 0 && + info.kv_source == OMEGA_GPU_ATTN_KV_STAGED && same, + "%s: resident pool rc=%d source=%u staged=%llu (control source=%u) bit-identical=%d", name, rrc, ri.kv_source, + (unsigned long long)ri.kv_bytes_staged, info.kv_source, same); + free(got_r); + } + omega_gpu_attention_pool_free(); + } + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + if (ci == 3) { + /* NO_MAX cannot overflow on unit-scale scores (softmax is shift invariant); it is caught by the large-score gqa case */ + static const int ms3[6] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms3, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else if (ci == 1) { + static const int ms[3] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, 0 }; + run_mutants(&c, ms, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else if (ci == 0) { + /* one token: its softmax weight is 1 whatever K says, so a K-only slot shift is invisible; KV_HEAD still shows */ + static const int ms[2] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, 0 }; + run_mutants(&c, ms, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_paged, &pc, got, want, n, 2e-4, 2e-5); + record(c, out); free(pool); free(ids); free(q); free(got); free(want); + } + /* 3b. context split (cut F): the 32q/8kv shape at ctx 1000 under every forced split against the oracle, the + * CTA count per launch grows with the split, the automatic choice at this context is 8 (hd 128: 8 chunks) or + * 16 (hd 64: 16 chunks; cut J, one chunk per split), and a short context (ctx 100, one chunk) stays unsplit. A forced launch split at or above + * the sequence's own count gives the same bits (the extra CTAs write empty partials that add exact zeros). */ + { + uint32_t nqh = 32, nkv = 8, bs = 16, layers = 2, layer = 1; + const uint32_t cx[2] = { 1000, 100 }; + for (int ci = 0; ci < 2; ci++) { + uint32_t ctx = cx[ci], nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 3; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 5 + 1) % pool_blocks; + size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *auto_got = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + PagedCtx pc = { q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv }; + OmegaGpuAttnInfo ai; + int arc = run_paged(&pc, auto_got, &ai); + uint32_t chunks = (ctx + hd - 1) / hd, want_log2 = 0; + const uint32_t gcta = nqh / omega_gpu_attention_heads_per_cta(hd, 2); /* CTAs per split: cut K groups 4 heads per CTA at hd 128 */ + while (want_log2 < OMEGA_GPU_ATTN_MAX_LOG2SPLIT && (2u << want_log2) <= chunks) want_log2++; + CHECK(arc == OMEGA_GPU_ATTN_OK && ai.ctas_last_launch == (gcta << want_log2), + "split auto ctx %u: rc=%s ctas=%u (expected %u)", ctx, omega_gpu_attention_rc_name(arc), ai.ctas_last_launch, gcta << want_log2); + for (int ls = 0; ls <= (int)OMEGA_GPU_ATTN_MAX_LOG2SPLIT; ls++) { + set_split(ls); + OmegaGpuAttnInfo fi; + char name[96]; snprintf(name, sizeof name, "paged_bf16_split%d_32q8kv_ctx%u", 1 << ls, ctx); + Case c = { .name = strdup(name), .n = n }; + c.rc = run_paged(&pc, got, &fi); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &fi); + CHECK(fi.ctas_last_launch == (gcta << ls) && fi.out_bytes == (uint64_t)nqh * (1u << ls) * (hd + 2) * 4, + "%s: ctas=%u out_bytes=%llu", name, fi.ctas_last_launch, (unsigned long long)fi.out_bytes); + if ((uint32_t)ls >= want_log2) CHECK(memcmp(got, auto_got, n * 4) == 0, "%s equals the automatic choice bit for bit (a larger launch split only adds empty partials)", name); + if (ls == 1 && ci == 0) { + static const int ms[3] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, 0 }; + run_mutants(&c, ms, run_paged, &pc, got, want, n, 2e-4, 2e-5); + } else run_mutants(&c, no_mutants, run_paged, &pc, got, want, n, 2e-4, 2e-5); + record(c, out); + } + set_split(-1); + if (ci == 1 && chunks == 1) CHECK(ai.ctas_last_launch == gcta, "ctx %u: one chunk stays unsplit (%u CTAs)", ctx, ai.ctas_last_launch); + else if (ci == 1) CHECK(ai.ctas_last_launch == (gcta << want_log2), "ctx %u: %u chunks -> %u splits (%u CTAs)", ctx, chunks, 1u << want_log2, ai.ctas_last_launch); + free(pool); free(ids); free(q); free(got); free(want); free(auto_got); + } + } + /* 4. batch: three sequences (short, empty, truncated by its table), a negative table entry, table rows of 16 */ + { + uint32_t nqh = 32, nkv = 8, bs = 16, layers = 3, layer = 2, maxb = 16, nseq = 3, pool_blocks = 40; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + int32_t *tables = malloc((size_t)nseq * maxb * 4); + for (size_t i = 0; i < (size_t)nseq * maxb; i++) tables[i] = -1; + /* seq 0: ctx 40 over blocks 5, 17 (-1 in the middle closes up), 29 */ + tables[0] = 5; tables[1] = -1; tables[2] = 17; tables[3] = 29; + /* seq 1: ctx 0 with a table */ + tables[maxb + 0] = 1; + /* seq 2: ctx 100 but only 4 blocks (64 tokens used) */ + tables[2 * maxb + 0] = 30; tables[2 * maxb + 1] = 2; tables[2 * maxb + 2] = 33; tables[2 * maxb + 3] = 11; + int32_t ctxs2[3] = { 40, 0, 100 }; + size_t n = (size_t)nseq * nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_batch(q, pool, &ly, tables, ctxs2, maxb, nseq, layer, nqh, nkv, hd, want); + Case c = { .name = "paged_bf16_batch_3seq_32q8kv_ctx40_0_100", .n = n }; + OmegaGpuAttnInfo info; BatchCtx bc = { q, pool, &ly, tables, ctxs2, maxb, nseq, layer, nqh, nkv }; + c.rc = run_batch(&bc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + int zeros = 1; for (size_t i = 0; i < (size_t)nqh * hd; i++) if (got[(size_t)nqh * hd + i] != 0.0f) zeros = 0; + CHECK(zeros, "batch: the empty sequence is all zeros"); + batch_single_repeat_checks(c.name, &bc, got, &c); + static const int ms[5] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, OMEGA_GPU_ATTN_MUTANT_Q_ROW, OMEGA_GPU_ATTN_MUTANT_OUT_ROW, 0 }; + run_mutants(&c, ms, run_batch, &bc, got, want, n, 2e-4, 2e-5); + /* all 7 referenced blocks are distinct here, so dedupe stages exactly the naive figure */ + CHECK(c.blk_logical == 7 && c.blk_unique == 7 && c.kv_staged == c.kv_naive && c.kv_staged == 7ull * ly.layer_stride_bytes, "batch: 7 distinct blocks staged once each (%u/%u, %" PRIu64 " bytes)", c.blk_unique, c.blk_logical, c.kv_staged); + record(c, out); free(pool); free(tables); free(q); free(got); free(want); + } + /* 5. branch-heavy batch (attention hardening cut): four sequences share the same 10 physical + * prefix blocks (160 tokens, scattered ids) and own private tails of 1..3 blocks ending in a + * partial 64-token chunk. The shared prefix must be staged once per launch, keyed by the + * physical block id. Two head shapes: 8q/2kv puts all four sequences in one launch + * (unique = 10 + 9 tails), 32q/8kv splits them two per launch (unique = 2*10 + 9). + * Negative control: the legacy per-sequence staging (test hook) copies the prefix four + * times and the byte-reduction check must flag it. */ + for (int sh = 0; sh < 2; sh++) { + uint32_t nqh = sh ? 32 : 8, nkv = sh ? 8 : 2, bs = 16, layers = 2, layer = 1, nseq = 4, prefix_blocks = 10, pool_blocks = 64; + uint32_t expect_unique = sh ? 2 * prefix_blocks + 9 : prefix_blocks + 9; + uint32_t maxb = prefix_blocks + 3; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + int32_t *tables = malloc((size_t)nseq * maxb * 4); + for (size_t i = 0; i < (size_t)nseq * maxb; i++) tables[i] = -1; + const uint32_t tails[4] = { 1, 2, 3, 3 }; /* private blocks per sequence: 9 in all */ + const int32_t ctxs5[4] = { 165, 180, 193, 207 }; /* 160 + 5, 20, 33, 47: every last chunk partial */ + for (uint32_t s = 0; s < nseq; s++) { + for (uint32_t b = 0; b < prefix_blocks; b++) tables[s * maxb + b] = (int32_t)((b * 5 + 7) % pool_blocks); /* same scattered physical prefix */ + for (uint32_t b = 0; b < tails[s]; b++) tables[s * maxb + prefix_blocks + b] = (int32_t)(50 + s * 3 + b); /* private, distinct */ + } + size_t n = (size_t)nseq * nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *legacy = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_batch(q, pool, &ly, tables, ctxs5, maxb, nseq, layer, nqh, nkv, hd, want); + char name[96]; snprintf(name, sizeof name, "paged_bf16_shared_prefix_4seq_%uq%ukv_10pre", nqh, nkv); + Case c = { .name = strdup(name), .n = n }; + OmegaGpuAttnInfo info; BatchCtx bc = { q, pool, &ly, tables, ctxs5, maxb, nseq, layer, nqh, nkv }; + c.rc = run_batch(&bc, got, &info); + c.bad = compare(got, want, n, 2e-4, 2e-5, &c.worst); + c.pass = c.rc == OMEGA_GPU_ATTN_OK && c.bad == 0; case_info(&c, &info); + uint32_t logical = 4 * prefix_blocks + 9; + CHECK(c.blk_logical == logical && c.blk_unique == expect_unique, "%s: %u logical references, %u unique staged (expected %u/%u)", name, c.blk_logical, c.blk_unique, logical, expect_unique); + CHECK(c.kv_naive == (uint64_t)logical * ly.layer_stride_bytes && c.kv_staged == (uint64_t)expect_unique * ly.layer_stride_bytes && c.kv_staged < c.kv_naive, + "%s: staged %" PRIu64 " < naive %" PRIu64 " bytes (saved %" PRIu64 ")", name, c.kv_staged, c.kv_naive, c.kv_naive - c.kv_staged); + /* cut F: the output traffic is the partials, launch split = the largest own split in the call (cut J: hd 64: ctx 193 and 207 are 4 chunks, 4 splits; hd 128: 2 chunks, 2 splits) */ + uint32_t ls_max = 0; + for (uint32_t s = 0; s < nseq; s++) { uint32_t x = ((uint32_t)ctxs5[s] + hd - 1) / hd, l = 0; while (l < OMEGA_GPU_ATTN_MAX_LOG2SPLIT && (2u << l) <= x) l++; if (l > ls_max) ls_max = l; } + const uint64_t out_expect = (uint64_t)nseq * nqh * (1u << ls_max) * (hd + 2) * 4; + CHECK(info.kv_source == OMEGA_GPU_ATTN_KV_STAGED && info.q_bytes == n * 4 && info.out_bytes == out_expect && info.tab_bytes > 0, "%s: q/out/table traffic accounted (q=%" PRIu64 " out=%" PRIu64 " tab=%" PRIu64 ")", name, info.q_bytes, info.out_bytes, info.tab_bytes); + /* negative control: legacy per-sequence staging duplicates the shared prefix; same answer, more bytes */ + omega_gpu_attention_test_set_dedupe(false); + OmegaGpuAttnInfo li; int lrc = run_batch(&bc, legacy, &li); + omega_gpu_attention_test_set_dedupe(true); + double lw; size_t lbad = compare(legacy, want, n, 2e-4, 2e-5, &lw); + CHECK(lrc == OMEGA_GPU_ATTN_OK && lbad == 0, "%s legacy staging: parity (rc=%s bad=%zu)", name, omega_gpu_attention_rc_name(lrc), lbad); + CHECK(li.kv_blocks_unique == logical && li.kv_bytes_staged == li.kv_bytes_naive && li.kv_bytes_staged > c.kv_staged, + "%s negative control: duplicated prefix staging is flagged (legacy staged %" PRIu64 " == naive %" PRIu64 ", dedupe %" PRIu64 ")", name, li.kv_bytes_staged, li.kv_bytes_naive, c.kv_staged); + CHECK(memcmp(got, legacy, n * 4) == 0, "%s: dedupe and legacy staging are bit-identical", name); + batch_single_repeat_checks(name, &bc, got, &c); + static const int ms5[3] = { OMEGA_GPU_ATTN_MUTANT_KV_HEAD, OMEGA_GPU_ATTN_MUTANT_SLOT, 0 }; + run_mutants(&c, ms5, run_batch, &bc, got, want, n, 2e-4, 2e-5); + record(c, out); free(pool); free(tables); free(q); free(got); free(want); free(legacy); + } + /* every mutant the API knows (1 .. COUNT-1) ran at least once and was caught every time; + * a mutant added to the enum without a battery entry fails here */ + for (int m = 1; m < OMEGA_GPU_ATTN_MUTANT_COUNT; m++) { + CHECK(g_mutant_run[m] > 0 && g_mutant_caught[m] == g_mutant_run[m], "mutant %s caught %d of %d runs", mutant_name(m), g_mutant_caught[m], g_mutant_run[m]); + printf("mutant %s: caught %d of %d\n", mutant_name(m), g_mutant_caught[m], g_mutant_run[m]); + } + CHECK(omega_gpu_session_open_count() == (g_sim_mode ? 0u : 1u), "device opened %s for the battery (opens=%u)", g_sim_mode ? "never (simulator)" : "once", omega_gpu_session_open_count()); + printf("device_opens=%u\n", omega_gpu_session_open_count()); + if (out) { + fprintf(out, "],\"mutant_count\":%d,\"mutants\":{", OMEGA_GPU_ATTN_MUTANT_COUNT - 1); + for (int m = 1; m < OMEGA_GPU_ATTN_MUTANT_COUNT; m++) fprintf(out, "%s\"%s\":{\"run\":%d,\"caught\":%d}", m > 1 ? "," : "", mutant_name(m), g_mutant_run[m], g_mutant_caught[m]); + fprintf(out, "},\"device_opens\":%u,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", omega_gpu_session_open_count(), g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_PASS" : "OMEGA_GPU_ATTENTION_FAIL"); + fclose(out); + } + return 0; +} + +/* ------------------------------------------------------------ host simulator + * Executes the allocated IR program (physical registers, so the register allocator's + * 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 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; +static uint32_t sim_cbank[256]; +static uint8_t sim_shared[8192]; +#define SIM_TMAX 128 +#define SIM_T ((int)g_hd) /* threads per CTA = head_dim */ +static uint32_t g_smem_cap; /* negative control: pretend the QMD declared this many bytes (0 = the real 16 * head_dim) */ +#define SIM_SMEM (g_smem_cap ? g_smem_cap : omega_gpu_attention_test_shared_bytes()) /* the shared memory the QMD declares for this kernel (launcher: shared_bytes_for) */ +static int g_sim_err; +static int g_trace, g_trace_launch; static uint32_t g_trace_cx; +static uint32_t rd(const SimThr *t, int v, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v]; return ph < 0 ? 0 : t->r[ph & 0xff]; } +static uint64_t rd64(const SimThr *t, int v, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v] & 0xff; return (uint64_t)t->r[ph] | ((uint64_t)t->r[ph + 1] << 32); } +static void wr(SimThr *t, int v, uint32_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v]; if (ph >= 0) t->r[ph & 0xff] = x; } +static void wr64(SimThr *t, int v, uint64_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v] & 0xff; t->r[ph] = (uint32_t)x; t->r[ph + 1] = (uint32_t)(x >> 32); } +static uint32_t rds(const SimThr *t, int v, unsigned sub, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v]; return ph < 0 ? 0 : t->r[(ph + sub) & 0xff]; } +static void wrs(SimThr *t, int v, unsigned sub, uint32_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v]; if (ph >= 0) t->r[(ph + sub) & 0xff] = x; } +static float u2f(uint32_t u) { float f; memcpy(&f, &u, 4); return f; } +static uint32_t f2u_(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +/* run one thread until it reaches a SHFL or BAR (not executed) or EXIT; returns 1 if parked at a sync op */ +static int sim_step(SimThr *t, const BlackwellIRProgram *p, uint32_t tid, uint32_t cx, uint32_t cy) { + for (int guard = 0; guard < 50000000; guard++) { + if (t->done) return 0; + if (t->pc < 0 || (size_t)t->pc >= p->count) { g_sim_err = 1; t->done = 1; return 0; } + const BlackwellIRInsn *in = &p->insns[t->pc]; + uint32_t a = rds(t, in->src1_vreg, in->src1_subreg, p), b = rds(t, in->src2_vreg, in->src2_subreg, p), c = rds(t, in->src3_vreg, in->src3_subreg, p); + switch (in->op) { + case BW_IR_SHFL_DOWN: case BW_IR_BAR_SYNC: return 1; + case BW_IR_EXIT: if (!in->predicate_p0 || t->p0) { t->done = 1; return 0; } break; + case BW_IR_BRA: { + int take = !in->predicate_p0 || (in->predicate_not ? !t->p0 : t->p0); + t->path = t->path * 1000003u + (((uint64_t)t->pc << 1) | (uint64_t)take); + if (take) { if ((int32_t)in->imm == 0) { g_sim_err = 2; t->done = 1; return 0; } t->pc += (int32_t)in->imm; continue; } + break; } + case BW_IR_MOV_IMM: wrs(t, in->dst_vreg, in->dst_subreg, in->imm, p); break; + case BW_IR_MOV_RZ: wrs(t, in->dst_vreg, in->dst_subreg, 0, p); break; + case BW_IR_S2R: wrs(t, in->dst_vreg, in->dst_subreg, in->imm == BW_SR_TID_X ? tid : in->imm == BW_SR_CTAID_X ? cx : in->imm == BW_SR_CTAID_Y ? cy : 0, p); break; + case BW_IR_LDC: wrs(t, in->dst_vreg, in->dst_subreg, sim_cbank[in->imm / 4], p); break; + case BW_IR_LDC64: wr64(t, in->dst_vreg, (uint64_t)sim_cbank[in->imm / 4] | ((uint64_t)sim_cbank[in->imm / 4 + 1] << 32), p); break; + case BW_IR_LDCU64: break; /* memory descriptor: not modelled */ + case BW_IR_IMAD: wrs(t, in->dst_vreg, in->dst_subreg, in->src2_vreg >= 0 ? a * b + c : a * in->imm + c, p); break; + case BW_IR_IMAD_WIDE: wr64(t, in->dst_vreg, (uint64_t)a * in->imm + rd64(t, in->src3_vreg, p), p); break; + case BW_IR_IADD3: wrs(t, in->dst_vreg, in->dst_subreg, a + b, p); break; + case BW_IR_SHF_R: wrs(t, in->dst_vreg, in->dst_subreg, a >> (in->imm & 31), p); break; + case BW_IR_LOP3_AND: wrs(t, in->dst_vreg, in->dst_subreg, a & in->imm, p); break; + case BW_IR_LOP3_XOR: wrs(t, in->dst_vreg, in->dst_subreg, a ^ b, p); break; + case BW_IR_ISETP_GE_U32: t->p0 = a >= b; break; + case BW_IR_LDG_E: { uint32_t x; memcpy(&x, (const void *)(uintptr_t)rd64(t, in->src1_vreg, p), 4); wrs(t, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_LDG_E_U16: { uint16_t x; memcpy(&x, (const void *)(uintptr_t)rd64(t, in->src1_vreg, p), 2); wrs(t, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_STG_E: memcpy((void *)(uintptr_t)rd64(t, in->src1_vreg, p), &b, 4); break; + case BW_IR_LDG_E_64: case BW_IR_LDG_E_128: { unsigned n = in->op == BW_IR_LDG_E_64 ? 8u : 16u; uint64_t ad = rd64(t, in->src1_vreg, p) + (uint64_t)(int64_t)(int32_t)in->imm; if (ad & (n - 1)) { g_sim_err = 5; t->done = 1; return 0; } uint32_t x[4]; memcpy(x, (const void *)(uintptr_t)ad, n); for (unsigned i = 0; i < n / 4; i++) wrs(t, in->dst_vreg, i, x[i], p); break; } + case BW_IR_LDS128: { uint32_t ad = a + in->imm; if ((ad & 15u) || ad + 16 > SIM_SMEM) { g_sim_err = 3; t->done = 1; return 0; } for (unsigned i = 0; i < 4; i++) { uint32_t x; memcpy(&x, sim_shared + ad + 4u * i, 4); wrs(t, in->dst_vreg, i, x, p); } break; } + case BW_IR_LDS32: { uint32_t x; if (a + 4 > SIM_SMEM) { g_sim_err = 3; t->done = 1; return 0; } memcpy(&x, sim_shared + a, 4); wrs(t, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_STS32: if (a + 4 > SIM_SMEM) { g_sim_err = 3; t->done = 1; return 0; } memcpy(sim_shared + a, &b, 4); break; + case BW_IR_FADD: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(u2f(a) + u2f(b)), p); break; + case BW_IR_FSUB: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(u2f(a) - u2f(b)), p); break; + case BW_IR_FMUL: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(u2f(a) * u2f(b)), p); break; + case BW_IR_FFMA: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(fmaf(u2f(a), u2f(b), u2f(c))), p); break; + case BW_IR_FMNMX_MAX: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(fmaxf(u2f(a), u2f(b))), p); break; + case BW_IR_MUFU_EX2: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(exp2f(u2f(a))), p); break; + case BW_IR_MUFU_RCP: wrs(t, in->dst_vreg, in->dst_subreg, f2u_(1.0f / u2f(a)), p); break; + default: g_sim_err = 100 + (int)in->op; t->done = 1; return 0; + } + if (g_trace && tid == 0 && cx == g_trace_cx && cy == 0 && g_trace_launch == 1) { uint32_t dv = rd(t, in->dst_vreg, p); printf("T pc=%d op=%d dst=v%d(r%d)=%08x f=%g p0=%d a=%08x b=%08x c=%08x\n", t->pc, (int)in->op, in->dst_vreg, in->dst_vreg >= 0 ? p->regalloc.vreg_to_phys[in->dst_vreg] : -1, dv, u2f(dv), t->p0, a, b, c); } + t->pc++; + } + g_sim_err = 4; t->done = 1; return 0; +} +static int sim_launch(const void *progv, const OmegaGpuAttnLaunch *L, OmegaGpuAttnInfo *info) { + const BlackwellIRProgram *p = progv; + memset(sim_cbank, 0, sizeof sim_cbank); + uint64_t qa = (uintptr_t)L->q, pa = (uintptr_t)L->pool, oa = (uintptr_t)L->out, ta = (uintptr_t)L->tab; + sim_cbank[0x380 / 4] = (uint32_t)qa; sim_cbank[0x380 / 4 + 1] = (uint32_t)(qa >> 32); + sim_cbank[0x388 / 4] = (uint32_t)pa; sim_cbank[0x388 / 4 + 1] = (uint32_t)(pa >> 32); + sim_cbank[0x390 / 4] = (uint32_t)oa; sim_cbank[0x390 / 4 + 1] = (uint32_t)(oa >> 32); + sim_cbank[0x398 / 4] = (uint32_t)ta; sim_cbank[0x398 / 4 + 1] = (uint32_t)(ta >> 32); + memcpy(&sim_cbank[0x3a0 / 4], L->params, sizeof L->params); + uint32_t *outw = L->out; for (size_t i = 0; i < L->out_bytes / 4; i++) outw[i] = 0xffbadbadu; + g_sim_err = 0; + static SimThr th[SIM_TMAX]; + g_trace_launch++; if (getenv("ATTN_SIM_TRACE")) { g_trace = 1; g_trace_cx = (uint32_t)atoi(getenv("ATTN_SIM_TRACE")); } + for (uint32_t cy = 0; cy < L->grid_y && !g_sim_err; cy++) for (uint32_t cx = 0; cx < L->grid_x && !g_sim_err; cx++) { + memset(th, 0, sizeof th); memset(sim_shared, 0, sizeof sim_shared); + for (;;) { + int parked = 0, alive = 0; + for (int i = 0; i < SIM_T; i++) { if (th[i].done) continue; alive++; parked += sim_step(&th[i], p, (uint32_t)i, cx, cy); } + if (g_sim_err) break; + if (alive == 0) break; + if (parked == 0) continue; /* every live thread exited this round */ + if (parked != alive) { g_sim_err = 5; break; } /* a thread exited while others wait at a barrier */ + int pc = -1; + for (int i = 0; i < SIM_T; i++) if (!th[i].done) { if (pc < 0) pc = th[i].pc; else if (th[i].pc != pc) g_sim_err = 6; } + if (g_sim_err) break; + const BlackwellIRInsn *in = &p->insns[pc]; + if (in->op == BW_IR_SHFL_DOWN) { + for (int i = 0; i < SIM_T; i++) if (!th[i].done && !th[i & ~31].done && th[i].path != th[i & ~31].path) g_sim_err = 7; + if (g_sim_err) break; + uint32_t src[SIM_TMAX]; + for (int i = 0; i < SIM_T; i++) src[i] = rd(&th[i], in->src1_vreg, p); + for (int i = 0; i < SIM_T; i++) { int lane = i & 31, from = lane + (int)(in->imm & 31); wr(&th[i], in->dst_vreg, from < 32 ? src[(i & ~31) + from] : src[i], p); } + } + for (int i = 0; i < SIM_T; i++) th[i].pc++; + } + } + uint32_t unwritten = 0; for (size_t i = 0; i < L->out_bytes / 4; i++) if (outw[i] == 0xffbadbadu) unwritten++; + if (info) { info->chip_calls++; info->unwritten_words += unwritten; info->ctas_last_launch = L->grid_x * L->grid_y; info->threads_per_cta = SIM_T; } + if (g_sim_err) { printf("simulator error %d\n", g_sim_err); return OMEGA_GPU_ATTN_CHIP_FAIL; } + return unwritten ? OMEGA_GPU_ATTN_UNWRITTEN : OMEGA_GPU_ATTN_OK; +} + + +/* ---------------------------------------------------- timing (cut 4b) */ +/* One query step of TinyLlama attention at context 2048 (32 q heads, 4 kv heads, + * f32 KV) 100 times through the persistent session, every call checked against the + * oracle; gate: median wall time per call under 3 ms, one device open per process. */ +static double now_ms(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * 1e3 + t.tv_nsec / 1e6; } +static int cmp_d(const void *a, const void *b) { double x = *(const double *)a, y = *(const double *)b; return x < y ? -1 : x > y; } +/* --split-timing: the paged bf16 decode shape (32 q / 8 kv heads at the current head_dim, one sequence, context + * ATTN_SPLIT_CTX, default 1268: the campaign's document tasks) through the persistent session, 100 calls per + * forced launch split 1, 2, 4, 8 and the automatic choice; median wall and mean chip time per call, every call + * against the oracle. A measurement for the decode-speed work (2026-10-12): whether the kernel's time at this + * context falls with more CTAs per (sequence, head) or stays flat (bandwidth bound: the four query heads of a + * kv head each read its slice). */ +static int split_timing(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + enum { N = 100 }; + const uint32_t hd = g_hd, nqh = 32, nkv = 8, bs = 16, layers = 2, layer = 1; + const char *ce = getenv("ATTN_SPLIT_CTX"); + const uint32_t ctx = ce && atoi(ce) > 0 ? (uint32_t)atoi(ce) : 1268u; + const uint32_t nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 3; + uint32_t seed = 0x5b17c0deu; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 5 + 1) % pool_blocks; + const size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + PagedCtx pc = { q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv }; + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_SPLIT_TIMING_V1\",\"hd\":%u,\"ctx\":%u,\"calls\":%d,\"spin_us\":%u,\"cases\":[", + hd, ctx, N, omega_gpu_session_spin_us()); + int first = 1; + for (int ls = -1; ls <= (int)OMEGA_GPU_ATTN_MAX_LOG2SPLIT; ls++) { + set_split(ls); + OmegaGpuAttnInfo info; + int rc0 = run_paged(&pc, got, &info); /* warm-up: opens the device, generates this split's kernel */ + CHECK(rc0 == OMEGA_GPU_ATTN_OK, "split-timing split=%d first call rc=%s err=\"%s\"", ls, omega_gpu_attention_rc_name(rc0), omega_gpu_attention_last_error()); + double samples[N]; int ok_calls = 0; size_t bad_total = 0; double worst = 0; uint64_t chip_sum = 0; + for (int i = 0; i < N; i++) { + double t0 = now_ms(); + int rc = run_paged(&pc, got, &info); + samples[i] = now_ms() - t0; + double w; size_t bad = compare(got, want, n, 2e-4, 2e-5, &w); + if (w > worst) worst = w; + bad_total += bad; chip_sum += info.elapsed_ns; + if (rc == OMEGA_GPU_ATTN_OK && bad == 0) ok_calls++; + } + qsort(samples, N, sizeof samples[0], cmp_d); + const double median = samples[N / 2], p90 = samples[N * 9 / 10], mn = samples[0], mx = samples[N - 1]; + const int pass = ok_calls == N && bad_total == 0; + CHECK(pass, "split-timing split=%d ctx=%u ok_calls=%d/%d violations=%zu", ls, ctx, ok_calls, N, bad_total); + printf("%s split-timing split=%s ctas=%u ctx=%u ok_calls=%d/%d worst_scaled_err=%g median_ms=%.3f p90_ms=%.3f min_ms=%.3f max_ms=%.3f chip_us_mean=%.1f\n", + pass ? "PASS" : "FAIL", ls < 0 ? "auto" : (const char *[]){ "1", "2", "4", "8", "16" }[ls], info.ctas_last_launch, ctx, ok_calls, N, worst, + median, p90, mn, mx, chip_sum / 1e3 / N); + if (out) fprintf(out, "%s{\"split\":%d,\"ctas\":%u,\"ok_calls\":%d,\"violations\":%zu,\"worst_scaled_err\":%g,\"median_ms\":%.4f,\"p90_ms\":%.4f,\"min_ms\":%.4f,\"max_ms\":%.4f,\"chip_us_mean\":%.1f,\"pass\":%s}", + first ? "" : ",", ls, info.ctas_last_launch, ok_calls, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, pass ? "true" : "false"); + first = 0; + } + set_split(-1); + free(pool); free(ids); free(q); free(got); free(want); + if (out) { fprintf(out, "],\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_SPLIT_TIMING_PASS" : "OMEGA_GPU_ATTENTION_SPLIT_TIMING_FAIL"); fclose(out); } + return 0; +} + +static int timing(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + enum { N = 100 }; + const uint32_t hd = 64, nqh = 32, nkv = 4, seq = 2048; + const char *name = "gqa_f32_tinyllama_32q4kv_ctx2048"; + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_TIMING_V1\",\"gate_median_ms\":3.0,\"calls\":%d,\"cases\":[", N); + uint32_t seed = 0xfb1c004bu; + size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < nkvs; i++) { kc[i] = frand(&seed, -1.0f, 1.0f); vc[i] = frand(&seed, -1.0f, 1.0f); } + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + double samples[N]; int ok_calls = 0; size_t bad_total = 0; double worst = 0; uint64_t chip_sum = 0; int rc_last = 0; + OmegaGpuAttnInfo info; + /* warm-up: the first call opens the device and generates the kernel (not timed) */ + int rc0 = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + double first_ms = info.call_ns / 1e6; + CHECK(rc0 == OMEGA_GPU_ATTN_OK, "%s first call rc=%s err=\"%s\"", name, omega_gpu_attention_rc_name(rc0), omega_gpu_attention_last_error()); + for (int i = 0; i < N; i++) { + double t0 = now_ms(); + int rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + samples[i] = now_ms() - t0; + double w; size_t bad = compare(got, want, n, 2e-4, 2e-5, &w); + if (w > worst) worst = w; + bad_total += bad; chip_sum += info.elapsed_ns; rc_last = rc; + if (rc == OMEGA_GPU_ATTN_OK && bad == 0) ok_calls++; + } + qsort(samples, N, sizeof samples[0], cmp_d); + double median = samples[N / 2], p90 = samples[N * 9 / 10], mn = samples[0], mx = samples[N - 1]; + uint32_t opens = omega_gpu_session_open_count(); + int pass = ok_calls == N && bad_total == 0 && median < 3.0 && opens == 1; + CHECK(pass, "timing %s ok_calls=%d/%d violations=%zu median_ms=%.3f opens=%u last_rc=%s err=\"%s\"", name, ok_calls, N, bad_total, median, opens, omega_gpu_attention_rc_name(rc_last), omega_gpu_attention_last_error()); + printf("%s timing %s first_call_ms=%.3f ok_calls=%d/%d violations=%zu worst_scaled_err=%g median_ms=%.3f p90_ms=%.3f min_ms=%.3f max_ms=%.3f chip_us_mean=%.1f device_opens=%u\n", + pass ? "PASS" : "FAIL", name, first_ms, ok_calls, N, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens); + if (out) fprintf(out, "{\"case\":\"%s\",\"first_call_ms\":%.3f,\"ok_calls\":%d,\"violations\":%zu,\"worst_scaled_err\":%g,\"median_ms\":%.4f,\"p90_ms\":%.4f,\"min_ms\":%.4f,\"max_ms\":%.4f,\"chip_us_mean\":%.1f,\"device_opens\":%u,\"pass\":%s}", + name, first_ms, ok_calls, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens, pass ? "true" : "false"); + free(q); free(kc); free(vc); free(got); free(want); + if (out) { fprintf(out, "],\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_TIMING_PASS" : "OMEGA_GPU_ATTENTION_TIMING_FAIL"); fclose(out); } + return 0; +} + +/* ------------------------------------------------ head-scaling sweep (attention hardening cut) + * `--sweep [--out sweep.json]`: the production paged bf16 path at head_dim 64 over query-head + * counts 1, 2, 4, 8, 16, 24, 32, 64 and every divisor as the kv-head count, at context 256 + * (latency) and 2048 (bandwidth), block size 16, scattered block ids. Points whose GQA ratio + * is not a power of two are mathematically legal (the generic contract allows them) but + * outside the current kernel envelope (codegen selects the kv head with a shift): they are + * called anyway, must be refused with BAD_ARGS, and are recorded as + * "unsupported_by_kernel_envelope" (no chip time). Every supported point is checked against + * the host oracle on its first call, then warmed and timed over N calls (median / p90 of the + * whole call and of the chip kernel time). Gates: parity, no unwritten word, one device open, + * every call OK; the timings are evidence, not a threshold. Only quantities the stack measures + * are recorded; SM occupancy, bandwidth utilisation and cache hit rates are not observable + * through this path and are reported as unavailable. Under --sim the timings are host-simulator + * timings and the receipt says so. */ +static int sweep(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + const int N = g_sim_mode ? 1 : 20; + const uint32_t hd = 64, bs = 16, layers = 1, layer = 0; + static const uint32_t qheads[8] = { 1, 2, 4, 8, 16, 24, 32, 64 }; + static const uint32_t ctxs[2] = { 256, 2048 }; + uint32_t seed = 0xfb1c05eeu; + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ATTENTION_SWEEP_V1\",\"path\":\"paged_bf16\",\"head_dim\":%u,\"block_size\":%u,\"timed_calls\":%d,\"host_simulator\":%s," + "\"tolerances\":{\"rel\":2e-4,\"abs\":2e-5},\"hardware_counters\":\"unavailable (SM occupancy, bandwidth utilisation, cache hit rates are not observable through this path)\",\"points\":[", + hd, bs, N, g_sim_mode ? "true" : "false"); + int npoints = 0, supported = 0, unsupported = 0; + double *samples = malloc((size_t)N * sizeof *samples), *ksamples = malloc((size_t)N * sizeof *ksamples); + for (int qi = 0; qi < 8; qi++) for (uint32_t nkv = 1; nkv <= qheads[qi]; nkv++) { + uint32_t nqh = qheads[qi]; + if (nqh % nkv) continue; + uint32_t ratio = nqh / nkv; int pow2 = (ratio & (ratio - 1)) == 0; + for (int ci = 0; ci < 2; ci++) { + uint32_t ctx = ctxs[ci], nblk = (ctx + bs - 1) / bs, pool_blocks = nblk + 5; + OmegaGpuKvLayout ly = layout_for(pool_blocks, bs, layers, nkv, hd); + uint8_t *pool = malloc(ly.pool_bytes); uint16_t *pw = (uint16_t *)pool; + for (size_t i = 0; i < ly.pool_bytes / 2; i++) pw[i] = f2bf(frand(&seed, -1.0f, 1.0f)); + uint32_t *ids = malloc(nblk * 4); + for (uint32_t b = 0; b < nblk; b++) ids[b] = (b * 7 + 3) % pool_blocks; + size_t n = (size_t)nqh * hd; + float *q = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = frand(&seed, -1.0f, 1.0f); + OmegaGpuAttnInfo info; memset(&info, 0, sizeof info); + int rc = omega_gpu_paged_attention_bf16(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, got, &info); + const char *klass; int pass; size_t bad = 0; double worst = 0; int ok_calls = 0; uint32_t unwritten = 0, cache_hits = 0; double med = 0, p90 = 0, kmed = 0, kp90 = 0; + if (!pow2) { + klass = "unsupported_by_kernel_envelope"; + pass = rc == OMEGA_GPU_ATTN_BAD_ARGS; unsupported++; + CHECK(pass, "sweep %uq/%ukv ctx %u: ratio %u (not a power of two) refused with BAD_ARGS (got %s)", nqh, nkv, ctx, ratio, omega_gpu_attention_rc_name(rc)); + } else { + klass = "supported"; supported++; + oracle_paged(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, want); + bad = compare(got, want, n, 2e-4, 2e-5, &worst); + unwritten = info.unwritten_words; + uint64_t kv_staged = info.kv_bytes_staged, kv_naive = info.kv_bytes_naive, qb = info.q_bytes, tb = info.tab_bytes, ob = info.out_bytes; + uint32_t launches = info.chip_calls, ctas = info.ctas_last_launch, blk_l = info.kv_blocks_logical, blk_u = info.kv_blocks_unique, kv_src = info.kv_source; + for (int i = 0; i < N; i++) { + OmegaGpuAttnInfo ti; + int trc = omega_gpu_paged_attention_bf16(q, pool, &ly, ids, nblk, ctx, layer, nqh, nkv, hd, got, &ti); + samples[i] = ti.call_ns / 1e6; ksamples[i] = ti.elapsed_ns / 1e6; + double w; size_t b2 = compare(got, want, n, 2e-4, 2e-5, &w); + if (w > worst) worst = w; + bad += b2; unwritten += ti.unwritten_words; cache_hits += ti.kernel_cache_hit; + if (trc == OMEGA_GPU_ATTN_OK && b2 == 0) ok_calls++; + } + qsort(samples, (size_t)N, sizeof samples[0], cmp_d); qsort(ksamples, (size_t)N, sizeof ksamples[0], cmp_d); + med = samples[N / 2]; p90 = samples[N * 9 / 10]; kmed = ksamples[N / 2]; kp90 = ksamples[N * 9 / 10]; + pass = rc == OMEGA_GPU_ATTN_OK && bad == 0 && ok_calls == N && unwritten == 0 && cache_hits == (uint32_t)N; + CHECK(pass, "sweep %uq/%ukv ctx %u: rc=%s violations=%zu ok_calls=%d/%d unwritten=%u cache_hits=%u", nqh, nkv, ctx, omega_gpu_attention_rc_name(rc), bad, ok_calls, N, unwritten, cache_hits); + printf("%s sweep %2uq/%2ukv ratio %2u ctx %4u: launches=%u ctas=%u call_ms med=%.3f p90=%.3f kernel_ms med=%.3f p90=%.3f kv_staged=%" PRIu64 " (naive %" PRIu64 ") blocks=%u/%u q=%" PRIu64 " tab=%" PRIu64 " out=%" PRIu64 " worst=%g\n", + pass ? "PASS" : "FAIL", nqh, nkv, ratio, ctx, launches, ctas, med, p90, kmed, kp90, kv_staged, kv_naive, blk_u, blk_l, qb, tb, ob, worst); + if (out) fprintf(out, "%s{\"q_heads\":%u,\"kv_heads\":%u,\"gqa_ratio\":%u,\"head_dim\":%u,\"context\":%u,\"q_width\":%zu,\"out_width\":%zu,\"class\":\"%s\",\"rc\":\"%s\",\"pass\":%s," + "\"violations\":%zu,\"worst_scaled_err\":%g,\"unwritten_words\":%u,\"launches_per_call\":%u,\"ctas_last_launch\":%u,\"threads_per_cta\":%u," + "\"call_ms_median\":%.4f,\"call_ms_p90\":%.4f,\"kernel_ms_median\":%.4f,\"kernel_ms_p90\":%.4f,\"kernel_cache_hits\":%u,\"first_call_cache_hit\":%s," + "\"kv_bytes_staged\":%" PRIu64 ",\"kv_bytes_naive\":%" PRIu64 ",\"kv_blocks_logical\":%u,\"kv_blocks_unique\":%u,\"q_bytes\":%" PRIu64 ",\"tab_bytes\":%" PRIu64 ",\"out_bytes\":%" PRIu64 ",\"kv_source\":\"%s\"}", + npoints ? "," : "", nqh, nkv, ratio, hd, ctx, n, n, klass, omega_gpu_attention_rc_name(rc), pass ? "true" : "false", bad, worst, unwritten, launches, ctas, info.threads_per_cta, + med, p90, kmed, kp90, cache_hits, info.kernel_cache_hit ? "true" : "false", kv_staged, kv_naive, blk_l, blk_u, qb, tb, ob, kv_src == OMEGA_GPU_ATTN_KV_STAGED ? "staged" : "resident"); + npoints++; + } + if (!pow2) { + printf("%s sweep %2uq/%2ukv ratio %2u ctx %4u: %s (rc=%s)\n", pass ? "PASS" : "FAIL", nqh, nkv, ratio, ctx, klass, omega_gpu_attention_rc_name(rc)); + if (out) fprintf(out, "%s{\"q_heads\":%u,\"kv_heads\":%u,\"gqa_ratio\":%u,\"head_dim\":%u,\"context\":%u,\"q_width\":%zu,\"out_width\":%zu,\"class\":\"%s\",\"rc\":\"%s\",\"pass\":%s}", + npoints ? "," : "", nqh, nkv, ratio, hd, ctx, n, n, klass, omega_gpu_attention_rc_name(rc), pass ? "true" : "false"); + npoints++; + } + free(pool); free(ids); free(q); free(got); free(want); + } + } + free(samples); free(ksamples); + uint32_t opens = omega_gpu_session_open_count(); + CHECK(opens == (g_sim_mode ? 0u : 1u), "sweep: device opened %s (opens=%u)", g_sim_mode ? "never (simulator)" : "once", opens); + printf("sweep: %d points (%d supported, %d unsupported by the kernel envelope), device_opens=%u\n", npoints, supported, unsupported, opens); + if (out) { fprintf(out, "],\"points_total\":%d,\"points_supported\":%d,\"points_unsupported\":%d,\"device_opens\":%u,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", npoints, supported, unsupported, opens, g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ATTENTION_SWEEP_PASS" : "OMEGA_GPU_ATTENTION_SWEEP_FAIL"); fclose(out); } + return 0; +} + +/* ------------------------------------------------------------ warp simulator (omega #308) + * The per-thread simulator above has no model of a warp (its SHFL rule is "one path across the + * warp or error 7"). With --divergent the kernel carries a real lane-dependent branch inside a + * BSSY/BSYNC region, and every launch runs through tests/bw_warp_sim.h instead: 32-lane + * fragments, barrier registers, SHFL/BAR participation. Each launch runs in both fragment + * orders and the two outputs must be bit-identical. */ +static uint64_t g_ws_issues, g_ws_launches; +static int ws_attn_launch(const void *progv, const OmegaGpuAttnLaunch *L, OmegaGpuAttnInfo *info) { + const BlackwellIRProgram *p = progv; + uint32_t *outw = L->out; size_t nw = L->out_bytes / 4; + uint32_t *copy = malloc(L->out_bytes); + int err = 0; char msg[240] = ""; + for (int order = 0; order < 2 && !err && copy; order++) { + WsSim s; memset(&s, 0, sizeof s); + s.p = p; s.threads = SIM_T; s.smem = sim_shared; s.smem_bytes = SIM_SMEM; s.order = order; + uint64_t qa = (uintptr_t)L->q, pa = (uintptr_t)L->pool, oa = (uintptr_t)L->out, ta = (uintptr_t)L->tab; + s.cbank[0x380 / 4] = (uint32_t)qa; s.cbank[0x380 / 4 + 1] = (uint32_t)(qa >> 32); + s.cbank[0x388 / 4] = (uint32_t)pa; s.cbank[0x388 / 4 + 1] = (uint32_t)(pa >> 32); + s.cbank[0x390 / 4] = (uint32_t)oa; s.cbank[0x390 / 4 + 1] = (uint32_t)(oa >> 32); + s.cbank[0x398 / 4] = (uint32_t)ta; s.cbank[0x398 / 4 + 1] = (uint32_t)(ta >> 32); + memcpy(&s.cbank[0x3a0 / 4], L->params, sizeof L->params); + for (size_t i = 0; i < nw; i++) outw[i] = 0xffbadbadu; + err = ws_run(&s, L->grid_x, L->grid_y); + if (err) { snprintf(msg, sizeof msg, "order %d: %s", order, s.msg); break; } + g_ws_issues += s.warp_issues; + if (order == 0) memcpy(copy, outw, L->out_bytes); + else if (memcmp(copy, outw, L->out_bytes) != 0) { err = -1; snprintf(msg, sizeof msg, "the fragment order changed the result"); } + } + free(copy); + g_ws_launches++; + uint32_t unwritten = 0; for (size_t i = 0; i < nw; i++) if (outw[i] == 0xffbadbadu) unwritten++; + if (info) { info->chip_calls++; info->unwritten_words += unwritten; info->ctas_last_launch = L->grid_x * L->grid_y; info->threads_per_cta = SIM_T; } + if (err) { printf("warp simulator error: %s\n", msg); return OMEGA_GPU_ATTN_CHIP_FAIL; } + return unwritten ? OMEGA_GPU_ATTN_UNWRITTEN : OMEGA_GPU_ATTN_OK; +} +/* Negative control for --divergent --sim: mode 2 builds the same kernel with the BSYNC dropped; + * the warp simulator must reject it (the whole point of the simulator: the old one could not). */ +static void divergent_negative_control(void) { + enum { SEQ = 65, NQH = 8, NKV = 2 }; + const uint32_t HD = g_hd; + float *q = malloc(NQH * HD * 4), *kv = malloc((size_t)SEQ * NKV * HD * 4), *out = malloc(NQH * HD * 4); + uint32_t seed = 0x308u; + for (uint32_t i = 0; i < NQH * HD; i++) q[i] = frand(&seed, -1.0f, 1.0f); + for (size_t i = 0; i < (size_t)SEQ * NKV * HD; i++) kv[i] = frand(&seed, -1.0f, 1.0f); + omega_gpu_attention_test_set_divergent(2); + int rc = omega_gpu_gqa_attention_f32(q, kv, kv, SEQ, NQH, NKV, HD, out, NULL); + omega_gpu_attention_test_set_divergent(1); + CHECK(rc == OMEGA_GPU_ATTN_CHIP_FAIL, "divergent mode 2 (BSYNC dropped) rejected by the warp simulator (rc %s)", omega_gpu_attention_rc_name(rc)); + int rc1 = omega_gpu_gqa_attention_f32(q, kv, kv, SEQ, NQH, NKV, HD, out, NULL); + CHECK(rc1 == OMEGA_GPU_ATTN_OK, "divergent mode 1 (regioned branch) runs clean on the same input (rc %s)", omega_gpu_attention_rc_name(rc1)); + free(q); free(kv); free(out); +} + +/* ------------------------------------------------------------ head_dim 128 (CPU phase) + * Checks that need the public API only, so the same code runs on the host simulators now and on + * the chip in the coordinated window. Run with --hd 128 (--sim for the host simulators). + * They target what head_dim 128 changed: four warps per CTA, so the chunk max and the chunk sum + * each combine FOUR warp partials (lane 0 of warps 0..3), and 128-token chunks. + * (a) uniform scores (K = 0): every weight is 1, the output is the mean of V over the context; + * a sum that drops the partial of warp 2 or 3 gives about twice the mean; + * (b) one dominant token with a score above the f32 exponent range (EX2 overflows without the + * right running max): the token sits in each of the four warps of chunk 0 and in the later, + * partial chunks; a max that ignores warp 2 or 3 overflows to inf / NaN. + * Negative controls: the comparison rejects the answer of a different token, and a shared-memory + * declaration of 1024 bytes (the head_dim 64 size) is refused by the simulators. */ +static void hd128_checks(void) { + const uint32_t hd = 128, nqh = 8, nkv = 2, seq = 300; + uint32_t seed = 0x128u; + size_t n = (size_t)nqh * hd, nkvs = (size_t)seq * nkv * hd; + float *q = malloc(n * 4), *kc = malloc(nkvs * 4), *vc = malloc(nkvs * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) q[i] = 1.0f; + for (size_t i = 0; i < nkvs; i++) vc[i] = frand(&seed, -1.0f, 1.0f); + OmegaGpuAttnInfo info; + /* (a) uniform */ + memset(kc, 0, nkvs * 4); + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + int rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + double w; size_t bad = compare(got, want, n, 2e-4, 2e-5, &w); + CHECK(rc == OMEGA_GPU_ATTN_OK && bad == 0 && info.threads_per_cta == 128, "hd128 uniform scores: mean of V over 300 tokens (rc %s, %zu bad, worst %g, %u threads)", omega_gpu_attention_rc_name(rc), bad, w, info.threads_per_cta); + float *half = malloc(n * 4); for (size_t i = 0; i < n; i++) half[i] = want[i] * 0.5f; + size_t neg = compare(got, half, n, 2e-4, 2e-5, &w); + CHECK(neg > n / 2, "hd128 uniform negative control: a result with the sum of two warps dropped (half the mean) is flagged (%zu of %zu)", neg, n); + free(half); + /* (b) one dominant token */ + static const uint32_t pos[] = { 5, 40, 70, 100, 127, 128 + 3, 256 + 43 }; + int all_ok = 1; size_t worst_bad = 0; + for (size_t pi = 0; pi < sizeof pos / sizeof pos[0]; pi++) { + memset(kc, 0, nkvs * 4); + for (uint32_t kvh = 0; kvh < nkv; kvh++) for (uint32_t d = 0; d < hd; d++) kc[((size_t)pos[pi] * nkv + kvh) * hd + d] = 12.0f; /* dot 1536, scaled by log2e / sqrt(128): about 2^196 */ + oracle_gqa(q, kc, vc, seq, nqh, nkv, hd, want); + rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, &info); + bad = compare(got, want, n, 2e-4, 2e-5, &w); + if (rc != OMEGA_GPU_ATTN_OK || bad) { all_ok = 0; if (bad > worst_bad) worst_bad = bad; } + printf(" hd128 dominant token %u (warp %u of chunk %u): rc %s, %zu bad, worst %g\n", pos[pi], (pos[pi] % 128) / 32, pos[pi] / 128, omega_gpu_attention_rc_name(rc), bad, w); + if (pi == 0) { + /* negative control: the answer of token 6 instead of token 5 must be flagged */ + float *other = malloc(n * 4); + for (uint32_t h = 0; h < nqh; h++) for (uint32_t d = 0; d < hd; d++) other[h * hd + d] = vc[((size_t)6 * nkv + h / (nqh / nkv)) * hd + d]; + size_t negb = compare(got, other, n, 2e-4, 2e-5, &w); + CHECK(negb > n / 2, "hd128 dominant-token negative control: the neighbouring token's V is flagged (%zu of %zu)", negb, n); + free(other); + } + } + CHECK(all_ok, "hd128 dominant token in every warp and chunk: exact max/sum over four warp partials (worst bad %zu)", worst_bad); + /* a kernel that needs 2048 bytes of shared memory must not run in a 1024-byte declaration (simulators only: they bound shared accesses) */ + if (g_sim_mode) { + g_smem_cap = 1024; + rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, NULL); + g_smem_cap = 0; + CHECK(rc == OMEGA_GPU_ATTN_CHIP_FAIL, "hd128 kernel refused under a 1024-byte shared-memory declaration (rc %s)", omega_gpu_attention_rc_name(rc)); + rc = omega_gpu_gqa_attention_f32(q, kc, vc, seq, nqh, nkv, hd, got, NULL); + CHECK(rc == OMEGA_GPU_ATTN_OK, "hd128 kernel runs under the 2048-byte declaration (rc %s)", omega_gpu_attention_rc_name(rc)); + } + free(q); free(kc); free(vc); free(got); free(want); +} + +/* head_dim 64 byte-identity pin and head_dim 128 codegen facts (CPU only, no device, no simulator). + * The digests are SHA-256 of the encoded kernel bytes as emitted by the batched-load program of 2026-10-12 + * (speed/attention-batched-loads; before it, main c0369e6 was pinned at 160 instructions); any change to the head_dim 64 program changes a digest and fails here. */ +typedef struct { bool f32; uint32_t log2bs, log2gqa; size_t insns; const char *sha256; } Pin; +static const Pin k_pins64[] = { + { false, 4, 3, 216, "44d27fae78ea21ee77fd7a0ebd2ebfcac52e9e45a81de84b035868092e13e424" }, + { false, 4, 2, 216, "3bc79d4a54fd0d82024b376dfdb718e8326431917251f13f5c44be6ba8eb6f0c" }, + { false, 4, 0, 216, "83eca9872e32c17321d2f8ec6a6ec92638ed72b136d8958cda5cdfc451c01ef8" }, + { true, 12, 3, 184, "b6a25d8739185bbd944bfcc1ec174abb24ce46529f06c56f8d5ac77bf6883ddd" }, + { true, 12, 2, 184, "46a2b82ebcb55237f4a7585679b42ac9558c7a434e8e80ccef6cc0bfaed8fcb9" }, + { true, 12, 0, 184, "970db9533c836eca7c86783875a2ad898cd69bc3070cae418cc92b3ce2dbbd9c" }, +}; +static void hex_digest(const uint8_t d[32], char out[65]) { for (int i = 0; i < 32; i++) snprintf(out + 2 * i, 3, "%02x", d[i]); } +static void hd_codegen_checks(void) { + char hex[65]; + for (size_t i = 0; i < sizeof k_pins64 / sizeof k_pins64[0]; i++) { + const Pin *p = &k_pins64[i]; + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + int rc = omega_gpu_attention_codegen_hd(p->f32, p->log2bs, p->log2gqa, 64, &k); + hex_digest(k.code_digest, hex); + CHECK(rc == OMEGA_GPU_ATTN_OK && k.insn_count == p->insns && strcmp(hex, p->sha256) == 0, "hd64 %s log2bs %u log2gqa %u: encoded kernel is byte-identical to the pinned program (%zu insns, sha256 %s)", p->f32 ? "f32 " : "bf16", p->log2bs, p->log2gqa, k.insn_count, hex); + free(k.code); + /* the 4-argument entry point is the same kernel */ + OmegaBlackwellKernel k4; memset(&k4, 0, sizeof k4); + CHECK(omega_gpu_attention_codegen(p->f32, p->log2bs, p->log2gqa, &k4) == OMEGA_GPU_ATTN_OK && memcmp(k4.code_digest, k.code_digest, 32) == 0, "hd64 4-argument codegen entry is the same kernel"); + free(k4.code); + /* head_dim 128: encodes, inside the register budget, a different (longer) program */ + OmegaBlackwellKernel k2; memset(&k2, 0, sizeof k2); + int rc2 = omega_gpu_attention_codegen_hd(p->f32, p->log2bs, p->log2gqa, 128, &k2); + CHECK(rc2 == OMEGA_GPU_ATTN_OK && k2.code_size > 0 && k2.gpr_count <= 96 /* AT_GPR_BUDGET; cut K: the four-head kernel peaks at 84 */ && k2.insn_count > p->insns && memcmp(k2.code_digest, k.code_digest, 32) != 0, + "hd128 %s log2bs %u log2gqa %u: kernel encodes (%zu insns vs %zu, %u gprs)", p->f32 ? "f32 " : "bf16", p->log2bs, p->log2gqa, k2.insn_count, p->insns, k2.gpr_count); + free(k2.code); + } + OmegaBlackwellKernel kx; memset(&kx, 0, sizeof kx); + CHECK(omega_gpu_attention_codegen_hd(false, 4, 3, 96, &kx) == OMEGA_GPU_ATTN_TOO_LARGE, "codegen refuses head_dim 96"); + CHECK(omega_gpu_attention_codegen_hd(false, 4, 3, 256, &kx) == OMEGA_GPU_ATTN_TOO_LARGE, "codegen refuses head_dim 256"); + /* negative control for the pin itself: a one-bit change to a pinned digest must not match */ + OmegaBlackwellKernel kn; memset(&kn, 0, sizeof kn); + (void)omega_gpu_attention_codegen_hd(k_pins64[0].f32, k_pins64[0].log2bs, k_pins64[0].log2gqa, 64, &kn); + kn.code_digest[0] ^= 1u; hex_digest(kn.code_digest, hex); + CHECK(strcmp(hex, k_pins64[0].sha256) != 0, "pin negative control: a flipped digest bit does not match the pin"); + free(kn.code); +} + + +int main(int argc, char **argv) { + const char *out_path = NULL; int host = 0, sim = 0, timing_mode = 0, sweep_mode = 0, split_timing_mode = 0; + uint32_t spin_us = 0; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--host-only") == 0) host = 1; + else if (strcmp(argv[i], "--sim") == 0) sim = 1; + else if (strcmp(argv[i], "--divergent") == 0) g_divergent = 1; + else if (strcmp(argv[i], "--timing") == 0) timing_mode = 1; + else if (strcmp(argv[i], "--split-timing") == 0) split_timing_mode = 1; + else if (strcmp(argv[i], "--sweep") == 0) sweep_mode = 1; + else if (strcmp(argv[i], "--hd") == 0 && i + 1 < argc) g_hd = (uint32_t)atoi(argv[++i]); + else if (strcmp(argv[i], "--spin-us") == 0 && i + 1 < argc) spin_us = (uint32_t)atoi(argv[++i]); + else if (strcmp(argv[i], "--out") == 0 && i + 1 < argc) out_path = argv[++i]; + } + if (g_hd != 64 && g_hd != 128) { printf("--hd must be 64 or 128\n"); return 2; } + if (g_hd == 128 && (timing_mode || sweep_mode)) { printf("--hd 128 supports the battery, --split-timing and --host-only (timing and sweep are head_dim 64 only)\n"); return 2; } + if (spin_us && omega_gpu_session_set_spin_us(spin_us) != 0) { printf("--spin-us %u refused\n", spin_us); return 2; } + if (g_divergent) omega_gpu_attention_test_set_divergent(1); + if (sim) { g_sim_mode = 1; omega_gpu_attention_test_set_simulator(g_divergent ? ws_attn_launch : sim_launch); } + if (sim && g_divergent && !host) divergent_negative_control(); + if (host) { host_only(); hd_codegen_checks(); } + else if (split_timing_mode) { if (split_timing(out_path) != 0) return 2; } + else if (timing_mode) { if (timing(out_path) != 0) return 2; } + else if (sweep_mode) { if (sweep(out_path) != 0) return 2; } + else { if (chip(out_path) != 0) return 2; if (g_hd == 128) hd128_checks(); } + printf("%s: %d checks, %d failed\n", g_failed ? "FAIL" : "PASS", g_checks, g_failed); + return g_failed ? 1 : 0; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_elementwise_test.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_elementwise_test.c new file mode 100644 index 000000000..e485d0680 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_elementwise_test.c @@ -0,0 +1,387 @@ +/* gpu_elementwise_test: FB-1 cut 4 gate for omega_gpu_elementwise_api. + * + * ./gpu_elementwise_test --host-only refusals, codegen, word fixtures, register budget, + * nvdisasm listing check when /usr/local/cuda/bin/nvdisasm exists + * ./gpu_elementwise_test --out receipt.json chip gate: every op against the host oracle, then its mutant + * (a deliberately wrong kernel) which the same check must catch + * ./gpu_elementwise_test --timing --out t.json cut 4b gate: persistent device, 100 calls each of rmsnorm 1x2048 + * and swiglu 5632 under 0.5 ms median, one device open per process + * + * Oracles re-state aien-sovereign-core crates/aien-inference-abi/src/tensor.rs (main 5fdab70) in C: + * rmsnorm sums in f64, rope computes cos/sin in f64 and casts to f32 before f32 math, swiglu is f64. + * This file is compiled with -ffp-contract=off so the f32 oracle math has no hidden fused multiply-add. + * + * Tolerances (why): EX2 1e-6 rel (PTX ex2.approx.f32: 2^-22.5 rel, we allow 2x). XCHG exact. + * RMSNORM 1e-5 rel + 1e-6 abs (f32 sum of up to 16384 squares against an f64 sum, plus RSQ seed with one + * Newton step; the mutant moves the scale by about 40 percent). ROPE exact (same f32 ops, same order). + * SWIGLU 1e-5 rel + 1e-6 abs (EX2 and RCP approximations, each about 2^-22 rel; the mutant flips the sign + * of the exponent, which is wrong by a factor of e^(2g)). + */ +#include "omega_gpu_elementwise_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_gpu_session.h" +#include +#include +#include +#include +#include +#include +#include + +static int g_checks, g_failed; +#define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0) + +static uint32_t lcg(uint32_t *s) { *s = *s * 1664525u + 1013904223u; return *s; } +static float frand(uint32_t *s, float lo, float hi) { return lo + (hi - lo) * ((float)(lcg(s) >> 8) / 16777216.0f); } + +/* ----------------------------------------------------------------- oracles */ +static void oracle_rmsnorm(const float *x, const float *w, float eps, float *out, size_t dim) { + double ss = 0.0; + for (size_t i = 0; i < dim; i++) ss += (double)x[i] * (double)x[i]; + double mean = ss / (double)dim; + float scale = (float)(1.0 / sqrt(mean + (double)eps)); + for (size_t i = 0; i < dim; i++) { float t = x[i] * scale; out[i] = t * w[i]; } +} +static void oracle_rope_tables(size_t head_dim, size_t pos, float theta, float *cos_half, float *sin_half) { + size_t half = head_dim / 2; + for (size_t i = 0; i < half; i++) { + double exponent = (double)(2 * i) / (double)head_dim; + double freq = 1.0 / pow((double)theta, exponent); + double rot = (double)pos * freq; + sin_half[i] = (float)sin(rot); + cos_half[i] = (float)cos(rot); + } +} +static void oracle_rope(const float *v, size_t heads, size_t head_dim, const float *cos_half, const float *sin_half, float *out) { + size_t half = head_dim / 2; + for (size_t h = 0; h < heads; h++) + for (size_t i = 0; i < half; i++) { + size_t i0 = h * head_dim + i, i1 = i0 + half; + float q0 = v[i0], q1 = v[i1], c = cos_half[i], s = sin_half[i]; + float a = q0 * c, b = q1 * s; out[i0] = a - b; + float d = q0 * s, e = q1 * c; out[i1] = d + e; + } +} +static void oracle_swiglu(const float *g, const float *u, float *out, size_t n) { + for (size_t i = 0; i < n; i++) { double gg = g[i]; double silu = gg / (1.0 + exp(-gg)); out[i] = (float)(silu * (double)u[i]); } +} + +/* |got - want| <= rel*|want| + abs; returns the number of violations and the worst scaled error */ +static size_t compare(const float *got, const float *want, size_t n, double rel, double abs_tol, double *worst) { + size_t bad = 0; *worst = 0.0; + for (size_t i = 0; i < n; i++) { + double d = fabs((double)got[i] - (double)want[i]); + double lim = rel * fabs((double)want[i]) + abs_tol; + double scaled = lim > 0 ? d / lim : (d > 0 ? INFINITY : 0.0); + if (scaled > *worst) *worst = scaled; + if (!(d <= lim)) bad++; /* NaN counts as bad */ + } + return bad; +} + +/* ------------------------------------------------------------- host only */ +static int nvdisasm_check(OmegaGpuEwOp op, const char *name, const char *const *must, int n_must) { + const char *nv = "/usr/local/cuda/bin/nvdisasm"; + if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + if (omega_gpu_elementwise_codegen(op, NULL, 0.0f, &k) != OMEGA_GPU_EW_OK) return -1; + char bin[64], lst[64], cmd[256]; + snprintf(bin, sizeof bin, "/tmp/omega_ew_%s_%d.bin", name, (int)getpid()); + snprintf(lst, sizeof lst, "/tmp/omega_ew_%s_%d.sass", name, (int)getpid()); + FILE *f = fopen(bin, "wb"); if (!f) { free(k.code); return -1; } + fwrite(k.code, 1, k.code_size, f); fclose(f); + snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); + int rc = system(cmd); + free(k.code); + FILE *l = fopen(lst, "r"); if (!l) return -1; + char line[512]; int seen[16] = {0}; int bad = 0, insns = 0; + while (fgets(line, sizeof line, l)) { + if (!strstr(line, "/*0")) continue; + insns++; + if (strstr(line, "?") || strstr(line, "error")) bad++; + for (int i = 0; i < n_must; i++) if (strstr(line, must[i])) seen[i] = 1; + } + fclose(l); + int miss = 0; + for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } + printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); + unlink(bin); + return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; +} + +static void host_only(void) { + CHECK(omega_blackwell_verify_codegen_fixtures_fb1cut4() == 0, "word fixtures MUFU_EX2 / BAR_SYNC / LDS32 / STS32 (rc %d)", omega_blackwell_verify_codegen_fixtures_fb1cut4()); + float a[256] = {0}, b[256] = {0}, c[256] = {0}; + CHECK(omega_gpu_rmsnorm_f32(0, 128, a, b, 1e-5f, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "rows=0 refused"); + CHECK(omega_gpu_rmsnorm_f32(1, 100, a, b, 1e-5f, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "dim not a multiple of 128 refused"); + CHECK(omega_gpu_rmsnorm_f32(1, OMEGA_GPU_EW_MAX_DIM + 128, a, b, 1e-5f, c, NULL) == OMEGA_GPU_EW_TOO_LARGE, "dim over limit refused"); + CHECK(omega_gpu_rope_f32(1, 63, a, b, b, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "odd head_dim refused"); + CHECK(omega_gpu_rope_f32(1, 64, NULL, b, b, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "NULL vector refused"); + CHECK(omega_gpu_swiglu_f32(0, a, b, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "n=0 refused"); + CHECK(omega_gpu_shared_xchg_u32(100, (uint32_t *)a, (uint32_t *)c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "xchg n not a multiple of 128 refused"); + CHECK(strcmp(omega_gpu_elementwise_rc_name(OMEGA_GPU_EW_UNWRITTEN), "UNWRITTEN") == 0, "rc name"); + + struct { OmegaGpuEwOp op; const char *name; const char *must[6]; int n; } ops[] = { + { OMEGA_GPU_EW_EX2, "ex2", { "MUFU.EX2", "@P0 EXIT", "STG.E" }, 3 }, + { OMEGA_GPU_EW_XCHG, "xchg", { "STS [R", "BAR.SYNC", "LDS R" }, 3 }, + { OMEGA_GPU_EW_RMSNORM, "rmsnorm", { "SHFL.DOWN", "BAR.SYNC", "MUFU.RSQ", "@!P0 BRA", "STS [R", "LDS R" }, 6 }, + { OMEGA_GPU_EW_ROPE, "rope", { "FADD", "FMUL", "STG.E" }, 3 }, + { OMEGA_GPU_EW_SWIGLU, "swiglu", { "MUFU.EX2", "MUFU.RCP", "@P0 EXIT" }, 3 }, + }; + for (size_t i = 0; i < sizeof ops / sizeof ops[0]; i++) { + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + int rc = omega_gpu_elementwise_codegen(ops[i].op, NULL, 0.0f, &k); + CHECK(rc == OMEGA_GPU_EW_OK && k.code_size > 0 && k.gpr_count <= 64, "%s kernel generated (rc %s, %zu insns, %u gprs)", ops[i].name, omega_gpu_elementwise_rc_name(rc), k.insn_count, k.gpr_count); + printf("codegen %s: %zu insns, %u gprs, %u ugprs\n", ops[i].name, k.insn_count, k.gpr_count, k.uniform_gpr_count); + uint8_t digest[32]; memcpy(digest, k.code_digest, 32); + free(k.code); + /* the mutant must be a different kernel */ + omega_gpu_elementwise_test_set_mutant((int)ops[i].op); + memset(&k, 0, sizeof k); + CHECK(omega_gpu_elementwise_codegen(ops[i].op, NULL, 0.0f, &k) == OMEGA_GPU_EW_OK && memcmp(digest, k.code_digest, 32) != 0, "%s mutant kernel differs", ops[i].name); + free(k.code); + omega_gpu_elementwise_test_set_mutant(0); + CHECK(nvdisasm_check(ops[i].op, ops[i].name, ops[i].must, ops[i].n) == 0, "%s nvdisasm listing decodes and shows the expected instructions", ops[i].name); + } +} + +/* ------------------------------------------------------------- chip gate */ +typedef struct { const char *name; size_t n; int rc; size_t bad; double worst; int pass; int mutant_rc; size_t mutant_bad; int mutant_caught; uint64_t chip_ns; uint32_t calls; uint32_t unwritten; } Case; +static Case g_cases[16]; static int g_ncases; + +static void record(Case c, FILE *out) { + g_cases[g_ncases++] = c; + CHECK(c.pass, "%s rc=%s violations=%zu worst=%g", c.name, omega_gpu_elementwise_rc_name(c.rc), c.bad, c.worst); + CHECK(c.mutant_caught, "%s mutant caught (rc=%s violations=%zu)", c.name, omega_gpu_elementwise_rc_name(c.mutant_rc), c.mutant_bad); + printf("%s %s n=%zu rc=%s violations=%zu worst_scaled_err=%g chip_ns=%" PRIu64 " calls=%u unwritten=%u | mutant rc=%s violations=%zu %s\n", + c.pass && c.mutant_caught ? "PASS" : "FAIL", c.name, c.n, omega_gpu_elementwise_rc_name(c.rc), c.bad, c.worst, c.chip_ns, c.calls, c.unwritten, + omega_gpu_elementwise_rc_name(c.mutant_rc), c.mutant_bad, c.mutant_caught ? "CAUGHT" : "NOT CAUGHT"); + if (out) fprintf(out, "%s{\"case\":\"%s\",\"n\":%zu,\"rc\":\"%s\",\"violations\":%zu,\"worst_scaled_err\":%g,\"pass\":%s,\"chip_elapsed_ns\":%" PRIu64 ",\"chip_calls\":%u,\"unwritten_words\":%u,\"mutant_rc\":\"%s\",\"mutant_violations\":%zu,\"mutant_caught\":%s}", + g_ncases > 1 ? "," : "", c.name, c.n, omega_gpu_elementwise_rc_name(c.rc), c.bad, c.worst, c.pass ? "true" : "false", c.chip_ns, c.calls, c.unwritten, + omega_gpu_elementwise_rc_name(c.mutant_rc), c.mutant_bad, c.mutant_caught ? "true" : "false"); +} + +static int chip(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ELEMENTWISE_V1\",\"tolerances\":{\"ex2_rel\":1e-6,\"xchg\":\"exact\",\"rmsnorm_rel\":1e-5,\"rmsnorm_abs\":1e-6,\"rope\":\"exact\",\"swiglu_rel\":1e-5,\"swiglu_abs\":1e-6},\"cases\":["); + uint32_t seed = 0xfb1c0004u; + OmegaGpuEwInfo info; + + /* 1. EX2 probe, with a negative control on the comparison itself */ + { + size_t n = 4096; float *x = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *wrong = malloc(n * 4); + for (size_t i = 0; i < n; i++) { x[i] = frand(&seed, -20.0f, 20.0f); want[i] = (float)exp2((double)x[i]); wrong[i] = (float)exp2((double)x[i] + 1.0); } + Case c = { .name = "ex2_probe", .n = n }; + c.rc = omega_gpu_ex2_f32((uint32_t)n, x, got, &info); + c.bad = compare(got, want, n, 1e-6, 0.0, &c.worst); + double w2; size_t neg = compare(got, wrong, n, 1e-6, 0.0, &w2); + CHECK(neg > n / 2, "ex2 negative control: the check rejects a wrong expectation (%zu of %zu flagged)", neg, n); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_EX2); + c.mutant_rc = omega_gpu_ex2_f32((uint32_t)n, x, got, &info); + c.mutant_bad = compare(got, want, n, 1e-6, 0.0, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(x); free(got); free(want); free(wrong); + } + /* 2. shared-memory exchange probe (STS, BAR.SYNC, LDS) */ + { + size_t n = 4096; uint32_t *x = malloc(n * 4), *got = malloc(n * 4); + for (size_t i = 0; i < n; i++) x[i] = lcg(&seed); + Case c = { .name = "shared_xchg_probe", .n = n }; + c.rc = omega_gpu_shared_xchg_u32((uint32_t)n, x, got, &info); + for (size_t i = 0; i < n; i++) if (got[i] != x[i ^ (OMEGA_GPU_EW_THREADS - 1)]) c.bad++; + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_XCHG); + c.mutant_rc = omega_gpu_shared_xchg_u32((uint32_t)n, x, got, &info); + for (size_t i = 0; i < n; i++) if (got[i] != x[i ^ (OMEGA_GPU_EW_THREADS - 1)]) c.mutant_bad++; + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(x); free(got); + } + /* 3. rmsnorm at the model hidden sizes (TinyLlama and Llama-3.2-1B: 2048), plus small and large */ + { size_t dims[3] = { 2048, 256, 8192 }; size_t rowss[3] = { 4, 1, 2 }; + for (int t = 0; t < 3; t++) { + size_t dim = dims[t], rows = rowss[t], n = rows * dim; float eps = 1e-5f; + float *x = malloc(n * 4), *w = malloc(dim * 4), *got = malloc(n * 4), *want = malloc(n * 4), *again = malloc(n * 4); + for (size_t i = 0; i < n; i++) x[i] = frand(&seed, -3.0f, 3.0f); + for (size_t i = 0; i < dim; i++) w[i] = frand(&seed, 0.5f, 1.5f); + for (size_t r = 0; r < rows; r++) oracle_rmsnorm(x + r * dim, w, eps, want + r * dim, dim); + char name[64]; snprintf(name, sizeof name, "rmsnorm_%zux%zu", rows, dim); + Case c = { .name = strdup(name), .n = n }; + c.rc = omega_gpu_rmsnorm_f32((uint32_t)rows, (uint32_t)dim, x, w, eps, got, &info); + c.bad = compare(got, want, n, 1e-5, 1e-6, &c.worst); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + OmegaGpuEwInfo i2; int rc2 = omega_gpu_rmsnorm_f32((uint32_t)rows, (uint32_t)dim, x, w, eps, again, &i2); + CHECK(rc2 == OMEGA_GPU_EW_OK && i2.kernel_cache_hit && memcmp(got, again, n * 4) == 0, "%s repeat run (cache hit) is bit-identical", name); + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_RMSNORM); + double w2; c.mutant_rc = omega_gpu_rmsnorm_f32((uint32_t)rows, (uint32_t)dim, x, w, eps, got, &info); + c.mutant_bad = compare(got, want, n, 1e-5, 1e-6, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(x); free(w); free(got); free(want); free(again); + } } + /* 4. rope: TinyLlama (32 q heads, 4 kv heads, head_dim 64, theta 10000) and Llama-3.2-1B (32/8, 64, 500000) */ + { struct { size_t heads, hd, pos; float theta; } rs[4] = { { 32, 64, 17, 10000.0f }, { 4, 64, 17, 10000.0f }, { 32, 64, 1023, 500000.0f }, { 8, 64, 1023, 500000.0f } }; + for (int t = 0; t < 4; t++) { + size_t heads = rs[t].heads, hd = rs[t].hd, n = heads * hd, half = hd / 2; + float *v = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *ch = malloc(half * 4), *sh = malloc(half * 4); + for (size_t i = 0; i < n; i++) v[i] = frand(&seed, -4.0f, 4.0f); + oracle_rope_tables(hd, rs[t].pos, rs[t].theta, ch, sh); + oracle_rope(v, heads, hd, ch, sh, want); + char name[64]; snprintf(name, sizeof name, "rope_%zuh_%zud_pos%zu_theta%g", heads, hd, rs[t].pos, rs[t].theta); + Case c = { .name = strdup(name), .n = n }; + c.rc = omega_gpu_rope_f32((uint32_t)heads, (uint32_t)hd, v, ch, sh, got, &info); + c.bad = compare(got, want, n, 0.0, 0.0, &c.worst); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_ROPE); + double w2; c.mutant_rc = omega_gpu_rope_f32((uint32_t)heads, (uint32_t)hd, v, ch, sh, got, &info); + c.mutant_bad = compare(got, want, n, 0.0, 0.0, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + 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), 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); } + oracle_swiglu(g, u, want, n); + char name[64]; snprintf(name, sizeof name, "swiglu_%zu", n); + Case c = { .name = strdup(name), .n = n }; + c.rc = omega_gpu_swiglu_f32((uint32_t)n, g, u, got, &info); + c.bad = compare(got, want, n, 1e-5, 1e-6, &c.worst); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_SWIGLU); + double w2; c.mutant_rc = omega_gpu_swiglu_f32((uint32_t)n, g, u, got, &info); + c.mutant_bad = compare(got, want, n, 1e-5, 1e-6, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(g); free(u); free(got); free(want); + } } + /* 6. stale-SM-instruction-cache guard (cut 1b finding, omega #256): 10 distinct kernels + * (5 ops + 5 mutants) in rotation, two rounds. Every launch uploads code into a freshly + * allocated page, so a kernel routinely lands on the code address its predecessor used, + * and 10 keys evict the 8-slot kernel cache. Each clean launch must match the oracle and + * each mutant must still be caught; a stale icache would make a mutant pass or a clean + * kernel fail. Red was observed by cut 1b on matmul before its invalidate (receipt + * FB1-CUT1B-f629798); this build carries the invalidate, so the case is a guard. */ + { + enum { RN = 256, RH = 4, RD = 64 }; + float *x = malloc(RN * 4), *w = malloc(RN * 4), *u = malloc(RN * 4), *got = malloc(RN * 4), *want = malloc(RN * 4); + float *ch = malloc(RD / 2 * 4), *sh = malloc(RD / 2 * 4); + uint32_t *xu = malloc(RN * 4), *gu = malloc(RN * 4); + for (size_t i = 0; i < RN; i++) { x[i] = frand(&seed, -3.0f, 3.0f); w[i] = frand(&seed, 0.5f, 1.5f); u[i] = frand(&seed, -2.0f, 2.0f); xu[i] = lcg(&seed); } + oracle_rope_tables(RD, 17, 10000.0f, ch, sh); + Case c = { .name = "icache_reuse_rotation", .n = 20 }; + c.rc = OMEGA_GPU_EW_OK; c.mutant_rc = OMEGA_GPU_EW_OK; c.mutant_caught = 1; + const int order[10] = { OMEGA_GPU_EW_EX2, -OMEGA_GPU_EW_SWIGLU, OMEGA_GPU_EW_XCHG, -OMEGA_GPU_EW_EX2, OMEGA_GPU_EW_RMSNORM, + -OMEGA_GPU_EW_XCHG, OMEGA_GPU_EW_SWIGLU, -OMEGA_GPU_EW_ROPE, OMEGA_GPU_EW_ROPE, -OMEGA_GPU_EW_RMSNORM }; + for (int step = 0; step < 20; step++) { + int round = step / 10, k = step % 10; + int mut = order[k] < 0, op = mut ? -order[k] : order[k]; + omega_gpu_elementwise_test_set_mutant(mut ? op : 0); + int rc; size_t bad = 0; double wst; + switch (op) { + case OMEGA_GPU_EW_EX2: + for (size_t i = 0; i < RN; i++) want[i] = (float)exp2((double)x[i]); + rc = omega_gpu_ex2_f32(RN, x, got, &info); bad = compare(got, want, RN, 1e-6, 0.0, &wst); break; + case OMEGA_GPU_EW_XCHG: + rc = omega_gpu_shared_xchg_u32(RN, xu, gu, &info); + for (size_t i = 0; i < RN; i++) { if (gu[i] != xu[i ^ (OMEGA_GPU_EW_THREADS - 1)]) bad++; } + break; + case OMEGA_GPU_EW_RMSNORM: + oracle_rmsnorm(x, w, 1e-5f, want, RN); + rc = omega_gpu_rmsnorm_f32(1, RN, x, w, 1e-5f, got, &info); bad = compare(got, want, RN, 1e-5, 1e-6, &wst); break; + case OMEGA_GPU_EW_ROPE: + oracle_rope(x, RH, RD, ch, sh, want); + rc = omega_gpu_rope_f32(RH, RD, x, ch, sh, got, &info); bad = compare(got, want, RH * RD, 0.0, 0.0, &wst); break; + default: + oracle_swiglu(x, u, want, RN); + rc = omega_gpu_swiglu_f32(RN, x, u, got, &info); bad = compare(got, want, RN, 1e-5, 1e-6, &wst); break; + } + omega_gpu_elementwise_test_set_mutant(0); + int ok = rc == OMEGA_GPU_EW_OK && bad == 0; + if (!mut && !ok) { c.bad++; if (rc != OMEGA_GPU_EW_OK) c.rc = rc; printf(" rotation %d/%d: clean op %d FAILED rc=%s violations=%zu\n", round, k, op, omega_gpu_elementwise_rc_name(rc), bad); } + if (mut && ok) { c.mutant_bad++; c.mutant_caught = 0; printf(" rotation %d/%d: mutant op %d NOT caught\n", round, k, op); } + c.chip_ns += info.elapsed_ns; c.calls += info.chip_calls; c.unwritten += info.unwritten_words; + } + c.pass = c.bad == 0 && c.rc == OMEGA_GPU_EW_OK; + record(c, out); + free(x); free(w); free(u); free(got); free(want); free(ch); free(sh); free(xu); free(gu); + } + /* cut 4b: the whole battery (clean and mutant kernels, cache clears) ran on ONE device open */ + CHECK(omega_gpu_session_open_count() == 1, "device opened once for the battery (opens=%u)", omega_gpu_session_open_count()); + printf("device_opens=%u\n", omega_gpu_session_open_count()); + if (out) { + fprintf(out, "],\"device_opens\":%u,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", omega_gpu_session_open_count(), g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ELEMENTWISE_PASS" : "OMEGA_GPU_ELEMENTWISE_FAIL"); + fclose(out); + } + return 0; +} + +/* ------------------------------------------------------------ timing gate (cut 4b) */ +/* The persistent device: 100 calls each of rmsnorm 1x2048 and swiglu 5632 (the TinyLlama + * decode shapes), every call checked against the oracle, median wall time per call under + * 0.5 ms (cut 4 opened and closed the device per call: ~40 ms). The device must have been + * opened exactly once in this process. */ +static int cmp_d(const void *a, const void *b) { double x = *(const double *)a, y = *(const double *)b; return x < y ? -1 : x > y; } +static double now_ms(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * 1e3 + t.tv_nsec / 1e6; } +static int timing(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ELEMENTWISE_TIMING_V1\",\"gate_median_ms\":0.5,\"calls\":100,\"cases\":["); + uint32_t seed = 0xfb1c004bu; + enum { N = 100 }; + for (int t = 0; t < 2; t++) { + const char *name = t == 0 ? "rmsnorm_1x2048" : "swiglu_5632"; + size_t n = t == 0 ? 2048 : 5632; + float *a = malloc(n * 4), *b = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) { a[i] = frand(&seed, -3.0f, 3.0f); b[i] = t == 0 ? frand(&seed, 0.5f, 1.5f) : frand(&seed, -2.0f, 2.0f); } + if (t == 0) oracle_rmsnorm(a, b, 1e-5f, want, n); else oracle_swiglu(a, b, want, n); + double samples[N]; int ok_calls = 0; size_t bad_total = 0; double worst = 0; uint64_t chip_sum = 0; int rc_last = 0; + OmegaGpuEwInfo info; + /* warm-up: first call opens the device and generates the kernel (not timed) */ + int rc0 = t == 0 ? omega_gpu_rmsnorm_f32(1, (uint32_t)n, a, b, 1e-5f, got, &info) : omega_gpu_swiglu_f32((uint32_t)n, a, b, got, &info); + double first_ms = info.call_ns / 1e6; + CHECK(rc0 == OMEGA_GPU_EW_OK, "%s first call rc=%s err=\"%s\"", name, omega_gpu_elementwise_rc_name(rc0), omega_gpu_elementwise_last_error()); + for (int i = 0; i < N; i++) { + double t0 = now_ms(); + int rc = t == 0 ? omega_gpu_rmsnorm_f32(1, (uint32_t)n, a, b, 1e-5f, got, &info) : omega_gpu_swiglu_f32((uint32_t)n, a, b, got, &info); + samples[i] = now_ms() - t0; + double w; size_t bad = compare(got, want, n, 1e-5, 1e-6, &w); + if (w > worst) worst = w; + bad_total += bad; chip_sum += info.elapsed_ns; rc_last = rc; + if (rc == OMEGA_GPU_EW_OK && bad == 0) ok_calls++; + } + qsort(samples, N, sizeof samples[0], cmp_d); + double median = samples[N / 2], p90 = samples[N * 9 / 10], mn = samples[0], mx = samples[N - 1]; + uint32_t opens = omega_gpu_session_open_count(); + int pass = ok_calls == N && bad_total == 0 && median < 0.5 && opens == 1; + CHECK(pass, "timing %s ok_calls=%d/%d violations=%zu median_ms=%.3f opens=%u last_rc=%s err=\"%s\"", name, ok_calls, N, bad_total, median, opens, omega_gpu_elementwise_rc_name(rc_last), omega_gpu_elementwise_last_error()); + printf("%s timing %s first_call_ms=%.3f ok_calls=%d/%d violations=%zu worst_scaled_err=%g median_ms=%.3f p90_ms=%.3f min_ms=%.3f max_ms=%.3f chip_us_mean=%.1f device_opens=%u\n", + pass ? "PASS" : "FAIL", name, first_ms, ok_calls, N, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens); + if (out) fprintf(out, "%s{\"case\":\"%s\",\"first_call_ms\":%.3f,\"ok_calls\":%d,\"violations\":%zu,\"worst_scaled_err\":%g,\"median_ms\":%.4f,\"p90_ms\":%.4f,\"min_ms\":%.4f,\"max_ms\":%.4f,\"chip_us_mean\":%.1f,\"device_opens\":%u,\"pass\":%s}", + t ? "," : "", name, first_ms, ok_calls, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens, pass ? "true" : "false"); + free(a); free(b); free(got); free(want); + } + if (out) { fprintf(out, "],\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ELEMENTWISE_TIMING_PASS" : "OMEGA_GPU_ELEMENTWISE_TIMING_FAIL"); fclose(out); } + return 0; +} + +int main(int argc, char **argv) { + const char *out_path = NULL; int host = 0, timing_mode = 0; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--host-only") == 0) host = 1; + else if (strcmp(argv[i], "--timing") == 0) timing_mode = 1; + else if (strcmp(argv[i], "--out") == 0 && i + 1 < argc) out_path = argv[++i]; + } + if (host) host_only(); + else if (timing_mode) { if (timing(out_path) != 0) return 2; } + else if (chip(out_path) != 0) return 2; + printf("%s: %d checks, %d failed\n", g_failed ? "FAIL" : "PASS", g_checks, g_failed); + return g_failed ? 1 : 0; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_matmul_api_test.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_matmul_api_test.c new file mode 100644 index 000000000..427f3c605 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/gpu_matmul_api_test.c @@ -0,0 +1,505 @@ +/* gpu_matmul_api_test: FB-1 cut 1 / 1b gate for omega_gpu_matmul_api. + * + * ./gpu_matmul_api_test --host-only argument and limit refusals, codegen only, no chip + * ./gpu_matmul_api_test --out receipt.json chip sweep over shapes, JSON receipt + * ./gpu_matmul_api_test --timing --out r.json resident GEMV timing (median of 100 calls) + parity + * ./gpu_matmul_api_test --mutant --out r.json wrong kernel (last K step dropped) must FAIL parity; + * exit 0 when every shape caught it ("mutant killed") + * ./gpu_matmul_api_test --cta-budget N ... run with a different CTA budget (I42 experiment) + * ./gpu_matmul_api_test --spin-us N ... marker-wait spin window for every launch (omega#328) + * ./gpu_matmul_api_test --unroll N ... force the fragment kernel unroll (omega #328 experiment) + * + * Shapes come from OMEGA_GPU_MATMUL_SHAPES ("m,k,n;m,k,n;..."), default below. + * Pass rule per shape: rc OK, parity verified by the API oracle, end-to-end error < 1e-5 relative to + * the accumulation scale (bf16 inputs against a double reference; only accumulation order and the + * chip's f32 accumulator differ), second call hits the kernel cache and agrees bit for bit. + */ +#include "omega_gpu_matmul_api.h" +#include "omega_gpu_session.h" +#include "omega_blackwell_codegen.h" +#include "omega_blackwell_matmul.h" +#include +#include +#include +#include +#include +#include + +/* round a float to bf16 and back, as the API does on the way in */ +static float bf16r(float f) { uint16_t h = omega_fp32_to_bf16(f); uint32_t u = (uint32_t)h << 16; float o; memcpy(&o, &u, 4); return o; } + +static int g_checks, g_failed; +#define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0) + +/* cut-1 list unchanged, then the cut-1b Llama shapes (hidden 2048, ffn 8192, vocab 128256) */ +static const char *DEFAULT_SHAPES = + "16,16,16;32,32,32;64,64,64;128,128,128;256,256,256;512,512,512;" + "1,1024,1024;1,256,1024;16,1024,256;8,1024,8;" + "1024,16,128;192,16,192;512,16,64;256,16,256;128,16,512;" + "1,2048,8192;1,8192,2048;1,2048,128256"; +static const char *MUTANT_SHAPES = "16,32,16;1,2048,8192;64,64,64;1,1024,1024"; +static const char *TIMING_SHAPES = "1,2048,8192;1,8192,2048"; + +static uint32_t lcg(uint32_t *s) { *s = *s * 1664525u + 1013904223u; return *s; } +static double now_ms(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * 1e3 + t.tv_nsec / 1e6; } + +static void fill(float *a, size_t n, uint32_t *seed) { for (size_t i = 0; i < n; i++) a[i] = ((float)(lcg(seed) % 2001) - 1000.0f) / 1000.0f; } + +/* end-to-end: full-K product on the host from the same bf16-rounded inputs, in double; error relative + * to the accumulation scale (sum of |terms|), not to a result that may cancel to near zero */ +static double e2e_max_rel(uint32_t m, uint32_t k, uint32_t n, const float *a, const float *b, const float *c, size_t *bad) { + double worst = 0.0; size_t nbad = 0; + for (size_t i = 0; i < m; i++) for (size_t j = 0; j < n; j++) { + double acc = 0.0, scale = 0.0; + for (size_t t = 0; t < k; t++) { double p = (double)bf16r(a[i * k + t]) * (double)bf16r(b[t * n + j]); acc += p; scale += fabs(p); } + double rel = fabs(acc - (double)c[i * n + j]) / (scale > 1e-6 ? scale : 1e-6); + if (rel > worst) worst = rel; + if (rel >= 1e-5) nbad++; + } + if (bad) *bad = nbad; + return worst; +} + +/* omega #328 fragment-major kernel, host only. The unpack below is written from the PTX ISA + * table for mma.m16n8k16 (.bf16 A: a0,a1 row g cols 2t,2t+1; a2,a3 row g+8; a4,a5 row g cols + * 2t+8,2t+9; a6,a7 row g+8. B: b0,b1 rows 2t,2t+1 col g; b2,b3 rows 2t+8,2t+9; g = lane>>2, + * t = lane&3), independently of the packers: pack then unpack must give the matrix back. */ +/* Result sentinels: one poison word per 16 x 8 fragment tile that holds a real output word, inside the + * tile's real rows and columns; the scan counts exactly the survivors. */ +static void sentinel_host_checks(void) { + static const uint32_t shapes[][2] = { { 1u, 24576u }, { 1u, 4096u }, { 16u, 151936u }, { 128u, 24576u }, { 116u, 4096u }, { 3u, 20u }, { 17u, 9u } }; + const float poison = -999.0f; + for (size_t s = 0; s < sizeof shapes / sizeof shapes[0]; s++) { + const uint32_t m = shapes[s][0], n = shapes[s][1], mp = (m + 15u) / 16u * 16u, np = (n + 7u) / 8u * 8u; + const uint32_t mt = (m + 15u) / 16u, nt = (n + 7u) / 8u; + float *cd = calloc((size_t)mp * np, sizeof *cd); + const size_t set = omega_matmul_result_sentinels(cd, m, n, np, poison, 1); + CHECK(set == (size_t)mt * nt, "sentinel count m=%u n=%u: %zu != %u", m, n, set, mt * nt); + /* every fragment tile with a real word holds exactly one sentinel, inside its real rows and columns */ + size_t tiles_ok = 0, outside = 0; + for (uint32_t ti = 0; ti < mt; ti++) + for (uint32_t tj = 0; tj < nt; tj++) { + size_t in_tile = 0; + for (uint32_t r = ti * 16u; r < ti * 16u + 16u; r++) + for (uint32_t c = tj * 8u; c < tj * 8u + 8u; c++) + if (cd[(size_t)r * np + c] == poison) { if (r < m && c < n) in_tile++; else outside++; } + if (in_tile == 1) tiles_ok++; + } + CHECK(tiles_ok == (size_t)mt * nt && outside == 0, "sentinel placement m=%u n=%u: %zu tiles ok, %zu outside", m, n, tiles_ok, outside); + CHECK(omega_matmul_result_sentinels(cd, m, n, np, poison, 0) == set, "sentinel scan m=%u n=%u: all survive", m, n); + /* clearing one tile's sentinel removes exactly one survivor; a fully written result has none */ + cd[(size_t)(m - 1u) * np + (n - 1u)] = 0.0f; + CHECK(omega_matmul_result_sentinels(cd, m, n, np, poison, 0) == set - 1u, "sentinel scan m=%u n=%u: one cleared", m, n); + for (size_t i = 0; i < (size_t)mp * np; i++) cd[i] = 1.5f; + CHECK(omega_matmul_result_sentinels(cd, m, n, np, poison, 0) == 0, "sentinel scan m=%u n=%u: none survive", m, n); + free(cd); + } +} + +static void frag_host_checks(void) { + sentinel_host_checks(); + /* row-0 pack (one-row decode call): a full one-row pack of A2 equals a full pack of A1 followed by the + * row-0 pack of A2, bf16 and f32 inputs, including a width with padding columns */ + { + const uint32_t ks[] = { 4096u, 40u }; + for (size_t i = 0; i < 2; i++) { + const uint32_t k = ks[i], kp = (k + 15u) / 16u * 16u; + float *a1 = malloc(k * sizeof *a1), *a2 = malloc(k * sizeof *a2); + uint16_t *b1 = malloc(k * 2), *b2 = malloc(k * 2), *full = malloc((size_t)16 * kp * 2), *inc = malloc((size_t)16 * kp * 2); + uint32_t seed = 77u + k; + fill(a1, k, &seed); fill(a2, k, &seed); + for (uint32_t j = 0; j < k; j++) { b1[j] = omega_fp32_to_bf16(a1[j]); b2[j] = omega_fp32_to_bf16(a2[j]); } + omega_matmul_frag_pack_a(b2, 1, k, 16, kp, full); + omega_matmul_frag_pack_a(b1, 1, k, 16, kp, inc); + omega_matmul_frag_pack_a_row0(b2, k, kp, inc); + CHECK(memcmp(full, inc, (size_t)16 * kp * 2) == 0, "row-0 pack bf16 k=%u equals the full one-row pack", k); + omega_matmul_frag_pack_a_f32(a1, 1, k, 16, kp, inc); + omega_matmul_frag_pack_a_row0_f32(a2, k, kp, inc); + CHECK(memcmp(full, inc, (size_t)16 * kp * 2) == 0, "row-0 pack f32 k=%u equals the full one-row pack", k); + free(a1); free(a2); free(b1); free(b2); free(full); free(inc); + } + } + CHECK(omega_blackwell_verify_codegen_fixtures_fragmm() == 0, "fragment matmul golden words (rc %d)", omega_blackwell_verify_codegen_fixtures_fragmm()); + struct { uint32_t m, k, n; } sh[] = { {1, 16, 8}, {1, 40, 13}, {17, 48, 24}, {33, 2560, 72}, {5, 160, 1000} }; + for (size_t s = 0; s < sizeof sh / sizeof sh[0]; s++) { + const uint32_t m = sh[s].m, k = sh[s].k, n = sh[s].n; + const uint32_t mp = (m + 15) / 16 * 16, kp = (k + 15) / 16 * 16, np = (n + 7) / 8 * 8, KS = kp / 16, NT = np / 8; + uint16_t *a = malloc((size_t)m * k * 2), *b = malloc((size_t)k * n * 2); + uint16_t *pa = malloc((size_t)mp * kp * 2), *pb = malloc((size_t)kp * np * 2); + uint32_t seed = 7 + (uint32_t)s; + for (size_t i = 0; i < (size_t)m * k; i++) a[i] = (uint16_t)(1 + lcg(&seed) % 60000); + for (size_t i = 0; i < (size_t)k * n; i++) b[i] = (uint16_t)(1 + lcg(&seed) % 60000); + omega_matmul_frag_pack_a(a, m, k, mp, kp, pa); + /* B in two uneven chunks, as the upload does in FRAG_PACK_TILES steps */ + uint32_t split = NT / 2; + omega_matmul_frag_pack_b(b, k, n, kp, 0, split, pb); + omega_matmul_frag_pack_b(b, k, n, kp, split, NT, pb + (size_t)split * kp * 8); + size_t bad_a = 0, bad_b = 0; + for (uint32_t mt = 0; mt < mp / 16; mt++) + for (uint32_t ks = 0; ks < KS; ks++) + for (uint32_t lane = 0; lane < 32; lane++) { + const uint32_t gg = lane >> 2, t = lane & 3; + const uint32_t rows[8] = { gg, gg, gg + 8, gg + 8, gg, gg, gg + 8, gg + 8 }; + const uint32_t cols[8] = { 2 * t, 2 * t + 1, 2 * t, 2 * t + 1, 2 * t + 8, 2 * t + 9, 2 * t + 8, 2 * t + 9 }; + for (int e = 0; e < 8; e++) { + uint32_t r = mt * 16 + rows[e], c = ks * 16 + cols[e]; + uint16_t want = (r < m && c < k) ? a[(size_t)r * k + c] : 0; + if (pa[(((size_t)mt * KS + ks) * 32 + lane) * 8 + e] != want) bad_a++; + } + } + for (uint32_t nt = 0; nt < NT; nt++) + for (uint32_t ks = 0; ks < KS; ks++) + for (uint32_t lane = 0; lane < 32; lane++) { + const uint32_t gg = lane >> 2, t = lane & 3; + const uint32_t rows[4] = { 2 * t, 2 * t + 1, 2 * t + 8, 2 * t + 9 }; + for (int e = 0; e < 4; e++) { + uint32_t r = ks * 16 + rows[e], c = nt * 8 + gg; + uint16_t want = (r < k && c < n) ? b[(size_t)r * n + c] : 0; + if (pb[(((size_t)nt * KS + ks) * 32 + lane) * 4 + e] != want) bad_b++; + } + } + 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 */ + struct { uint32_t k, n, gx; } ok[] = { {16, 8, 1}, {2560, 4096, 256}, {2560, 1024, 128}, {4096, 2560, 256}, {2560, 9728, 256}, + {9728, 2560, 256}, {2560, 151936, 256}, {2048, 8192, 64}, {8192, 2048, 64}, + {2048, 128256, 64}, {16384, 262144, 64}, {48, 16, 2} }; + for (size_t i = 0; i < sizeof ok / sizeof ok[0]; i++) { + OmegaMatMulSpec spec; OmegaBlackwellKernel kernel; memset(&kernel, 0, sizeof kernel); + const uint32_t u = omega_matmul_frag_unroll(ok[i].k); + int rc = omega_matmul_spec_init(&spec, 16, ok[i].k, ok[i].n, OMEGA_MATMUL_PRECISION_BF16) == 0 && + omega_blackwell_codegen_matmul_frag(&spec, ok[i].gx, u, 0, &kernel) == 0 && kernel.code_size > 0; + CHECK(rc, "fragment kernel K=%u N=%u gx=%u unroll=%u generated", ok[i].k, ok[i].n, ok[i].gx, u); + CHECK(kernel.gpr_count <= 64, "fragment kernel K=%u N=%u unroll=%u fits 64 registers (got %u)", ok[i].k, ok[i].n, u, kernel.gpr_count); + if (i == 1) printf("fragment kernel K=2560 N=4096 unroll %u: %zu instructions, %u registers\n", u, kernel.insn_count, kernel.gpr_count); + OmegaBlackwellKernel mut; memset(&mut, 0, sizeof mut); + if (omega_blackwell_codegen_matmul_frag(&spec, ok[i].gx, u, 1, &mut) == 0) { + CHECK(memcmp(mut.code_digest, kernel.code_digest, 32) != 0, "fragment mutant differs K=%u N=%u", ok[i].k, ok[i].n); + omega_blackwell_kernel_free(&mut); + } else CHECK(ok[i].k / 16 / u < 2, "fragment mutant refused only with one pass (K=%u)", ok[i].k); + omega_blackwell_kernel_free(&kernel); + } + CHECK(omega_matmul_frag_unroll(2560) == 4 && omega_matmul_frag_unroll(48) == 1 && omega_matmul_frag_unroll(64) == 4 && + omega_matmul_frag_unroll(32) == 2 && omega_matmul_frag_unroll(128) == 4, "unroll choice (capped at 4)"); + { /* unroll 8 still generates (experiments) */ + OmegaMatMulSpec s8; OmegaBlackwellKernel k8; memset(&k8, 0, sizeof k8); + CHECK(omega_matmul_spec_init(&s8, 16, 2560, 4096, OMEGA_MATMUL_PRECISION_BF16) == 0 && + omega_blackwell_codegen_matmul_frag(&s8, 256, 8, 0, &k8) == 0 && k8.code_size > 0, "unroll 8 generates"); + omega_blackwell_kernel_free(&k8); + } + OmegaMatMulSpec spec; OmegaBlackwellKernel kernel; memset(&kernel, 0, sizeof kernel); + CHECK(omega_matmul_spec_init(&spec, 16, 48, 16, OMEGA_MATMUL_PRECISION_BF16) == 0 && + omega_blackwell_codegen_matmul_frag(&spec, 1, 2, 0, &kernel) != 0, "unroll not dividing K/16 refused"); + CHECK(omega_blackwell_codegen_matmul_frag(&spec, 1, 3, 0, &kernel) != 0, "unroll 3 refused"); + CHECK(omega_blackwell_codegen_matmul_frag(&spec, 3, 1, 0, &kernel) != 0, "fragment grid_x beyond the column tiles refused"); + /* 2026-10-12: the blocked kernel (rt row tiles x ct column tiles per warp) generates for the Qwen3-8B + * prefill shapes at m = 128 (rt 4, ct 4, grid_x 512 at the daemon's 1024-CTA budget) and the small + * parity shapes; it fits the allocator's 128 registers; its mutant differs; the envelope is enforced */ + struct { uint32_t k, n, gx, rt, ct; } bk[] = { {4096, 24576, 512, 4, 4}, {12288, 4096, 128, 4, 4}, {4096, 6144, 192, 4, 4}, + {128, 128, 4, 4, 4}, {32, 32, 1, 2, 4}, {16, 8, 1, 2, 1}, {1024, 8, 1, 4, 1}, + {64, 64, 2, 4, 2}, {48, 16, 1, 2, 2} }; + for (size_t i = 0; i < sizeof bk / sizeof bk[0]; i++) { + OmegaMatMulSpec spec; OmegaBlackwellKernel kernel; memset(&kernel, 0, sizeof kernel); + const uint32_t u = omega_matmul_frag_block_unroll(bk[i].k, bk[i].rt, bk[i].ct); + int rc = omega_matmul_spec_init(&spec, 16, bk[i].k, bk[i].n, OMEGA_MATMUL_PRECISION_BF16) == 0 && + omega_blackwell_codegen_matmul_frag_block(&spec, bk[i].gx, u, bk[i].rt, bk[i].ct, 0, &kernel) == 0 && kernel.code_size > 0; + CHECK(rc, "blocked kernel K=%u N=%u gx=%u rt=%u ct=%u unroll=%u generated", bk[i].k, bk[i].n, bk[i].gx, bk[i].rt, bk[i].ct, u); + CHECK(u * (bk[i].rt + bk[i].ct) <= 8, "blocked kernel K=%u rt=%u ct=%u issues at most 8 loads per pass (unroll %u)", bk[i].k, bk[i].rt, bk[i].ct, u); + if (i < 3) printf("blocked kernel K=%u N=%u rt=%u ct=%u unroll %u: %zu instructions, %u registers\n", bk[i].k, bk[i].n, bk[i].rt, bk[i].ct, u, kernel.insn_count, kernel.gpr_count); + OmegaBlackwellKernel mut; memset(&mut, 0, sizeof mut); + if (omega_blackwell_codegen_matmul_frag_block(&spec, bk[i].gx, u, bk[i].rt, bk[i].ct, 1, &mut) == 0) { + CHECK(memcmp(mut.code_digest, kernel.code_digest, 32) != 0, "blocked mutant differs K=%u N=%u", bk[i].k, bk[i].n); + omega_blackwell_kernel_free(&mut); + } else CHECK(bk[i].k / 16 / u < 2, "blocked mutant refused only with one pass (K=%u)", bk[i].k); + omega_blackwell_kernel_free(&kernel); + } + { + uint32_t rt, ct; + omega_matmul_frag_block_shape(8, 3072, &rt, &ct); CHECK(rt == 4 && ct == 4, "block shape m=128 n=24576 is 4x4"); + omega_matmul_frag_block_shape(1, 3072, &rt, &ct); CHECK(rt == 1 && ct == 1, "block shape m=1 is the single-tile kernel"); + omega_matmul_frag_block_shape(7, 3072, &rt, &ct); CHECK(rt == 1 && ct == 1, "block shape m=112 (7 row tiles) is the single-tile kernel"); + omega_matmul_frag_block_shape(6, 6, &rt, &ct); CHECK(rt == 2 && ct == 2, "block shape 6 row tiles, 6 column tiles is 2x2"); + omega_matmul_frag_block_shape(4, 1, &rt, &ct); CHECK(rt == 4 && ct == 1, "block shape 4 row tiles, 1 column tile is 4x1"); + CHECK(omega_matmul_frag_block_unroll(4096, 4, 4) == 1 && omega_matmul_frag_block_unroll(4096, 2, 2) == 2 && + omega_matmul_frag_block_unroll(48, 2, 2) == 1 && omega_matmul_frag_block_unroll(4096, 4, 2) == 1, "blocked unroll rule (loads per pass <= 8)"); + OmegaMatMulSpec s; OmegaBlackwellKernel kk; memset(&kk, 0, sizeof kk); + CHECK(omega_matmul_spec_init(&s, 16, 4096, 6144, OMEGA_MATMUL_PRECISION_BF16) == 0, "spec for refusals"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s, 1, 1, 1, 1, 0, &kk) != 0, "blocked 1x1 refused (single-tile kernel)"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s, 1, 1, 3, 2, 0, &kk) != 0, "blocked rt 3 refused"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s, 1, 1, 8, 4, 0, &kk) != 0, "blocked 8x4 (32 accumulators) refused"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s, 1, 1, 8, 1, 0, &kk) != 0, "blocked 8x1 (9 loads per pass) refused"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s, 1, 2, 4, 4, 0, &kk) != 0, "blocked unroll 2 at 4x4 (16 loads per pass) refused"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s, 1, 4, 2, 2, 0, &kk) != 0, "blocked unroll 4 refused"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s, 193, 1, 4, 4, 0, &kk) != 0, "blocked grid_x beyond the column blocks refused"); + OmegaMatMulSpec s3; CHECK(omega_matmul_spec_init(&s3, 16, 64, 24, OMEGA_MATMUL_PRECISION_BF16) == 0, "spec n=24"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s3, 1, 1, 2, 4, 0, &kk) != 0, "blocked ct not dividing the column tiles refused"); + CHECK(omega_blackwell_codegen_matmul_frag_block(&s3, 1, 1, 2, 2, 0, &kk) != 0, "blocked ct 2 on 3 column tiles refused"); + } +} + +static void host_only(void) { + float a[16 * 16] = {0}, b[16 * 16] = {0}, c[16 * 16] = {0}; + OmegaGpuMatmulInfo info; + CHECK(omega_gpu_matmul_f32(0, 16, 16, a, b, c, &info) == OMEGA_GPU_MATMUL_BAD_ARGS, "m=0 refused"); + CHECK(omega_gpu_matmul_f32(16, 16, 16, NULL, b, c, &info) == OMEGA_GPU_MATMUL_BAD_ARGS, "NULL a refused"); + CHECK(omega_gpu_matmul_f32(OMEGA_BW_MATMUL_MAX_M + 1, 16, 16, a, b, c, &info) == OMEGA_GPU_MATMUL_TOO_LARGE, "m over limit refused"); + CHECK(omega_gpu_matmul_bf16(16, OMEGA_BW_MATMUL_MAX_K + 1, 16, (uint16_t *)a, (uint16_t *)b, c, NULL) == OMEGA_GPU_MATMUL_TOO_LARGE, "k over limit refused (NULL info ok)"); + /* session spin window (omega#328): in-range value kept, out-of-range refused unchanged, 0 restores */ + const uint32_t spin0 = omega_gpu_session_spin_us(); + CHECK(omega_gpu_session_set_spin_us(2000) == 0 && omega_gpu_session_spin_us() == 2000, "spin window 2000 us set"); + CHECK(omega_gpu_session_set_spin_us(OMEGA_GPU_SESSION_MAX_SPIN_US + 1) == -1 && omega_gpu_session_spin_us() == 2000, + "spin window over the maximum refused, setting unchanged"); + CHECK(omega_gpu_session_set_spin_us(0) == 0 && omega_gpu_session_spin_us() == 0, "spin window 0 restores the sleep-poll"); + omega_gpu_session_set_spin_us(spin0); + CHECK(omega_gpu_matmul_bf16(16, 16, OMEGA_BW_MATMUL_MAX_N + 1, (uint16_t *)a, (uint16_t *)b, c, NULL) == OMEGA_GPU_MATMUL_TOO_LARGE, "n over limit refused"); + CHECK(OMEGA_BW_MATMUL_MAX_N >= 128256 && OMEGA_BW_MATMUL_MAX_K >= 8192 && OMEGA_BW_MATMUL_MAX_M >= 2048, "limits cover Llama shapes (vocab 128256, ffn 8192)"); + OmegaGpuTensor *t = NULL; + CHECK(omega_gpu_tensor_upload_f32(0, 16, a, &t) == OMEGA_GPU_MATMUL_BAD_ARGS && t == NULL, "tensor k=0 refused"); + CHECK(omega_gpu_tensor_upload_f32(16, 16, NULL, &t) == OMEGA_GPU_MATMUL_BAD_ARGS, "tensor NULL refused"); + CHECK(omega_gpu_matmul_resident_f32(16, a, NULL, c, &info) == OMEGA_GPU_MATMUL_BAD_ARGS, "resident NULL tensor refused"); + CHECK(strcmp(omega_gpu_matmul_rc_name(OMEGA_GPU_MATMUL_PARITY_FAIL), "PARITY_FAIL") == 0, "rc name"); + CHECK(omega_gpu_matmul_cta_budget() == OMEGA_GPU_MATMUL_MAX_CTAS, "default CTA budget"); + CHECK(omega_gpu_matmul_is_blocked() == 0, "not blocked at start"); + + /* codegen only: the looped kernel must accept every padded Llama shape without touching the chip */ + struct { uint32_t k, n, gx; } ok[] = { {16, 8, 1}, {2048, 8192, 64}, {8192, 2048, 64}, {2048, 128256, 64}, {1024, 1024, 1}, {16384, 262144, 64} }; + for (size_t i = 0; i < sizeof ok / sizeof ok[0]; i++) { + OmegaMatMulSpec spec; OmegaBlackwellKernel kernel; memset(&kernel, 0, sizeof kernel); + int rc = omega_matmul_spec_init(&spec, 16, ok[i].k, ok[i].n, OMEGA_MATMUL_PRECISION_BF16) == 0 && + omega_blackwell_codegen_matmul_tensor_loop(&spec, ok[i].gx, 0, &kernel) == 0 && kernel.code_size > 0; + CHECK(rc, "loop kernel K=%u N=%u gx=%u generated", ok[i].k, ok[i].n, ok[i].gx); + CHECK(kernel.gpr_count <= 64, "loop kernel K=%u N=%u fits 64 registers (got %u)", ok[i].k, ok[i].n, kernel.gpr_count); + /* the mutant kernel is a different program */ + OmegaBlackwellKernel mut; memset(&mut, 0, sizeof mut); + if (omega_blackwell_codegen_matmul_tensor_loop(&spec, ok[i].gx, 1, &mut) == 0) { + CHECK(memcmp(mut.code_digest, kernel.code_digest, 32) != 0, "mutant kernel differs K=%u N=%u", ok[i].k, ok[i].n); + omega_blackwell_kernel_free(&mut); + } else CHECK(ok[i].k == 16, "mutant refused only for K=16 (K=%u)", ok[i].k); + omega_blackwell_kernel_free(&kernel); + } + OmegaMatMulSpec spec; OmegaBlackwellKernel kernel; memset(&kernel, 0, sizeof kernel); + CHECK(omega_matmul_spec_init(&spec, 16, 24, 16, OMEGA_MATMUL_PRECISION_BF16) == 0 && omega_blackwell_codegen_matmul_tensor_loop(&spec, 1, 0, &kernel) != 0, "K not multiple of 16 refused by codegen (the API pads)"); + CHECK(omega_matmul_spec_init(&spec, 16, 16, 16, OMEGA_MATMUL_PRECISION_BF16) == 0 && omega_blackwell_codegen_matmul_tensor_loop(&spec, 3, 0, &kernel) != 0, "grid_x beyond the column tiles refused"); + /* the single-tile kernel of cut 1 still generates (other gates use it) */ + memset(&kernel, 0, sizeof kernel); + CHECK(omega_matmul_spec_init(&spec, 16, 16, 8, OMEGA_MATMUL_PRECISION_BF16) == 0 && omega_blackwell_codegen_matmul(&spec, &kernel) == 0 && kernel.code_size > 0, "16x16x8 single-tile kernel generated"); + omega_blackwell_kernel_free(&kernel); + frag_host_checks(); + omega_gpu_matmul_cache_clear(); +} + +/* One-row calls reuse the zero padding rows of the activation buffer: a second one-row call of the same + * width writes row 0 only (hook counts it) and still matches the oracle with a different A; a wider + * call in between, or another width, forces a full pack again. */ +static void one_row_repack_checks(void) { + const uint32_t k = 4096, n = 256; + float *a = malloc((size_t)32 * k * sizeof *a), *b = malloc((size_t)k * n * sizeof *b), *c = malloc((size_t)32 * n * sizeof *c); + uint32_t seed = 0x10c0u; + fill(a, (size_t)32 * k, &seed); fill(b, (size_t)k * n, &seed); + OmegaGpuMatmulInfo info; + const uint64_t h0 = omega_gpu_matmul_test_a_row0_hits(); + int rc1 = omega_gpu_matmul_f32(1, k, n, a, b, c, &info); + CHECK(rc1 == OMEGA_GPU_MATMUL_OK && info.parity_verified, "one-row call 1 (full pack) rc=%s parity=%d", omega_gpu_matmul_rc_name(rc1), info.parity_verified); + const uint64_t h1 = omega_gpu_matmul_test_a_row0_hits(); + int rc2 = omega_gpu_matmul_f32(1, k, n, a + k, b, c, &info); + const uint64_t h2 = omega_gpu_matmul_test_a_row0_hits(); + CHECK(rc2 == OMEGA_GPU_MATMUL_OK && info.parity_verified, "one-row call 2 (row 0 only, new A) rc=%s parity=%d", omega_gpu_matmul_rc_name(rc2), info.parity_verified); + CHECK(h1 == h0 && h2 == h1 + 1, "row-0 path taken on the second one-row call only (hits %" PRIu64 " %" PRIu64 " %" PRIu64 ")", h0, h1, h2); + int rc3 = omega_gpu_matmul_f32(32, k, n, a, b, c, &info); + CHECK(rc3 == OMEGA_GPU_MATMUL_OK && info.parity_verified, "32-row call between rc=%s parity=%d", omega_gpu_matmul_rc_name(rc3), info.parity_verified); + int rc4 = omega_gpu_matmul_f32(1, k, n, a + 2 * (size_t)k, b, c, &info); + const uint64_t h4 = omega_gpu_matmul_test_a_row0_hits(); + CHECK(rc4 == OMEGA_GPU_MATMUL_OK && info.parity_verified && h4 == h2, "one-row call after a wider call packs in full (hits %" PRIu64 ")", h4); + int rc5 = omega_gpu_matmul_f32(1, k, n, a + 3 * (size_t)k, b, c, &info); + const uint64_t h5 = omega_gpu_matmul_test_a_row0_hits(); + CHECK(rc5 == OMEGA_GPU_MATMUL_OK && info.parity_verified && h5 == h4 + 1, "one-row call after a one-row call writes row 0 only (hits %" PRIu64 ")", h5); + int rc6 = omega_gpu_matmul_f32(1, 64, n, a, b, c, &info); + const uint64_t h6 = omega_gpu_matmul_test_a_row0_hits(); + CHECK(rc6 == OMEGA_GPU_MATMUL_OK && info.parity_verified && h6 == h5, "one-row call of another width packs in full (hits %" PRIu64 ")", h6); + free(a); free(b); free(c); +} + +static int chip_sweep(const char *shapes, const char *out_path, int mutant) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_MATMUL_API_SWEEP_V2\",\"mutant\":%s,\"cta_budget\":%u,\"shapes\":[", mutant ? "true" : "false", omega_gpu_matmul_cta_budget()); + char *copy = strdup(shapes); + char *save = NULL; + int first = 1; + for (char *tok = strtok_r(copy, ";", &save); tok; tok = strtok_r(NULL, ";", &save)) { + unsigned m, k, n; + if (sscanf(tok, "%u,%u,%u", &m, &k, &n) != 3) { printf("bad shape %s\n", tok); continue; } + size_t na = (size_t)m * k, nb = (size_t)k * n, nc = (size_t)m * n; + float *a = malloc(na * sizeof *a), *b = malloc(nb * sizeof *b), *c = malloc(nc * sizeof *c), *c2 = malloc(nc * sizeof *c2); + if (!a || !b || !c || !c2) { printf("out of host memory for %s\n", tok); free(a); free(b); free(c); free(c2); continue; } + uint32_t seed = 0x5eed0000u ^ (m << 20) ^ (k << 10) ^ n; + fill(a, na, &seed); fill(b, nb, &seed); + for (size_t i = 0; i < nc; i++) c[i] = -12345.0f; + OmegaGpuMatmulInfo info, info2; + double t0 = now_ms(); + int rc = omega_gpu_matmul_f32(m, k, n, a, b, c, &info); + double wall_ms = now_ms() - t0; + /* second call on the same shape must hit the kernel cache and agree */ + int rc2 = omega_gpu_matmul_f32(m, k, n, a, b, c2, &info2); + size_t repeat_mismatch = 0; + for (size_t i = 0; i < nc; i++) if (c[i] != c2[i]) repeat_mismatch++; + size_t e2e_bad = 0; + double e2e = (rc == OMEGA_GPU_MATMUL_OK || rc == OMEGA_GPU_MATMUL_PARITY_FAIL) ? e2e_max_rel(m, k, n, a, b, c, &e2e_bad) : 0.0; + int pass = rc == OMEGA_GPU_MATMUL_OK && info.parity_verified && e2e < 1e-5 + && rc2 == OMEGA_GPU_MATMUL_OK && info2.kernel_cache_hit && repeat_mismatch == 0; + if (mutant) { + /* the wrong kernel must be caught: PARITY_FAIL from the API oracle and a visible e2e error */ + int caught = rc == OMEGA_GPU_MATMUL_PARITY_FAIL && !info.parity_verified && e2e >= 1e-5; + CHECK(caught, "mutant shape %ux%ux%u NOT caught: rc=%s parity=%d e2e_rel=%g", m, k, n, omega_gpu_matmul_rc_name(rc), info.parity_verified, e2e); + pass = caught; + } else { + CHECK(pass, "shape %ux%ux%u rc=%s parity=%d max_rel=%g e2e_rel=%g rc2=%s hit=%d repeat_mismatch=%zu", + m, k, n, omega_gpu_matmul_rc_name(rc), info.parity_verified, info.max_rel_err, e2e, + omega_gpu_matmul_rc_name(rc2), info2.kernel_cache_hit, repeat_mismatch); + } + printf("%s %ux%ux%u rc=%s chip_ns=%" PRIu64 " call_ms=%.3f wall_ms=%.1f max_abs=%g max_rel=%g mismatches=%zu e2e_rel=%g e2e_bad=%zu grid=%ux%u calls=%u rows_per_call=%u cache_hit2=%d err=\"%s\"\n", + pass ? (mutant ? "KILLED" : "PASS") : (mutant ? "SURVIVED" : "FAIL"), m, k, n, omega_gpu_matmul_rc_name(rc), info.elapsed_ns, info.call_ns / 1e6, wall_ms, + info.max_abs_err, info.max_rel_err, info.mismatch_count, e2e, e2e_bad, info.grid_x, info.grid_y, info.chip_calls, info.rows_per_call, info2.kernel_cache_hit, rc == OMEGA_GPU_MATMUL_CHIP_FAIL ? omega_gpu_matmul_last_error() : ""); + if (out) { + fprintf(out, "%s{\"m\":%u,\"k\":%u,\"n\":%u,\"rc\":\"%s\",\"pass\":%s,\"chip_elapsed_ns\":%" PRIu64 + ",\"call_ms\":%.3f,\"wall_ms\":%.3f,\"max_abs_err\":%g,\"max_rel_err\":%g,\"mismatch_count\":%zu," + "\"parity_verified\":%s,\"completion_marker\":%u,\"repeat_rc\":\"%s\",\"repeat_cache_hit\":%s," + "\"repeat_mismatch\":%zu,\"e2e_max_rel\":%g,\"e2e_bad\":%zu,\"grid_x\":%u,\"grid_y\":%u,\"chip_calls\":%u,\"rows_per_call\":%u,\"padded_m\":%u,\"padded_k\":%u,\"padded_n\":%u,\"target_chip\":\"%s\",\"sm_architecture\":%u}", + first ? "" : ",", m, k, n, omega_gpu_matmul_rc_name(rc), pass ? "true" : "false", + info.elapsed_ns, info.call_ns / 1e6, wall_ms, info.max_abs_err, info.max_rel_err, info.mismatch_count, + info.parity_verified ? "true" : "false", info.completion_marker, + omega_gpu_matmul_rc_name(rc2), info2.kernel_cache_hit ? "true" : "false", + repeat_mismatch, e2e, e2e_bad, info.grid_x, info.grid_y, info.chip_calls, info.rows_per_call, info.padded_m, info.padded_k, info.padded_n, info.target_chip, info.sm_architecture); + first = 0; + } + free(a); free(b); free(c); free(c2); + if (omega_gpu_matmul_is_blocked()) { printf("device latched after an uncertain completion; stopping the sweep\n"); break; } + } + free(copy); + if (out) { + fprintf(out, "],\"blocked\":%s,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", omega_gpu_matmul_is_blocked() ? "true" : "false", g_checks, g_failed, + g_failed == 0 ? (mutant ? "OMEGA_GPU_MATMUL_MUTANT_KILLED" : "OMEGA_GPU_MATMUL_API_PASS") : (mutant ? "OMEGA_GPU_MATMUL_MUTANT_SURVIVED" : "OMEGA_GPU_MATMUL_API_FAIL")); + fclose(out); + } + return 0; +} + +static int cmp_double(const void *x, const void *y) { double a = *(const double *)x, b = *(const double *)y; return a < b ? -1 : a > b; } + +/* Resident path: upload B once, then 100 calls; median wall time per call must be under 5 ms. + * Parity: first and last result against the double reference (0 elements at or beyond 1e-5). */ +static int timing(const char *shapes, const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_MATMUL_API_TIMING_V1\",\"cta_budget\":%u,\"spin_us\":%u,\"calls\":100,\"shapes\":[", omega_gpu_matmul_cta_budget(), omega_gpu_session_spin_us()); + char *copy = strdup(shapes); char *save = NULL; int first = 1; + for (char *tok = strtok_r(copy, ";", &save); tok; tok = strtok_r(NULL, ";", &save)) { + unsigned m, k, n; + if (sscanf(tok, "%u,%u,%u", &m, &k, &n) != 3) { printf("bad shape %s\n", tok); continue; } + size_t na = (size_t)m * k, nb = (size_t)k * n, nc = (size_t)m * n; + float *a = malloc(na * sizeof *a), *b = malloc(nb * sizeof *b), *c = malloc(nc * sizeof *c), *c_first = malloc(nc * sizeof *c_first); + uint16_t *ah = malloc(na * sizeof *ah); + if (!a || !b || !c || !c_first || !ah) { printf("out of host memory\n"); return 2; } + uint32_t seed = 0x7111e000u ^ (m << 20) ^ (k << 10) ^ n; + fill(a, na, &seed); fill(b, nb, &seed); + for (size_t i = 0; i < na; i++) ah[i] = omega_fp32_to_bf16(a[i]); + OmegaGpuTensor *t = NULL; + double tu0 = now_ms(); + int urc = omega_gpu_tensor_upload_f32(k, n, b, &t); + double upload_ms = now_ms() - tu0; + CHECK(urc == OMEGA_GPU_MATMUL_OK, "upload %ux%u rc=%s", k, n, omega_gpu_matmul_rc_name(urc)); + double samples[100]; int ok_calls = 0; OmegaGpuMatmulInfo info; memset(&info, 0, sizeof info); + uint64_t chip_ns_sum = 0; size_t repeat_mismatch = 0; + if (urc == OMEGA_GPU_MATMUL_OK) { + for (int i = 0; i < 100; i++) { + for (size_t j = 0; j < nc; j++) c[j] = -12345.0f; + double t0 = now_ms(); + int rc = omega_gpu_matmul_resident_bf16(m, ah, t, c, &info); + samples[i] = now_ms() - t0; + /* OMEGA_GPU_MATMUL_TIMING_NO_ORACLE=1: the per-call host oracle (m x n x k double MACs) only on the first + * call; at m = 128 it is minutes per shape and the timing is the point (2026-10-12). */ + if (i == 0 && getenv("OMEGA_GPU_MATMUL_TIMING_NO_ORACLE")) omega_gpu_matmul_set_oracle(0); + if (rc == OMEGA_GPU_MATMUL_OK) ok_calls++; + chip_ns_sum += info.elapsed_ns; + if (i == 0) memcpy(c_first, c, nc * sizeof *c); + else for (size_t j = 0; j < nc; j++) if (c[j] != c_first[j]) repeat_mismatch++; + if (omega_gpu_matmul_is_blocked()) break; + } + } + qsort(samples, 100, sizeof samples[0], cmp_double); + double median = samples[50], p90 = samples[90], mn = samples[0], mx = samples[99]; + size_t bad_first = 0, bad_last = 0; + double e2e_first = e2e_max_rel(m, k, n, a, b, c_first, &bad_first); + double e2e_last = e2e_max_rel(m, k, n, a, b, c, &bad_last); + int pass = ok_calls == 100 && bad_first == 0 && bad_last == 0 && repeat_mismatch == 0 && (m > 1 || median < 5.0); /* the 5 ms gate is the GEMV (m = 1) gate */ + CHECK(pass, "timing %ux%ux%u ok_calls=%d median_ms=%.3f e2e_first=%g e2e_last=%g bad=%zu/%zu repeat_mismatch=%zu", + m, k, n, ok_calls, median, e2e_first, e2e_last, bad_first, bad_last, repeat_mismatch); + printf("%s timing %ux%ux%u upload_ms=%.1f ok_calls=%d median_ms=%.3f p90_ms=%.3f min_ms=%.3f max_ms=%.3f chip_ns_mean=%" PRIu64 " grid=%ux%u e2e_first=%g e2e_last=%g repeat_mismatch=%zu\n", + pass ? "PASS" : "FAIL", m, k, n, upload_ms, ok_calls, median, p90, mn, mx, ok_calls ? chip_ns_sum / (uint64_t)ok_calls : 0, info.grid_x, info.grid_y, e2e_first, e2e_last, repeat_mismatch); + if (out) { + fprintf(out, "%s{\"m\":%u,\"k\":%u,\"n\":%u,\"pass\":%s,\"upload_ms\":%.3f,\"ok_calls\":%d,\"median_ms\":%.4f,\"p90_ms\":%.4f,\"min_ms\":%.4f,\"max_ms\":%.4f," + "\"chip_ns_mean\":%" PRIu64 ",\"grid_x\":%u,\"grid_y\":%u,\"e2e_first\":%g,\"e2e_last\":%g,\"e2e_bad_first\":%zu,\"e2e_bad_last\":%zu,\"repeat_mismatch\":%zu}", + first ? "" : ",", m, k, n, pass ? "true" : "false", upload_ms, ok_calls, median, p90, mn, mx, + ok_calls ? chip_ns_sum / (uint64_t)ok_calls : 0, info.grid_x, info.grid_y, e2e_first, e2e_last, bad_first, bad_last, repeat_mismatch); + first = 0; + } + omega_gpu_matmul_set_oracle(1); + omega_gpu_tensor_free(t); + free(a); free(b); free(c); free(c_first); free(ah); + if (omega_gpu_matmul_is_blocked()) break; + } + free(copy); + if (out) { + fprintf(out, "],\"blocked\":%s,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", omega_gpu_matmul_is_blocked() ? "true" : "false", g_checks, g_failed, + g_failed == 0 ? "OMEGA_GPU_MATMUL_TIMING_PASS" : "OMEGA_GPU_MATMUL_TIMING_FAIL"); + fclose(out); + } + return 0; +} + +int main(int argc, char **argv) { + const char *out_path = NULL; + int host = 0, mutant = 0, do_timing = 0; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--host-only") == 0) host = 1; + else if (strcmp(argv[i], "--mutant") == 0) mutant = 1; + else if (strcmp(argv[i], "--timing") == 0) do_timing = 1; + else if (strcmp(argv[i], "--cta-budget") == 0 && i + 1 < argc) omega_gpu_matmul_set_cta_budget((uint32_t)strtoul(argv[++i], NULL, 10)); + else if (strcmp(argv[i], "--spin-us") == 0 && i + 1 < argc) { + if (omega_gpu_session_set_spin_us((uint32_t)strtoul(argv[++i], NULL, 10)) != 0) { fprintf(stderr, "--spin-us out of range\n"); return 2; } + } + else if (strcmp(argv[i], "--unroll") == 0 && i + 1 < argc) omega_gpu_matmul_test_set_unroll((uint32_t)strtoul(argv[++i], NULL, 10)); + else if (strcmp(argv[i], "--out") == 0 && i + 1 < argc) out_path = argv[++i]; + } + const char *shapes = getenv("OMEGA_GPU_MATMUL_SHAPES"); + if (shapes && !*shapes) shapes = NULL; + int rc = 0; + if (host) host_only(); + else if (do_timing) rc = timing(shapes ? shapes : TIMING_SHAPES, out_path); + else if (mutant) { omega_gpu_matmul_test_set_mutant(1); rc = chip_sweep(shapes ? shapes : MUTANT_SHAPES, out_path, 1); omega_gpu_matmul_test_set_mutant(0); } + else rc = chip_sweep(shapes ? shapes : DEFAULT_SHAPES, out_path, 0); + if (!host && !do_timing && !mutant && !omega_gpu_matmul_is_blocked()) one_row_repack_checks(); + if (!omega_gpu_matmul_is_blocked()) omega_gpu_device_close(); + if (rc) return 2; + printf("%s: %d checks, %d failed%s\n", g_failed ? "FAIL" : "PASS", g_checks, g_failed, mutant ? (g_failed ? " (mutant SURVIVED)" : " (mutant killed)") : ""); + return g_failed ? 1 : 0; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul.json new file mode 100644 index 000000000..bbb356ad0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_SWEEP_V2","mutant":false,"cta_budget":64,"shapes":[{"m":16,"k":16,"n":16,"rc":"OK","pass":true,"chip_elapsed_ns":221250,"call_ms":131.706,"wall_ms":131.713,"max_abs_err":2.08616e-07,"max_rel_err":4.51833e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":4.51833e-08,"e2e_bad":0,"grid_x":2,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":16,"padded_n":16,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":32,"k":32,"n":32,"rc":"OK","pass":true,"chip_elapsed_ns":103553,"call_ms":0.417,"wall_ms":0.427,"max_abs_err":4.47035e-07,"max_rel_err":5.60462e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":5.60462e-08,"e2e_bad":0,"grid_x":1,"grid_y":1,"chip_calls":1,"rows_per_call":32,"padded_m":32,"padded_k":32,"padded_n":32,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":64,"k":64,"n":64,"rc":"OK","pass":true,"chip_elapsed_ns":103809,"call_ms":1.775,"wall_ms":1.820,"max_abs_err":1.00583e-06,"max_rel_err":6.11591e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":6.11591e-08,"e2e_bad":0,"grid_x":2,"grid_y":1,"chip_calls":1,"rows_per_call":64,"padded_m":64,"padded_k":64,"padded_n":64,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":128,"k":128,"n":128,"rc":"OK","pass":true,"chip_elapsed_ns":105153,"call_ms":10.698,"wall_ms":10.877,"max_abs_err":2.89083e-06,"max_rel_err":9.41787e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":9.41787e-08,"e2e_bad":0,"grid_x":4,"grid_y":2,"chip_calls":1,"rows_per_call":128,"padded_m":128,"padded_k":128,"padded_n":128,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":256,"k":256,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":106977,"call_ms":82.809,"wall_ms":83.492,"max_abs_err":8.43406e-06,"max_rel_err":1.30669e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.30669e-07,"e2e_bad":0,"grid_x":8,"grid_y":4,"chip_calls":1,"rows_per_call":256,"padded_m":256,"padded_k":256,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":512,"k":512,"n":512,"rc":"OK","pass":true,"chip_elapsed_ns":227298,"call_ms":655.668,"wall_ms":658.684,"max_abs_err":2.39611e-05,"max_rel_err":1.82928e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.82928e-07,"e2e_bad":0,"grid_x":8,"grid_y":8,"chip_calls":1,"rows_per_call":512,"padded_m":512,"padded_k":512,"padded_n":512,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":1024,"n":1024,"rc":"OK","pass":true,"chip_elapsed_ns":113105,"call_ms":6.547,"wall_ms":12.404,"max_abs_err":3.67463e-05,"max_rel_err":1.48922e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.48922e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":1024,"padded_n":1024,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":256,"n":1024,"rc":"OK","pass":true,"chip_elapsed_ns":111121,"call_ms":1.812,"wall_ms":3.128,"max_abs_err":4.94719e-06,"max_rel_err":7.52664e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":7.52664e-08,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":256,"padded_n":1024,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":16,"k":1024,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":108465,"call_ms":21.002,"wall_ms":22.385,"max_abs_err":3.72902e-05,"max_rel_err":1.45806e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.45806e-07,"e2e_bad":0,"grid_x":32,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":1024,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":8,"k":1024,"n":8,"rc":"OK","pass":true,"chip_elapsed_ns":109649,"call_ms":0.697,"wall_ms":0.779,"max_abs_err":3.00165e-05,"max_rel_err":1.18908e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.18908e-07,"e2e_bad":0,"grid_x":1,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":1024,"padded_n":8,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1024,"k":16,"n":128,"rc":"OK","pass":true,"chip_elapsed_ns":105089,"call_ms":10.940,"wall_ms":11.032,"max_abs_err":4.39584e-07,"max_rel_err":9.37062e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":9.37062e-08,"e2e_bad":0,"grid_x":4,"grid_y":16,"chip_calls":1,"rows_per_call":1024,"padded_m":1024,"padded_k":16,"padded_n":128,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":192,"k":16,"n":192,"rc":"OK","pass":true,"chip_elapsed_ns":107873,"call_ms":3.295,"wall_ms":3.326,"max_abs_err":4.61936e-07,"max_rel_err":1.0078e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.0078e-07,"e2e_bad":0,"grid_x":6,"grid_y":3,"chip_calls":1,"rows_per_call":192,"padded_m":192,"padded_k":16,"padded_n":192,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":512,"k":16,"n":64,"rc":"OK","pass":true,"chip_elapsed_ns":104513,"call_ms":2.975,"wall_ms":3.021,"max_abs_err":4.32134e-07,"max_rel_err":7.64946e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":7.64946e-08,"e2e_bad":0,"grid_x":2,"grid_y":8,"chip_calls":1,"rows_per_call":512,"padded_m":512,"padded_k":16,"padded_n":64,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":256,"k":16,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":104753,"call_ms":5.606,"wall_ms":5.647,"max_abs_err":4.47035e-07,"max_rel_err":9.74134e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":9.74134e-08,"e2e_bad":0,"grid_x":8,"grid_y":4,"chip_calls":1,"rows_per_call":256,"padded_m":256,"padded_k":16,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":128,"k":16,"n":512,"rc":"OK","pass":true,"chip_elapsed_ns":105329,"call_ms":5.595,"wall_ms":5.646,"max_abs_err":4.47035e-07,"max_rel_err":8.99603e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":8.99603e-08,"e2e_bad":0,"grid_x":16,"grid_y":2,"chip_calls":1,"rows_per_call":128,"padded_m":128,"padded_k":16,"padded_n":512,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":8192,"rc":"OK","pass":true,"chip_elapsed_ns":417620,"call_ms":106.921,"wall_ms":200.595,"max_abs_err":0.000129104,"max_rel_err":2.62102e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":2.62102e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":8192,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":8192,"n":2048,"rc":"OK","pass":true,"chip_elapsed_ns":824025,"call_ms":112.309,"wall_ms":205.431,"max_abs_err":0.00123078,"max_rel_err":5.96705e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":5.96705e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":8192,"padded_n":2048,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":128256,"rc":"OK","pass":true,"chip_elapsed_ns":4467165,"call_ms":1467.872,"wall_ms":2911.868,"max_abs_err":0.000163585,"max_rel_err":3.1728e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":3.1728e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":128256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121}],"blocked":false,"checks":18,"failed":0,"verdict":"OMEGA_GPU_MATMUL_API_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul.log new file mode 100644 index 000000000..5a24034af --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul.log @@ -0,0 +1,19 @@ +PASS 16x16x16 rc=OK chip_ns=221250 call_ms=131.706 wall_ms=131.7 max_abs=2.08616e-07 max_rel=4.51833e-08 mismatches=0 e2e_rel=4.51833e-08 e2e_bad=0 grid=2x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 32x32x32 rc=OK chip_ns=103553 call_ms=0.417 wall_ms=0.4 max_abs=4.47035e-07 max_rel=5.60462e-08 mismatches=0 e2e_rel=5.60462e-08 e2e_bad=0 grid=1x1 calls=1 rows_per_call=32 cache_hit2=1 err="" +PASS 64x64x64 rc=OK chip_ns=103809 call_ms=1.775 wall_ms=1.8 max_abs=1.00583e-06 max_rel=6.11591e-08 mismatches=0 e2e_rel=6.11591e-08 e2e_bad=0 grid=2x1 calls=1 rows_per_call=64 cache_hit2=1 err="" +PASS 128x128x128 rc=OK chip_ns=105153 call_ms=10.698 wall_ms=10.9 max_abs=2.89083e-06 max_rel=9.41787e-08 mismatches=0 e2e_rel=9.41787e-08 e2e_bad=0 grid=4x2 calls=1 rows_per_call=128 cache_hit2=1 err="" +PASS 256x256x256 rc=OK chip_ns=106977 call_ms=82.809 wall_ms=83.5 max_abs=8.43406e-06 max_rel=1.30669e-07 mismatches=0 e2e_rel=1.30669e-07 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 512x512x512 rc=OK chip_ns=227298 call_ms=655.668 wall_ms=658.7 max_abs=2.39611e-05 max_rel=1.82928e-07 mismatches=0 e2e_rel=1.82928e-07 e2e_bad=0 grid=8x8 calls=1 rows_per_call=512 cache_hit2=1 err="" +PASS 1x1024x1024 rc=OK chip_ns=113105 call_ms=6.547 wall_ms=12.4 max_abs=3.67463e-05 max_rel=1.48922e-07 mismatches=0 e2e_rel=1.48922e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x256x1024 rc=OK chip_ns=111121 call_ms=1.812 wall_ms=3.1 max_abs=4.94719e-06 max_rel=7.52664e-08 mismatches=0 e2e_rel=7.52664e-08 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 16x1024x256 rc=OK chip_ns=108465 call_ms=21.002 wall_ms=22.4 max_abs=3.72902e-05 max_rel=1.45806e-07 mismatches=0 e2e_rel=1.45806e-07 e2e_bad=0 grid=32x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 8x1024x8 rc=OK chip_ns=109649 call_ms=0.697 wall_ms=0.8 max_abs=3.00165e-05 max_rel=1.18908e-07 mismatches=0 e2e_rel=1.18908e-07 e2e_bad=0 grid=1x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1024x16x128 rc=OK chip_ns=105089 call_ms=10.940 wall_ms=11.0 max_abs=4.39584e-07 max_rel=9.37062e-08 mismatches=0 e2e_rel=9.37062e-08 e2e_bad=0 grid=4x16 calls=1 rows_per_call=1024 cache_hit2=1 err="" +PASS 192x16x192 rc=OK chip_ns=107873 call_ms=3.295 wall_ms=3.3 max_abs=4.61936e-07 max_rel=1.0078e-07 mismatches=0 e2e_rel=1.0078e-07 e2e_bad=0 grid=6x3 calls=1 rows_per_call=192 cache_hit2=1 err="" +PASS 512x16x64 rc=OK chip_ns=104513 call_ms=2.975 wall_ms=3.0 max_abs=4.32134e-07 max_rel=7.64946e-08 mismatches=0 e2e_rel=7.64946e-08 e2e_bad=0 grid=2x8 calls=1 rows_per_call=512 cache_hit2=1 err="" +PASS 256x16x256 rc=OK chip_ns=104753 call_ms=5.606 wall_ms=5.6 max_abs=4.47035e-07 max_rel=9.74134e-08 mismatches=0 e2e_rel=9.74134e-08 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 128x16x512 rc=OK chip_ns=105329 call_ms=5.595 wall_ms=5.6 max_abs=4.47035e-07 max_rel=8.99603e-08 mismatches=0 e2e_rel=8.99603e-08 e2e_bad=0 grid=16x2 calls=1 rows_per_call=128 cache_hit2=1 err="" +PASS 1x2048x8192 rc=OK chip_ns=417620 call_ms=106.921 wall_ms=200.6 max_abs=0.000129104 max_rel=2.62102e-07 mismatches=0 e2e_rel=2.62102e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x8192x2048 rc=OK chip_ns=824025 call_ms=112.309 wall_ms=205.4 max_abs=0.00123078 max_rel=5.96705e-07 mismatches=0 e2e_rel=5.96705e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x2048x128256 rc=OK chip_ns=4467165 call_ms=1467.872 wall_ms=2911.9 max_abs=0.000163585 max_rel=3.1728e-07 mismatches=0 e2e_rel=3.1728e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 25 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.json new file mode 100644 index 000000000..6b1a38be8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_TIMING_V1","cta_budget":64,"spin_us":0,"calls":100,"shapes":[{"m":1,"k":2048,"n":8192,"pass":true,"upload_ms":239.421,"ok_calls":100,"median_ms":0.4116,"p90_ms":0.4127,"min_ms":0.3635,"max_ms":0.9594,"chip_ns_mean":408555,"grid_x":64,"grid_y":1,"e2e_first":2.36603e-07,"e2e_last":2.36603e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0},{"m":1,"k":8192,"n":2048,"pass":true,"upload_ms":104.834,"ok_calls":100,"median_ms":0.8190,"p90_ms":0.8220,"min_ms":0.7724,"max_ms":1.2667,"chip_ns_mean":817602,"grid_x":64,"grid_y":1,"e2e_first":5.21488e-07,"e2e_last":5.21488e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.log new file mode 100644 index 000000000..7b29394b2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/matmul_timing.log @@ -0,0 +1,3 @@ +PASS timing 1x2048x8192 upload_ms=239.4 ok_calls=100 median_ms=0.412 p90_ms=0.413 min_ms=0.363 max_ms=0.959 chip_ns_mean=408555 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=104.8 ok_calls=100 median_ms=0.819 p90_ms=0.822 min_ms=0.772 max_ms=1.267 chip_ns_mean=817602 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.c new file mode 100644 index 000000000..d9d56b121 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.c @@ -0,0 +1,1436 @@ +/* omega_gpu_attention_api.c: FB-1 cut 5 (2026-10-04). See the header. + * + * Layout: (1) kernel codegen on the BlackwellIR with the serialising scheduler + * of cut 4 (every instruction waits on everything still pending; slow and safe), + * extended with forward branches and more loops; (2) the launcher, cloned from + * cut 4's run_abc with a fourth buffer (block tables and context lengths), 16 + * argument words, and cut 1b's shader-cache invalidate; (3) the public entry + * points, which stage the referenced KV blocks per launch and apply the oracle's + * argument rules (dropped tokens past the table, negative table entries, zero + * context) on the host. + * + * One CTA per (query head, sequence), head_dim threads (64 or 128; the text below says 64, the + * constants scale with KSpec.hd). The context is walked in chunks of head_dim tokens: + * phase A thread t owns token base+t: block lookup, K dot q (f32 FFMA), s = dot * scale + * (scale folds 1/sqrt(d) and log2 e), s and the token's byte offset go to shared; + * reduce chunk max (SHFL.DOWN tree per warp, lane partials to shared, BAR.SYNC, 2 LDS), + * m_new = max(m, chunk max), alpha = EX2(m - m_new), p = EX2(s - m_new) to shared, + * chunk sum the same way, l = l * alpha + chunk sum; + * phase B thread d owns dimension d: acc = acc * alpha + sum over the chunk of p_t * V[t][d]. + * Then out[d] = acc * RCP(l). The first chunk sees m = -inf, so alpha = EX2(-inf) = 0 and + * the initial l and acc drop out (PTX ISA ex2.approx: ex2(-Inf) = +0). + * + * Shared memory (16 * head_dim bytes; hd 64: 1024 bytes, the QMD default): [0,4hd) q, [4hd,8hd) s then p, + * [8hd,12hd) token byte offsets, [12hd,16hd) warp partials for the reductions (hd 64: 0, 256, 512, + * 768; hd 128: 0, 512, 1024, 1536; the partials of warp w are read at 12hd + 128w). + */ +#include "omega_gpu_attention_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_bw_reconv.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" +#include "omega_gpu_session.h" +#include "omega_gpu_fmt.h" +#include "sha256.h" +#ifdef OMEGA_ATTN_DEBUG +#include /* the debug trace only; never in the freestanding build */ +#endif +#include + +/* ------------------------------------------------------------------ codegen */ + +#define CW(stall, wbar, rbar, wait) \ + (((uint32_t)(stall) << 9) | ((uint32_t)(wbar) << 14) | ((uint32_t)(rbar) << 17) | ((uint32_t)(wait) << 20)) +#define CW_YIELD 0x2000u +#define SB_NONE 7u +#define SB_GPR 0u +#define SB_RD 1u +#define SB_UGPR 2u +#define SB_LD2 4u /* second scoreboard for batched loads (the matmul kernel's B-load word, omega #328) */ +#define SB_LD3 3u /* third: phase B keeps shared loads and the two halves of the V loads on separate scoreboards */ +#define AT_BATCH_MAX 4 /* loads in flight per scoreboard: 4 complete on the chip, 8 never did (omega #328) */ + +enum { K_FIXED, K_PRED, K_VAR, K_UVAR, K_STORE, K_SYNC, K_EXIT, K_BRA, K_BSSY, K_BSYNC }; + +#define AT_MAX_LOOPS 8 +typedef struct { + BlackwellIRProgram *p; + uint32_t pending; + uint32_t batch; /* scoreboards the open load batch is filling (no wait on them inside the batch) */ + int batch_n[8]; /* loads issued per scoreboard in the open batch */ + int err; + int loop_start[AT_MAX_LOOPS], loop_end[AT_MAX_LOOPS]; + int n_loops, depth, stack[AT_MAX_LOOPS]; + BwRegions rg; /* structured reconvergence regions (omega #308) */ + int rg_mutant; /* test only: 1 = drop the BSYNC at join (the 2026-10-04 bug shape; host sim must catch it) */ +} Em; + +static void emit(Em *e, BlackwellIRInsn in, int kind) { + uint32_t wait = e->pending; + e->batch = 0; memset(e->batch_n, 0, sizeof e->batch_n); /* an ordinary instruction waits on the whole batch */ + switch (kind) { + case K_FIXED: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_PRED: in.control = CW(13, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_VAR: in.control = CW(4, SB_GPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_GPR; break; + case K_UVAR: in.control = CW(4, SB_UGPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_UGPR; break; + case K_STORE: in.control = CW(4, SB_NONE, SB_RD, wait) | CW_YIELD; e->pending = 1u << SB_RD; break; + case K_SYNC: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_EXIT: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + case K_BRA: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + /* stall counts as nvcc 13.0.88 writes them for sm_121 (see src/omega_gpu_elementwise_api.c) */ + case K_BSSY: in.control = CW(1, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + case K_BSYNC: in.control = CW(5, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + default: e->err = -1; return; + } + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; +} + +static int V(Em *e) { int v = omega_bw_ir_alloc_vreg(e->p); if (v < 0) e->err = -1; return v; } +static int V64(Em *e) { int v = omega_bw_ir_alloc_vreg64(e->p); if (v < 0) e->err = -1; return v; } +static int V128(Em *e) { int v = omega_bw_ir_alloc_vreg128(e->p); if (v < 0) e->err = -1; return v; } +static int UV64(Em *e) { int v = omega_bw_ir_alloc_uvreg64(e->p); if (v < 0) e->err = -1; return v; } +static int here(const Em *e) { return (int)e->p->count; } + +#define NOREG -1 +static BlackwellIRInsn I0(BlackwellIROpcode op) { + BlackwellIRInsn in; memset(&in, 0, sizeof in); + in.op = op; in.dst_vreg = NOREG; in.src1_vreg = NOREG; in.src2_vreg = NOREG; in.src3_vreg = NOREG; in.ureg = NOREG; + return in; +} +static void ldcu64(Em *e, int udst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDCU64); i.dst_vreg = udst; i.imm = off; i.is_uniform = true; emit(e, i, K_UVAR); } +static void ldc64(Em *e, int dst64, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC64); i.dst_vreg = dst64; i.imm = off; emit(e, i, K_VAR); } +static void ldc32(Em *e, int dst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC); i.dst_vreg = dst; i.imm = off; emit(e, i, K_VAR); } +static void s2r(Em *e, int dst, uint32_t sr) { BlackwellIRInsn i = I0(BW_IR_S2R); i.dst_vreg = dst; i.imm = sr; emit(e, i, K_VAR); } +static void movi(Em *e, int dst, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_MOV_IMM); i.dst_vreg = dst; i.imm = imm; emit(e, i, K_FIXED); } +static void movf(Em *e, int dst, float f) { uint32_t u; memcpy(&u, &f, 4); movi(e, dst, u); } +static void movrz(Em *e, int dst) { BlackwellIRInsn i = I0(BW_IR_MOV_RZ); i.dst_vreg = dst; emit(e, i, K_FIXED); } +/* dst = a * imm + c (c may be NOREG for RZ) */ +static void imadi(Em *e, int dst, int a, uint32_t imm, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); } +/* dst = a * b + c (registers; c may be NOREG) */ +static void imadr(Em *e, int dst, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void iadd3(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IADD3); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void lop3xor(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_LOP3_XOR); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void lop3andi(Em *e, int dst, int a, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_LOP3_AND); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; emit(e, i, K_FIXED); } +static void shri(Em *e, int dst, int a, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_SHF_R); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; emit(e, i, K_FIXED); } +/* dst64 = idx * imm + base64 (byte address) */ +static void wide(Em *e, int dst64, int idx, uint32_t imm, int base64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.imm = imm; i.src3_vreg = base64; emit(e, i, K_FIXED); } +static void ldg(Em *e, int dst, int addr64, int udesc) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit(e, i, K_VAR); } +/* Batched loads (2026-10-12, long-context finding): every load above waits on the previous one, so + * phase A paid one global latency per dim pair and phase B one per token (~6 GB/s at 1268 ctx). A + * batched load sets `sb` and waits on every pending scoreboard except the ones the open batch is + * filling (and SB_RD, its read barrier), so up to AT_BATCH_MAX loads per scoreboard are in flight. + * The next ordinary instruction (emit) waits on all of them. SB_RD covers the address register: the + * allocator may hand that register to a later load's data before this load has read it. */ +static void emit_batched(Em *e, BlackwellIRInsn in, uint32_t sb) { + if (sb >= 8 || e->batch_n[sb] >= AT_BATCH_MAX) { e->err = -1; return; } + in.control = CW(4, sb, SB_RD, e->pending & ~e->batch) | CW_YIELD; + e->batch |= (1u << sb) | (1u << SB_RD); e->batch_n[sb]++; + e->pending |= (1u << sb) | (1u << SB_RD); + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; +} +/* A fixed-latency instruction inside an open load batch: it waits on the batch's read barrier (its + * destination may be a load's address register, which the load may read late) but not on the loads' + * data, so the address of the next load is computed while the earlier loads are in flight. Only for + * instructions that read no result of the open batch. */ +static void emit_fixed_in_batch(Em *e, BlackwellIRInsn in) { + uint32_t wait = (e->pending & ~e->batch) | (e->batch ? (1u << SB_RD) : 0u); + in.control = CW(6, SB_NONE, SB_NONE, wait); + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; +} +static void ldg128_b(Em *e, int dst128, int addr64, uint32_t imm, int udesc, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDG_E_128); i.dst_vreg = dst128; i.src1_vreg = addr64; i.imm = imm; i.ureg = udesc; emit_batched(e, i, sb); } +static void ldg_b(Em *e, int dst, int addr64, int udesc, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit_batched(e, i, sb); } +static void ldg16_b(Em *e, int dst, int addr64, int udesc, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDG_E_U16); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit_batched(e, i, sb); } +static void lds128_b(Em *e, int dst128, int addr, uint32_t imm, uint32_t sb) { BlackwellIRInsn i = I0(BW_IR_LDS128); i.dst_vreg = dst128; i.src1_vreg = addr; i.imm = imm; emit_batched(e, i, sb); } +/* sub-register operands of a quad */ +static void e_ffma_s(Em *e, int d, int a, int as, int b, int bs, int c) { BlackwellIRInsn i = I0(BW_IR_FFMA); i.dst_vreg = d; i.src1_vreg = a; i.src1_subreg = (uint8_t)as; i.src2_vreg = b; i.src2_subreg = (uint8_t)bs; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void imadi_s(Em *e, int dst, int a, int as, uint32_t imm, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.src1_subreg = (uint8_t)as; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void lop3andi_s(Em *e, int dst, int a, int as, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_LOP3_AND); i.dst_vreg = dst; i.src1_vreg = a; i.src1_subreg = (uint8_t)as; i.imm = imm; emit(e, i, K_FIXED); } +static void wide_s(Em *e, int dst64, int idx, int is, uint32_t imm, int base64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.src1_subreg = (uint8_t)is; i.imm = imm; i.src3_vreg = base64; emit(e, i, K_FIXED); } +static void wide_s_b(Em *e, int dst64, int idx, int is, uint32_t imm, int base64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.src1_subreg = (uint8_t)is; i.imm = imm; i.src3_vreg = base64; emit_fixed_in_batch(e, i); } +static void stg(Em *e, int addr64, int val, int udesc) { BlackwellIRInsn i = I0(BW_IR_STG_E); i.src1_vreg = addr64; i.src2_vreg = val; i.ureg = udesc; emit(e, i, K_STORE); } +static void e_fadd(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FADD); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void e_fsub(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FSUB); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void e_fmul(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FMUL); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void e_ffma(Em *e, int d, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_FFMA); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void e_fmax(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FMNMX_MAX); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void mufu(Em *e, BlackwellIROpcode op, int d, int a) { BlackwellIRInsn i = I0(op); i.dst_vreg = d; i.src1_vreg = a; emit(e, i, K_VAR); } +/* SHFL and BAR.SYNC are refused inside an open reconvergence region (omega #308): on a split + * warp they read inactive lanes / count a partial warp, which is what produced wrong dims on + * the chip on 2026-10-04. The build fails closed instead. */ +static int in_region(Em *e) { if (e->rg.depth > 0) { e->err = -1; return 1; } return 0; } +static void shfl_down(Em *e, int d, int a, uint32_t off) { if (in_region(e)) return; BlackwellIRInsn i = I0(BW_IR_SHFL_DOWN); i.dst_vreg = d; i.src1_vreg = a; i.imm = off; emit(e, i, K_VAR); } +static void sts32(Em *e, int addr, int val) { BlackwellIRInsn i = I0(BW_IR_STS32); i.src1_vreg = addr; i.src2_vreg = val; emit(e, i, K_STORE); } +static void lds32(Em *e, int d, int addr) { BlackwellIRInsn i = I0(BW_IR_LDS32); i.dst_vreg = d; i.src1_vreg = addr; emit(e, i, K_VAR); } +static void bar_sync(Em *e) { if (in_region(e)) return; emit(e, I0(BW_IR_BAR_SYNC), K_SYNC); } +static void isetp_ge_u32(Em *e, int a, int b) { BlackwellIRInsn i = I0(BW_IR_ISETP_GE_U32); i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_PRED); } +static void bra_back_if_not_p0(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.predicate_not = true; i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } +/* @P0 BRA forward; the target is patched in when known */ +static int bra_fwd_if_p0(Em *e) { int at = here(e); BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.imm = 0; emit(e, i, K_BRA); return at; } +static void patch_fwd(Em *e, int at) { if (at >= 0 && (size_t)at < e->p->count) e->p->insns[at].imm = (uint32_t)(here(e) - at); else e->err = -1; } + +/* ---- structured reconvergence regions (omega #308); same API as the elementwise emitter ---- */ +enum { RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0 }; +static int region_begin(Em *e) { + int bar = bw_regions_next_bar(&e->rg); + if (bar < 0) { e->err = -1; return -1; } + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BSSY); i.bar_reg = (uint8_t)bar; i.imm = 2; emit(e, i, K_BSSY); + if (bw_regions_begin(&e->rg, at) < 0) e->err = -1; + return bar; +} +static void region_exit(Em *e, int cond) { + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = 1; + if (cond != RX_ALWAYS) { i.predicate_p0 = true; i.predicate_not = (cond == RX_IF_NOT_P0); } + emit(e, i, K_BRA); + if (bw_regions_exit(&e->rg, at) < 0) e->err = -1; +} +static void region_join(Em *e) { + if (e->rg.depth <= 0) { e->err = -1; return; } + int d = e->rg.depth - 1, bsync = here(e); + BlackwellIRInsn i = I0(e->rg_mutant == 1 ? BW_IR_NOP : BW_IR_BSYNC); i.bar_reg = (uint8_t)d; emit(e, i, K_BSYNC); + if (e->rg_mutant == 1) { + BwRegions *r = &e->rg; r->depth--; + e->p->insns[r->bssy_at[d]].imm = (uint32_t)(bsync + 1 - r->bssy_at[d]); + for (int k = 0; k < r->n_exits[d]; k++) e->p->insns[r->exits[d][k]].imm = (uint32_t)(bsync - r->exits[d][k]); + return; + } + if (bw_regions_join(&e->rg, e->p, bsync) != d) e->err = -1; +} +static void tail(Em *e) { + emit(e, I0(BW_IR_EXIT), K_EXIT); + BlackwellIRInsn self = I0(BW_IR_BRA); + self.control = 0x000fc000u; + if (omega_bw_ir_append(e->p, &self) < 0) e->err = -1; +} +/* Loops nest; loop_end() extends every value defined before the loop and read inside + * it to the back-branch (the linear-scan allocator knows nothing about back-edges). */ +static void loop_begin(Em *e) { + if (e->depth >= AT_MAX_LOOPS || e->n_loops >= AT_MAX_LOOPS) { e->err = -1; return; } + e->stack[e->depth++] = here(e); +} +static void loop_end(Em *e) { + if (e->depth == 0 || e->n_loops >= AT_MAX_LOOPS) { e->err = -1; return; } + int start = e->stack[--e->depth], end = here(e) - 1; + e->loop_start[e->n_loops] = start; e->loop_end[e->n_loops] = end; e->n_loops++; + OmegaRegAlloc *ra = &e->p->regalloc; + for (int v = 0; v < ra->num_vregs; v++) { + OmegaLiveInterval *iv = &ra->intervals[v]; + if (iv->first_def >= 0 && iv->first_def < start && iv->last_use >= start && iv->last_use < end) iv->last_use = end; + } +} +/* A value first defined inside a loop may not be read after it before being redefined. */ +static int check_loop_invariant(const Em *e) { + const OmegaRegAlloc *ra = &e->p->regalloc; + for (int L = 0; L < e->n_loops; L++) + for (int v = 0; v < ra->num_vregs; v++) { + int fd = ra->intervals[v].first_def; + if (fd < e->loop_start[L] || fd > e->loop_end[L]) continue; + for (size_t i = (size_t)e->loop_end[L] + 1; i < e->p->count; i++) { + const BlackwellIRInsn *in = &e->p->insns[i]; + if (in->src1_vreg == v || in->src2_vreg == v || in->src3_vreg == v) return -1; + if (in->dst_vreg == v && !in->is_uniform) break; + } + } + return 0; +} + +/* Kernel argument words (constant bank 0 at 0x380; the bank is 1024 bytes, so 32 words fit). */ +#define ARG_Q 0x380u +#define ARG_POOL 0x388u +#define ARG_OUT 0x390u +#define ARG_TAB 0x398u +#define ARG_MAXB 0x3a0u /* words per block-table row */ +#define ARG_SCALE 0x3a4u /* bits of log2(e) / sqrt(head_dim) */ +#define ARG_BSTRIDE 0x3a8u /* bytes between staged blocks */ +#define ARG_TSTRIDE 0x3acu /* bytes between tokens */ +#define ARG_KVP 0x3b0u /* bytes from the K plane to the V plane */ +#define ARG_HSTRIDE 0x3b4u /* bytes between kv heads */ +#define ARG_NQH 0x3b8u /* query heads (q and out row count per sequence) */ +#define ARG_CTXOFF 0x3bcu /* byte offset of the context-length array inside the table buffer */ +#define ARG_WORDS 16u +#define DESC_OFF 0x358u + +/* Head dimension is a kernel parameter (64 or 128, see KSpec.hd). Shared memory is four arrays of hd words: + * q at SH_Q, s then p at hd*4, token byte offsets at hd*8, warp partials at hd*12 (hd 64: 0, 256, 512, 768, + * the layout of every cut before head_dim 128). */ +#define SH_Q 0u +#define F32_NEG_INF 0xff800000u + +/* divergent (omega #308 regression R2): 0 = production branch-free chunk loop; 1 = the + * lane-dependent "j >= ctx" branch restored inside a reconvergence region (BSSY/BSYNC) so + * the SHFL reductions run on a joined warp; 2 = the same with the BSYNC dropped (the + * 2026-10-04 bug shape, a negative control the host simulator must catch). */ +typedef struct { bool f32; uint32_t log2bs, log2gqa; int mutant; int divergent; uint32_t hd; int split; } KSpec; +/* split (cut F, 2026-10-12): -1 = direct output (the gqa f32 and rows callers; byte for byte the kernel before). + * 0..MAX_LOG2SPLIT = the paged path: 2^split CTAs share one (sequence, head). Each sequence derives its own split + * count from its own context (so its result never depends on the other sequences in the launch), every CTA writes + * an unnormalised partial (acc[hd], running max, running sum; an empty slice writes acc 0, max -inf) and the host + * combines them, also when split == 0. */ + +/* cut K (2026-10-12, GQA group): at head_dim 128 one CTA serves the GC query heads of one kv head, GC = + * min(2^log2gqa, 4), so every K and V byte of a launch is read once instead of once per query head. The KV + * pool is GPU-uncached (host-written), so the four CTAs of a GQA group were four DRAM reads of the same + * bytes: 21 MB per call at 1268 tokens, the memory ceiling (sc leg smoke-ctx-chunk: 152 us per call). + * Grid x is the head group (num_q_heads / GC CTAs per sequence and split). Shared memory: q, scores and + * warp partials per head, token offsets once. GC = 1 (every hd 64 kernel, hd 128 with gqa 1) emits exactly + * the program before this cut (digest fixtures). */ +static uint32_t heads_per_cta(uint32_t hd, uint32_t log2gqa) { return hd == 128u ? (1u << (log2gqa < 2u ? log2gqa : 2u)) : 1u; } +static uint32_t shared_bytes_for(uint32_t hd, uint32_t log2gqa) { return (3u * heads_per_cta(hd, log2gqa) + 1u) * hd * 4u; } +uint32_t omega_gpu_attention_heads_per_cta(uint32_t head_dim, uint32_t log2_gqa) { return heads_per_cta(head_dim, log2_gqa); } + +static void gen_attention(Em *e, const KSpec *k) { + const uint32_t elem = k->f32 ? 4u : 2u; + const uint32_t HD = k->hd, GC = heads_per_cta(HD, k->log2gqa), log2gc = GC == 4u ? 2u : GC == 2u ? 1u : 0u; + const uint32_t HB = HD * 4u; /* bytes of one per-head shared array */ + const uint32_t SH_S = GC * HB, SH_O = 2u * GC * HB, SH_R = SH_O + HB; /* warps per CTA: HD / 32 */ + int udesc = UV64(e), A = V64(e), B = V64(e), C = V64(e), D = V64(e); + int tid = V(e), h = V(e), seq = V(e); + int p_maxb = V(e), scale = V(e), p_bstride = V(e), p_tstride = V(e), p_kvp = V(e), p_hstride = V(e), p_nqh = V(e), p_ctxoff = V(e); + ldcu64(e, udesc, DESC_OFF); + ldc64(e, A, ARG_Q); ldc64(e, B, ARG_POOL); ldc64(e, C, ARG_OUT); ldc64(e, D, ARG_TAB); + ldc32(e, p_maxb, ARG_MAXB); ldc32(e, scale, ARG_SCALE); ldc32(e, p_bstride, ARG_BSTRIDE); ldc32(e, p_tstride, ARG_TSTRIDE); + ldc32(e, p_kvp, ARG_KVP); ldc32(e, p_hstride, ARG_HSTRIDE); ldc32(e, p_nqh, ARG_NQH); ldc32(e, p_ctxoff, ARG_CTXOFF); + s2r(e, tid, BW_SR_TID_X); s2r(e, h, BW_SR_CTAID_X); s2r(e, seq, BW_SR_CTAID_Y); + + /* cut F, partial mode: grid y = sequence * S + split; the split index picks this CTA's slice of the context (below) */ + const bool part = k->split >= 0; + const uint32_t LS = part ? (uint32_t)k->split : 0u, S = 1u << LS, log2hd = (HD == 128u) ? 7u : 6u; + int split = -1, kb = -1, kend = -1; + if (part) { split = V(e); if (LS) { lop3andi(e, split, seq, S - 1u); shri(e, seq, seq, LS); } else movrz(e, split); } + + int c1 = V(e), c4 = V(e), c32 = V(e), c64 = V(e), c256 = V(e), c512 = V(e), c768 = V(e), c896 = V(e), zero = V(e); + /* c32 / c64 keep their hd 64 names: the inner (dim pair) loop trip count HD / 2 and the chunk size HD */ + movi(e, c1, 1); movi(e, c4, 4); movi(e, c32, HD / 2); movi(e, c64, HD); + movi(e, c256, SH_S); movi(e, c512, SH_O); movi(e, c768, SH_R); movi(e, c896, SH_R + 128); movrz(e, zero); + /* warp partials 2 and 3 (lane 0 of warps 2 and 3): only a 128-thread CTA has them. Created and emitted only + * when HD == 128, so the hd 64 program (vreg numbering, instruction sequence) is exactly the one before. */ + int c1024 = -1, c1152 = -1, rc_ = -1, rd_ = -1; + if (HD == 128) { c1024 = V(e); c1152 = V(e); rc_ = V(e); rd_ = V(e); movi(e, c1024, SH_R + 256); movi(e, c1152, SH_R + 384); } + + /* q[tid] -> shared; out address kept for the end. Row = seq * num_q_heads + head for + * both q and out (flattened head-major, the oracle's layout). The head-wiring mutants + * swap the row of head h with h ^ 1 on one side only. GC > 1: head g of the group is + * h * GC + g; q goes to SH_Q + g * HB; the output rows are derived in the epilogue. */ + int tid4 = V(e), qrow = V(e), qoff = V(e), qaddr = V64(e), qv = V(e), oaddr = GC == 1 ? V64(e) : -1; + int hq = h, ho = h; + if (GC == 1 && k->mutant == OMEGA_GPU_ATTN_MUTANT_Q_ROW) { hq = V(e); lop3xor(e, hq, h, c1); } + if (GC == 1 && k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) { ho = V(e); lop3xor(e, ho, h, c1); } + imadi(e, tid4, tid, 4, NOREG); + if (GC == 1) { + imadr(e, qrow, seq, p_nqh, hq); + imadi(e, qoff, qrow, HD * 4, tid4); + wide(e, qaddr, qoff, 1, A); + ldg(e, qv, qaddr, udesc); + sts32(e, tid4, qv); /* SH_Q + tid*4 */ + if (!part) { /* direct output address; partial mode derives its row in the epilogue */ + if (ho == hq) wide(e, oaddr, qoff, 1, C); + else { + int orow = V(e), ooff = V(e); + imadr(e, orow, seq, p_nqh, ho); + imadi(e, ooff, orow, HD * 4, tid4); + wide(e, oaddr, ooff, 1, C); + } + } + } else { + int h0 = V(e), hg = V(e), qsh = V(e); + imadi(e, h0, h, GC, NOREG); + for (uint32_t g = 0; g < GC; g++) { + imadi(e, hg, c1, g, h0); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_Q_ROW) lop3xor(e, hg, hg, c1); + imadr(e, qrow, seq, p_nqh, hg); + imadi(e, qoff, qrow, HD * 4, tid4); + wide(e, qaddr, qoff, 1, A); + ldg(e, qv, qaddr, udesc); + imadi(e, qsh, c1, g * HB, tid4); + sts32(e, qsh, qv); + } + } + + /* kv head offset, this sequence's table row and context length */ + int kvh = V(e), kvoff = V(e), t1 = V(e), tab = V64(e), ca = V64(e), ctx = V(e), vb = V64(e); + shri(e, kvh, h, k->log2gqa - log2gc); /* GC heads per CTA: kv head = (h * GC) >> log2gqa */ + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_KV_HEAD) lop3xor(e, kvh, kvh, c1); + imadr(e, kvoff, kvh, p_hstride, NOREG); + imadr(e, t1, seq, p_maxb, NOREG); + imadi(e, t1, t1, 4, NOREG); + wide(e, tab, t1, 1, D); + imadi(e, t1, seq, 4, p_ctxoff); + wide(e, ca, t1, 1, D); + ldg(e, ctx, ca, udesc); + if (part) { + /* This sequence's own split count s_own = min(S, pow2floor(chunks)), chunks = ceil(ctx / HD), from its own + * context alone (the host picks the launch S the same way over the batch); per = roundup(ceil(ctx / s_own), HD) + * whole chunks per split; this CTA's slice is [kb, kend), kend = min(ctx, kb + per) through the sign bit of + * ctx - (kb + per). Splits past s_own get kb >= kend: an empty partial. Branch-free: candidate 2^c replaces + * per when chunks >= 2^c; the candidates nest, so the largest that fits wins. */ + int per = V(e), x = V(e), cand = V(e), dd = V(e), lt = V(e), cH1 = V(e), cK = V(e); + kb = V(e); kend = V(e); + movi(e, cH1, HD - 1u); + iadd3(e, per, ctx, cH1); lop3andi(e, per, per, ~(HD - 1u)); /* roundup(ctx, HD): one split takes it all */ + shri(e, x, per, log2hd); /* chunks (cut J: one whole chunk per split) */ + for (uint32_t c = 1; c <= LS; c++) { + movi(e, cK, (1u << c) - 1u); iadd3(e, cand, ctx, cK); shri(e, cand, cand, c); + iadd3(e, cand, cand, cH1); lop3andi(e, cand, cand, ~(HD - 1u)); /* roundup(ceil(ctx / 2^c), HD) */ + movi(e, cK, 0u - (1u << c)); iadd3(e, dd, x, cK); shri(e, lt, dd, 31); /* lt = (x < 2^c) */ + imadi(e, dd, cand, 0xFFFFFFFFu, per); /* per - cand */ + imadr(e, per, lt, dd, cand); /* lt ? per : cand */ + } + imadr(e, kb, split, per, NOREG); + iadd3(e, kend, kb, per); + imadi(e, dd, kend, 0xFFFFFFFFu, ctx); + shri(e, lt, dd, 31); + imadr(e, kend, lt, dd, kend); + } + const int lim = part ? kend : ctx; /* the end of this CTA's token range */ + /* V column base for dimension tid: pool + kv plane + tid * elem. The kv head offset is + * already inside the per-token offset phase A leaves in shared memory (found by the host + * simulator: adding it here too read V from the wrong head for every kv head but 0). */ + wide(e, vb, tid, elem, B); + wide(e, vb, p_kvp, 1, vb); + + /* running max, sum and accumulator per head of the group (GC = 1: one of each, as before) */ + int M[4], L[4], acc[4]; + for (uint32_t g = 0; g < GC; g++) M[g] = V(e); + for (uint32_t g = 0; g < GC; g++) L[g] = V(e); + for (uint32_t g = 0; g < GC; g++) acc[g] = V(e); + int base = V(e), sOff = V(e), oOff = V(e), rOff = V(e); + for (uint32_t g = 0; g < GC; g++) movi(e, M[g], F32_NEG_INF); + for (uint32_t g = 0; g < GC; g++) { if (k->mutant == OMEGA_GPU_ATTN_MUTANT_NO_MAX) movrz(e, L[g]); else movf(e, L[g], 1.0f); } /* alpha = 0 on the first chunk clears it */ + for (uint32_t g = 0; g < GC; g++) movrz(e, acc[g]); + if (part) iadd3(e, base, kb, zero); else movrz(e, base); + iadd3(e, sOff, tid4, c256); iadd3(e, oOff, tid4, c512); iadd3(e, rOff, tid4, c768); + bar_sync(e); /* q visible to every thread */ + if (part) isetp_ge_u32(e, kb, kend); else isetp_ge_u32(e, zero, ctx); /* empty range: out = 0 (an empty partial) */ + int bZ = bra_fwd_if_p0(e); + + /* ---------------- chunk loop ---------------- */ + int j = V(e), s[4], koff; + for (uint32_t g = 0; g < GC; g++) s[g] = V(e); + koff = V(e); + int bi = V(e), sl = V(e), ta = V64(e), blk = V(e), ka = V64(e), dot[4], d; + for (uint32_t g = 0; g < GC; g++) dot[g] = V(e); + d = V(e); + int lo = V(e), hi = V(e), qa = V(e), j1 = V(e); + int dneg = V(e), over = V(e), ot = V(e), ctxm1 = V(e), cm1 = V(e), cninf = V(e), nb = V(e), ns = V(e); + int tsh = GC > 1 ? V(e) : -1; /* per-head shared address temporary (GC > 1 only) */ + movi(e, cm1, 0xFFFFFFFFu); iadd3(e, ctxm1, lim, cm1); movi(e, cninf, F32_NEG_INF); + loop_begin(e); + int Lout = here(e); + /* 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); + for (uint32_t g = 0; g < GC; g++) movi(e, s[g], F32_NEG_INF); + movrz(e, koff); + if (k->divergent) { + /* omega #308 R2: the lane-dependent branch, inside a reconvergence region. Lanes with + * j >= ctx skip phase A (s stays -inf, koff 0); the BSYNC at region_join rejoins them + * before the SHFL reductions below. divergent == 2 drops that BSYNC (negative control). */ + region_begin(e); + isetp_ge_u32(e, j, lim); + region_exit(e, RX_IF_P0); + } else { + imadi(e, dneg, j, 0xFFFFFFFFu, ctxm1); /* ctx - 1 - j */ + shri(e, over, dneg, 31); + imadr(e, ot, over, tid, NOREG); + imadi(e, j, ot, 0xFFFFFFFFu, j); /* j - over*tid */ + } + /* phase A: token j */ + shri(e, bi, j, k->log2bs); + lop3andi(e, sl, j, (1u << k->log2bs) - 1u); + wide(e, ta, bi, 4, tab); + ldg(e, blk, ta, udesc); + imadr(e, koff, blk, p_bstride, NOREG); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_SLOT) { + /* K read from slot (t + 1) % block_size, V from the right slot: a K/V mismatch. + * (Shifting both only permutes matched pairs inside a full block, which softmax cannot see.) */ + int sl1 = V(e); + iadd3(e, j1, j, c1); lop3andi(e, sl1, j1, (1u << k->log2bs) - 1u); + imadr(e, sl1, sl1, p_tstride, koff); + iadd3(e, sl1, sl1, kvoff); + wide(e, ka, sl1, 1, B); + imadr(e, koff, sl, p_tstride, koff); + iadd3(e, koff, koff, kvoff); + } else { + imadr(e, koff, sl, p_tstride, koff); + iadd3(e, koff, koff, kvoff); + wide(e, ka, koff, 1, B); + } + /* phase A inner loop (batched, 2026-10-12): two 128-bit global loads of K per pass on SB_GPR (16 dims + * bf16, 8 dims f32) with the first half of the matching q slice as 128-bit shared loads on SB_LD2, one + * wait; then the second half of q, one more (short) wait. The serial loop before paid one global + * latency per dim pair. Two halves keep the pass inside AT_GPR_BUDGET (the whole slice at once is + * 65 to 76 registers). qa = d * 4 is the shared byte offset of q[d]. GC > 1: the same K pass feeds + * every head of the group, each from its own q slice at SH_Q + g * HB (cut K). */ + const uint32_t dims = k->f32 ? 8u : 16u; /* dims per pass: 32 bytes of K either way */ + const uint32_t nq = dims / 4u; /* q quads per pass, loaded in two halves */ + int kx[2], qq[4]; + kx[0] = V128(e); kx[1] = V128(e); + for (uint32_t i = 0; i < nq; i++) qq[i] = V128(e); + for (uint32_t g = 0; g < GC; g++) movrz(e, dot[g]); + movrz(e, d); + loop_begin(e); + int Lin = here(e); + imadi(e, qa, d, 4, NOREG); + ldg128_b(e, kx[0], ka, 0u, udesc, SB_GPR); + ldg128_b(e, kx[1], ka, 16u, udesc, SB_GPR); + for (uint32_t g = 0; g < GC; g++) { + for (int hh = 0; hh < 2; hh++) { + for (uint32_t i = 0; i < nq / 2u; i++) { uint32_t qi = (uint32_t)hh * (nq / 2u) + i; lds128_b(e, qq[qi], qa, g * HB + qi * 16u, SB_LD2); } + if (k->f32) { + for (int s4 = 0; s4 < 4; s4++) e_ffma_s(e, dot[g], qq[hh], s4, kx[hh], s4, dot[g]); /* dim hh*4+s4 */ + } else { + for (int s4 = 0; s4 < 4; s4++) { + int pi = hh * 4 + s4; /* bf16 pair: dims 2*pi (low half) and 2*pi+1 (high half) */ + imadi_s(e, lo, kx[hh], s4, 0x10000u, NOREG); /* low bf16 -> f32: bits << 16 */ + lop3andi_s(e, hi, kx[hh], s4, 0xffff0000u); /* high bf16 -> f32: keep the top half */ + e_ffma_s(e, dot[g], qq[pi / 2], (pi % 2) * 2, lo, 0, dot[g]); + e_ffma_s(e, dot[g], qq[pi / 2], (pi % 2) * 2 + 1, hi, 0, dot[g]); + } + } + } + } + wide(e, ka, c1, 32u, ka); + imadi(e, d, c1, dims, d); + isetp_ge_u32(e, d, c64); + bra_back_if_not_p0(e, Lin); + loop_end(e); + for (uint32_t g = 0; g < GC; g++) e_fmul(e, s[g], dot[g], scale); + if (k->divergent) { + region_join(e); /* every lane back before the cross-lane reductions */ + } else { + imadi(e, nb, over, 0x80000000u, cninf); /* over ? +inf : -inf (bits) */ + for (uint32_t g = 0; g < GC; g++) { e_fsub(e, ns, zero, s[g]); e_fmax(e, ns, ns, nb); e_fsub(e, s[g], zero, ns); } + } + for (uint32_t g = 0; g < GC; g++) { + if (g == 0) sts32(e, sOff, s[0]); + else { imadi(e, tsh, c1, g * HB, sOff); sts32(e, tsh, s[g]); } + } + sts32(e, oOff, koff); + + /* chunk max, per head */ + int t = V(e), mw = V(e), ra = V(e), rb = V(e), mc = V(e), Mn = V(e), diff = V(e), alpha[4], parg, p, sw, lc; + alpha[0] = V(e); parg = V(e); p = V(e); sw = V(e); lc = V(e); + for (uint32_t g = 1; g < GC; g++) alpha[g] = V(e); + static const uint32_t steps[5] = { 16, 8, 4, 2, 1 }; + for (uint32_t g = 0; g < GC; g++) { + shfl_down(e, t, s[g], steps[0]); e_fmax(e, mw, s[g], t); + for (int i = 1; i < 5; i++) { shfl_down(e, t, mw, steps[i]); e_fmax(e, mw, mw, t); } + if (g == 0) sts32(e, rOff, mw); + else { imadi(e, tsh, c1, g * HB, rOff); sts32(e, tsh, mw); } + } + bar_sync(e); + for (uint32_t g = 0; g < GC; g++) { + const int pg = GC == 1 ? p : s[g]; /* GC > 1: p overwrites the score register of its head */ + if (g == 0) { lds32(e, ra, c768); lds32(e, rb, c896); } + else { imadi(e, tsh, c1, g * HB, c768); lds32(e, ra, tsh); imadi(e, tsh, c1, g * HB, c896); lds32(e, rb, tsh); } + e_fmax(e, mc, ra, rb); + if (HD == 128) { + if (g == 0) { lds32(e, rc_, c1024); lds32(e, rd_, c1152); } + else { imadi(e, tsh, c1, g * HB, c1024); lds32(e, rc_, tsh); imadi(e, tsh, c1, g * HB, c1152); lds32(e, rd_, tsh); } + e_fmax(e, mc, mc, rc_); e_fmax(e, mc, mc, rd_); + } + e_fmax(e, Mn, M[g], mc); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_NO_MAX) { + movf(e, alpha[g], 1.0f); + mufu(e, BW_IR_MUFU_EX2, pg, s[g]); + e_fmax(e, M[g], Mn, mc); + } else { + e_fsub(e, diff, M[g], Mn); + mufu(e, BW_IR_MUFU_EX2, alpha[g], diff); + e_fmax(e, M[g], Mn, mc); /* M = Mn */ + e_fsub(e, parg, s[g], Mn); + mufu(e, BW_IR_MUFU_EX2, pg, parg); + } + } + bar_sync(e); /* everyone has read the max partials before they are overwritten */ + for (uint32_t g = 0; g < GC; g++) { + const int pg = GC == 1 ? p : s[g]; + if (g == 0) sts32(e, sOff, pg); + else { imadi(e, tsh, c1, g * HB, sOff); sts32(e, tsh, pg); } + shfl_down(e, t, pg, steps[0]); e_fadd(e, sw, pg, t); + for (int i = 1; i < 5; i++) { shfl_down(e, t, sw, steps[i]); e_fadd(e, sw, sw, t); } + if (g == 0) sts32(e, rOff, sw); + else { imadi(e, tsh, c1, g * HB, rOff); sts32(e, tsh, sw); } + } + bar_sync(e); + for (uint32_t g = 0; g < GC; g++) { + if (g == 0) { lds32(e, ra, c768); lds32(e, rb, c896); } + else { imadi(e, tsh, c1, g * HB, c768); lds32(e, ra, tsh); imadi(e, tsh, c1, g * HB, c896); lds32(e, rb, tsh); } + e_fadd(e, lc, ra, rb); + if (HD == 128) { + if (g == 0) { lds32(e, rc_, c1024); lds32(e, rd_, c1152); } + else { imadi(e, tsh, c1, g * HB, c1024); lds32(e, rc_, tsh); imadi(e, tsh, c1, g * HB, c1152); lds32(e, rd_, tsh); } + e_fadd(e, lc, lc, rc_); e_fadd(e, lc, lc, rd_); + } + e_ffma(e, L[g], L[g], alpha[g], lc); + if (k->mutant != OMEGA_GPU_ATTN_MUTANT_NO_RESCALE) e_fmul(e, acc[g], acc[g], alpha[g]); + } + + /* phase B (batched, 2026-10-12): dimension tid over the chunk's tokens, AT_TOK tokens per pass. The + * token offsets of a pass come in two 128-bit shared loads (SB_LD2, one wait), then each V address is + * computed into one register pair while the earlier V loads are in flight (emit_fixed_in_batch: the + * read barrier orders the overwrite after the load has read it) and its load issued on SB_GPR or + * SB_LD3; the p values follow as two more shared loads on SB_LD2; one wait for all of it. A token past + * ctx inside a pass has p = 0 and the offset of a real token (phase A), so it adds exactly 0. + * GC > 1: one V load per token feeds every head's accumulator from that head's p slice (cut K). */ + enum { AT_TOK = 8 }; + int kk = V(e), tt = V(e), oa = V(e), pa = V(e), ko4[2], pv4[2], va = V64(e), v[AT_TOK]; + for (int i = 0; i < 2; i++) { ko4[i] = V128(e); pv4[i] = V128(e); } + for (int i = 0; i < AT_TOK; i++) v[i] = V(e); + movrz(e, kk); + loop_begin(e); + int LB = here(e); + iadd3(e, tt, base, kk); + isetp_ge_u32(e, tt, lim); + int bB = bra_fwd_if_p0(e); + imadi(e, oa, kk, 4, c512); + imadi(e, pa, kk, 4, c256); + for (int i = 0; i < 2; i++) lds128_b(e, ko4[i], oa, (uint32_t)i * 16u, SB_LD2); + for (int i = 0; i < AT_TOK; i++) { + if (i == 0) wide_s(e, va, ko4[0], 0, 1, vb); /* ordinary: waits for the offsets */ + else wide_s_b(e, va, ko4[i / 4], i % 4, 1, vb); + uint32_t sb = (i < AT_TOK / 2) ? SB_GPR : SB_LD3; + if (k->f32) ldg_b(e, v[i], va, udesc, sb); else ldg16_b(e, v[i], va, udesc, sb); + } + if (GC == 1) { + for (int i = 0; i < 2; i++) lds128_b(e, pv4[i], pa, (uint32_t)i * 16u, SB_LD2); + for (int i = 0; i < AT_TOK; i++) { + if (!k->f32) imadi(e, v[i], v[i], 0x10000u, NOREG); + e_ffma_s(e, acc[0], pv4[i / 4], i % 4, v[i], 0, acc[0]); + } + } else { + if (!k->f32) for (int i = 0; i < AT_TOK; i++) imadi(e, v[i], v[i], 0x10000u, NOREG); + for (uint32_t g = 0; g < GC; g++) { + for (int i = 0; i < 2; i++) lds128_b(e, pv4[i], pa, g * HB + (uint32_t)i * 16u, SB_LD2); + for (int i = 0; i < AT_TOK; i++) e_ffma_s(e, acc[g], pv4[i / 4], i % 4, v[i], 0, acc[g]); + } + } + imadi(e, kk, c1, AT_TOK, kk); + isetp_ge_u32(e, kk, c64); + bra_back_if_not_p0(e, LB); + loop_end(e); + patch_fwd(e, bB); + bar_sync(e); /* phase B reads of s/p and offsets finish before the next chunk writes them */ + iadd3(e, base, base, c64); + isetp_ge_u32(e, base, lim); + bra_back_if_not_p0(e, Lout); + loop_end(e); + + patch_fwd(e, bZ); + if (part && GC == 1) { + /* partial row (seq * nqh + out head) * S + split: acc[HD] unnormalised, then M and L at words HD and HD + 1 + * (every lane stores the same CTA-wide M and L). Everything is re-derived here from the CTA ids and the + * constant bank so no extra value lives across the chunk loop (the hd 128 kernel sits at the register budget). */ + int cy = V(e), sq = V(e), sp = V(e), hh = V(e), nq_ = V(e), t4 = V(e), prow = V(e), poff = V(e); + int paddr = V64(e), maddr = V64(e), laddr = V64(e), Cp = V64(e); + s2r(e, cy, BW_SR_CTAID_Y); s2r(e, hh, BW_SR_CTAID_X); ldc32(e, nq_, ARG_NQH); ldc64(e, Cp, ARG_OUT); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) lop3xor(e, hh, hh, c1); + if (LS) { lop3andi(e, sp, cy, S - 1u); shri(e, sq, cy, LS); } else { movrz(e, sp); iadd3(e, sq, cy, zero); } + imadr(e, prow, sq, nq_, hh); + imadi(e, prow, prow, S, sp); + imadi(e, t4, tid, 4, NOREG); + imadi(e, poff, prow, (HD + 2u) * 4u, t4); + wide(e, paddr, poff, 1, Cp); + stg(e, paddr, acc[0], udesc); + imadi(e, poff, prow, (HD + 2u) * 4u, NOREG); + wide(e, maddr, poff, 1, Cp); + wide(e, maddr, c64, 4, maddr); + stg(e, maddr, M[0], udesc); + wide(e, laddr, c1, 4, maddr); + stg(e, laddr, L[0], udesc); + } else if (part) { + /* GC heads: row (seq * nqh + h * GC + g) * S + split for head g (OUT_ROW: g ^ 1 on the output side) */ + int cy = V(e), sq = V(e), sp = V(e), h0 = V(e), hg = V(e), nq_ = V(e), t4 = V(e), prow = V(e), poff = V(e); + int paddr = V64(e), maddr = V64(e), laddr = V64(e), Cp = V64(e); + s2r(e, cy, BW_SR_CTAID_Y); s2r(e, h0, BW_SR_CTAID_X); ldc32(e, nq_, ARG_NQH); ldc64(e, Cp, ARG_OUT); + imadi(e, h0, h0, GC, NOREG); + if (LS) { lop3andi(e, sp, cy, S - 1u); shri(e, sq, cy, LS); } else { movrz(e, sp); iadd3(e, sq, cy, zero); } + imadi(e, t4, tid, 4, NOREG); + for (uint32_t g = 0; g < GC; g++) { + imadi(e, hg, c1, g, h0); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) lop3xor(e, hg, hg, c1); + imadr(e, prow, sq, nq_, hg); + imadi(e, prow, prow, S, sp); + imadi(e, poff, prow, (HD + 2u) * 4u, t4); + wide(e, paddr, poff, 1, Cp); + stg(e, paddr, acc[g], udesc); + imadi(e, poff, prow, (HD + 2u) * 4u, NOREG); + wide(e, maddr, poff, 1, Cp); + wide(e, maddr, c64, 4, maddr); + stg(e, maddr, M[g], udesc); + wide(e, laddr, c1, 4, maddr); + stg(e, laddr, L[g], udesc); + } + } else if (GC == 1) { + int inv = V(e), o = V(e); + mufu(e, BW_IR_MUFU_RCP, inv, L[0]); + e_fmul(e, o, acc[0], inv); + stg(e, oaddr, o, udesc); + } else { + /* direct output, GC heads: row seq * nqh + h * GC + g (OUT_ROW: g ^ 1), re-derived from the CTA ids */ + int inv = V(e), o = V(e), cy = V(e), h0 = V(e), hg = V(e), nq_ = V(e), t4 = V(e), orow = V(e), ooff = V(e); + int oa64 = V64(e), Cp = V64(e); + s2r(e, cy, BW_SR_CTAID_Y); s2r(e, h0, BW_SR_CTAID_X); ldc32(e, nq_, ARG_NQH); ldc64(e, Cp, ARG_OUT); + imadi(e, h0, h0, GC, NOREG); + imadi(e, t4, tid, 4, NOREG); + for (uint32_t g = 0; g < GC; g++) { + imadi(e, hg, c1, g, h0); + if (k->mutant == OMEGA_GPU_ATTN_MUTANT_OUT_ROW) lop3xor(e, hg, hg, c1); + imadr(e, orow, cy, nq_, hg); + imadi(e, ooff, orow, HD * 4, t4); + wide(e, oa64, ooff, 1, Cp); + mufu(e, BW_IR_MUFU_RCP, inv, L[g]); + e_fmul(e, o, acc[g], inv); + stg(e, oa64, o, udesc); + } + } + tail(e); +} + +#define AT_GPR_BUDGET 96u /* cut K: the GQA-group hd 128 kernel carries four heads of running state (the matmul blocked kernels launch at 108) */ + +static int build_kernel(const KSpec *k, OmegaBlackwellKernel *kernel, BlackwellIRProgram **keep) { + BlackwellIRProgram *prog = omega_gpu_host_calloc(1, sizeof *prog); + if (!prog) return OMEGA_GPU_ATTN_CODEGEN_FAIL; + omega_bw_ir_init(prog); + Em e; memset(&e, 0, sizeof e); e.p = prog; + e.rg_mutant = (k->divergent == 2) ? 1 : 0; + gen_attention(&e, k); + if (e.depth != 0) e.err = -1; + if (e.rg.depth != 0) e.err = -1; /* a region left open has no join: refuse the build */ + int rc = OMEGA_GPU_ATTN_CODEGEN_FAIL; + int ra_rc = (e.err == 0) ? omega_bw_regalloc_solve(prog) : -1; + int loop_rc = (ra_rc == 0) ? check_loop_invariant(&e) : -1; +#ifdef OMEGA_ATTN_DEBUG + fprintf(stderr, "attn codegen f32=%d log2bs=%u log2gqa=%u mutant=%d emit_err=%d insns=%zu vregs=%d regalloc=%d loops=%d peak_gpr=%u\n", + (int)k->f32, k->log2bs, k->log2gqa, k->mutant, e.err, prog->count, prog->regalloc.num_vregs, ra_rc, loop_rc, prog->regalloc.peak_gpr_usage); +#endif + if (e.err == 0 && ra_rc == 0 && loop_rc == 0 && prog->regalloc.peak_gpr_usage <= AT_GPR_BUDGET) { + size_t max_bytes = (size_t)BW_MAX_IR_INSNS * 16; + memset(kernel, 0, sizeof *kernel); + kernel->code = omega_gpu_host_alloc(max_bytes); + size_t emitted = 0; + if (kernel->code && omega_bw_encode_program(prog, kernel->code, max_bytes, &emitted) == 0) { + kernel->code_size = emitted; + kernel->insn_count = emitted / 16; + kernel->gpr_count = prog->regalloc.peak_gpr_usage; + kernel->uniform_gpr_count = prog->regalloc.peak_ugpr_usage; + sha256_hash(kernel->code, kernel->code_size, kernel->code_digest); + rc = OMEGA_GPU_ATTN_OK; + } else { + omega_gpu_host_free(kernel->code); kernel->code = NULL; + } + } + if (keep && rc == OMEGA_GPU_ATTN_OK) *keep = prog; else omega_gpu_host_free(prog); + return rc; +} + +/* --------------------------------------------------------- kernel cache */ + +/* One kernel per KSpec; the device copy is uploaded once and stays resident for + * the process (cut 4b). The IR program is kept for the host simulator. */ +static int g_mutant; +static int g_divergent; /* omega #308 R2 test hook: see KSpec.divergent */ +static bool g_dedupe = true; /* shared-prefix staging dedupe; false = legacy per-sequence staging (test hook) */ +typedef struct { int used; KSpec k; OmegaBlackwellKernel kernel; BlackwellIRProgram *prog; OmegaGpuMem code; } Slot; +static OmegaGpuAttnSim g_sim; +static Slot g_cache[16]; /* split variants (cut F) multiply the shapes in flight */ +static int g_split = -1; /* test hook: forced log2split (0..OMEGA_GPU_ATTN_MAX_LOG2SPLIT), -1 = chosen per launch from the context */ +static OmegaGpuScratch g_q, g_pool, g_tab, g_out; /* staging, grown to the high-water mark, reused per call */ +static OmegaGpuMem g_resident; /* the resident KV pool (omega_gpu_attention_pool_alloc); cpu NULL = none */ +static bool g_hooked; +#define LOCK() omega_gpu_session_lock() +#define UNLOCK() omega_gpu_session_unlock() + +void omega_gpu_attention_test_set_simulator(OmegaGpuAttnSim sim) { LOCK(); g_sim = sim; UNLOCK(); } +static uint32_t g_sim_shared_bytes; /* shared bytes the launcher would declare for the kernel the simulator is running */ +uint32_t omega_gpu_attention_test_shared_bytes(void) { return g_sim_shared_bytes; } +void omega_gpu_attention_test_set_dedupe(bool on) { LOCK(); g_dedupe = on; UNLOCK(); } +void omega_gpu_attention_test_set_split(int log2split) { LOCK(); g_split = (log2split >= 0 && log2split <= (int)OMEGA_GPU_ATTN_MAX_LOG2SPLIT) ? log2split : -1; UNLOCK(); } + +/* ---- resident KV pool (see the header) ---- */ + +static int dev_open_locked(void); + +/* The kernel computes block_id * block_stride + slot * token_stride + head offset in 32 bits before + * widening onto the 64-bit layer base: one layer slice (both planes, every token and head of the + * block) past the block's start must stay inside 32 bits. */ +static bool resident_fits(const OmegaGpuKvLayout *ly, uint32_t block_id) { + return ly->block_stride_bytes <= 0xffffffffull && + (uint64_t)block_id * ly->block_stride_bytes + ly->layer_stride_bytes <= 0xffffffffull; +} +bool omega_gpu_attention_test_resident_fits(const OmegaGpuKvLayout *layout, uint32_t block_id) { + return layout && resident_fits(layout, block_id); +} + +int omega_gpu_attention_pool_alloc(size_t bytes, void **cpu) { + if (!cpu || bytes == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + *cpu = NULL; + LOCK(); + if (g_resident.cpu) { omega_gpu_session_set_error("attention pool: already allocated"); UNLOCK(); return OMEGA_GPU_ATTN_BAD_ARGS; } + if (g_sim) { + g_resident.cpu = omega_gpu_host_calloc(1, bytes); + if (!g_resident.cpu) { UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + g_resident.va = (uintptr_t)g_resident.cpu; g_resident.size = bytes; + } else { + int rc = dev_open_locked(); + if (rc != OMEGA_GPU_ATTN_OK) { UNLOCK(); return rc; } + if (omega_gpu_session_alloc(bytes, &g_resident) != 0) { memset(&g_resident, 0, sizeof g_resident); UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + } + *cpu = g_resident.cpu; + UNLOCK(); + return OMEGA_GPU_ATTN_OK; +} + +void omega_gpu_attention_pool_free(void) { + LOCK(); + if (g_resident.cpu) { if (g_sim) omega_gpu_host_free(g_resident.cpu); else omega_gpu_session_free(&g_resident); } + memset(&g_resident, 0, sizeof g_resident); + UNLOCK(); +} + +static void cache_clear_locked(void) { + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used) { omega_gpu_host_free(g_cache[i].kernel.code); omega_gpu_host_free(g_cache[i].prog); omega_gpu_session_free(&g_cache[i].code); memset(&g_cache[i], 0, sizeof g_cache[i]); } +} + +void omega_gpu_attention_cache_clear(void) { + LOCK(); + cache_clear_locked(); + UNLOCK(); +} + +/* Called by the session (lock held, device still open) right before it closes. */ +static void on_session_close(void) { + cache_clear_locked(); + memset(&g_resident, 0, sizeof g_resident); /* the session's memory goes with it; the caller's mapping is dead */ + omega_gpu_session_scratch_free(&g_q); omega_gpu_session_scratch_free(&g_pool); + omega_gpu_session_scratch_free(&g_tab); omega_gpu_session_scratch_free(&g_out); +} + +void omega_gpu_attention_test_set_mutant(OmegaGpuAttnMutant m) { + LOCK(); + g_mutant = (int)m; + cache_clear_locked(); + UNLOCK(); +} + +/* Caller holds the lock. Builds the kernel if needed; uploads the device copy when + * `upload` (the chip path; the simulator never needs one). */ +static int kernel_for(bool f32, uint32_t log2bs, uint32_t log2gqa, uint32_t hd, int split, bool upload, Slot **out, bool *hit) { + KSpec k = { .f32 = f32, .log2bs = log2bs, .log2gqa = log2gqa, .mutant = g_mutant, .divergent = g_divergent, .hd = hd, .split = split }; + Slot *s = NULL; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used && g_cache[i].k.f32 == k.f32 && g_cache[i].k.log2bs == k.log2bs && g_cache[i].k.log2gqa == k.log2gqa && g_cache[i].k.mutant == k.mutant && g_cache[i].k.divergent == k.divergent && g_cache[i].k.hd == k.hd && g_cache[i].k.split == k.split) { /* field compare: memcmp would read struct padding */ + s = &g_cache[i]; *hit = true; break; + } + if (!s) { + OmegaBlackwellKernel kern; BlackwellIRProgram *kp = NULL; + int rc = build_kernel(&k, &kern, &kp); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + size_t slot = 0; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) if (!g_cache[i].used) { slot = i; break; } + s = &g_cache[slot]; + if (s->used) { omega_gpu_host_free(s->kernel.code); omega_gpu_host_free(s->prog); omega_gpu_session_free(&s->code); } /* full: evict slot 0 */ + memset(s, 0, sizeof *s); + s->used = 1; s->k = k; s->kernel = kern; s->prog = kp; + *hit = false; + } + if (upload && !s->code.cpu) { + if (omega_gpu_session_alloc_code(s->kernel.code_size, &s->code) != 0) return OMEGA_GPU_ATTN_CHIP_FAIL; + memcpy(s->code.cpu, s->kernel.code, s->kernel.code_size); + if (omega_gpu_session_sync_to_gpu(&s->code) != 0) { omega_gpu_session_free(&s->code); return OMEGA_GPU_ATTN_CHIP_FAIL; } + } + *out = s; + return OMEGA_GPU_ATTN_OK; +} + +int omega_gpu_attention_codegen_hd(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, uint32_t head_dim, OmegaBlackwellKernel *kernel) { + if (!kernel || log2_block_size > 16 || log2_gqa > 6) return OMEGA_GPU_ATTN_BAD_ARGS; + if (head_dim != 64u && head_dim != 128u) return OMEGA_GPU_ATTN_TOO_LARGE; + LOCK(); + KSpec k = { .f32 = kv_f32, .log2bs = log2_block_size, .log2gqa = log2_gqa, .mutant = g_mutant, .divergent = g_divergent, .hd = head_dim, .split = -1 }; + UNLOCK(); + return build_kernel(&k, kernel, NULL); +} + +int omega_gpu_attention_codegen(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, OmegaBlackwellKernel *kernel) { + return omega_gpu_attention_codegen_hd(kv_f32, log2_block_size, log2_gqa, OMEGA_GPU_ATTN_HEAD_DIM, kernel); +} + +const char *omega_gpu_attention_last_error(void) { return omega_gpu_session_last_error(); } + +/* ------------------------------------------------------------ launcher */ + +#define AT_POISON 0xffbadbadu +#define AT_WAIT_MS 600000ull + +static uint64_t now_ns(void) { return omega_gpu_session_now_ns(); } /* the platform clock (CLOCK_NS) */ + +typedef OmegaGpuAttnLaunch Launch; + +/* Caller holds the lock. Chip path: open the shared device on first use. */ +static int dev_open_locked(void) { + if (!g_hooked) { (void)omega_gpu_session_on_close(on_session_close); g_hooked = true; } + return omega_gpu_session_open() ? OMEGA_GPU_ATTN_OK : OMEGA_GPU_ATTN_CHIP_FAIL; +} + +/* Where a call stages the KV slice it is about to hand the kernel: straight into the + * device staging buffer on the chip path (one copy), a host buffer under the simulator. + * Caller holds the lock; the result is valid until the next staging call. */ +static void *stage_target(size_t bytes, void **host_tmp, int *fail_rc) { + *host_tmp = NULL; + *fail_rc = OMEGA_GPU_ATTN_CHIP_FAIL; + if (g_sim) { *host_tmp = omega_gpu_host_alloc(bytes ? bytes : 1); return *host_tmp; } + int r = omega_gpu_session_scratch(&g_pool, bytes); + if (r != 0) { if (r == OMEGA_GPU_SESSION_SCRATCH_RESERVED) *fail_rc = OMEGA_GPU_ATTN_TOO_LARGE; return NULL; } /* reserved bound exceeded: loud, no allocation */ + return g_pool.mem.cpu; +} + +/* One launch through the shared session (omega_gpu_session_launch: shader-cache + * invalidate, constant bank, QMD0/QMD1, first marker, L2_FLUSH_DIRTY, second marker), + * then readback and the poison scan. L->pool may already be the pool staging buffer. */ +static int run_launch(const Slot *ks, const Launch *L, OmegaGpuAttnInfo *info) { + int sr = omega_gpu_session_scratch(&g_q, L->q_bytes); + if (!sr) sr = omega_gpu_session_scratch(&g_tab, L->tab_bytes); + if (!sr) sr = omega_gpu_session_scratch(&g_out, L->out_bytes); + if (!sr && !L->pool_va && L->pool != g_pool.mem.cpu) sr = omega_gpu_session_scratch(&g_pool, L->pool_bytes); + if (sr) return sr == OMEGA_GPU_SESSION_SCRATCH_RESERVED ? OMEGA_GPU_ATTN_TOO_LARGE : OMEGA_GPU_ATTN_CHIP_FAIL; + memcpy(g_q.mem.cpu, L->q, L->q_bytes); + if (!L->pool_va && L->pool != g_pool.mem.cpu) memcpy(g_pool.mem.cpu, L->pool, L->pool_bytes); + const uint64_t pool_va = L->pool_va ? L->pool_va : g_pool.mem.va; /* resident: the caller's KV, read in place */ + memcpy(g_tab.mem.cpu, L->tab, L->tab_bytes); + size_t out_words = L->out_bytes / 4; + uint32_t *out_dev = (uint32_t *)g_out.mem.cpu; + for (size_t i = 0; i < out_words; i++) out_dev[i] = AT_POISON; + /* the KV this launch reads: the staged pool, or the resident pool the caller wrote in place */ + if (omega_gpu_session_sync_to_gpu(&g_q.mem) != 0 || omega_gpu_session_sync_to_gpu(&g_tab.mem) != 0 || + omega_gpu_session_sync_to_gpu(&g_out.mem) != 0 || omega_gpu_session_sync_to_gpu(L->pool_va ? &g_resident : &g_pool.mem) != 0) + return OMEGA_GPU_ATTN_CHIP_FAIL; + + uint32_t args[ARG_WORDS]; + args[0] = (uint32_t)g_q.mem.va; args[1] = (uint32_t)(g_q.mem.va >> 32); + args[2] = (uint32_t)pool_va; args[3] = (uint32_t)(pool_va >> 32); + args[4] = (uint32_t)g_out.mem.va; args[5] = (uint32_t)(g_out.mem.va >> 32); + args[6] = (uint32_t)g_tab.mem.va; args[7] = (uint32_t)(g_tab.mem.va >> 32); + memcpy(&args[8], L->params, sizeof L->params); + OmegaGpuLaunch GL = { + .code_va = ks->code.va, .gpr_count = AT_GPR_BUDGET, .threads_x = ks->k.hd, .threads_y = 1, .shared_bytes = shared_bytes_for(ks->k.hd, ks->k.log2gqa), /* (3 GC + 1) arrays of hd words: 1024 B for hd 64, 2048 B for hd 128 gqa 1, 6656 B for hd 128 gqa 4 */ + .grid_x = L->grid_x, .grid_y = L->grid_y, .num_elements = out_words, + .args = args, .n_args = ARG_WORDS, .timeout_ms = AT_WAIT_MS, + }; + uint64_t elapsed = 0; uint32_t marker = 0; + if (omega_gpu_session_launch(&GL, &elapsed, &marker) != 0) return OMEGA_GPU_ATTN_CHIP_FAIL; + if (omega_gpu_session_sync_to_cpu(&g_out.mem) != 0) return OMEGA_GPU_ATTN_CHIP_FAIL; + + memcpy(L->out, g_out.mem.cpu, L->out_bytes); + uint32_t unwritten = 0; + for (size_t i = 0; i < out_words; i++) if (((uint32_t *)L->out)[i] == AT_POISON) unwritten++; + if (info) { + info->chip_calls++; + info->elapsed_ns += elapsed; + info->completion_marker = marker; + info->unwritten_words += unwritten; + info->threads_per_cta = ks->k.hd; + info->ctas_last_launch = L->grid_x * L->grid_y; + } + return unwritten ? OMEGA_GPU_ATTN_UNWRITTEN : OMEGA_GPU_ATTN_OK; +} + +/* Caller holds the lock. Accounts the launch's q / table / output traffic (the KV + * staging bytes are accounted where the slices are copied). */ +static int launch(const Slot *ks, const Launch *L, OmegaGpuAttnInfo *info) { + if (info) { + info->q_bytes += L->q_bytes; info->tab_bytes += L->tab_bytes; info->out_bytes += L->out_bytes; + info->kv_source = L->pool_va ? OMEGA_GPU_ATTN_KV_RESIDENT : OMEGA_GPU_ATTN_KV_STAGED; + } + if (g_sim) { g_sim_shared_bytes = shared_bytes_for(ks->k.hd, ks->k.log2gqa); return g_sim(ks->prog, L, info); } + return run_launch(ks, L, info); +} + +/* ---- opt-in serving reservation (see the header) ---- */ + +static int check_heads(uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t *log2gqa); +static int log2_exact(uint32_t v, uint32_t *out); + +int omega_gpu_attention_reserve(uint32_t max_context, uint32_t max_seqs, uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t kv_block_size) { + uint32_t log2gqa, log2bs; + if (max_context == 0 || max_seqs == 0) { omega_gpu_session_set_error("attention reserve: zero bound"); return OMEGA_GPU_ATTN_BAD_ARGS; } + if (kv_block_size && log2_exact(kv_block_size, &log2bs) != 0) { omega_gpu_session_set_error("attention reserve: block size not a power of two"); return OMEGA_GPU_ATTN_BAD_ARGS; } + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) { omega_gpu_session_set_error("attention reserve: bad head shape"); return rc; } + /* KV staging, worst case over the two paths, per sequence: contiguous f32 holds both planes for max_context tokens + * (2 * ctx * kvh * hd * 4); paged bf16 stages whole blocks of both planes (round_up(ctx, block) * kvh * hd * 4), which + * is the larger one when max_context is under half a block. */ + size_t per_seq = 2u * max_context * (size_t)num_kv_heads * head_dim * 4u; + if (kv_block_size) { + size_t paged = ((size_t)max_context + kv_block_size - 1) / kv_block_size * kv_block_size * num_kv_heads * head_dim * 4u; + if (paged > per_seq) per_seq = paged; + } + const size_t pool = per_seq * max_seqs; + /* q rows for every sequence, and the output buffer sized for the paged path's partials of one launch + * (cut J: up to 2^MAX_LOG2SPLIT partials of head_dim + 2 words per (sequence, head), at most + * MAX_CTAS / num_q_heads sequences per launch; the rows reserve usually asks for more). */ + const size_t q_bytes = (size_t)max_seqs * num_q_heads * head_dim * 4u; + size_t launch_seqs = OMEGA_GPU_ATTN_MAX_CTAS / num_q_heads; + if (launch_seqs == 0) launch_seqs = 1; + if (launch_seqs > max_seqs) launch_seqs = max_seqs; + const size_t partials = launch_seqs * num_q_heads * ((size_t)1u << OMEGA_GPU_ATTN_MAX_LOG2SPLIT) * ((size_t)head_dim + 2u) * 4u; + const size_t qo = q_bytes > partials ? q_bytes : partials; + const size_t tab = ((size_t)max_seqs * max_context + max_seqs) * 4u; + LOCK(); + rc = OMEGA_GPU_ATTN_OK; + if (g_sim) rc = OMEGA_GPU_ATTN_OK; /* the simulator stages in host memory: nothing to reserve */ + else if (dev_open_locked() != OMEGA_GPU_ATTN_OK) rc = OMEGA_GPU_ATTN_CHIP_FAIL; + else if (omega_gpu_session_scratch_reserve(&g_pool, pool) || omega_gpu_session_scratch_reserve(&g_q, q_bytes) || + omega_gpu_session_scratch_reserve(&g_out, qo) || omega_gpu_session_scratch_reserve(&g_tab, tab < 8 ? 8 : tab)) { + /* roll back this API's own buffers: a failed reserve leaves nothing flagged (growth allowed as before) */ + omega_gpu_session_scratch_unreserve(&g_pool); omega_gpu_session_scratch_unreserve(&g_q); + omega_gpu_session_scratch_unreserve(&g_out); omega_gpu_session_scratch_unreserve(&g_tab); + rc = OMEGA_GPU_ATTN_CHIP_FAIL; + } + UNLOCK(); + return rc; +} + +int omega_gpu_attention_reserve_rows(uint32_t max_rows, uint32_t num_q_heads, uint32_t head_dim) { + if (max_rows == 0 || num_q_heads == 0 || num_q_heads > OMEGA_GPU_ATTN_MAX_Q_HEADS || (head_dim != 64u && head_dim != 128u)) { + omega_gpu_session_set_error("attention reserve rows: bad bound"); + return OMEGA_GPU_ATTN_BAD_ARGS; + } + uint32_t per = OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads; + if (per == 0) per = 1; + if (per > max_rows) per = max_rows; + const size_t qo = (size_t)per * num_q_heads * head_dim * 4u, tab = (size_t)per * 8u; + LOCK(); + int rc = OMEGA_GPU_ATTN_OK; + if (g_sim) rc = OMEGA_GPU_ATTN_OK; + else if (dev_open_locked() != OMEGA_GPU_ATTN_OK) rc = OMEGA_GPU_ATTN_CHIP_FAIL; + else if ((qo > g_q.cap && omega_gpu_session_scratch_reserve(&g_q, qo)) || + (qo > g_out.cap && omega_gpu_session_scratch_reserve(&g_out, qo)) || + (tab > g_tab.cap && omega_gpu_session_scratch_reserve(&g_tab, tab))) + rc = OMEGA_GPU_ATTN_CHIP_FAIL; /* growth failed; whatever grew stays reserved at its larger size */ + UNLOCK(); + return rc; +} +void omega_gpu_attention_unreserve(void) { + LOCK(); + omega_gpu_session_scratch_unreserve(&g_pool); omega_gpu_session_scratch_unreserve(&g_q); + omega_gpu_session_scratch_unreserve(&g_out); omega_gpu_session_scratch_unreserve(&g_tab); + UNLOCK(); +} + +/* ------------------------------------------------------- public entries */ + +static void info_begin(OmegaGpuAttnInfo *info, const OmegaBlackwellKernel *k, bool hit) { + if (!info) return; + memset(info, 0, sizeof *info); + info->kernel_cache_hit = hit; + info->gpr_count = k->gpr_count; + info->insn_count = (uint32_t)k->insn_count; + omega_gpu_fmt(info->target_chip, sizeof info->target_chip, "NVIDIA DGX Spark (Grace Blackwell GB10)"); + info->sm_architecture = 121; +} +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static int log2_exact(uint32_t v, uint32_t *out) { + if (v == 0 || (v & (v - 1))) return -1; + uint32_t l = 0; while ((1u << l) != v) l++; + *out = l; return 0; +} +/* log2(e) / sqrt(head_dim) with the square roots as literals (8 and 11.313708498984761 = sqrt(128), both exactly what sqrt() returns): + * the library must not need libm (omegatool links without -lm; a constant head_dim folded sqrt away, a runtime one does not). */ +static float score_scale(uint32_t hd) { return (float)(1.4426950408889634 / (hd == 128u ? 11.313708498984761 : 8.0)); } + +/* Common head-shape checks; returns log2 of the gqa ratio. */ +static int check_heads(uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t *log2gqa) { + if (num_q_heads == 0 || num_kv_heads == 0 || head_dim == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + if ((head_dim != 64u && head_dim != 128u) || num_q_heads > OMEGA_GPU_ATTN_MAX_Q_HEADS) return OMEGA_GPU_ATTN_TOO_LARGE; + if (num_q_heads % num_kv_heads != 0 || log2_exact(num_q_heads / num_kv_heads, log2gqa) != 0) return OMEGA_GPU_ATTN_BAD_ARGS; + return OMEGA_GPU_ATTN_OK; +} + +/* Common prologue of every chip entry (lock held on success): device, kernel, info. */ +static int begin(bool f32, uint32_t log2bs, uint32_t log2gqa, uint32_t hd, int split, Slot **ks, OmegaGpuAttnInfo *info) { + LOCK(); + int rc = g_sim ? OMEGA_GPU_ATTN_OK : dev_open_locked(); + bool hit = false; + if (rc == OMEGA_GPU_ATTN_OK) rc = kernel_for(f32, log2bs, log2gqa, hd, split, !g_sim, ks, &hit); + if (rc != OMEGA_GPU_ATTN_OK) { UNLOCK(); return rc; } + info_begin(info, &(*ks)->kernel, hit); + return OMEGA_GPU_ATTN_OK; +} + +int omega_gpu_gqa_attention_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t seq_len, uint32_t num_q_heads, uint32_t num_kv_heads, + uint32_t head_dim, float *out, OmegaGpuAttnInfo *info) { + uint64_t t0 = now_ns(); + if (!q || !k_cache || !v_cache || !out) return OMEGA_GPU_ATTN_BAD_ARGS; + uint32_t log2gqa; + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + if (seq_len > OMEGA_GPU_ATTN_MAX_GQA_CTX) return OMEGA_GPU_ATTN_TOO_LARGE; + const uint32_t HD = head_dim; + size_t n_out = (size_t)num_q_heads * HD; + if (seq_len == 0) { memset(out, 0, n_out * 4); if (info) { memset(info, 0, sizeof *info); info->call_ns = now_ns() - t0; } return OMEGA_GPU_ATTN_OK; } + Slot *ks = NULL; + const uint32_t log2bs = 12; /* one block of 4096 slots */ + rc = begin(true, log2bs, log2gqa, HD, -1, &ks, info); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + size_t plane = (size_t)seq_len * num_kv_heads * HD * 4; + void *host_tmp = NULL; + int stage_rc; + uint8_t *pool = stage_target(2 * plane, &host_tmp, &stage_rc); + if (!pool) { UNLOCK(); return stage_rc; } + memcpy(pool, k_cache, plane); + memcpy(pool + plane, v_cache, plane); + if (info) { info->kv_bytes_staged += 2 * plane; info->kv_bytes_naive += 2 * plane; info->kv_blocks_logical += 1; info->kv_blocks_unique += 1; } /* one contiguous pseudo-block */ + uint32_t tab[2] = { 0, seq_len }; /* table row {0}, then the context length at byte 4 */ + Launch L = { + .q = q, .q_bytes = n_out * 4, .pool = pool, .pool_bytes = 2 * plane, .tab = tab, .tab_bytes = sizeof tab, + .out = out, .out_bytes = n_out * 4, .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = 1, + .params = { 1, f2u(score_scale(HD)), (uint32_t)(2 * plane), num_kv_heads * HD * 4, (uint32_t)plane, HD * 4, num_q_heads, 4 } + }; + rc = launch(ks, &L, info); + omega_gpu_host_free(host_tmp); + UNLOCK(); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +/* Rows per launch of the rows path: the CTA bound, then (under a reservation) what the q buffer holds. Caller holds the lock. */ +static uint32_t rows_per_launch(uint32_t num_rows, uint32_t num_q_heads, size_t row_bytes) { + uint32_t per = OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads; + if (per == 0) per = 1; + if (per > num_rows) per = num_rows; + if (!g_sim && g_q.reserved && g_q.cap >= row_bytes) { + size_t fit = g_q.cap / row_bytes; + if (fit < per) per = (uint32_t)fit; + } + return per; +} + +int omega_gpu_gqa_attention_rows_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t base_len, uint32_t num_rows, uint32_t num_q_heads, + uint32_t num_kv_heads, uint32_t head_dim, float *out, OmegaGpuAttnInfo *info) { + uint64_t t0 = now_ns(); + if (!q || !k_cache || !v_cache || !out || num_rows == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + uint32_t log2gqa; + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + if ((uint64_t)base_len + num_rows > OMEGA_GPU_ATTN_MAX_GQA_CTX) return OMEGA_GPU_ATTN_TOO_LARGE; + const uint32_t HD = head_dim, total = base_len + num_rows; + const size_t row = (size_t)num_q_heads * HD; + Slot *ks = NULL; + const uint32_t log2bs = 12; /* one block of 4096 slots, as the single-row call */ + rc = begin(true, log2bs, log2gqa, HD, -1, &ks, info); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + /* the whole context (every row's keys are a prefix of it) staged once */ + size_t plane = (size_t)total * num_kv_heads * HD * 4; + void *host_tmp = NULL; + int stage_rc; + uint8_t *pool = stage_target(2 * plane, &host_tmp, &stage_rc); + if (!pool) { UNLOCK(); return stage_rc; } + memcpy(pool, k_cache, plane); + memcpy(pool + plane, v_cache, plane); + if (info) { info->kv_bytes_staged += 2 * plane; info->kv_bytes_naive += (uint64_t)num_rows * 2 * plane; info->kv_blocks_logical += num_rows; info->kv_blocks_unique += 1; } + const uint32_t per = rows_per_launch(num_rows, num_q_heads, row * 4); + /* table of one launch: per block ids (all 0: the one staged block), then per context lengths */ + uint32_t *tab = omega_gpu_host_calloc(2 * (size_t)per, sizeof *tab); + if (!tab) { omega_gpu_host_free(host_tmp); UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + for (uint32_t r0 = 0; r0 < num_rows && rc == OMEGA_GPU_ATTN_OK; r0 += per) { + const uint32_t nr = num_rows - r0 < per ? num_rows - r0 : per; + for (uint32_t i = 0; i < nr; i++) { tab[i] = 0; tab[nr + i] = base_len + r0 + i + 1; } + Launch L = { + .q = q + (size_t)r0 * row, .q_bytes = (size_t)nr * row * 4, .pool = pool, .pool_bytes = 2 * plane, + .tab = tab, .tab_bytes = (size_t)2 * nr * 4, .out = out + (size_t)r0 * row, .out_bytes = (size_t)nr * row * 4, + .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = nr, + .params = { 1, f2u(score_scale(HD)), (uint32_t)(2 * plane), num_kv_heads * HD * 4, (uint32_t)plane, HD * 4, num_q_heads, nr * 4 } + }; + rc = launch(ks, &L, info); + } + omega_gpu_host_free(tab); + omega_gpu_host_free(host_tmp); + UNLOCK(); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +/* Paged path shared by the single and batched entries. tables[s] has n_blocks[s] entries + * (already filtered of negatives), ctx[s] the context length. */ +/* cut F: a sequence's own split count from its context alone (the kernel computes the same): log2 of the largest + * power of two <= min(2^MAX_LOG2SPLIT, chunks), chunks = ceil(ctx / HD) (cut J: one whole chunk per split; cut F took two). */ +static uint32_t own_log2split(uint32_t ctx, uint32_t HD) { + uint32_t x = (ctx + HD - 1) / HD, l = 0; + while (l < OMEGA_GPU_ATTN_MAX_LOG2SPLIT && (2u << l) <= x) l++; + return l; +} + +/* 2^x in float without the math library (the engine archive also links where there is none): round x to the + * nearest integer n, 2^f on f in [-0.5, 0.5] by the Cephes exp2f polynomial, scale by 2^n through the exponent + * bits. x <= -127 (so also -inf, an empty split) is 0. The combine only passes x <= 0. */ +static float host_exp2(float x) { + if (x <= -127.0f) return 0.0f; + if (x > 127.0f) x = 127.0f; + int n = (int)(x + (x < 0.0f ? -0.5f : 0.5f)); + const float f = x - (float)n; + float px = 1.535336188319500e-4f; + px = px * f + 1.339887440266574e-3f; + px = px * f + 9.618437357674640e-3f; + px = px * f + 5.550332471162809e-2f; + px = px * f + 2.402264791363012e-1f; + px = px * f + 6.931472028550421e-1f; + px = 1.0f + f * px; + if (n < -126) { px *= 0.5f; n = -126; } + union { uint32_t u; float f; } sc; + sc.u = (uint32_t)(n + 127) << 23; + return px * sc.f; +} + +/* cut F: fold the per-split partials of each (sequence, head) row into out. w_s = 2^(M_s - max M): the kernel's + * running max and sum live in the log2 domain (scale carries log2 e, MUFU.EX2). A row whose every split is empty + * (context 0) is 0. */ +static void combine_splits(const float *part, float *out, size_t rows, uint32_t S, uint32_t HD) { + const size_t pw = (size_t)HD + 2; + for (size_t r = 0; r < rows; r++) { + const float *p = part + r * S * pw; + float *o = out + r * HD; + float mx = -__builtin_inff(); + for (uint32_t s = 0; s < S; s++) if (p[s * pw + HD] > mx) mx = p[s * pw + HD]; + if (!(mx > -__builtin_inff())) { memset(o, 0, (size_t)HD * 4); continue; } + float w[1u << OMEGA_GPU_ATTN_MAX_LOG2SPLIT], lsum = 0.0f; + for (uint32_t s = 0; s < S; s++) { w[s] = host_exp2(p[s * pw + HD] - mx); lsum += w[s] * p[s * pw + HD + 1]; } + const float inv = 1.0f / lsum; + for (uint32_t d = 0; d < HD; d++) { + float a = 0.0f; + for (uint32_t s = 0; s < S; s++) a += w[s] * p[s * pw + d]; + o[d] = a * inv; + } + } +} + +static int paged_core(const float *q, const uint8_t *pool, const OmegaGpuKvLayout *ly, + const uint32_t *const *tables, const uint32_t *n_blocks, const uint32_t *ctx, + uint32_t num_seqs, uint32_t layer_idx, uint32_t num_q_heads, uint32_t num_kv_heads, + uint32_t head_dim, float *out, OmegaGpuAttnInfo *info) { + uint64_t t0 = now_ns(); + uint32_t log2gqa, log2bs; + int rc = check_heads(num_q_heads, num_kv_heads, head_dim, &log2gqa); + if (rc != OMEGA_GPU_ATTN_OK) return rc; + const uint32_t HD = head_dim; + if (!ly || layer_idx >= ly->num_layers || log2_exact(ly->block_size, &log2bs) != 0) return OMEGA_GPU_ATTN_BAD_ARGS; + /* the oracle addresses heads as kv_head * head_dim * 2 inside a token: the layout must agree */ + if (ly->head_stride_bytes != HD * 2 || ly->token_stride_bytes != (uint64_t)num_kv_heads * HD * 2 || + ly->kv_plane_stride_bytes != (uint64_t)ly->block_size * ly->token_stride_bytes || + ly->layer_stride_bytes != 2 * ly->kv_plane_stride_bytes || ly->block_stride_bytes < (uint64_t)ly->num_layers * ly->layer_stride_bytes) + return OMEGA_GPU_ATTN_BAD_ARGS; + size_t row = (size_t)num_q_heads * HD; + /* effective context per sequence and block id range check */ + uint32_t *eff = omega_gpu_host_calloc(num_seqs ? num_seqs : 1, sizeof *eff); + if (!eff) return OMEGA_GPU_ATTN_CHIP_FAIL; + for (uint32_t s = 0; s < num_seqs; s++) { + uint64_t cap = (uint64_t)n_blocks[s] * ly->block_size; + eff[s] = (uint32_t)(ctx[s] < cap ? ctx[s] : cap); + for (uint32_t b = 0; b < n_blocks[s]; b++) { + uint64_t id = tables[s][b]; + if (id >= ly->num_blocks || id * ly->block_stride_bytes + (uint64_t)(layer_idx + 1) * ly->layer_stride_bytes > ly->pool_bytes) { omega_gpu_host_free(eff); return OMEGA_GPU_ATTN_BAD_ARGS; } + } + } + uint32_t seqs_per_launch = OMEGA_GPU_ATTN_MAX_CTAS / num_q_heads; + if (seqs_per_launch == 0) seqs_per_launch = 1; + /* cut F: split each (sequence, head) over 2^log2split CTAs along the context: at least one whole chunk per + * split, from the longest context in the call, within the split launch bound (the test hook forces it). */ + uint32_t log2split = 0; + if (g_split >= 0) log2split = (uint32_t)g_split; + else for (uint32_t s = 0; s < num_seqs; s++) { uint32_t l = own_log2split(eff[s], HD); if (l > log2split) log2split = l; } + while (log2split && ((uint64_t)num_q_heads * seqs_per_launch << log2split) > OMEGA_GPU_ATTN_SPLIT_MAX_CTAS) log2split--; + const uint32_t S = 1u << log2split; + float *part = omega_gpu_host_alloc((size_t)seqs_per_launch * num_q_heads * S * (HD + 2) * 4); /* the partials of one launch */ + if (!part) { omega_gpu_host_free(eff); return OMEGA_GPU_ATTN_CHIP_FAIL; } + Slot *ks = NULL; + rc = begin(false, log2bs, log2gqa, HD, (int)log2split, &ks, info); + if (rc != OMEGA_GPU_ATTN_OK) { omega_gpu_host_free(eff); omega_gpu_host_free(part); return rc; } + uint32_t maxb = 1; + for (uint32_t s = 0; s < num_seqs; s++) if (n_blocks[s] > maxb) maxb = n_blocks[s]; + /* Resident pool (2026-10-12): the caller's pool IS omega's allocation. Read it in place when the + * layout fits the allocation and every referenced block passes the 32-bit fit rule; else stage. */ + bool resident = g_resident.cpu && (const void *)pool == g_resident.cpu && ly->pool_bytes <= g_resident.size; + for (uint32_t s = 0; resident && s < num_seqs; s++) { + uint32_t need = eff[s] ? (eff[s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++) if (!resident_fits(ly, tables[s][b])) { resident = false; break; } + } + /* Dedupe map: physical block id -> staged slot of the current launch (-1 = not staged yet), + * plus the list of ids touched by the launch (in slot order) so the reset is O(unique). */ + int32_t *slot_of = NULL; uint32_t *touched = NULL; + if (g_dedupe && !resident) { + size_t nb = ly->num_blocks ? ly->num_blocks : 1; + slot_of = omega_gpu_host_alloc(nb * sizeof *slot_of); + touched = omega_gpu_host_alloc(nb * sizeof *touched); + if (!slot_of || !touched) { omega_gpu_host_free(slot_of); omega_gpu_host_free(touched); omega_gpu_host_free(eff); UNLOCK(); return OMEGA_GPU_ATTN_CHIP_FAIL; } + memset(slot_of, 0xff, nb * sizeof *slot_of); /* every entry -1 */ + } + for (uint32_t s0 = 0; s0 < num_seqs && rc == OMEGA_GPU_ATTN_OK; s0 += seqs_per_launch) { + uint32_t ns = num_seqs - s0 < seqs_per_launch ? num_seqs - s0 : seqs_per_launch; + /* logical references: every sequence's blocks up to its (truncated) context */ + uint32_t total = 0; + for (uint32_t s = 0; s < ns; s++) total += eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + uint32_t *tab = omega_gpu_host_calloc((size_t)ns * maxb + ns, sizeof *tab); + if (!tab) { rc = OMEGA_GPU_ATTN_CHIP_FAIL; break; } + if (resident) { + /* the table carries the physical ids; the kernel's block stride is the pool's; the layer + * base is the chip address of this layer's slice of block 0 */ + for (uint32_t s = 0; s < ns; s++) { + uint32_t need = eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++) tab[(size_t)s * maxb + b] = tables[s0 + s][b]; + tab[(size_t)ns * maxb + s] = eff[s0 + s]; + } + if (info) { info->kv_blocks_logical += total; info->kv_bytes_naive += (uint64_t)total * ly->layer_stride_bytes; } + Launch L = { + .q = q + (size_t)s0 * row, .q_bytes = (size_t)ns * row * 4, + .pool = (const uint8_t *)pool + (size_t)layer_idx * ly->layer_stride_bytes, .pool_bytes = 0, + .tab = tab, .tab_bytes = ((size_t)ns * maxb + ns) * 4, + .out = part, .out_bytes = (size_t)ns * num_q_heads * S * (HD + 2) * 4, + .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = ns * S, + .params = { maxb, f2u(score_scale(HD)), (uint32_t)ly->block_stride_bytes, (uint32_t)ly->token_stride_bytes, + (uint32_t)ly->kv_plane_stride_bytes, (uint32_t)ly->head_stride_bytes, num_q_heads, ns * maxb * 4 }, + .pool_va = g_resident.va + (uint64_t)layer_idx * ly->layer_stride_bytes, + }; + rc = launch(ks, &L, info); + if (rc == OMEGA_GPU_ATTN_OK) combine_splits(part, out + (size_t)s0 * row, (size_t)ns * num_q_heads, S, HD); + omega_gpu_host_free(tab); + continue; + } + /* pass 1: assign staged slots. Dedupe keys on the PHYSICAL block id (not the table + * position): a CoW prefix block shared by several branches gets one slot. Each + * sequence's compact table keeps its own block order and truncated context. */ + uint32_t g = 0; + for (uint32_t s = 0; s < ns; s++) { + uint32_t need = eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++) { + uint32_t id = tables[s0 + s][b]; + if (g_dedupe) { + if (slot_of[id] < 0) { slot_of[id] = (int32_t)g; touched[g] = id; g++; } + tab[(size_t)s * maxb + b] = (uint32_t)slot_of[id]; + } else { + tab[(size_t)s * maxb + b] = g++; /* legacy: one slot per reference */ + } + } + tab[(size_t)ns * maxb + s] = eff[s0 + s]; + } + uint64_t staged_bytes = (uint64_t)(g ? g : 1) * ly->layer_stride_bytes; + if (staged_bytes > 0xffffffffull) { omega_gpu_host_free(tab); rc = OMEGA_GPU_ATTN_TOO_LARGE; break; } + void *host_tmp = NULL; + int stage_rc; + uint8_t *staged = stage_target((size_t)staged_bytes, &host_tmp, &stage_rc); + if (!staged) { omega_gpu_host_free(tab); rc = stage_rc; break; } + /* pass 2: copy each staged slot's (physical block, layer) slice exactly once */ + if (g_dedupe) { + for (uint32_t u = 0; u < g; u++) { + const uint8_t *src = pool + (size_t)touched[u] * ly->block_stride_bytes + (size_t)layer_idx * ly->layer_stride_bytes; + memcpy(staged + (size_t)u * ly->layer_stride_bytes, src, (size_t)ly->layer_stride_bytes); + slot_of[touched[u]] = -1; /* reset for the next launch */ + } + } else { + uint32_t w = 0; + for (uint32_t s = 0; s < ns; s++) { + uint32_t need = eff[s0 + s] ? (eff[s0 + s] + ly->block_size - 1) / ly->block_size : 0; + for (uint32_t b = 0; b < need; b++, w++) { + const uint8_t *src = pool + (size_t)tables[s0 + s][b] * ly->block_stride_bytes + (size_t)layer_idx * ly->layer_stride_bytes; + memcpy(staged + (size_t)w * ly->layer_stride_bytes, src, (size_t)ly->layer_stride_bytes); + } + } + } + if (info) { + info->kv_blocks_logical += total; info->kv_blocks_unique += g; + info->kv_bytes_staged += (uint64_t)g * ly->layer_stride_bytes; + info->kv_bytes_naive += (uint64_t)total * ly->layer_stride_bytes; + } + Launch L = { + .q = q + (size_t)s0 * row, .q_bytes = (size_t)ns * row * 4, .pool = staged, .pool_bytes = (size_t)staged_bytes, + .tab = tab, .tab_bytes = ((size_t)ns * maxb + ns) * 4, + .out = part, .out_bytes = (size_t)ns * num_q_heads * S * (HD + 2) * 4, + .grid_x = num_q_heads / heads_per_cta(HD, log2gqa), .grid_y = ns * S, + .params = { maxb, f2u(score_scale(HD)), (uint32_t)ly->layer_stride_bytes, (uint32_t)ly->token_stride_bytes, + (uint32_t)ly->kv_plane_stride_bytes, (uint32_t)ly->head_stride_bytes, num_q_heads, ns * maxb * 4 } + }; + rc = launch(ks, &L, info); + if (rc == OMEGA_GPU_ATTN_OK) combine_splits(part, out + (size_t)s0 * row, (size_t)ns * num_q_heads, S, HD); + omega_gpu_host_free(host_tmp); omega_gpu_host_free(tab); + } + UNLOCK(); + omega_gpu_host_free(eff); omega_gpu_host_free(slot_of); omega_gpu_host_free(touched); omega_gpu_host_free(part); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +int omega_gpu_paged_attention_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const uint32_t *block_ids, uint32_t num_block_ids, + uint32_t context_len, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info) { + if (!q || !pool || !layout || !out || (num_block_ids && !block_ids)) return OMEGA_GPU_ATTN_BAD_ARGS; + const uint32_t *tables[1] = { block_ids }; + uint32_t nb[1] = { num_block_ids }, cx[1] = { context_len }; + return paged_core(q, pool, layout, tables, nb, cx, 1, layer_idx, num_q_heads, num_kv_heads, head_dim, out, info); +} + +int omega_gpu_paged_attention_batch_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const int32_t *block_tables, const int32_t *context_lens, + uint32_t max_blocks_per_seq, uint32_t num_seqs, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info) { + if (!q || !pool || !layout || !out || !block_tables || !context_lens || num_seqs == 0) return OMEGA_GPU_ATTN_BAD_ARGS; + /* the oracle's rules: ctx <= 0 -> 0; a table row past the array -> empty; negatives removed */ + uint32_t **tables = omega_gpu_host_calloc(num_seqs, sizeof *tables); + uint32_t *nb = omega_gpu_host_calloc(num_seqs, sizeof *nb), *cx = omega_gpu_host_calloc(num_seqs, sizeof *cx); + if (!tables || !nb || !cx) { omega_gpu_host_free(tables); omega_gpu_host_free(nb); omega_gpu_host_free(cx); return OMEGA_GPU_ATTN_CHIP_FAIL; } + int rc = OMEGA_GPU_ATTN_OK; + for (uint32_t s = 0; s < num_seqs; s++) { + cx[s] = context_lens[s] > 0 ? (uint32_t)context_lens[s] : 0; + tables[s] = omega_gpu_host_calloc(max_blocks_per_seq ? max_blocks_per_seq : 1, sizeof **tables); + if (!tables[s]) { rc = OMEGA_GPU_ATTN_CHIP_FAIL; break; } + for (uint32_t b = 0; b < max_blocks_per_seq; b++) { + int32_t v = block_tables[(size_t)s * max_blocks_per_seq + b]; + if (v >= 0) tables[s][nb[s]++] = (uint32_t)v; + } + } + if (rc == OMEGA_GPU_ATTN_OK) + rc = paged_core(q, pool, layout, (const uint32_t *const *)tables, nb, cx, num_seqs, layer_idx, num_q_heads, num_kv_heads, head_dim, out, info); + for (uint32_t s = 0; s < num_seqs; s++) omega_gpu_host_free(tables[s]); + omega_gpu_host_free(tables); omega_gpu_host_free(nb); omega_gpu_host_free(cx); + return rc; +} + +static const char *const k_mutant_names[OMEGA_GPU_ATTN_MUTANT_COUNT] = { + "none", "NO_MAX", "KV_HEAD", "SLOT", "NO_RESCALE", "Q_ROW", "OUT_ROW" +}; +_Static_assert(sizeof k_mutant_names / sizeof k_mutant_names[0] == OMEGA_GPU_ATTN_MUTANT_COUNT, "mutant name table"); + +const char *omega_gpu_attention_mutant_name(OmegaGpuAttnMutant m) { + return (m >= 0 && m < OMEGA_GPU_ATTN_MUTANT_COUNT && k_mutant_names[m]) ? k_mutant_names[m] : "?"; +} + +const char *omega_gpu_attention_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_ATTN_OK: return "OK"; + case OMEGA_GPU_ATTN_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_ATTN_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_ATTN_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_ATTN_CHIP_FAIL: return "CHIP_FAIL"; + case OMEGA_GPU_ATTN_UNWRITTEN: return "UNWRITTEN"; + default: return "UNKNOWN"; + } +} + +/* omega #308 R2 test hook: 0 production, 1 lane-dependent branch inside a reconvergence + * region, 2 the same with the BSYNC dropped (negative control). Clears the kernel cache. */ +void omega_gpu_attention_test_set_divergent(int mode) { + LOCK(); + g_divergent = (mode < 0 || mode > 2) ? 0 : mode; + cache_clear_locked(); + UNLOCK(); +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.h new file mode 100644 index 000000000..3610af047 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_attention_api.h @@ -0,0 +1,290 @@ +#ifndef OMEGA_GPU_ATTENTION_API_H +#define OMEGA_GPU_ATTENTION_API_H +/* + * omega_gpu_attention_api: native (no CUDA) decode attention for the AIEN + * inference stack (FB-1 cut 5, 2026-10-04). + * + * Two kernel families, one query per (sequence, query head), generated by our + * own codegen (src/omega_blackwell_codegen.c IR) and launched through the same + * chip-proven sequence as cuts 1b and 4: every buffer GPU-uncached (nvos.h + * NVOS32_ATTR2_GPU_CACHEABLE: system memory cached by the GPU is not coherent + * with CPU mappings), shader caches invalidated before the launch (clcec0.h + * NVCEC0_INVALIDATE_SHADER_CACHES, cut 1b finding), first marker, + * L2_FLUSH_DIRTY, second marker (C3 tail), poison-filled output scanned for + * unwritten words after readback. + * + * The math follows aien-sovereign-core crates/aien-inference-abi/src/backend.rs + * (ReferenceCpuBackend / TensorBackend defaults), read 2026-10-04 at main 8b5caed: + * gqa_attention(out, q, k_cache, v_cache, seq_len, num_q_heads, num_kv_heads, head_dim) + * k_cache / v_cache are f32 [seq_len][num_kv_heads][head_dim]; query head h reads + * kv head h / (num_q_heads / num_kv_heads); score = (q . k) / sqrt(head_dim); + * softmax over all seq_len tokens (no mask: one query attends to the whole history); + * out[h] = sum_t softmax_t v_t. seq_len == 0 writes zeros. + * paged_attention(out, q, pool, block_ids, context_len, layer_idx, ...) + * the KV pool is bf16 in aien-kv-cache's canonical layout (KvLayout strides in + * bytes: block, layer, kv plane (0 = K, 1 = V), token, head); token t lives in + * block_ids[t / block_size] at slot t % block_size; tokens whose block index is + * past the end of block_ids are dropped; context_len == 0 or no blocks writes zeros. + * paged_attention_batch: per sequence s, context_lens[s] <= 0 means 0, the block + * table row is block_tables[s*max_blocks .. (s+1)*max_blocks] (empty if that row + * runs past the array), negative entries are removed (the rest close up). + * + * Chip math: scores in f32 (FFMA over the head), online softmax per chunk of + * head_dim tokens: running max (FMNMX), p = EX2((s - m) * log2 e) folded into the + * score scale, rescale factor alpha = EX2(m_old - m_new), f32 sums, final MUFU.RCP. + * bf16 K is read as 32-bit pairs (LDG.E) and widened by a 16-bit shift (bf16 is + * the top half of an f32); bf16 V by LDG.E.U16 and the same shift. f32 K/V are + * read directly. Tolerances are stated and justified in tests/gpu_attention_test.c. + * + * Launch envelope: at most OMEGA_GPU_ATTN_MAX_CTAS / num_q_heads sequences per launch (investigation + * I42, same as cuts 1b and 4): grid = (num_q_heads, sequences per launch * context splits); the paged + * path adds up to 2^OMEGA_GPU_ATTN_MAX_LOG2SPLIT context splits per (sequence, head) within + * OMEGA_GPU_ATTN_SPLIT_MAX_CTAS (cut F, the rows path proved 1024 CTAs on the chip). + * Shared memory: the QMD declares 16 * head_dim bytes (clcec0qmd.h SHARED_MEMORY_SIZE_SHIFTED7, + * src/omega_blackwell_qmd.c word 36); the kernel uses exactly 4 arrays of head_dim words: + * 1024 bytes for head_dim 64 (TinyLlama, Llama-3.2-1B; the QMD default) and 2048 bytes for + * head_dim 128 (Qwen3-4B; GB10 parity PASS 126/0 at 7dd92dc, evidence/FB1-CUT5-HD128-7dd92dc). + * head_dim is a kernel parameter (64 or 128): threads per CTA = head_dim = chunk size, one warp + * partial per 32 threads in the softmax reductions. + * + * Staging: the host copies q, the referenced KV blocks' layer slice, the (compacted, + * renumbered) block tables and the context lengths into GPU-uncached staging buffers + * for each launch and copies the result back. The kernel itself walks the block + * table. Resident pool (2026-10-12): a paged call whose pool pointer is the allocation + * omega_gpu_attention_pool_alloc returned reads the KV in place instead (no staging; see + * that declaration for the one rule). Since the attention hardening cut + * (2026-10-04) a launch stages each physical block's layer slice once however many + * sequences of the batch reference it (shared CoW prefixes), and OmegaGpuAttnInfo + * reports the bytes staged against the per-sequence (naive) figure. + * + * Cut 4b (2026-10-04): the device, channel and launch scratch are the process-wide + * session shared with the matmul and elementwise APIs (omega_gpu_session.h): one + * open per process instead of one per call (~40 ms), kernels resident after first + * use, staging buffers reused at their high-water mark (the KV slice is written + * straight into the device staging buffer). Calls serialise on one lock. + */ +#include +#include +#include +#include "omega_blackwell_matmul.h" /* OmegaBlackwellKernel */ +#ifdef __cplusplus +extern "C" { +#endif + +enum { + OMEGA_GPU_ATTN_OK = 0, + OMEGA_GPU_ATTN_BAD_ARGS = -1, /* NULL pointer, zero dimension, head mapping or block id out of range */ + OMEGA_GPU_ATTN_TOO_LARGE = -2, /* head_dim not in {64, 128}, num_q_heads > 64, context past the envelope */ + OMEGA_GPU_ATTN_CODEGEN_FAIL = -3, /* our codegen refused or exceeded the register budget */ + OMEGA_GPU_ATTN_CHIP_FAIL = -4, /* device open, alloc, submit, marker or release failed */ + OMEGA_GPU_ATTN_UNWRITTEN = -5 /* output words still equal to their poison after the run */ +}; + +#define OMEGA_GPU_ATTN_HEAD_DIM 64u /* the original head_dim; threads per CTA = head_dim (one thread per dimension / per token of a chunk) */ +#define OMEGA_GPU_ATTN_HEAD_DIM_128 128u /* the second supported head_dim (Qwen3-4B) */ +#define OMEGA_GPU_ATTN_MAX_CTAS 64u +/* Cut F (2026-10-12): a paged call splits each (sequence, head) over up to 2^MAX_LOG2SPLIT CTAs along the context + * (whole chunks each, at least one chunk per split since cut J, 2026-10-12, which also raised the cap from 8 to 16: at + * 1268 tokens the busiest CTA went from three chunks to two; the launch takes the largest count in the batch) within + * SPLIT_MAX_CTAS CTAs per launch (the rows path proved 1024 on the chip); the CTAs write unnormalised partials + * (acc[head_dim], running max, running sum) that the host combines, also when the split is 1 (the gqa f32 and rows + * kernels keep the direct output and are byte for byte the ones before). Each sequence picks its own split count + * from its own context, so a result never depends on the other sequences in a launch. */ +#define OMEGA_GPU_ATTN_MAX_LOG2SPLIT 4u +#define OMEGA_GPU_ATTN_SPLIT_MAX_CTAS 1024u +#define OMEGA_GPU_ATTN_MAX_Q_HEADS 64u +#define OMEGA_GPU_ATTN_MAX_GQA_CTX 4096u /* contiguous path: one block of 2^12 slots */ + +/* Mirror of aien-kv-cache KvLayoutDesc (crates/aien-kv-cache/src/lib.rs, main 8b5caed), + * field for field, strides in bytes. */ +typedef struct { + uint64_t block_stride_bytes; + uint64_t layer_stride_bytes; + uint64_t kv_plane_stride_bytes; + uint64_t token_stride_bytes; + uint64_t head_stride_bytes; + uint64_t pool_bytes; + uint32_t num_blocks; + uint32_t num_layers; + uint32_t block_size; /* must be a power of two (the kernel shifts and masks) */ +} OmegaGpuKvLayout; + +typedef struct { + uint32_t chip_calls; /* launches made */ + uint64_t elapsed_ns; /* sum of submit-to-second-marker over the launches */ + uint64_t call_ns; /* wall time of the whole API call (staging, launches, copy-out) */ + uint32_t completion_marker; /* first marker word of the last launch */ + uint32_t unwritten_words; /* poison words left in the outputs (0 on OK) */ + uint32_t gpr_count, insn_count; + bool kernel_cache_hit; /* the kernel was already generated */ + uint32_t ctas_last_launch, threads_per_cta; + char target_chip[64]; + uint32_t sm_architecture; + /* Appended (attention hardening cut, 2026-10-04): transfer accounting for the call. + * Existing field order above is ABI; sovereign-core mirrors this struct field for field. */ + uint64_t kv_bytes_staged; /* KV layer-slice bytes actually copied into staging (sum over launches) */ + uint64_t kv_bytes_naive; /* what per-sequence staging would have copied (every sequence its own blocks) */ + uint32_t kv_blocks_logical; /* block references summed over sequences, truncated to each context */ + uint32_t kv_blocks_unique; /* distinct (physical block, layer) slices staged, summed over launches */ + uint64_t q_bytes, tab_bytes, out_bytes; /* q, block-table/context and result traffic (sum over launches) */ + uint32_t kv_source; /* OMEGA_GPU_ATTN_KV_STAGED (slices copied per call) or OMEGA_GPU_ATTN_KV_RESIDENT (read in place) */ +} OmegaGpuAttnInfo; +#define OMEGA_GPU_ATTN_KV_STAGED 0u +#define OMEGA_GPU_ATTN_KV_RESIDENT 1u + +/* Contiguous f32 KV (TensorBackend::gqa_attention). q and out: [num_q_heads][head_dim]. */ +int omega_gpu_gqa_attention_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t seq_len, uint32_t num_q_heads, uint32_t num_kv_heads, + uint32_t head_dim, float *out, OmegaGpuAttnInfo *info); + +/* Contiguous f32 KV, many query rows in one call (the prompt read, 2026-10-12). q and out are + * [num_rows][num_q_heads][head_dim]; k_cache and v_cache hold base_len + num_rows tokens as + * [token][num_kv_heads][head_dim]. Row i attends over the first base_len + i + 1 tokens (causal: + * its own token and everything before it). The KV is staged once per call; the rows go to the + * chip in launches of up to OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads rows (grid y = row, the + * same kernel as omega_gpu_gqa_attention_f32, so one row per launch is bit-identical to that + * call). Under a serving reservation the rows per launch are also bounded by the q buffer + * omega_gpu_attention_reserve_rows sized. base_len + num_rows <= OMEGA_GPU_ATTN_MAX_GQA_CTX. */ +#define OMEGA_GPU_ATTN_ROWS_MAX_CTAS 1024u +int omega_gpu_gqa_attention_rows_f32(const float *q, const float *k_cache, const float *v_cache, + uint32_t base_len, uint32_t num_rows, uint32_t num_q_heads, + uint32_t num_kv_heads, uint32_t head_dim, float *out, + OmegaGpuAttnInfo *info); + +/* Paged bf16 KV (TensorBackend::paged_attention). pool points at the pool base. */ +int omega_gpu_paged_attention_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const uint32_t *block_ids, uint32_t num_block_ids, + uint32_t context_len, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info); + +/* Batched (TensorBackend::paged_attention_batch). block_tables: [num_seqs][max_blocks_per_seq] i32 + * (negative = none), context_lens: [num_seqs] i32. q and out: [num_seqs][num_q_heads][head_dim]. */ +int omega_gpu_paged_attention_batch_bf16(const float *q, const void *pool, const OmegaGpuKvLayout *layout, + const int32_t *block_tables, const int32_t *context_lens, + uint32_t max_blocks_per_seq, uint32_t num_seqs, uint32_t layer_idx, + uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, + float *out, OmegaGpuAttnInfo *info); + +/* Resident KV pool (2026-10-12). One GPU-uncached, host-visible allocation of `bytes` that the caller + * writes its paged bf16 KV into directly (sovereign-core's pool buffer). A paged call whose `pool` + * pointer is this allocation reads the KV in place: nothing is staged, the block table carries the + * physical block ids and the kernel's block stride is the layout's block stride. The kernel forms + * block_id * block_stride + the in-block offsets in 32 bits, so a call takes the resident path only + * when block_stride_bytes and, for every block it references, block_id * block_stride_bytes + + * layer_stride_bytes fit in 32 bits, and the layout's pool_bytes fit the allocation; otherwise that + * call stages exactly as before. OmegaGpuAttnInfo.kv_source says which path ran. One pool per + * process: a second alloc is refused (BAD_ARGS) until omega_gpu_attention_pool_free. The alloc opens + * the session (CHIP_FAIL carries the driver text in omega_gpu_attention_last_error()); under the host + * simulator it is plain host memory. The caller must not free the pool while a call is in flight. */ +int omega_gpu_attention_pool_alloc(size_t bytes, void **cpu); +void omega_gpu_attention_pool_free(void); + +const char *omega_gpu_attention_rc_name(int rc); +void omega_gpu_attention_cache_clear(void); + +/* OPT-IN serving reservation (omega_gpu_reserve_serving in omega_gpu_serving.h calls this). Allocates the KV staging + * pool (2 planes f32, 8 KiB per token at 8 kv heads x 128), q, output and table buffers once for contexts up to + * max_context and up to max_seqs sequences per call. A later call that fits never allocates; one that does not + * returns OMEGA_GPU_ATTN_TOO_LARGE ("serving reservation exceeded" in omega_gpu_attention_last_error()) and asks the + * driver for nothing. Never called = behaviour unchanged. The f32 contiguous path still refuses contexts past + * OMEGA_GPU_ATTN_MAX_GQA_CTX on its own. kv_block_size (power of two, 0 = no paged use) sizes the pool for the paged bf16 + * path too: it stages whole blocks, so under half a block of context it needs more than the f32 formula. The pool is + * sized in BYTES for the larger of the two paths: the paged path therefore admits up to about 2 x max_context tokens + * (whole blocks of the same bytes); what it refuses is a call whose staging exceeds the reserved bytes. max_seqs is + * checked per launch chunk (the batched call splits sequences into chunks of 64 / num_q_heads), so a call with more + * sequences than max_seqs succeeds when every chunk fits. A paged or batched call refused on a LATER chunk has already + * written the outputs of the earlier chunks: treat TOO_LARGE as "output incomplete". If the reserve fails part way it + * rolls back: none of this API's buffers stays flagged. 0 on success, else an OMEGA_GPU_ATTN_* code. */ +int omega_gpu_attention_reserve(uint32_t max_context, uint32_t max_seqs, uint32_t num_q_heads, uint32_t num_kv_heads, uint32_t head_dim, uint32_t kv_block_size); +/* Grows the reservation's q, output and table buffers (never shrinks them) so that + * omega_gpu_gqa_attention_rows_f32 can send min(max_rows, OMEGA_GPU_ATTN_ROWS_MAX_CTAS / num_q_heads) + * rows per launch. The KV staging pool is untouched: the rows of one call share one staged context, + * which omega_gpu_attention_reserve already sized for max_context tokens. Call it after + * omega_gpu_attention_reserve (omega_gpu_reserve_serving does, with its max_rows). Without it the + * rows path still works under a reservation, in launches of as many rows as the q buffer holds. */ +int omega_gpu_attention_reserve_rows(uint32_t max_rows, uint32_t num_q_heads, uint32_t head_dim); +void omega_gpu_attention_unreserve(void); + +/* Stage name of the most recent CHIP_FAIL ("" if none), shared with the other GPU APIs + * (omega_gpu_session_last_error); an open failure carries the driver text. */ +const char *omega_gpu_attention_last_error(void); + +/* Test hooks. Mutants are deliberately wrong kernels the parity test must catch; + * never set in production. */ +typedef enum { + OMEGA_GPU_ATTN_MUTANT_NONE = 0, + OMEGA_GPU_ATTN_MUTANT_NO_MAX, /* softmax without the running-max subtraction (overflows for large scores) */ + OMEGA_GPU_ATTN_MUTANT_KV_HEAD, /* reads kv head (h / ratio) ^ 1 */ + OMEGA_GPU_ATTN_MUTANT_SLOT, /* K read from slot (t + 1) % block_size while V keeps slot t (K/V mismatch) */ + OMEGA_GPU_ATTN_MUTANT_NO_RESCALE, /* the accumulator is not rescaled when the max moves between chunks */ + /* Head-wiring mutants (attention hardening cut, 2026-10-04). Both swap the rows of + * query heads h and h ^ 1, so they need num_q_heads even (>= 2); never run them on a + * one-head shape (row h ^ 1 of the last sequence would be past the buffer). */ + OMEGA_GPU_ATTN_MUTANT_Q_ROW, /* q loaded from query-head row h ^ 1 (kv head and output row stay h) */ + OMEGA_GPU_ATTN_MUTANT_OUT_ROW, /* the correct result for head h stored in flattened output row h ^ 1 */ + OMEGA_GPU_ATTN_MUTANT_COUNT /* one past the last mutant: every battery enumerates 1 .. COUNT-1 */ +} OmegaGpuAttnMutant; +void omega_gpu_attention_test_set_mutant(OmegaGpuAttnMutant m); + +/* TEST ONLY (omega #308 regression R2). 0 = production branch-free chunk loop; 1 = the + * lane-dependent j >= ctx branch restored inside a BSSY/BSYNC reconvergence region; + * 2 = that kernel with the BSYNC dropped (negative control: the host simulator must refuse + * it). Clears the kernel cache. */ +void omega_gpu_attention_test_set_divergent(int mode); +/* "none", "NO_MAX", ... ; "?" past COUNT. The table is checked against COUNT at compile time. */ +const char *omega_gpu_attention_mutant_name(OmegaGpuAttnMutant m); + +/* Generate a kernel without launching (host tests, nvdisasm listings). + * log2_block_size: shift for token -> block; log2_gqa: shift for query head -> kv head. */ +int omega_gpu_attention_codegen(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, + OmegaBlackwellKernel *kernel); + +/* The same with an explicit head_dim (64 or 128; anything else is TOO_LARGE). The 4-argument + * omega_gpu_attention_codegen above is head_dim 64 and emits the same bytes as before head_dim 128 existed. */ +int omega_gpu_attention_codegen_hd(bool kv_f32, uint32_t log2_block_size, uint32_t log2_gqa, uint32_t head_dim, + OmegaBlackwellKernel *kernel); + +/* One launch as the launcher sees it (test hook below). Pointers are host buffers; + * params are the eight argument words after the four buffer addresses: + * max_blocks, scale bits, block stride, token stride, kv plane stride, head stride, + * num_q_heads, context-array byte offset. */ +typedef struct { + const void *q; size_t q_bytes; + const void *pool; size_t pool_bytes; + const void *tab; size_t tab_bytes; + void *out; size_t out_bytes; + uint32_t grid_x, grid_y; + uint32_t params[8]; + uint64_t pool_va; /* resident pool: chip address of the layer base (`pool` is its host mapping, pool_bytes 0); 0 = stage `pool` */ +} OmegaGpuAttnLaunch; + +/* Host simulator hook (tests): when set, every launch runs the allocated IR program + * through `sim` instead of the chip. Lets the whole battery run on the host first + * (review before chip time). The program is post register allocation. */ +struct BlackwellIRProgramTag; +typedef int (*OmegaGpuAttnSim)(const void *prog /* const BlackwellIRProgram * */, const OmegaGpuAttnLaunch *L, OmegaGpuAttnInfo *info); +void omega_gpu_attention_test_set_simulator(OmegaGpuAttnSim sim); +/* The shared memory the launcher declares for the kernel the simulator is running (set before each simulated launch). */ +uint32_t omega_gpu_attention_test_shared_bytes(void); +/* Query heads one CTA serves (cut K): hd 128 groups min(2^log2_gqa, 4) heads of one kv head; hd 64 keeps one head per CTA. */ +uint32_t omega_gpu_attention_heads_per_cta(uint32_t head_dim, uint32_t log2_gqa); + +/* Shared-prefix staging dedupe (attention hardening cut, 2026-10-04): within one launch + * every (physical block, layer) slice referenced by the batch is staged once, keyed by the + * physical block id, and every sequence's compact table points at that one staged slot. + * On by default. `false` selects the legacy per-sequence staging (every sequence copies + * its own blocks), kept as the reference fallback and as the negative control of the + * staging-byte tests. Test hook; never cleared in production. */ +void omega_gpu_attention_test_set_dedupe(bool on); +/* Test hook: force the context split (log2, 0 = one CTA per head) on every paged call; -1 = automatic. */ +void omega_gpu_attention_test_set_split(int log2split); + +/* The resident pool's per-block fit rule (see omega_gpu_attention_pool_alloc), exposed so the + * 4 GiB edge can be checked without allocating a 4 GiB pool. Test hook. */ +bool omega_gpu_attention_test_resident_fits(const OmegaGpuKvLayout *layout, uint32_t block_id); + +#ifdef __cplusplus +} +#endif +#endif /* OMEGA_GPU_ATTENTION_API_H */ diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.c new file mode 100644 index 000000000..fb821e4f3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.c @@ -0,0 +1,1139 @@ +/* omega_gpu_elementwise_api.c: FB-1 cut 4 (2026-10-04). See the header. + * + * Layout of this file: (1) kernel codegen on top of the BlackwellIR, with a + * small scheduler that writes every control word; (2) one launcher cloned from + * the chip-proven tensor matmul path (omega_blackwell_execute_matmul_tensor); + * (3) the public entry points, which split work into <= OMEGA_GPU_EW_MAX_CTAS + * launches and run the host-side bookkeeping. + * + * Scheduling rules (chip-learned, src/omega_numeric.c omega_numeric_check_patch): + * - a variable-latency result (LDG, LDS, LDC, LDCU, S2R, SHFL, MUFU) arrives through + * a scoreboard; the producer stalls >= 2 and the consumer waits on that SB; + * - a fixed-latency result (FADD FMUL FFMA IMAD IADD3 MOV LOP3 SHF) has no + * scoreboard: the producer stalls >= 5 before its consumer (we use 6); + * - a predicate producer (ISETP) stalls 14 before @P0 use (NAK SM120 padding); + * - stores (STG, STS) set a read barrier so the next instruction cannot overwrite + * the source register early. + * The emitter below serialises: every instruction waits on everything still + * pending. A final local pass tightens supported adjacent ALU pairs to 5 cycles. + */ +#include "omega_gpu_elementwise_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_bw_reconv.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" +#include "omega_gpu_session.h" +#include "sha256.h" +#include +#include +#include +#include + +/* ------------------------------------------------------------------ codegen */ + +#define CW(stall, wbar, rbar, wait) \ + (((uint32_t)(stall) << 9) | ((uint32_t)(wbar) << 14) | ((uint32_t)(rbar) << 17) | ((uint32_t)(wait) << 20)) +#define CW_YIELD 0x2000u +#define SB_NONE 7u +#define SB_GPR 0u /* variable-latency GPR results */ +#define SB_RD 1u /* store source-register read barrier */ +#define SB_UGPR 2u /* uniform-register results (LDCU) */ + +enum { K_FIXED, K_PRED, K_VAR, K_UVAR, K_STORE, K_SYNC, K_EXIT, K_BRA, K_BSSY, K_BSYNC }; + +#define EW_MAX_LOOPS 4 +typedef struct { + BlackwellIRProgram *p; + uint32_t pending; /* scoreboards set and not yet waited on */ + int err; + int loop_start[EW_MAX_LOOPS], loop_end[EW_MAX_LOOPS]; + int n_loops; + int open_start[EW_MAX_LOOPS]; /* starts of loops begun and not yet ended (nesting stack) */ + int depth; + BwRegions rg; /* structured reconvergence regions (omega #308) */ + int rg_mutant; /* test only: 1 = drop the BSYNC at join, 2 = corrupt the BSSY target (host sim must catch both) */ + int exited; /* a predicated EXIT was emitted: some lanes of a warp may be gone */ + int exit_sync_ok; /* test only: lets a kernel put SHFL/BAR after a predicated EXIT (the negative control R6) */ + int test_path; /* building for omega_gpu_elementwise_codegen_ir (host tests), never for a launch */ +} Em; + +static void emit(Em *e, BlackwellIRInsn in, int kind) { + uint32_t wait = e->pending; + switch (kind) { + case K_FIXED: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_PRED: in.control = CW(14, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_VAR: in.control = CW(4, SB_GPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_GPR; break; + case K_UVAR: in.control = CW(4, SB_UGPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_UGPR; break; + case K_STORE: in.control = CW(4, SB_NONE, SB_RD, wait) | CW_YIELD; e->pending = 1u << SB_RD; break; + case K_SYNC: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + /* a predicated EXIT or BRA that falls through must not be the only waiter */ + case K_EXIT: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + case K_BRA: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + /* BSSY / BSYNC read no registers; the stall counts (1 and 5, both with yield) are the ones + * nvcc 13.0.88 writes for sm_121 (docs/gpu-reconvergence-308.md). They wait on everything + * pending so that, as for every branch here, nothing is in flight across a control edge + * and the straight-line scoreboard walk in the tests stays valid. */ + case K_BSSY: in.control = CW(1, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + case K_BSYNC: in.control = CW(5, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + default: e->err = -1; return; + } + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; /* append returns the index */ +} + +static int V(Em *e) { int v = omega_bw_ir_alloc_vreg(e->p); if (v < 0) e->err = -1; return v; } +static int V64(Em *e) { int v = omega_bw_ir_alloc_vreg64(e->p); if (v < 0) e->err = -1; return v; } +static int UV64(Em *e) { int v = omega_bw_ir_alloc_uvreg64(e->p); if (v < 0) e->err = -1; return v; } +static int here(const Em *e) { return (int)e->p->count; } + +#define NOREG -1 +static BlackwellIRInsn I0(BlackwellIROpcode op) { + BlackwellIRInsn in; memset(&in, 0, sizeof in); + in.op = op; in.dst_vreg = NOREG; in.src1_vreg = NOREG; in.src2_vreg = NOREG; in.src3_vreg = NOREG; in.ureg = NOREG; + return in; +} +static void ldcu64(Em *e, int udst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDCU64); i.dst_vreg = udst; i.imm = off; i.is_uniform = true; emit(e, i, K_UVAR); } +static void ldc64(Em *e, int dst64, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC64); i.dst_vreg = dst64; i.imm = off; emit(e, i, K_VAR); } +static void ldc32(Em *e, int dst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC); i.dst_vreg = dst; i.imm = off; emit(e, i, K_VAR); } +static void s2r(Em *e, int dst, uint32_t sr) { BlackwellIRInsn i = I0(BW_IR_S2R); i.dst_vreg = dst; i.imm = sr; emit(e, i, K_VAR); } +static void movi(Em *e, int dst, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_MOV_IMM); i.dst_vreg = dst; i.imm = imm; emit(e, i, K_FIXED); } +static void movf(Em *e, int dst, float f) { uint32_t u; memcpy(&u, &f, 4); movi(e, dst, u); } +static void movrz(Em *e, int dst) { BlackwellIRInsn i = I0(BW_IR_MOV_RZ); i.dst_vreg = dst; emit(e, i, K_FIXED); } +/* dst = a * imm + c (c may be NOREG for RZ) */ +static void imadi(Em *e, int dst, int a, uint32_t imm, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); } +/* dst = a * b + c (registers) */ +static void imadr(Em *e, int dst, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void iadd3(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IADD3); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void lop3xor(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_LOP3_XOR); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +/* dst64 = idx * 4 + ptr64 (byte address of element idx) */ +static void addr4(Em *e, int dst64, int idx, int ptr64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.imm = 4; i.src3_vreg = ptr64; emit(e, i, K_FIXED); } +static void ldg(Em *e, int dst, int addr64, int udesc) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit(e, i, K_VAR); } +/* Independent loads (LDG_E from global, or LDS32 from shared memory with ureg NOREG) issued + * back to back (campaign C2a, 2026-10-05). The first load + * waits on whatever is pending; the others wait on nothing, so all n are in flight together. + * Every load sets SB_GPR (a counting scoreboard), so the next instruction waits once for all + * of them instead of once per load. Fails the build if a load address is a destination of the + * group or a destination repeats (the later loads would read an operand still in flight). */ +static void ld_group(Em *e, BlackwellIROpcode op, int n, const int *dst, const int *addr, int ureg) { + for (int i = 0; i < n; i++) + for (int k = 0; k < n; k++) + if (addr[i] == dst[k] || (k != i && dst[i] == dst[k])) { e->err = -1; return; } + for (int i = 0; i < n; i++) { + if (op != BW_IR_LDG_E && op != BW_IR_LDS32) { e->err = -1; return; } + BlackwellIRInsn in = I0(op); in.dst_vreg = dst[i]; in.src1_vreg = addr[i]; in.ureg = ureg; + if (i == 0) { emit(e, in, K_VAR); continue; } + in.control = CW(4, SB_GPR, SB_NONE, 0) | CW_YIELD; /* nonzero, so the encoder keeps it */ + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; + } +} +static void stg(Em *e, int addr64, int val, int udesc) { BlackwellIRInsn i = I0(BW_IR_STG_E); i.src1_vreg = addr64; i.src2_vreg = val; i.ureg = udesc; emit(e, i, K_STORE); } +static void fadd(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FADD); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void fsub(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FSUB); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void fmul(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FMUL); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void ffma(Em *e, int d, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_FFMA); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void mufu(Em *e, BlackwellIROpcode op, int d, int a) { BlackwellIRInsn i = I0(op); i.dst_vreg = d; i.src1_vreg = a; emit(e, i, K_VAR); } +/* Cross-lane and warp-ending ops are refused inside an open reconvergence region (omega #308): + * a SHFL or BAR.SYNC reached by a split warp reads inactive lanes / counts a partial warp + * (undefined; the 2026-10-04 attention bug), and a lane that EXITs inside a region can no + * longer be joined. The build fails closed instead of emitting such code. */ +/* Cross-lane instructions (SHFL, BAR.SYNC) need the whole warp present. The emitter refuses + * them (fails the build) inside an open reconvergence region, where lanes may be on different + * paths, and after a predicated EXIT, where lanes may be gone for good: a SHFL then reads + * inactive lanes (undefined on the chip, the attention failure of 2026-10-04). A kernel that + * must drop lanes before a cross-lane step clamps them instead and exits them afterwards. */ +static int warp_split(Em *e) { if (e->rg.depth > 0 || (e->exited && !e->exit_sync_ok)) { e->err = -1; return 1; } return 0; } +static void shfl_down(Em *e, int d, int a, uint32_t off) { if (warp_split(e)) return; BlackwellIRInsn i = I0(BW_IR_SHFL_DOWN); i.dst_vreg = d; i.src1_vreg = a; i.imm = off; emit(e, i, K_VAR); } +static void sts32(Em *e, int addr, int val) { BlackwellIRInsn i = I0(BW_IR_STS32); i.src1_vreg = addr; i.src2_vreg = val; emit(e, i, K_STORE); } +static void lds32(Em *e, int d, int addr) { BlackwellIRInsn i = I0(BW_IR_LDS32); i.dst_vreg = d; i.src1_vreg = addr; emit(e, i, K_VAR); } +static void bar_sync(Em *e) { if (warp_split(e)) return; emit(e, I0(BW_IR_BAR_SYNC), K_SYNC); } +static void isetp_ge_u32(Em *e, int a, int b) { BlackwellIRInsn i = I0(BW_IR_ISETP_GE_U32); i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_PRED); } +/* An EXIT inside a region would leave the barrier waiting for a lane that never comes: refused. */ +static void exit_if_p0(Em *e) { if (e->rg.depth > 0) { e->err = -1; return; } e->exited = 1; BlackwellIRInsn i = I0(BW_IR_EXIT); i.predicate_p0 = true; emit(e, i, K_EXIT); } +static void bra_back_if_not_p0(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.predicate_not = true; i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } +static void tail(Em *e) { + emit(e, I0(BW_IR_EXIT), K_EXIT); + BlackwellIRInsn self = I0(BW_IR_BRA); /* the self-branch every kernel here ends with */ + self.control = 0x000fc000u; + if (omega_bw_ir_append(e->p, &self) < 0) e->err = -1; +} +/* Loops may nest (prime race cut): begin pushes the start, end pops it, so the inner + * loop is closed (and its liveness fixed) first. For the single-level loops above this + * is exactly the old behaviour. */ +static void loop_begin(Em *e) { if (e->depth >= EW_MAX_LOOPS) { e->err = -1; return; } e->open_start[e->depth++] = here(e); } +/* Closing a loop: every value defined before the loop and read inside it stays + * live until the back-branch, otherwise the linear-scan allocator (which knows + * nothing about back-edges) would hand its register to a body temporary whose + * first definition comes after the value's last textual use (e.g. the scale y + * in rmsnorm pass 2), and the next iteration would read garbage. */ +static void loop_end(Em *e) { + if (e->n_loops >= EW_MAX_LOOPS || e->depth <= 0) { e->err = -1; return; } + int start = e->open_start[--e->depth], end = here(e) - 1; + e->loop_start[e->n_loops] = start; + e->loop_end[e->n_loops] = end; + e->n_loops++; + OmegaRegAlloc *ra = &e->p->regalloc; + for (int v = 0; v < ra->num_vregs; v++) { + OmegaLiveInterval *iv = &ra->intervals[v]; + if (iv->first_def >= 0 && iv->first_def < start && iv->last_use >= start && iv->last_use < end) iv->last_use = end; + } +} + +/* Kernel argument words (constant bank 0, same slots as the matmul path): + * 0x380 a, 0x388 b, 0x390 c (64-bit each), then four 32-bit parameters. */ +#define ARG_A 0x380u +#define ARG_B 0x388u +#define ARG_C 0x390u +#define ARG_P0 0x398u +#define ARG_P1 0x39cu +#define ARG_P2 0x3a0u +#define ARG_P3 0x3a4u +#define ARG_P4 0x3a8u +#define DESC_OFF 0x358u + +typedef struct { int udesc, pa, pb, pc, tid, cta; } Pro; +static Pro prologue(Em *e) { + Pro r; + r.udesc = UV64(e); r.pa = V64(e); r.pb = V64(e); r.pc = V64(e); r.tid = V(e); r.cta = V(e); + ldcu64(e, r.udesc, DESC_OFF); + ldc64(e, r.pa, ARG_A); ldc64(e, r.pb, ARG_B); ldc64(e, r.pc, ARG_C); + s2r(e, r.tid, BW_SR_TID_X); s2r(e, r.cta, BW_SR_CTAID_X); + return r; +} + +/* out[i] = 2^a[i] for i < n (n = P0). Threads 128, grid ceil(n/128). Mutant: 2^(a+1). */ +static void gen_ex2(Em *e, int mutant) { + Pro p = prologue(e); + int n = V(e), i = V(e), off = V64(e), x = V(e), y = V(e); + ldc32(e, n, ARG_P0); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + isetp_ge_u32(e, i, n); + exit_if_p0(e); + addr4(e, off, i, p.pa); + ldg(e, x, off, p.udesc); + if (mutant) { int one = V(e); movf(e, one, 1.0f); fadd(e, x, x, one); } + mufu(e, BW_IR_MUFU_EX2, y, x); + addr4(e, off, i, p.pc); + stg(e, off, y, p.udesc); + tail(e); +} + +/* out[i] = a[i ^ 127] within each CTA of 128 (n % 128 == 0). STS own word, BAR.SYNC, + * LDS the partner word. Mutant: LDS own word (no exchange). */ +static void gen_xchg(Em *e, int mutant) { + Pro p = prologue(e); + int i = V(e), off = V64(e), x = V(e), saddr = V(e), paddr = V(e), mask = V(e), y = V(e); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + addr4(e, off, i, p.pa); + ldg(e, x, off, p.udesc); + imadi(e, saddr, p.tid, 4, NOREG); + sts32(e, saddr, x); + bar_sync(e); + if (mutant) { + lds32(e, y, saddr); + } else { + movi(e, mask, OMEGA_GPU_EW_THREADS - 1); + lop3xor(e, paddr, p.tid, mask); + imadi(e, paddr, paddr, 4, NOREG); + lds32(e, y, paddr); + } + addr4(e, off, i, p.pc); + stg(e, off, y, p.udesc); + tail(e); +} + +/* One CTA of 128 threads per row. P0 = dim/128 (loop count), P1 = bits(1/dim), + * P2 = bits(eps), P3 = dim. Mutant: the warp tree drops the last SHFL step. */ +static void gen_rmsnorm(Em *e, int mutant) { + Pro p = prologue(e); + int nk = V(e), invd = V(e), eps = V(e), dim = V(e); + int rowbase = V(e), idx = V(e), col = V(e), k = V(e), acc = V(e), cT = V(e), c1 = V(e); + int off = V64(e), x = V(e), t = V(e); + ldc32(e, nk, ARG_P0); ldc32(e, invd, ARG_P1); ldc32(e, eps, ARG_P2); ldc32(e, dim, ARG_P3); + imadr(e, rowbase, p.cta, dim, NOREG); + iadd3(e, idx, rowbase, p.tid); + movrz(e, acc); movrz(e, k); + movi(e, cT, OMEGA_GPU_EW_THREADS); movi(e, c1, 1); + loop_begin(e); + int l1 = here(e); + addr4(e, off, idx, p.pa); + ldg(e, x, off, p.udesc); + ffma(e, acc, x, x, acc); + iadd3(e, idx, idx, cT); + iadd3(e, k, k, c1); + isetp_ge_u32(e, k, nk); + bra_back_if_not_p0(e, l1); + loop_end(e); + static const uint32_t steps[5] = { 16, 8, 4, 2, 1 }; + for (int s = 0; s < (mutant ? 4 : 5); s++) { shfl_down(e, t, acc, steps[s]); fadd(e, acc, acc, t); } + int saddr = V(e); + imadi(e, saddr, p.tid, 4, NOREG); + sts32(e, saddr, acc); + bar_sync(e); + int a0 = V(e), a1 = V(e), a2 = V(e), a3 = V(e), s0 = V(e), s1 = V(e), s2 = V(e), s3 = V(e), sum = V(e); + movrz(e, a0); movi(e, a1, 128); movi(e, a2, 256); movi(e, a3, 384); + lds32(e, s0, a0); lds32(e, s1, a1); lds32(e, s2, a2); lds32(e, s3, a3); + fadd(e, sum, s0, s1); fadd(e, sum, sum, s2); fadd(e, sum, sum, s3); + int v = V(e), y = V(e), u = V(e), cmh = V(e), c15 = V(e); + fmul(e, v, sum, invd); + fadd(e, v, v, eps); + mufu(e, BW_IR_MUFU_RSQ, y, v); + movf(e, cmh, -0.5f); movf(e, c15, 1.5f); + fmul(e, u, v, y); fmul(e, u, u, y); ffma(e, u, u, cmh, c15); fmul(e, y, y, u); + int offw = V64(e), offc = V64(e), w = V(e), o = V(e); + iadd3(e, idx, rowbase, p.tid); + imadi(e, col, p.tid, 1, NOREG); /* col = tid (the encoder maps a missing src2 to R0, not RZ, so no IADD3 here) */ + movrz(e, k); + loop_begin(e); + int l2 = here(e); + addr4(e, off, idx, p.pa); + ldg(e, x, off, p.udesc); + addr4(e, offw, col, p.pb); + ldg(e, w, offw, p.udesc); + fmul(e, o, x, y); + fmul(e, o, o, w); + addr4(e, offc, idx, p.pc); + stg(e, offc, o, p.udesc); + iadd3(e, idx, idx, cT); + iadd3(e, col, col, cT); + iadd3(e, k, k, c1); + isetp_ge_u32(e, k, nk); + bra_back_if_not_p0(e, l2); + loop_end(e); + tail(e); +} + +/* One CTA of head_dim/2 threads per head. P0 = head_dim, P1 = head_dim/2. + * a = vector, b = table (cos in the first half of each head, sin in the second). + * Mutant: out0 = q0*cos + q1*sin. */ +static void gen_rope(Em *e, int mutant) { + Pro p = prologue(e); + int hd = V(e), half = V(e), i0 = V(e), i1 = V(e), off0 = V64(e), off1 = V64(e); + int q0 = V(e), q1 = V(e), c = V(e), s = V(e), t0 = V(e), t1 = V(e), o0 = V(e), o1 = V(e); + ldc32(e, hd, ARG_P0); ldc32(e, half, ARG_P1); + imadr(e, i0, p.cta, hd, p.tid); + iadd3(e, i1, i0, half); + addr4(e, off0, i0, p.pa); ldg(e, q0, off0, p.udesc); + addr4(e, off1, i1, p.pa); ldg(e, q1, off1, p.udesc); + addr4(e, off0, i0, p.pb); ldg(e, c, off0, p.udesc); + addr4(e, off1, i1, p.pb); ldg(e, s, off1, p.udesc); + fmul(e, t0, q0, c); fmul(e, t1, q1, s); + if (mutant) fadd(e, o0, t0, t1); else fsub(e, o0, t0, t1); + fmul(e, t0, q0, s); fmul(e, t1, q1, c); + fadd(e, o1, t0, t1); + addr4(e, off0, i0, p.pc); stg(e, off0, o0, p.udesc); + addr4(e, off1, i1, p.pc); stg(e, off1, o1, p.udesc); + tail(e); +} + +/* out[i] = g/(1+2^(g*-log2e)) * up for i < n (P0). Mutant: 2^(g*+log2e). */ +static void gen_swiglu(Em *e, int mutant) { + Pro p = prologue(e); + int n = V(e), i = V(e), off = V64(e), g = V(e), u = V(e), k = V(e), t = V(e), ex = V(e), d = V(e), r = V(e), one = V(e), o = V(e); + ldc32(e, n, ARG_P0); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + isetp_ge_u32(e, i, n); + exit_if_p0(e); + addr4(e, off, i, p.pa); ldg(e, g, off, p.udesc); + addr4(e, off, i, p.pb); ldg(e, u, off, p.udesc); + movf(e, k, mutant ? 1.4426950408889634f : -1.4426950408889634f); + movf(e, one, 1.0f); + fmul(e, t, g, k); + mufu(e, BW_IR_MUFU_EX2, ex, t); + fadd(e, d, ex, one); + mufu(e, BW_IR_MUFU_RCP, r, d); + fmul(e, o, g, r); + fmul(e, o, o, u); + addr4(e, off, i, p.pc); + stg(e, off, o, p.udesc); + tail(e); +} + +/* ------------------------------------------- prime race sieve (2026-10-05) */ +static void lop3lut(Em *e, int d, int a, int b, int c, uint32_t lut) { BlackwellIRInsn i = I0(BW_IR_LOP3_LUT); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; i.imm = lut & 0xffu; emit(e, i, K_FIXED); } +static void shl_r(Em *e, int d, int a, int n) { BlackwellIRInsn i = I0(BW_IR_SHF_L_U32); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = n; emit(e, i, K_FIXED); } +static void shr_i(Em *e, int d, int a, uint32_t n) { BlackwellIRInsn i = I0(BW_IR_SHF_R); i.dst_vreg = d; i.src1_vreg = a; i.imm = n; emit(e, i, K_FIXED); } +static void imadhi(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IMAD_HI_U32); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +/* dst64 = a * imm + c64 (IMAD.WIDE.U32 immediate form) */ +static void widei(Em *e, int dst64, int a, uint32_t imm, int c64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c64; emit(e, i, K_FIXED); } +/* @P0 BRA forward; returns the instruction index for bra_patch_here */ +static int bra_fwd_if_p0(Em *e) { int at = here(e); BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.imm = 1; emit(e, i, K_BRA); return at; } +static void bra_patch_here(Em *e, int at) { if (e->err == 0 && at >= 0 && at < here(e)) e->p->insns[at].imm = (uint32_t)(here(e) - at); else e->err = -1; } +static void bra_always(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } + +/* ---- structured reconvergence regions (omega #308; bookkeeping in omega_bw_reconv.h) ---- + * region_begin: BSSY Bd (d = nesting depth), fails closed when no barrier register is left. + * region_exit: a forward branch out of the innermost region, patched to its BSYNC at join + * (RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0). + * region_join: BSYNC Bd; patches the BSSY to the instruction after it and every exit to it. + * Usage: divergent loop = region_begin; L: isetp; region_exit(RX_IF_P0); body; bra_always(L); region_join. + * if/else diamond = region_begin; isetp; t = bra_fwd_if_p0; then; region_exit(RX_ALWAYS); + * bra_patch_here(t); else; region_join. */ +enum { RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0 }; +static int region_begin(Em *e) { + int bar = bw_regions_next_bar(&e->rg); + if (bar < 0) { e->err = -1; return -1; } + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BSSY); i.bar_reg = (uint8_t)bar; i.imm = 2; emit(e, i, K_BSSY); + if (bw_regions_begin(&e->rg, at) < 0) e->err = -1; + return bar; +} +static void region_exit(Em *e, int cond) { + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = 1; + if (cond != RX_ALWAYS) { i.predicate_p0 = true; i.predicate_not = (cond == RX_IF_NOT_P0); } + emit(e, i, K_BRA); + if (bw_regions_exit(&e->rg, at) < 0) e->err = -1; +} +static void region_join(Em *e) { + if (e->rg.depth <= 0) { e->err = -1; return; } + int d = e->rg.depth - 1, bsync = here(e); + BlackwellIRInsn i = I0(e->rg_mutant == 1 ? BW_IR_NOP : BW_IR_BSYNC); i.bar_reg = (uint8_t)d; emit(e, i, K_BSYNC); + if (e->rg_mutant == 1) { + /* negative control (host sim only): the join is a NOP; patch as the real join would */ + BwRegions *r = &e->rg; r->depth--; + e->p->insns[r->bssy_at[d]].imm = (uint32_t)(bsync + 1 - r->bssy_at[d]); + for (int k = 0; k < r->n_exits[d]; k++) e->p->insns[r->exits[d][k]].imm = (uint32_t)(bsync - r->exits[d][k]); + return; + } + if (bw_regions_join(&e->rg, e->p, bsync) != d) e->err = -1; + if (e->rg_mutant == 2) e->p->insns[e->rg.bssy_at[d]].imm += 1; /* negative control: BSSY names the wrong join */ +} + +/* Word-parallel odd-only sieve (docs: handoff 2026-10-05 DESIGN "GPU kernel (native)"). + * Thread t owns 32-bit output words w = t, t + S, t + 2S, ... (S = P1 = threads launched; + * the I42 envelope caps a launch at OMEGA_GPU_EW_MAX_CTAS CTAs, so a grid-stride loop + * replaces one thread per word). Every word has exactly one writer; no atomics. + * Bit j of word w is the odd number 2(32w + j) + 1. + * Arguments: a (0x380) = prime table, entries {p, magic = ceil(2^32 / p), k0 = (p*p - 1)/2} + * (12 bytes, ascending p, odd primes <= isqrt(limit)) followed by ONE sentinel entry with + * k0 = 0xffffffff that ends every scan; c (0x390) = output words; + * P0 = nwords, P1 = S, P2 = last word index, P3 = ~tailmask (bits past the last odd). + * Range: limit < 2^32 (so base, k0 < 2^31 and the sign-bit tricks below hold). + * Per word: base = 32w; for each prime while k0 < base + 32: + * d = base - k0; neg = d >> 31 (k0 > base); dpos = neg ? 0 : d; jadd = neg ? k0 - base : 0 + * q = hi32(dpos * magic) (= floor(dpos/p) or one more: magic is rounded up) + * r = dpos - q*p (q one too big -> r = (dpos mod p) - p, wrapped) + * j = p - r; j -= p * ((r - 1) >> 31) (r == 0 -> 0; wrapped r -> p - (dpos mod p)) + * One fix covers both cases: with q one too big, dpos mod p >= p - dpos*e/2^32 > p/2 > 0 + * (e = magic*p - 2^32 < p, dpos < 2^31), so the true remainder is never 0 there and + * p - r - p = p - (dpos mod p) is the right offset. A separate "r += p if wrapped" step was + * removed after a negative control showed it changes no output (host sim, limit 1e7, where + * the overshoot occurs 268 times; bench/prime_race/tests magic_model). + * j += jadd; while j < 32 { acc |= 1 << j; j += p } + * then acc |= (w == 0) (the number 1), word = ~(acc | (w == last ? ~tailmask : 0)). + * Branch-free except the loop branches. Mutant: drops the j fix (j = p - r unreduced), so words where + * base - k0 is a multiple of p (or q overshot) mark the wrong bits. + * + * staged = 1 (OMEGA_GPU_EW_PRIME_SIEVE_SHARED, campaign C3): P4 = table words, sentinel included + * (3 per entry). The CTA first copies the table into shared memory at offset 0 (thread t copies + * words t, t + 128, ...), BAR_SYNC, then the prime loop reads shared memory (LDS) instead of + * uncached global memory. Every thread reaches the barrier: the w >= nwords exit comes after + * it. The launch must declare at least 4 * P4 bytes of shared memory. + * + * divergent (omega #308, regression R1): 0 = the warp-uniform mark loop above (campaign C5). + * 1 = the original lane-dependent mark loop (omega 888a011: `while j < 32 { acc |= 1 << j; j += p }`) + * wrapped in a reconvergence region. 2 = as 1, and the prime loop (whose break `k0 >= base + 32` + * is also lane-dependent: every lane sieves a different word) wrapped in an outer region, so the + * mark loop's region nests inside it (B0 outer, B1 inner). */ +static void gen_prime_sieve(Em *e, int mutant, int staged, int divergent) { + Pro pr = prologue(e); + int nwords = V(e), stride = V(e), lastw = V(e), tailinv = V(e); + int one = V(e), c32 = V(e), cm1 = V(e), w = V(e); + ldc32(e, nwords, ARG_P0); ldc32(e, stride, ARG_P1); ldc32(e, lastw, ARG_P2); ldc32(e, tailinv, ARG_P3); + movi(e, one, 1); movi(e, c32, 32); movi(e, cm1, 0xffffffffu); + int c4 = -1, c8 = -1, c12 = -1; + if (staged) { + int twords = V(e), i = V(e), ga = V64(e), val = V(e), sa = V(e); + c4 = V(e); c8 = V(e); c12 = V(e); + ldc32(e, twords, ARG_P4); + movi(e, c4, 4); movi(e, c8, 8); movi(e, c12, 12); + imadi(e, i, pr.tid, 1, NOREG); + /* The staging loop's trip count differs per thread (thread t copies words t, t+128, ...), + * so its exit splits the warp. The divergent variants rejoin the warp before BAR.SYNC + * (a barrier is not a reconvergence point: the fragments would stay split for the rest + * of the kernel). The production kernel keeps the 2026-10-05 C3 form unchanged. */ + if (divergent) region_begin(e); + loop_begin(e); /* staging loop */ + int ls = here(e); + isetp_ge_u32(e, i, twords); + int sdone = -1; + if (divergent) region_exit(e, RX_IF_P0); else sdone = bra_fwd_if_p0(e); + addr4(e, ga, i, pr.pa); + ldg(e, val, ga, pr.udesc); + imadi(e, sa, i, 4, NOREG); + sts32(e, sa, val); + imadi(e, i, one, OMEGA_GPU_EW_THREADS, i); + bra_always(e, ls); + loop_end(e); + if (divergent) region_join(e); else bra_patch_here(e, sdone); + bar_sync(e); + } + imadi(e, w, pr.cta, OMEGA_GPU_EW_THREADS, pr.tid); + isetp_ge_u32(e, w, nwords); + exit_if_p0(e); + + /* ptr, a64, a64m: global addresses, or (staged) 32-bit shared offsets */ + int base = V(e), basep32 = V(e), acc = V(e); + int ptr = staged ? V(e) : V64(e), a64 = staged ? V(e) : V64(e), a64m = staged ? V(e) : V64(e); + int p = V(e), magic = V(e), k0 = V(e), negp = V(e), d = V(e), neg = V(e), nd = V(e), dpos = V(e), jadd = V(e); + int q = V(e), r = V(e), j = V(e), t = V(e), z = V(e), bit = V(e); + int e1 = V(e), m = V(e), word = V(e), oaddr = V64(e); + int tt = V(e), jj = V(e), sh = V(e), c31 = V(e), cm32 = V(e); + movi(e, c31, 31); movi(e, cm32, 0xffffffe0u); + + loop_begin(e); /* word loop */ + int lw = here(e); + imadi(e, base, w, 32, NOREG); + iadd3(e, basep32, base, c32); + movrz(e, acc); + if (staged) movrz(e, ptr); else widei(e, ptr, one, 0, pr.pa); + + if (divergent >= 2) region_begin(e); /* outer region: the prime loop's break is lane-dependent */ + loop_begin(e); /* prime loop */ + int lp = here(e); + /* one memory round trip per prime: all three entry words load together (C2a). The + * sentinel entry is a whole entry, so loading p and magic before the k0 test is in bounds. */ + if (staged) { iadd3(e, a64, ptr, c8); iadd3(e, a64m, ptr, c4); } + else { widei(e, a64, one, 8, ptr); widei(e, a64m, one, 4, ptr); } + { + const int dsts[3] = { k0, p, magic }, adrs[3] = { a64, ptr, a64m }; + if (staged) ld_group(e, BW_IR_LDS32, 3, dsts, adrs, NOREG); + else ld_group(e, BW_IR_LDG_E, 3, dsts, adrs, pr.udesc); + } + isetp_ge_u32(e, k0, basep32); + int brk = -1; + if (divergent >= 2) region_exit(e, RX_IF_P0); else brk = bra_fwd_if_p0(e); + imadi(e, negp, p, 0xffffffffu, NOREG); /* -p */ + imadi(e, d, k0, 0xffffffffu, base); /* base - k0 */ + shr_i(e, neg, d, 31); + imadi(e, nd, d, 0xffffffffu, NOREG); /* -d */ + imadr(e, dpos, neg, nd, d); /* d - neg*d */ + imadr(e, jadd, neg, nd, NOREG); /* neg * (k0 - base) */ + imadhi(e, q, dpos, magic); + imadr(e, r, q, negp, dpos); /* dpos - q*p */ + imadi(e, j, r, 0xffffffffu, p); /* p - r */ + if (!mutant) { + iadd3(e, t, r, cm1); + shr_i(e, z, t, 31); /* r == 0, or r wrapped (q one too big) */ + imadr(e, j, z, negp, j); /* j - p */ + } + iadd3(e, j, j, jadd); + + /* mark loop (campaign C5): the trip count depends only on p, so every active lane runs the + * same ceil(32/p) steps and the warp never splits here (all active lanes are on the same + * prime). Bits past this word are masked out instead of branched around. The old loop ran + * "while j < 32", a lane-dependent branch with no reconvergence point. */ + if (divergent) { + /* R1: the 888a011 mark loop, lane-dependent trip count, inside a region. Each lane + * leaves at its own iteration (the exit jumps to the BSYNC) and the warp reunites there. */ + region_begin(e); + loop_begin(e); + int li = here(e); + isetp_ge_u32(e, j, c32); + region_exit(e, RX_IF_P0); + shl_r(e, bit, one, j); + lop3lut(e, acc, acc, bit, NOREG, 0xfc); /* acc | bit */ + iadd3(e, j, j, p); + bra_always(e, li); + loop_end(e); + region_join(e); + } else { + movrz(e, tt); + loop_begin(e); + int li = here(e); + isetp_ge_u32(e, tt, c32); + int done = bra_fwd_if_p0(e); + iadd3(e, jj, j, tt); + lop3lut(e, sh, jj, c31, NOREG, 0xc0); /* jj & 31 */ + shl_r(e, bit, one, sh); + iadd3(e, t, jj, cm32); + shr_i(e, z, t, 31); /* jj < 32 (j <= p + 31, far below 2^31) */ + imadi(e, m, z, 0xffffffffu, NOREG); /* all ones when jj < 32, else 0 */ + lop3lut(e, acc, acc, bit, m, 0xf8); /* acc | (bit & m) */ + iadd3(e, tt, tt, p); + bra_always(e, li); + loop_end(e); + bra_patch_here(e, done); + } + + if (staged) iadd3(e, ptr, ptr, c12); else widei(e, ptr, one, 12, ptr); + bra_always(e, lp); + loop_end(e); + if (divergent >= 2) region_join(e); else bra_patch_here(e, brk); + + iadd3(e, t, w, cm1); + shr_i(e, z, t, 31); /* w == 0: the number 1 is not prime */ + lop3lut(e, acc, acc, z, NOREG, 0xfc); + lop3xor(e, e1, w, lastw); + iadd3(e, t, e1, cm1); + shr_i(e, z, t, 31); /* w == last word */ + imadr(e, m, z, tailinv, NOREG); + lop3lut(e, word, acc, m, NOREG, 0x03); /* ~(acc | m) */ + addr4(e, oaddr, w, pr.pc); + stg(e, oaddr, word, pr.udesc); + /* IMAD, not IADD3: the IADD3 encoder ignores the scheduler control word (fixed + * 0x010fca00), so right after a store it would not wait on the read barrier */ + imadr(e, w, stride, one, w); + isetp_ge_u32(e, w, nwords); + bra_back_if_not_p0(e, lw); + loop_end(e); + tail(e); +} + +/* ---- reconvergence probes (omega #308, regressions R3..R6 and the resource bound) ---- + * All: a, b = u32 inputs, out = u32, P0 = n; 128 threads, grid ceil(n/128); launched by + * omega_gpu_reconv_probe_u32. A lane past n clamps its index to n-1 so that it loads valid + * data and takes part in the warp-wide SHFL; it exits only after the SHFL, before its store. + * Each probe computes a per-lane r on divergent paths, joins, then + * out[i] = r + 4099 * s, s = r of lane (lane+1) in the same warp (SHFL.DOWN 1; lane 31: own r) + * so a lane that joined late, never, or with the wrong value shows in the neighbour's word too. + * The host oracle is rc_oracle in tests/gpu_reconv_test.c. */ +typedef struct { Pro pr; int n, i, idx, x, y, r, s, one, cm1; } Rp; +static Rp rp_begin(Em *e) { + Rp k; memset(&k, 0, sizeof k); + k.pr = prologue(e); + k.n = V(e); k.i = V(e); k.idx = V(e); k.x = V(e); k.y = V(e); k.r = V(e); k.s = V(e); k.one = V(e); k.cm1 = V(e); + int nm1 = V(e), d = V(e), neg = V(e), off = V64(e); + ldc32(e, k.n, ARG_P0); + movi(e, k.one, 1); movi(e, k.cm1, 0xffffffffu); + imadi(e, k.i, k.pr.cta, OMEGA_GPU_EW_THREADS, k.pr.tid); + iadd3(e, nm1, k.n, k.cm1); /* n - 1 */ + imadi(e, d, k.i, 0xffffffffu, nm1); /* (n - 1) - i, top bit set when i > n - 1 */ + shr_i(e, neg, d, 31); + imadr(e, k.idx, neg, d, k.i); /* i, or n - 1 when past the end */ + addr4(e, off, k.idx, k.pr.pa); ldg(e, k.x, off, k.pr.udesc); + addr4(e, off, k.idx, k.pr.pb); ldg(e, k.y, off, k.pr.udesc); + return k; +} +static void rp_end(Em *e, const Rp *k) { + int out = V(e), off = V64(e); + shfl_down(e, k->s, k->r, 1); + imadi(e, out, k->s, 4099, k->r); + isetp_ge_u32(e, k->i, k->n); + exit_if_p0(e); + addr4(e, off, k->i, k->pr.pc); + stg(e, off, out, k->pr.udesc); + tail(e); +} +/* R3: if/else with sides of different length. x >= y: r = f(x, y) (5 steps); else r = x + 1. + * Math mutant: the long side is one too big. */ +static void gen_rc_diamond(Em *e, int mutant) { + Rp k = rp_begin(e); + int t = V(e), u = V(e); + region_begin(e); + isetp_ge_u32(e, k.x, k.y); + int els = bra_fwd_if_p0(e); + iadd3(e, k.r, k.x, k.one); /* short side */ + region_exit(e, RX_ALWAYS); + bra_patch_here(e, els); + imadi(e, t, k.x, 3, k.y); /* long side: t = 3x + y */ + lop3xor(e, u, t, k.x); /* u = t ^ x */ + imadi(e, k.r, u, 5, k.one); /* r = 5u + 1 */ + shr_i(e, t, k.r, 3); + iadd3(e, k.r, k.r, t); /* r += r >> 3 */ + if (mutant) iadd3(e, k.r, k.r, k.one); + region_join(e); + rp_end(e, &k); +} +/* The lane-dependent loop shared by R4 and R5: v = x & 255, step = (y & 15) + 1, + * while v < 256 { v += step; cnt += 1 }. Math mutant: the bound is 255. Emits the region. */ +static void rc_count_loop(Em *e, const Rp *k, int mutant, int v, int cnt) { + int st = V(e), bound = V(e), c255 = V(e), c15 = V(e); + movi(e, c255, 255); movi(e, c15, 15); movi(e, bound, mutant ? 255 : 256); + lop3lut(e, v, k->x, c255, NOREG, 0xc0); + lop3lut(e, st, k->y, c15, NOREG, 0xc0); + iadd3(e, st, st, k->one); + movrz(e, cnt); + region_begin(e); + loop_begin(e); + int L = here(e); + isetp_ge_u32(e, v, bound); + region_exit(e, RX_IF_P0); + iadd3(e, v, v, st); + iadd3(e, cnt, cnt, k->one); + bra_always(e, L); + loop_end(e); + region_join(e); +} +/* R4: lane-dependent loop exit (break). r = 256 * cnt + v. */ +static void gen_rc_loopbreak(Em *e, int mutant) { + Rp k = rp_begin(e); + int v = V(e), cnt = V(e); + rc_count_loop(e, &k, mutant, v, cnt); + imadi(e, k.r, cnt, 256, v); + rp_end(e, &k); +} +/* R5: nested divergence. Odd x: r = 7 (skips the inner region). Even x: the R4 loop inside the + * outer region, r = 256 * cnt + v + 100. */ +static void gen_rc_nested(Em *e, int mutant) { + Rp k = rp_begin(e); + int v = V(e), cnt = V(e), low = V(e), c100 = V(e); + movi(e, k.r, 7); movi(e, c100, 100); + lop3lut(e, low, k.x, k.one, NOREG, 0xc0); /* x & 1 */ + region_begin(e); + isetp_ge_u32(e, low, k.one); + region_exit(e, RX_IF_P0); + rc_count_loop(e, &k, mutant, v, cnt); + imadi(e, k.r, cnt, 256, v); + iadd3(e, k.r, k.r, c100); + region_join(e); + rp_end(e, &k); +} +/* R6: lanes past the end, a divergent region, then a CTA-wide exchange and the warp SHFL. + * xv = x | 1 computed on divergent paths (even lanes take the branch), every thread stores xv + * to its shared slot, BAR.SYNC, reads its partner's (tid ^ 1), r = 3x + partner_xv. + * Production form: lanes past n are clamped and exit after the SHFL (correct). early_exit + * (mutant 1): lanes past n EXIT first, as a naive kernel would; the emitter refuses that + * (BAR/SHFL after a predicated EXIT). Only the host-test build path (codegen_ir) may bypass the + * refusal, so the simulator can show what the kernel would do (SHFL_EXITED); a launch never can. */ +static void gen_rc_exit_bar(Em *e, int early_exit) { + Rp k = rp_begin(e); + int saddr = V(e), paddr = V(e), yv = V(e), xv = V(e), low = V(e); + if (early_exit) { + e->exit_sync_ok = early_exit == 1 && e->test_path; + isetp_ge_u32(e, k.i, k.n); + exit_if_p0(e); + } + imadi(e, xv, k.x, 1, NOREG); + lop3lut(e, low, k.x, k.one, NOREG, 0xc0); /* x & 1 */ + region_begin(e); + isetp_ge_u32(e, low, k.one); + region_exit(e, RX_IF_P0); /* odd lanes leave */ + iadd3(e, xv, xv, k.one); /* even lanes: xv = x + 1 */ + region_join(e); + imadi(e, saddr, k.pr.tid, 4, NOREG); + sts32(e, saddr, xv); + bar_sync(e); + lop3xor(e, paddr, k.pr.tid, k.one); + imadi(e, paddr, paddr, 4, NOREG); + lds32(e, yv, paddr); + imadi(e, k.r, k.x, 3, yv); + rp_end(e, &k); +} +/* Barrier-register bound: `levels` nested regions, each leaving lanes with x >= y out and adding 1 + * for the others: r = x + levels * (x < y). 16 levels must build (B0..B15); 17 must be refused. */ +static void gen_rc_depth(Em *e, int levels) { + Rp k = rp_begin(e); + imadi(e, k.r, k.x, 1, NOREG); + for (int d = 0; d < levels; d++) { + region_begin(e); + isetp_ge_u32(e, k.x, k.y); + region_exit(e, RX_IF_P0); + iadd3(e, k.r, k.r, k.one); + } + for (int d = 0; d < levels; d++) region_join(e); + rp_end(e, &k); +} +/* Codegen refusals (each must come back CODEGEN_FAIL; a kernel with a split warp at a + * cross-lane step must never reach the chip). */ +static void gen_rc_refuse(Em *e, OmegaGpuEwOp which) { + Rp k = rp_begin(e); + switch (which) { + case OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION: region_begin(e); isetp_ge_u32(e, k.i, k.n); exit_if_p0(e); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION: region_begin(e); bar_sync(e); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION: region_begin(e); shfl_down(e, k.s, k.x, 1); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_UNCLOSED: region_begin(e); isetp_ge_u32(e, k.x, k.y); region_exit(e, RX_IF_P0); break; /* no join */ + case OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY: region_join(e); break; /* BSYNC without BSSY */ + default: e->err = -1; break; + } + imadi(e, k.r, k.x, 1, NOREG); + rp_end(e, &k); +} + +/* A value first defined inside a loop body may not be read after the loop + * before it is written again: the allocator could have let a later body + * temporary share its register, and the last iteration's value would be lost. */ +static int check_loop_invariant(const Em *e) { + const OmegaRegAlloc *ra = &e->p->regalloc; + for (int L = 0; L < e->n_loops; L++) + for (int v = 0; v < ra->num_vregs; v++) { + int fd = ra->intervals[v].first_def; + if (fd < e->loop_start[L] || fd > e->loop_end[L]) continue; + for (size_t i = (size_t)e->loop_end[L] + 1; i < e->p->count; i++) { + const BlackwellIRInsn *in = &e->p->insns[i]; + if (in->src1_vreg == v || in->src2_vreg == v || in->src3_vreg == v) return -1; + if (in->dst_vreg == v && !in->is_uniform) break; + } + } + return 0; +} + +#define EW_GPR_BUDGET 64u /* the QMD declares 64 registers, as the matmul launcher does */ + +/* Mesa NAK sm120_instr_latencies.rs + sm100/reg_raw.csv: ALU/dual-ALU pairs + * and FMA/FMA pairs need 4 + 1 cycles; mixed pairs need 5 + 1. CSV rows are + * READERS, columns WRITERS (see lat_rs_gen.py), not the reverse. IMAD.WIDE + * has operand-specific latencies and is deliberately excluded here. + * + * Retain at least 5 cycles after every fixed producer. Thus the next reader + * uses the pair-specific bound and later readers are >= 9 cycles away (the + * next instruction in a tightened pair is itself fixed). No instruction, + * branch target, wait, barrier assignment or register allocation is changed. + * IADD3's encoder still supplies its historical control word; do not pretend + * to schedule that producer here. Its existing 5-cycle delay is unchanged. + * + * Predicate-to-guard uses NAK paw_latency -> raw(write, None): reader + * RedirectedFp64, writer Dualalu = 13, plus SM120's 1 = 14, in emit above. + * NVIDIA's public ISA docs are silent about SASS control-word semantics. + */ +static int fixed_pair_class(BlackwellIROpcode op) { + switch (op) { + case BW_IR_MOV_RZ: case BW_IR_MOV_IMM: case BW_IR_IADD3: + case BW_IR_LOP3_XOR: case BW_IR_LOP3_LUT: + case BW_IR_SHF_R: case BW_IR_SHF_L_U32: return 1; + case BW_IR_IMAD: case BW_IR_IMAD_HI_U32: + case BW_IR_FADD: case BW_IR_FSUB: case BW_IR_FMUL: case BW_IR_FFMA: return 2; + default: return 0; + } +} + +static void schedule_fixed_pairs(BlackwellIRProgram *p) { + for (size_t i = 0; i + 1 < p->count; i++) { + BlackwellIRInsn *a = &p->insns[i]; + const BlackwellIRInsn *b = &p->insns[i + 1]; + int cls = fixed_pair_class(a->op); + if (!cls || cls != fixed_pair_class(b->op) || a->op == BW_IR_IADD3 || + a->predicate_p0 || b->predicate_p0 || ((a->control >> 9) & 15u) != 6) + continue; + a->control = (a->control & ~(15u << 9)) | (5u << 9); + } +} + +static int build_kernel(OmegaGpuEwOp op, int mutant, OmegaBlackwellKernel *kernel, BlackwellIRProgram *prog_out, int test_path) { + BlackwellIRProgram *prog = calloc(1, sizeof *prog); + if (!prog) return OMEGA_GPU_EW_CODEGEN_FAIL; + omega_bw_ir_init(prog); + Em e; memset(&e, 0, sizeof e); e.p = prog; e.test_path = test_path; + /* mutant 1 = the op's math mutant (as before); 2 = the join (BSYNC) dropped; 3 = the BSSY + * names the wrong join. 2 and 3 only change kernels that open a region. */ + e.rg_mutant = mutant == 2 ? 1 : mutant == 3 ? 2 : 0; + int math = mutant == 1; + switch (op) { + case OMEGA_GPU_EW_EX2: gen_ex2(&e, math); break; + case OMEGA_GPU_EW_XCHG: gen_xchg(&e, math); break; + case OMEGA_GPU_EW_RMSNORM: gen_rmsnorm(&e, math); break; + case OMEGA_GPU_EW_ROPE: gen_rope(&e, math); break; + case OMEGA_GPU_EW_SWIGLU: gen_swiglu(&e, math); break; + case OMEGA_GPU_EW_PRIME_SIEVE: gen_prime_sieve(&e, math, 0, 0); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED: gen_prime_sieve(&e, math, 1, 0); break; + case OMEGA_GPU_EW_PRIME_SIEVE_DIV1: gen_prime_sieve(&e, math, 0, 1); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV1: gen_prime_sieve(&e, math, 1, 1); break; + case OMEGA_GPU_EW_PRIME_SIEVE_DIV2: gen_prime_sieve(&e, math, 0, 2); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2: gen_prime_sieve(&e, math, 1, 2); break; + case OMEGA_GPU_EW_RC_DIAMOND: gen_rc_diamond(&e, math); break; + case OMEGA_GPU_EW_RC_LOOPBREAK: gen_rc_loopbreak(&e, math); break; + case OMEGA_GPU_EW_RC_NESTED: gen_rc_nested(&e, math); break; + case OMEGA_GPU_EW_RC_EXIT_BAR: gen_rc_exit_bar(&e, math); break; + case OMEGA_GPU_EW_RC_REFUSE_EXIT_SHFL: gen_rc_exit_bar(&e, 2); break; + case OMEGA_GPU_EW_RC_DEPTH16: gen_rc_depth(&e, BW_RECONV_MAX_BAR); break; + case OMEGA_GPU_EW_RC_REFUSE_DEPTH17: gen_rc_depth(&e, BW_RECONV_MAX_BAR + 1); break; + case OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION: case OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION: + case OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION: case OMEGA_GPU_EW_RC_REFUSE_UNCLOSED: + case OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY: gen_rc_refuse(&e, op); break; + default: e.err = -1; break; + } + if (e.rg.depth != 0) e.err = -1; /* a region left open has no join: refuse the build */ + schedule_fixed_pairs(prog); + int rc = OMEGA_GPU_EW_CODEGEN_FAIL; + int ra_rc = (e.err == 0) ? omega_bw_regalloc_solve(prog) : -1; + int loop_rc = (ra_rc == 0) ? check_loop_invariant(&e) : -1; +#ifdef OMEGA_EW_DEBUG + fprintf(stderr, "ew codegen op=%d mutant=%d emit_err=%d insns=%zu vregs=%d regalloc=%d loops=%d peak_gpr=%u\n", + (int)op, mutant, e.err, prog->count, prog->regalloc.num_vregs, ra_rc, loop_rc, prog->regalloc.peak_gpr_usage); +#endif + if (e.err == 0 && ra_rc == 0 && loop_rc == 0 && prog->regalloc.peak_gpr_usage <= EW_GPR_BUDGET) { + size_t max_bytes = (size_t)BW_MAX_IR_INSNS * 16; + memset(kernel, 0, sizeof *kernel); + kernel->code = malloc(max_bytes); + size_t emitted = 0; + if (kernel->code && omega_bw_encode_program(prog, kernel->code, max_bytes, &emitted) == 0) { + kernel->code_size = emitted; + kernel->insn_count = emitted / 16; + kernel->gpr_count = prog->regalloc.peak_gpr_usage; + kernel->uniform_gpr_count = prog->regalloc.peak_ugpr_usage; + sha256_hash(kernel->code, kernel->code_size, kernel->code_digest); + if (prog_out) *prog_out = *prog; + rc = OMEGA_GPU_EW_OK; + } else { +#ifdef OMEGA_EW_DEBUG + fprintf(stderr, "ew codegen op=%d: encode failed (an instruction form the encoder refuses)\n", (int)op); +#endif + free(kernel->code); kernel->code = NULL; + } + } + free(prog); + return rc; +} + +/* --------------------------------------------------------- kernel cache */ + +/* One kernel per (op, mutant); the device copy is uploaded once and stays + * resident for the process (cut 4b: no per-call code page). */ +typedef struct { int used; int op; int mutant; OmegaBlackwellKernel kernel; OmegaGpuMem code; } Slot; +static int g_mutant_op; /* 0 = none */ +static int g_mutant_level = 1; /* the mutant number built for g_mutant_op (1 math, 2 join dropped, 3 join corrupted) */ +static Slot g_cache[8]; +static OmegaGpuScratch g_a, g_b, g_c; /* staging, grown to the high-water mark, reused per call */ +static bool g_hooked; +#define LOCK() omega_gpu_session_lock() +#define UNLOCK() omega_gpu_session_unlock() + +static void cache_clear_locked(void) { + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used) { free(g_cache[i].kernel.code); omega_gpu_session_free(&g_cache[i].code); memset(&g_cache[i], 0, sizeof g_cache[i]); } +} + +void omega_gpu_elementwise_cache_clear(void) { + LOCK(); + cache_clear_locked(); + UNLOCK(); +} + +/* Called by the session (lock held, device still open) right before it closes. */ +static void on_session_close(void) { + cache_clear_locked(); + omega_gpu_session_scratch_free(&g_a); omega_gpu_session_scratch_free(&g_b); omega_gpu_session_scratch_free(&g_c); +} + +void omega_gpu_elementwise_test_set_mutant(int op) { + LOCK(); + g_mutant_op = op; g_mutant_level = 1; + cache_clear_locked(); + UNLOCK(); +} +void omega_gpu_elementwise_test_set_mutant_level(int op, int level) { + LOCK(); + g_mutant_op = op; g_mutant_level = level < 1 ? 1 : level > 3 ? 3 : level; + cache_clear_locked(); + UNLOCK(); +} + +/* Caller holds the lock. Builds the kernel if needed; uploads the device copy when a + * device is open (upload = false lets the host-only codegen path run without a chip). */ +static int kernel_for(OmegaGpuEwOp op, bool upload, Slot **out, bool *hit) { + int mutant = (g_mutant_op == (int)op) ? g_mutant_level : 0; + Slot *s = NULL; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used && g_cache[i].op == (int)op && g_cache[i].mutant == mutant) { s = &g_cache[i]; *hit = true; break; } + if (!s) { + OmegaBlackwellKernel k; + int rc = build_kernel(op, mutant, &k, NULL, 0); + if (rc != OMEGA_GPU_EW_OK) return rc; + size_t slot = 0; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) if (!g_cache[i].used) { slot = i; break; } + s = &g_cache[slot]; + if (s->used) { free(s->kernel.code); omega_gpu_session_free(&s->code); } /* full: evict slot 0 */ + memset(s, 0, sizeof *s); + s->used = 1; s->op = (int)op; s->mutant = mutant; s->kernel = k; + *hit = false; + } + if (upload && !s->code.cpu) { + if (omega_gpu_session_alloc_code(s->kernel.code_size, &s->code) != 0) return OMEGA_GPU_EW_CHIP_FAIL; + memcpy(s->code.cpu, s->kernel.code, s->kernel.code_size); + __asm__ volatile("dsb sy" ::: "memory"); + } + *out = s; + return OMEGA_GPU_EW_OK; +} + +int omega_gpu_elementwise_codegen(OmegaGpuEwOp op, const uint32_t *dims, float eps, OmegaBlackwellKernel *kernel) { + (void)dims; (void)eps; /* kernels read their shape from the argument words */ + if (!kernel) return OMEGA_GPU_EW_BAD_ARGS; + LOCK(); + int mutant = (g_mutant_op == (int)op) ? g_mutant_level : 0; + UNLOCK(); + return build_kernel(op, mutant, kernel, NULL, 0); +} + +int omega_gpu_elementwise_codegen_ir(OmegaGpuEwOp op, int mutant, void *prog, OmegaBlackwellKernel *kernel) { + if (!kernel) return OMEGA_GPU_EW_BAD_ARGS; + if (mutant < 0 || mutant > 3) return OMEGA_GPU_EW_BAD_ARGS; + return build_kernel(op, mutant, kernel, (BlackwellIRProgram *)prog, 1); +} + +const char *omega_gpu_elementwise_last_error(void) { return omega_gpu_session_last_error(); } + +/* ------------------------------------------------------------ launcher */ + +#define EW_POISON 0xffbadbadu /* a NaN pattern no kernel here produces on purpose */ +#define EW_WAIT_MS 600000ull /* like main's load/store launchers; a 5 s wait failed under contention (omega#198) */ + +static uint64_t now_ns(void) { + struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); + return (uint64_t)t.tv_sec * 1000000000ULL + (uint64_t)t.tv_nsec; +} + +/* Caller holds the lock. Opens the shared device on first use. */ +static int dev_open_locked(void) { + if (!g_hooked) { (void)omega_gpu_session_on_close(on_session_close); g_hooked = true; } + return omega_gpu_session_open() ? OMEGA_GPU_EW_OK : OMEGA_GPU_EW_CHIP_FAIL; +} + +/* One launch: a and b staged in, c out (c_bytes/4 words, poison-filled first), through + * the shared session (omega_gpu_session_launch: shader-cache invalidate, constant bank, + * QMD0/QMD1, first marker, L2_FLUSH_DIRTY, second marker), then readback and the + * poison scan. b may be NULL when b_fill wrote the staging buffer already. */ +static int run_abc(const Slot *ks, const void *a, size_t a_bytes, const void *b, size_t b_bytes, + void *c, size_t c_bytes, uint32_t threads_x, uint32_t grid_x, + const uint32_t params[4], OmegaGpuEwInfo *info) { + if (omega_gpu_session_scratch(&g_a, a_bytes) || omega_gpu_session_scratch(&g_b, b_bytes) || omega_gpu_session_scratch(&g_c, c_bytes)) + return OMEGA_GPU_EW_CHIP_FAIL; + memcpy(g_a.mem.cpu, a, a_bytes); + if (b) memcpy(g_b.mem.cpu, b, b_bytes); + size_t c_words = c_bytes / 4; + uint32_t *c_dev = (uint32_t *)g_c.mem.cpu; + for (size_t i = 0; i < c_words; i++) c_dev[i] = EW_POISON; + __asm__ volatile("dsb sy" ::: "memory"); + + uint32_t args[OMEGA_BW_CBANK_MATMUL_ARGS_WORDS]; + args[0] = (uint32_t)g_a.mem.va; args[1] = (uint32_t)(g_a.mem.va >> 32); + args[2] = (uint32_t)g_b.mem.va; args[3] = (uint32_t)(g_b.mem.va >> 32); + args[4] = (uint32_t)g_c.mem.va; args[5] = (uint32_t)(g_c.mem.va >> 32); + args[6] = params[0]; args[7] = params[1]; args[8] = params[2]; args[9] = params[3]; + OmegaGpuLaunch L = { + .code_va = ks->code.va, .gpr_count = EW_GPR_BUDGET, .threads_x = threads_x, .threads_y = 1, + .grid_x = grid_x, .grid_y = 1, .num_elements = c_words, + .args = args, .n_args = OMEGA_BW_CBANK_MATMUL_ARGS_WORDS, .timeout_ms = EW_WAIT_MS, + }; + uint64_t elapsed = 0; uint32_t marker = 0; + if (omega_gpu_session_launch(&L, &elapsed, &marker) != 0) return OMEGA_GPU_EW_CHIP_FAIL; + + memcpy(c, g_c.mem.cpu, c_bytes); + uint32_t unwritten = 0; + for (size_t i = 0; i < c_words; i++) if (((uint32_t *)c)[i] == EW_POISON) unwritten++; + if (info) { + info->chip_calls++; + info->elapsed_ns += elapsed; + info->completion_marker = marker; + info->unwritten_words += unwritten; + info->threads_per_cta = threads_x; + info->ctas_last_launch = grid_x; + } + return unwritten ? OMEGA_GPU_EW_UNWRITTEN : OMEGA_GPU_EW_OK; +} + +/* ------------------------------------------------------- public entries */ + +static void info_begin(OmegaGpuEwInfo *info, const OmegaBlackwellKernel *k, bool hit) { + if (!info) return; + memset(info, 0, sizeof *info); + info->kernel_cache_hit = hit; + info->gpr_count = k->gpr_count; + info->insn_count = (uint32_t)k->insn_count; + snprintf(info->target_chip, sizeof info->target_chip, "NVIDIA DGX Spark (Grace Blackwell GB10)"); + info->sm_architecture = 121; +} +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static void info_end(OmegaGpuEwInfo *info, uint64_t t0) { if (info) info->call_ns = now_ns() - t0; } + +/* Common prologue of every chip entry: lock, open, kernel (resident), info. */ +static int begin(OmegaGpuEwOp op, Slot **ks, OmegaGpuEwInfo *info) { + LOCK(); + int rc = dev_open_locked(); + bool hit = false; + if (rc == OMEGA_GPU_EW_OK) rc = kernel_for(op, true, ks, &hit); + if (rc != OMEGA_GPU_EW_OK) { UNLOCK(); return rc; } + info_begin(info, &(*ks)->kernel, hit); + return OMEGA_GPU_EW_OK; +} + +int omega_gpu_rmsnorm_f32(uint32_t rows, uint32_t dim, const float *x, const float *weight, + float eps, float *out, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + if (!x || !weight || !out || rows == 0 || dim == 0 || dim % OMEGA_GPU_EW_THREADS != 0) return OMEGA_GPU_EW_BAD_ARGS; + if (dim > OMEGA_GPU_EW_MAX_DIM) return OMEGA_GPU_EW_TOO_LARGE; + Slot *k = NULL; + int rc = begin(OMEGA_GPU_EW_RMSNORM, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + uint32_t params[4] = { dim / OMEGA_GPU_EW_THREADS, f2u(1.0f / (float)dim), f2u(eps), dim }; + for (uint32_t r0 = 0; r0 < rows && rc == OMEGA_GPU_EW_OK; r0 += OMEGA_GPU_EW_MAX_CTAS) { + uint32_t nr = rows - r0 < OMEGA_GPU_EW_MAX_CTAS ? rows - r0 : OMEGA_GPU_EW_MAX_CTAS; + size_t bytes = (size_t)nr * dim * 4; + rc = run_abc(k, x + (size_t)r0 * dim, bytes, weight, (size_t)dim * 4, out + (size_t)r0 * dim, bytes, + OMEGA_GPU_EW_THREADS, nr, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +int omega_gpu_rope_f32(uint32_t heads, uint32_t head_dim, const float *v, + const float *cos_half, const float *sin_half, float *out, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + if (!v || !cos_half || !sin_half || !out || heads == 0 || head_dim < 2 || (head_dim & 1)) return OMEGA_GPU_EW_BAD_ARGS; + if (head_dim > 2048) return OMEGA_GPU_EW_TOO_LARGE; + Slot *k = NULL; + int rc = begin(OMEGA_GPU_EW_ROPE, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + uint32_t half = head_dim / 2; + uint32_t params[4] = { head_dim, half, 0, 0 }; + for (uint32_t h0 = 0; h0 < heads && rc == OMEGA_GPU_EW_OK; h0 += OMEGA_GPU_EW_MAX_CTAS) { + uint32_t nh = heads - h0 < OMEGA_GPU_EW_MAX_CTAS ? heads - h0 : OMEGA_GPU_EW_MAX_CTAS; + size_t bytes = (size_t)nh * head_dim * 4; + /* table: cos in the first half of each head, sin in the second, written straight into + * the staging buffer (one copy per head of this launch) */ + if (omega_gpu_session_scratch(&g_b, bytes) != 0) { rc = OMEGA_GPU_EW_CHIP_FAIL; break; } + float *table = g_b.mem.cpu; + for (uint32_t h = 0; h < nh; h++) { + memcpy(table + (size_t)h * head_dim, cos_half, half * sizeof *table); + memcpy(table + (size_t)h * head_dim + half, sin_half, half * sizeof *table); + } + /* out may alias v: v is copied into the staging buffer before the result lands in out */ + rc = run_abc(k, v + (size_t)h0 * head_dim, bytes, NULL, bytes, out + (size_t)h0 * head_dim, bytes, half, nh, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +static int run_1d(OmegaGpuEwOp op, uint32_t n, const void *a, const void *b, void *c, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + Slot *k = NULL; + int rc = begin(op, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + const uint32_t chunk = OMEGA_GPU_EW_MAX_CTAS * OMEGA_GPU_EW_THREADS; + for (uint32_t i0 = 0; i0 < n && rc == OMEGA_GPU_EW_OK; i0 += chunk) { + uint32_t ni = n - i0 < chunk ? n - i0 : chunk; + uint32_t grid = (ni + OMEGA_GPU_EW_THREADS - 1) / OMEGA_GPU_EW_THREADS; + uint32_t params[4] = { ni, 0, 0, 0 }; + size_t bytes = (size_t)ni * 4; + rc = run_abc(k, (const uint8_t *)a + (size_t)i0 * 4, bytes, b ? (const uint8_t *)b + (size_t)i0 * 4 : a, bytes, + (uint8_t *)c + (size_t)i0 * 4, bytes, OMEGA_GPU_EW_THREADS, grid, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +int omega_gpu_swiglu_f32(uint32_t n, const float *gate, const float *up, float *out, OmegaGpuEwInfo *info) { + if (!gate || !up || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_SWIGLU, n, gate, up, out, info); +} +int omega_gpu_ex2_f32(uint32_t n, const float *x, float *out, OmegaGpuEwInfo *info) { + if (!x || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_EX2, n, x, NULL, out, info); +} +int omega_gpu_shared_xchg_u32(uint32_t n, const uint32_t *x, uint32_t *out, OmegaGpuEwInfo *info) { + if (!x || !out || n == 0 || n % OMEGA_GPU_EW_THREADS != 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_XCHG, n, x, NULL, out, info); +} +int omega_gpu_reconv_probe_u32(OmegaGpuEwOp op, uint32_t n, const uint32_t *a, const uint32_t *b, uint32_t *out, OmegaGpuEwInfo *info) { + if (!a || !b || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + switch (op) { + case OMEGA_GPU_EW_RC_DIAMOND: case OMEGA_GPU_EW_RC_LOOPBREAK: case OMEGA_GPU_EW_RC_NESTED: + case OMEGA_GPU_EW_RC_EXIT_BAR: case OMEGA_GPU_EW_RC_DEPTH16: break; + default: return OMEGA_GPU_EW_BAD_ARGS; + } + return run_1d(op, n, a, b, out, info); +} + +const char *omega_gpu_elementwise_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_EW_OK: return "OK"; + case OMEGA_GPU_EW_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_EW_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_EW_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_EW_CHIP_FAIL: return "CHIP_FAIL"; + case OMEGA_GPU_EW_UNWRITTEN: return "UNWRITTEN"; + default: return "UNKNOWN"; + } +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.h new file mode 100644 index 000000000..243b1ed9c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_elementwise_api.h @@ -0,0 +1,183 @@ +#ifndef OMEGA_GPU_ELEMENTWISE_API_H +#define OMEGA_GPU_ELEMENTWISE_API_H +/* + * omega_gpu_elementwise_api: native (no CUDA) elementwise and row-reduction + * kernels for the AIEN inference stack (FB-1 cut 4, 2026-10-04). + * + * Three inference ops plus two probe ops, every kernel generated by our own + * codegen (src/omega_blackwell_codegen.c IR) and launched through the same + * chip-proven sequence as the tensor matmul path: all buffers GPU-uncached + * (nvos.h NVOS32_ATTR2_GPU_CACHEABLE: system memory cached by the GPU is not + * coherent with CPU mappings), first marker, L2_FLUSH_DIRTY, second marker + * (C3 tail), poison-filled output scanned for unwritten words after readback. + * + * The math follows aien-sovereign-core crates/aien-inference-abi/src/tensor.rs + * (ReferenceCpuBackend), read 2026-10-04 at main 5fdab70: + * rmsnorm: scale = 1/sqrt(mean(x^2) + eps) (oracle sums in f64; the chip + * sums in f32 and uses MUFU.RSQ refined by one Newton step), + * out[i] = (x[i] * scale) * weight[i] in that order. + * rope: rotate_half pairs (i, i + head_dim/2) per head, cos/sin tables + * supplied by the host as f32 (the oracle casts f64 cos/sin to f32 + * before the f32 math): out0 = q0*cos - q1*sin, out1 = q0*sin + q1*cos, + * emitted as FMUL, FMUL, FADD (no fused multiply-add), so the chip + * result is bit-identical to the f32 oracle. + * swiglu: out = silu(gate) * up, silu(g) = g / (1 + exp(-g)); the chip uses + * MUFU.EX2(g * -log2(e)) and MUFU.RCP (approximate units), the + * oracle computes in f64. Tolerance is stated per op in the test. + * + * Cut 4b (2026-10-04): the device, channel and launch scratch are the process-wide + * session shared with the matmul and attention APIs (omega_gpu_session.h): one open + * 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 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 +#include +#include +#include "omega_blackwell_matmul.h" /* OmegaBlackwellKernel */ + +#ifdef __cplusplus +extern "C" { +#endif + +enum { + OMEGA_GPU_EW_OK = 0, + OMEGA_GPU_EW_BAD_ARGS = -1, /* NULL pointer, zero dimension, or a shape rule below broken */ + OMEGA_GPU_EW_TOO_LARGE = -2, /* dimension outside the codegen limits */ + OMEGA_GPU_EW_CODEGEN_FAIL = -3, /* our codegen refused or exceeded the register budget */ + OMEGA_GPU_EW_CHIP_FAIL = -4, /* device open, submit, marker or release failed */ + OMEGA_GPU_EW_UNWRITTEN = -5 /* output words still equal to their poison after the run */ +}; + +/* Kernel families. The two probes exist to prove the new instructions on the + * chip with the smallest possible kernels (and are kept for regression). */ +typedef enum { + OMEGA_GPU_EW_EX2 = 1, /* out[i] = 2^a[i] (probe for MUFU.EX2) */ + OMEGA_GPU_EW_XCHG, /* out[i] = a[i ^ (T-1)] inside each CTA (probe for STS/BAR.SYNC/LDS) */ + OMEGA_GPU_EW_RMSNORM, + OMEGA_GPU_EW_ROPE, + OMEGA_GPU_EW_SWIGLU, + OMEGA_GPU_EW_PRIME_SIEVE, /* prime race (2026-10-05): word-parallel odd-only sieve, codegen only + * here; launched by bench/prime_race/gb10_native.c (argument words in + * gen_prime_sieve's comment) */ + OMEGA_GPU_EW_PRIME_SIEVE_SHARED, /* the same sieve with the table staged in shared memory (C3) */ + /* Structured warp reconvergence (omega #308). The four sieves below are the production sieve + * with its lane-dependent loops put back inside BSSY/BSYNC regions (regression R1): DIV1 wraps + * the original mark loop (omega 888a011), DIV2 also wraps the prime loop (nested regions). */ + OMEGA_GPU_EW_PRIME_SIEVE_DIV1, + OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV1, + OMEGA_GPU_EW_PRIME_SIEVE_DIV2, + OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2, + /* Probes for omega_gpu_reconv_probe_u32 (u32 in a, b; u32 out; oracle in tests/gpu_reconv_test.c) */ + OMEGA_GPU_EW_RC_DIAMOND, /* R3: if/else, sides of different length, SHFL after the join */ + OMEGA_GPU_EW_RC_LOOPBREAK, /* R4: loop with a lane-dependent break */ + OMEGA_GPU_EW_RC_NESTED, /* R5: a lane-dependent loop region inside an if region */ + OMEGA_GPU_EW_RC_EXIT_BAR, /* R6: lanes past the end + STS/BAR.SYNC/LDS exchange + SHFL, lanes exit last */ + OMEGA_GPU_EW_RC_DEPTH16, /* 16 nested regions: every barrier register B0..B15 in use */ + /* Codegen refusals: omega_gpu_elementwise_codegen_ir must return CODEGEN_FAIL for each */ + OMEGA_GPU_EW_RC_REFUSE_DEPTH17, /* a 17th nested region: no barrier register left */ + OMEGA_GPU_EW_RC_REFUSE_EXIT_SHFL, /* lanes EXIT, then BAR.SYNC/SHFL on the rest */ + OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION, /* EXIT inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION, /* BAR.SYNC inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION, /* SHFL inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_UNCLOSED, /* region begun, never joined */ + OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY /* BSYNC with no BSSY */ +} OmegaGpuEwOp; + +/* Shape rules (checked, refused with BAD_ARGS / TOO_LARGE): + * rmsnorm: dim % OMEGA_GPU_EW_THREADS == 0, dim <= OMEGA_GPU_EW_MAX_DIM, rows >= 1 + * rope: head_dim even, 2 <= head_dim <= 2048 (head_dim/2 threads per CTA), heads >= 1 + * swiglu: n >= 1 (the kernel guards the tail with a predicated EXIT) + * 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 1024u + +typedef struct { + uint32_t chip_calls; /* launches made */ + uint64_t elapsed_ns; /* sum of launch-to-second-marker over the launches */ + uint32_t completion_marker; /* observed first marker word of the last launch */ + uint32_t unwritten_words; /* output words still equal to poison (0 on success) */ + bool kernel_cache_hit; /* the shape's kernel was already generated in this process */ + uint32_t gpr_count; /* registers the generated kernel uses */ + uint32_t insn_count; + uint32_t threads_per_cta; + uint32_t ctas_last_launch; + char target_chip[64]; + uint32_t sm_architecture; + uint64_t call_ns; /* cut 4b: wall time of the whole API call (staging, launches, copy-out) */ +} OmegaGpuEwInfo; + +/* out[r*dim + i] = x[r*dim + i] * scale_r * weight[i]; scale_r = 1/sqrt(mean_i(x^2) + eps). */ +int omega_gpu_rmsnorm_f32(uint32_t rows, uint32_t dim, const float *x, const float *weight, + float eps, float *out, OmegaGpuEwInfo *info); + +/* v holds `heads` heads of head_dim values back to back; cos_half and sin_half + * hold head_dim/2 values each (cos(pos*freq_i), sin(pos*freq_i)); out gets the + * rotated heads (may alias v: the API copies through its own buffers). */ +int omega_gpu_rope_f32(uint32_t heads, uint32_t head_dim, const float *v, + const float *cos_half, const float *sin_half, float *out, + OmegaGpuEwInfo *info); + +/* out[i] = silu(gate[i]) * up[i] for i < n. */ +int omega_gpu_swiglu_f32(uint32_t n, const float *gate, const float *up, float *out, + OmegaGpuEwInfo *info); + +/* Probes. ex2: out[i] = 2^x[i]. xchg: out[i] = x[i ^ (OMEGA_GPU_EW_THREADS-1)] within each CTA. */ +int omega_gpu_ex2_f32(uint32_t n, const float *x, float *out, OmegaGpuEwInfo *info); +int omega_gpu_shared_xchg_u32(uint32_t n, const uint32_t *x, uint32_t *out, OmegaGpuEwInfo *info); +/* Reconvergence probes (op = one of OMEGA_GPU_EW_RC_DIAMOND .. OMEGA_GPU_EW_RC_DEPTH16, else + * BAD_ARGS). n >= 1, any n: lanes past the end take part in the warp step and exit before + * their store. out[i] = r_i + 4099 * r_(i+1 in warp); r per op in src/omega_gpu_elementwise_api.c. */ +int omega_gpu_reconv_probe_u32(OmegaGpuEwOp op, uint32_t n, const uint32_t *a, const uint32_t *b, + uint32_t *out, OmegaGpuEwInfo *info); + +/* Generate (without launching) the kernel for one op. Kernels read their shape + * from the argument words, so one kernel per op serves every shape; dims and eps + * are accepted for forward compatibility and ignored today (may be NULL / 0). + * Lets tests disassemble the bytes offline (nvdisasm) and check the register + * budget. Caller frees kernel->code. */ +int omega_gpu_elementwise_codegen(OmegaGpuEwOp op, const uint32_t *dims, float eps, + OmegaBlackwellKernel *kernel); + +/* Same, with the mutant chosen by the caller (0 = production kernel, 1 = the op's math mutant, + * 2 = the reconvergence join (BSYNC) dropped, 3 = the BSSY names the wrong join; 2 and 3 change + * only kernels that open a region, the host simulator must catch both) and, when prog is + * not NULL, a copy of the allocated IR program (a BlackwellIRProgram, post register + * allocation) for a host IR simulator. Does not touch the device or the kernel cache. + * Caller frees kernel->code. */ +int omega_gpu_elementwise_codegen_ir(OmegaGpuEwOp op, int mutant, void *prog, + OmegaBlackwellKernel *kernel); + +/* TEST ONLY. Selects a deliberately wrong kernel for one op (0 clears). Each + * mutant changes the math by far more than the op's tolerance, so a parity + * check that still passes against it proves nothing. Clears the kernel cache. + * EX2: computes 2^(x+1). XCHG: reads its own shared word (no exchange). + * RMSNORM: the warp tree drops its last SHFL step (half the lanes go missing). + * ROPE: out0 = q0*cos + q1*sin. SWIGLU: exp(+g) instead of exp(-g). */ +void omega_gpu_elementwise_test_set_mutant(int op); +/* TEST ONLY. Like test_set_mutant, choosing the mutant number (1 math, 2 join dropped, 3 join + * corrupted) that the next launch of `op` builds; lets a chip test observe what a missing + * reconvergence does (the simulator must have flagged it first). */ +void omega_gpu_elementwise_test_set_mutant_level(int op, int level); + +const char *omega_gpu_elementwise_rc_name(int rc); +void omega_gpu_elementwise_cache_clear(void); + +/* Stage name of the most recent CHIP_FAIL ("" if none), shared with the other GPU APIs + * (omega_gpu_session_last_error); an open failure carries the driver text. */ +const char *omega_gpu_elementwise_last_error(void); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_fmt.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_fmt.c new file mode 100644 index 000000000..2652cc1a2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_fmt.c @@ -0,0 +1,65 @@ +/* omega_gpu_fmt.c -- see omega_gpu_fmt.h. Freestanding: stdarg only. */ +#include "omega_gpu_fmt.h" +#include +#include + +typedef struct { char *out; size_t cap, n; } Sink; + +static void put(Sink *s, char c) { + if (s->n + 1 < s->cap) s->out[s->n++] = c; +} +static void put_str(Sink *s, const char *p) { + if (!p) p = "(null)"; + while (*p) put(s, *p++); +} +static void put_u(Sink *s, unsigned long long v, unsigned base) { + char tmp[24]; + int i = 0; + do { unsigned d = (unsigned)(v % base); tmp[i++] = (char)(d < 10 ? '0' + d : 'a' + d - 10); v /= base; } while (v); + while (i) put(s, tmp[--i]); +} +static void put_d(Sink *s, long long v) { + if (v < 0) { put(s, '-'); put_u(s, (unsigned long long)(-(v + 1)) + 1ull, 10); } + else put_u(s, (unsigned long long)v, 10); +} + +int omega_gpu_fmt(char *out, size_t cap, const char *fmt, ...) { + Sink s = { out, cap, 0 }; + va_list ap; + if (!out || cap == 0) return 0; + if (!fmt) fmt = ""; + va_start(ap, fmt); + for (const char *p = fmt; *p; p++) { + if (*p != '%') { put(&s, *p); continue; } + const char *start = p++; + int l = 0, z = 0; + if (*p == 'z') { z = 1; p++; } + else while (*p == 'l' && l < 2) { l++; p++; } + switch (*p) { + case 's': put_str(&s, va_arg(ap, const char *)); break; + case 'c': put(&s, (char)va_arg(ap, int)); break; + case 'd': + if (z) put_d(&s, (long long)va_arg(ap, ptrdiff_t)); + else if (l == 2) put_d(&s, va_arg(ap, long long)); + else if (l == 1) put_d(&s, va_arg(ap, long)); + else put_d(&s, va_arg(ap, int)); + break; + case 'u': case 'x': { + unsigned base = *p == 'x' ? 16u : 10u; + if (z) put_u(&s, va_arg(ap, size_t), base); + else if (l == 2) put_u(&s, va_arg(ap, unsigned long long), base); + else if (l == 1) put_u(&s, va_arg(ap, unsigned long), base); + else put_u(&s, va_arg(ap, unsigned int), base); + break; + } + case '%': put(&s, '%'); break; + default: /* unsupported conversion: copy it literally, consume nothing */ + for (const char *q = start; q <= p && *q; q++) put(&s, *q); + if (!*p) p--; + break; + } + } + va_end(ap); + s.out[s.n] = '\0'; + return (int)s.n; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_matmul_api.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_matmul_api.c new file mode 100644 index 000000000..0575bc9c5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_matmul_api.c @@ -0,0 +1,538 @@ +/* + * omega_gpu_matmul_api.c: FB-1 cut 1b, on the shared session since cut 4b. + * See the header for the contract. + * + * Submission path: omega_gpu_session_launch (src/omega_gpu_session.c), the same + * words this file emitted in cut 1b (chip PASS FB1-CUT1B-4345406): SETUP_WORDS, + * shader-cache invalidate, constant bank upload, QMD0/QMD1 launch, first marker + * release, then the C3 tail (L2_FLUSH_DIRTY and a second release on uncached + * memory the host waits for before reading). Every buffer both sides touch is + * GPU-uncached (nvos.h NVOS32_ATTR2_GPU_CACHEABLE: "For system memory this will + * not be coherent with direct CPU mappings"). The device, channel, pushbuffer, + * constant bank, marker page and QMD page now belong to the session and are + * shared with the elementwise and attention APIs; this file keeps the resident + * tensors, the kernel cache (host and device copies) and its staging buffers. + */ +#include "omega_gpu_matmul_api.h" +#include "omega_gpu_session.h" +#include "omega_gpu_fmt.h" +#include "omega_blackwell_codegen.h" +#include "omega_blackwell_matmul.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" +#include + +#define CACHE_SLOTS 8 /* default kernel cache slots; raised only by omega_gpu_matmul_reserve */ +#define CACHE_SLOTS_MAX 128 /* storage for the opt-in larger cache (a code buffer is a few KB); Qwen3-4B serving needs 95 */ +#define FRAG_PACK_TILES 64u /* column tiles per host packing chunk at upload */ +#define MARKER_TIMEOUT_MS 20000ull /* a 1x2048x128256 call is ~0.1 s; 20 s is a stall, not a slow run */ +#define POISON_F32 (-999.0f) +#define ORACLE_TOL 1e-5 + +struct OmegaGpuTensor { + uint32_t k, n, kp, np; + OmegaGpuMem mem; /* kp x np bf16 in fragment order (omega_matmul_frag_pack_b) */ +}; + +typedef struct { + bool valid; + bool pinned; /* built by omega_gpu_matmul_prepare: never evicted */ + uint32_t kp, np, grid_x; + uint32_t rt, ct; /* tiles per warp (omega_matmul_frag_block_shape); 1, 1 = the single-tile kernel */ + int mutant; + OmegaMatMulSpec spec; + OmegaBlackwellKernel kernel; + OmegaGpuMem code; /* resident copy of kernel.code */ +} CacheSlot; + +static struct { + OmegaGpuScratch a_buf, c_buf; /* activation and result staging, grown to the high-water mark */ + /* a_buf holds a full one-row pack (rows 1..15 of every block zero) at width a_row0_kp in the + * allocation a_row0_cpu: the next one-row call of that width writes row 0 only. Cleared by any + * other pack and whenever the buffer is freed. */ + bool a_row0_ready; uint32_t a_row0_kp; const void *a_row0_cpu; + uint64_t a_row0_hits; /* one-row calls that wrote row 0 only (test hook) */ + uint32_t cta_budget; + int oracle, mutant; + uint32_t unroll; /* test override of the fragment kernel unroll; 0 = omega_matmul_frag_unroll */ + bool hooked; + CacheSlot cache[CACHE_SLOTS_MAX]; + unsigned cache_next; + unsigned slots; /* active kernel cache slots, <= CACHE_SLOTS_MAX */ + int sealed; /* omega_gpu_matmul_seal: a kernel cache miss is refused, never built */ +} g = { .cta_budget = OMEGA_GPU_MATMUL_MAX_CTAS, .oracle = 1, .slots = CACHE_SLOTS }; + +#define FAILAT(s) (omega_gpu_session_set_error(s), 1) +const char *omega_gpu_matmul_last_error(void) { return omega_gpu_session_last_error(); } + +static uint64_t now_ns(void) { return omega_gpu_session_now_ns(); } /* the platform clock (CLOCK_NS) */ +static inline double abs_d(double x) { return x < 0.0 ? -x : x; } + +static uint32_t round_up(uint32_t v, uint32_t q) { return (v + q - 1) / q * q; } + +const char *omega_gpu_matmul_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_MATMUL_OK: return "OK"; + case OMEGA_GPU_MATMUL_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_MATMUL_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_MATMUL_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_MATMUL_CHIP_FAIL: return "CHIP_FAIL"; + case OMEGA_GPU_MATMUL_PARITY_FAIL: return "PARITY_FAIL"; + default: return "UNKNOWN"; + } +} + +int omega_gpu_matmul_is_blocked(void) { return omega_gpu_session_is_blocked(); } + +/* ---- device-side state (caller holds the session lock) ---- */ + +static void cache_clear_locked(void) { + for (unsigned i = 0; i < CACHE_SLOTS_MAX; i++) { + CacheSlot *s = &g.cache[i]; + if (!s->valid) continue; + omega_gpu_session_free(&s->code); /* kernel.code points into it */ + memset(s, 0, sizeof *s); + } + g.cache_next = 0; +} + +/* Called by the session (lock held, device still open) right before it closes. */ +static void on_session_close(void) { + cache_clear_locked(); + g.a_row0_ready = false; + omega_gpu_session_scratch_free(&g.a_buf); + omega_gpu_session_scratch_free(&g.c_buf); + g.slots = CACHE_SLOTS; /* a serving reservation ends with the device */ + g.sealed = 0; +} + +static OmegaGpuSession *dev_open_locked(void) { + if (!g.hooked) { (void)omega_gpu_session_on_close(on_session_close); g.hooked = true; } + return omega_gpu_session_open(); +} + +void omega_gpu_device_close(void) { omega_gpu_session_close(); } + +void omega_gpu_matmul_cache_clear(void) { + omega_gpu_session_lock(); + cache_clear_locked(); + omega_gpu_session_unlock(); +} + +void omega_gpu_matmul_set_cta_budget(uint32_t ctas) { + omega_gpu_session_lock(); + g.cta_budget = ctas ? ctas : OMEGA_GPU_MATMUL_MAX_CTAS; + cache_clear_locked(); + omega_gpu_session_unlock(); +} + +uint32_t omega_gpu_matmul_cta_budget(void) { return g.cta_budget; } + +/* ---- opt-in serving reservation (see the header) ---- */ + +int omega_gpu_matmul_reserve(uint32_t max_rows, uint32_t max_k, uint32_t max_n, uint32_t max_n_one_row, uint32_t kernel_slots) { + if (max_rows == 0 || max_k == 0 || max_n == 0) { omega_gpu_session_set_error("matmul reserve: zero bound"); return OMEGA_GPU_MATMUL_BAD_ARGS; } + if (max_rows > OMEGA_BW_MATMUL_MAX_M || max_k > OMEGA_BW_MATMUL_MAX_K || max_n > OMEGA_BW_MATMUL_MAX_N || max_n_one_row > OMEGA_BW_MATMUL_MAX_N || + kernel_slots > CACHE_SLOTS_MAX) { + omega_gpu_session_set_error("matmul reserve: bound past the matmul envelope"); + return OMEGA_GPU_MATMUL_TOO_LARGE; + } + const size_t mp = round_up(max_rows, OMEGA_GPU_MATMUL_TILE_M), kp = round_up(max_k, OMEGA_GPU_MATMUL_TILE_K); + size_t c_bytes = mp * round_up(max_n, OMEGA_GPU_MATMUL_TILE_N) * 4u; + if (max_n_one_row) { /* a call of up to 16 rows (one row tile) may be wider than the batch width: lm_head */ + size_t one = (size_t)OMEGA_GPU_MATMUL_TILE_M * round_up(max_n_one_row, OMEGA_GPU_MATMUL_TILE_N) * 4u; + if (one > c_bytes) c_bytes = one; + } + omega_gpu_session_lock(); + int rc = OMEGA_GPU_MATMUL_OK; + if (!dev_open_locked()) rc = OMEGA_GPU_MATMUL_CHIP_FAIL; + else if (omega_gpu_session_scratch_reserve(&g.a_buf, mp * kp * 2u) != 0 || omega_gpu_session_scratch_reserve(&g.c_buf, c_bytes) != 0) { + /* roll back this API's own buffers: a failed reserve leaves nothing flagged */ + omega_gpu_session_scratch_unreserve(&g.a_buf); omega_gpu_session_scratch_unreserve(&g.c_buf); + rc = OMEGA_GPU_MATMUL_CHIP_FAIL; + } + else if (kernel_slots > g.slots) { /* grow only; the cache restarts empty */ + cache_clear_locked(); + g.slots = kernel_slots; + } + omega_gpu_session_unlock(); + return rc; +} + +void omega_gpu_matmul_unreserve(void) { + omega_gpu_session_lock(); + omega_gpu_session_scratch_unreserve(&g.a_buf); + omega_gpu_session_scratch_unreserve(&g.c_buf); + omega_gpu_session_unlock(); +} + +static int kernel_for(uint32_t kp, uint32_t np, uint32_t grid_x, uint32_t rt, uint32_t ct, CacheSlot **out, bool *hit); +static void launch_shape(uint32_t mp, uint32_t np, uint32_t *rows_per_launch, uint32_t *grid_x, uint32_t *rt, uint32_t *ct); + +int omega_gpu_matmul_prepare(uint32_t m, uint32_t k, uint32_t n) { + if (m == 0 || k == 0 || n == 0) { omega_gpu_session_set_error("matmul prepare: zero dimension"); return OMEGA_GPU_MATMUL_BAD_ARGS; } + if (m > OMEGA_BW_MATMUL_MAX_M || k > OMEGA_BW_MATMUL_MAX_K || n > OMEGA_BW_MATMUL_MAX_N) { + omega_gpu_session_set_error("matmul prepare: shape past the matmul envelope"); + return OMEGA_GPU_MATMUL_TOO_LARGE; + } + const uint32_t mp = round_up(m, OMEGA_GPU_MATMUL_TILE_M), kp = round_up(k, OMEGA_GPU_MATMUL_TILE_K), np = round_up(n, OMEGA_GPU_MATMUL_TILE_N); + uint32_t rows_per_launch, grid_x, rt, ct; + omega_gpu_session_lock(); + int rc = OMEGA_GPU_MATMUL_OK; + if (!dev_open_locked()) rc = OMEGA_GPU_MATMUL_CHIP_FAIL; + else { + launch_shape(mp, np, &rows_per_launch, &grid_x, &rt, &ct); + CacheSlot *s = NULL; bool hit = false; + rc = kernel_for(kp, np, grid_x, rt, ct, &s, &hit); + if (rc == OMEGA_GPU_MATMUL_OK) s->pinned = true; /* a prepared kernel is never evicted */ + } + omega_gpu_session_unlock(); + return rc; +} + +/* Anything that clears the kernel cache while sealed (cache_clear, set_cta_budget, the test knobs, a + * reserve that grows the slot count) also drops the pinned kernels; the seal stays, so every later + * call is refused by name ("was not prepared") until the server prepares again or releases. */ +void omega_gpu_matmul_seal(int on) { + omega_gpu_session_lock(); + g.sealed = on ? 1 : 0; + omega_gpu_session_unlock(); +} + +void omega_gpu_matmul_set_oracle(int on) { g.oracle = on ? 1 : 0; } + +void omega_gpu_matmul_test_set_mutant(int on) { + omega_gpu_session_lock(); + g.mutant = on ? 1 : 0; + cache_clear_locked(); + omega_gpu_session_unlock(); +} + +uint64_t omega_gpu_matmul_test_a_row0_hits(void) { return g.a_row0_hits; } + +void omega_gpu_matmul_test_set_unroll(uint32_t unroll) { + omega_gpu_session_lock(); + g.unroll = unroll; + cache_clear_locked(); + omega_gpu_session_unlock(); +} + +/* ---- one launch shape (the kernel cache key bakes in grid_x) ---- */ + +/* rows per launch: all of them unless the row blocks alone exceed the CTA budget; grid_x fills the rest of + * the budget. A CTA (one warp) owns rt row tiles x ct column tiles (omega_matmul_frag_block_shape, 2026-10-12): + * rt = ct = 1 for decode rows (the single-tile kernel), 4 x 4 at m = 128. Every launch of a call has a row + * count divisible by 16*rt (rows_per_launch is, and so is the remainder, since rt divides mp/16). */ +static void launch_shape(uint32_t mp, uint32_t np, uint32_t *rows_per_launch, uint32_t *grid_x, uint32_t *rt, uint32_t *ct) { + const uint32_t budget = g.cta_budget ? g.cta_budget : OMEGA_GPU_MATMUL_MAX_CTAS, mt = mp / 16u, nt = np / 8u; + omega_matmul_frag_block_shape(mt, nt, rt, ct); + const uint32_t rb = mt / *rt, nb = nt / *ct; + *rows_per_launch = rb <= budget ? mp : budget * 16u * *rt; + uint32_t gx = budget / (*rows_per_launch / 16u / *rt); + if (gx == 0) gx = 1; + if (gx > nb) gx = nb; + *grid_x = gx; +} + +/* ---- kernel cache (caller holds the lock, device open) ---- */ + +static int kernel_for(uint32_t kp, uint32_t np, uint32_t grid_x, uint32_t rt, uint32_t ct, CacheSlot **out, bool *hit) { + for (unsigned i = 0; i < g.slots; i++) { + CacheSlot *s = &g.cache[i]; + if (s->valid && s->kp == kp && s->np == np && s->grid_x == grid_x && s->rt == rt && s->ct == ct && s->mutant == g.mutant) { + *out = s; *hit = true; + return OMEGA_GPU_MATMUL_OK; + } + } + if (g.sealed) { + char e[160]; + omega_gpu_fmt(e, sizeof e, "serving reservation exceeded: matmul kernel kp=%u np=%u grid_x=%u rt=%u ct=%u was not prepared", kp, np, grid_x, rt, ct); + omega_gpu_session_set_error(e); + return OMEGA_GPU_MATMUL_TOO_LARGE; + } + /* choose the slot before any build or driver call: round-robin, skipping prepared (pinned) kernels; all pinned = refused, nothing evicted */ + CacheSlot *s = NULL; + for (unsigned i = 0; i < g.slots && !s; i++) { + CacheSlot *c = &g.cache[(g.cache_next + i) % g.slots]; + if (!c->valid || !c->pinned) { s = c; g.cache_next = (unsigned)((c - g.cache) + 1) % g.slots; } + } + if (!s) { + omega_gpu_session_set_error("matmul kernel cache: every slot holds a prepared kernel (raise kernel_slots)"); + return OMEGA_GPU_MATMUL_TOO_LARGE; + } + OmegaMatMulSpec spec; + /* the kernel ignores M; 16 keeps the spec inside the tile rule */ + if (omega_matmul_spec_init(&spec, 16, kp, np, OMEGA_MATMUL_PRECISION_BF16) != 0) return OMEGA_GPU_MATMUL_TOO_LARGE; + OmegaBlackwellKernel kernel; + memset(&kernel, 0, sizeof kernel); + const bool blocked = rt > 1 || ct > 1; + /* the test unroll knob applies to the single-tile kernel; the blocked kernel keeps its own rule */ + uint32_t unroll = blocked ? omega_matmul_frag_block_unroll(kp, rt, ct) : g.unroll ? g.unroll : omega_matmul_frag_unroll(kp); + /* the mutant drops the last pass, so it needs two: halve the unroll of a one-pass shape */ + if (g.mutant && (blocked || !g.unroll)) while (unroll > 1 && kp / 16u / unroll < 2) unroll /= 2; + /* P07 cut C: the program is built in host memory and encoded straight into the device code buffer, sized + * exactly (omega_bw_program_code_bytes: the bytes the allocating generators produce, cut A.2 proves them + * identical). kernel.code then points into that buffer and owns nothing. */ + BlackwellIRProgram *prog = omega_gpu_host_calloc(1, sizeof *prog); + if (!prog) { omega_gpu_session_set_error("matmul codegen: host memory"); return OMEGA_GPU_MATMUL_CODEGEN_FAIL; } + int cg = blocked ? omega_blackwell_codegen_matmul_frag_block_prog(&spec, grid_x, unroll, rt, ct, g.mutant, prog) + : omega_blackwell_codegen_matmul_frag_prog(&spec, grid_x, unroll, g.mutant, prog); + const size_t need = cg == 0 ? omega_bw_program_code_bytes(prog) : 0; + if (cg != 0 || need == 0) { omega_gpu_host_free(prog); return OMEGA_GPU_MATMUL_CODEGEN_FAIL; } + OmegaGpuMem code; + if (omega_gpu_session_alloc_code(need, &code) != 0) { omega_gpu_host_free(prog); return OMEGA_GPU_MATMUL_CHIP_FAIL; } + cg = omega_blackwell_kernel_encode_into(prog, code.cpu, need, &kernel); + omega_gpu_host_free(prog); + if (cg != 0 || !kernel.code || kernel.code_size != need) { omega_gpu_session_free(&code); return OMEGA_GPU_MATMUL_CODEGEN_FAIL; } + if (omega_gpu_session_sync_to_gpu(&code) != 0) { omega_gpu_session_free(&code); return OMEGA_GPU_MATMUL_CHIP_FAIL; } + if (s->valid) omega_gpu_session_free(&s->code); + s->valid = true; s->pinned = false; s->kp = kp; s->np = np; s->grid_x = grid_x; s->rt = rt; s->ct = ct; s->mutant = g.mutant; + s->spec = spec; s->kernel = kernel; s->code = code; + *out = s; *hit = false; + return OMEGA_GPU_MATMUL_OK; +} + +/* ---- one launch (caller holds the lock, device open, not blocked) ---- */ + +static int launch(const CacheSlot *ks, uint64_t a_va, uint64_t b_va, uint64_t c_va, + uint32_t grid_x, uint32_t grid_y, uint64_t *elapsed_ns, uint32_t *marker_out) { + uint32_t cbank_args[OMEGA_BW_CBANK_MATMUL_ARGS_WORDS]; + omega_blackwell_build_cbank_args_matmul(cbank_args, a_va, b_va, c_va, grid_y * 16u * ks->rt, ks->kp, ks->np); + OmegaGpuLaunch L = { + .code_va = ks->code.va, .gpr_count = ks->kernel.gpr_count, + .threads_x = 32, .threads_y = 1, .grid_x = grid_x, .grid_y = grid_y, + .num_elements = (size_t)grid_x * grid_y * 128u, + .args = cbank_args, .n_args = OMEGA_BW_CBANK_MATMUL_ARGS_WORDS, .timeout_ms = MARKER_TIMEOUT_MS, + }; + return omega_gpu_session_launch(&L, elapsed_ns, marker_out) == 0 ? OMEGA_GPU_MATMUL_OK : OMEGA_GPU_MATMUL_CHIP_FAIL; +} + +/* ---- tensors ---- */ + +void omega_gpu_tensor_shape(const OmegaGpuTensor *t, uint32_t *k, uint32_t *n) { + if (k) *k = t ? t->k : 0; + if (n) *n = t ? t->n : 0; +} + +int omega_gpu_tensor_upload_bf16(uint32_t k, uint32_t n, const uint16_t *b, OmegaGpuTensor **out) { + if (out) *out = NULL; + if (!b || !out || k == 0 || n == 0) return OMEGA_GPU_MATMUL_BAD_ARGS; + if (k > OMEGA_BW_MATMUL_MAX_K || n > OMEGA_BW_MATMUL_MAX_N) return OMEGA_GPU_MATMUL_TOO_LARGE; + OmegaGpuTensor *t = omega_gpu_host_calloc(1, sizeof *t); + if (!t) return OMEGA_GPU_MATMUL_BAD_ARGS; + t->k = k; t->n = n; t->kp = round_up(k, OMEGA_GPU_MATMUL_TILE_K); t->np = round_up(n, OMEGA_GPU_MATMUL_TILE_N); + /* fragment order (omega_matmul_frag_pack_b), packed on the host FRAG_PACK_TILES column + * tiles at a time and copied in order into the uncached device buffer */ + const uint32_t nt = t->np / 8u; + uint16_t *h = omega_gpu_host_alloc((size_t)FRAG_PACK_TILES * t->kp * 8u * sizeof *h); + if (!h) { omega_gpu_host_free(t); return OMEGA_GPU_MATMUL_BAD_ARGS; } + int rc = OMEGA_GPU_MATMUL_OK; + omega_gpu_session_lock(); + if (!dev_open_locked() || omega_gpu_session_alloc((size_t)t->kp * t->np * 2u, &t->mem) != 0) rc = OMEGA_GPU_MATMUL_CHIP_FAIL; + omega_gpu_session_unlock(); + if (rc != OMEGA_GPU_MATMUL_OK) { omega_gpu_host_free(h); omega_gpu_host_free(t); return rc; } + uint16_t *d = t->mem.cpu; + for (uint32_t nt0 = 0; nt0 < nt; nt0 += FRAG_PACK_TILES) { + const uint32_t nt1 = nt - nt0 < FRAG_PACK_TILES ? nt : nt0 + FRAG_PACK_TILES; + omega_matmul_frag_pack_b(b, k, n, t->kp, nt0, nt1, h); + memcpy(&d[(size_t)nt0 * t->kp * 8u], h, (size_t)(nt1 - nt0) * t->kp * 8u * sizeof *h); + } + omega_gpu_host_free(h); + if (omega_gpu_session_sync_to_gpu(&t->mem) != 0) { omega_gpu_tensor_free(t); return OMEGA_GPU_MATMUL_CHIP_FAIL; } + *out = t; + return OMEGA_GPU_MATMUL_OK; +} + +int omega_gpu_tensor_upload_f32(uint32_t k, uint32_t n, const float *b, OmegaGpuTensor **out) { + if (out) *out = NULL; + if (!b || !out || k == 0 || n == 0) return OMEGA_GPU_MATMUL_BAD_ARGS; + if (k > OMEGA_BW_MATMUL_MAX_K || n > OMEGA_BW_MATMUL_MAX_N) return OMEGA_GPU_MATMUL_TOO_LARGE; + size_t cnt = (size_t)k * n; + uint16_t *h = omega_gpu_host_alloc(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(b[i]); + int rc = omega_gpu_tensor_upload_bf16(k, n, h, out); + omega_gpu_host_free(h); + return rc; +} + +void omega_gpu_tensor_free(OmegaGpuTensor *t) { + if (!t) return; + omega_gpu_session_lock(); + omega_gpu_session_free(&t->mem); + omega_gpu_session_unlock(); + omega_gpu_host_free(t); +} + +/* ---- the matmul ---- */ + +/* 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(); + int rc = OMEGA_GPU_MATMUL_OK; + if (!dev_open_locked()) { omega_gpu_session_unlock(); return OMEGA_GPU_MATMUL_CHIP_FAIL; } + uint32_t rows_per_launch, grid_x, rt, ct; + launch_shape(mp, np, &rows_per_launch, &grid_x, &rt, &ct); + uint32_t grid_y_full = rows_per_launch / 16u / rt; + if (info) { + info->m = m; info->k = k; info->n = n; info->padded_m = mp; info->padded_n = np; info->padded_k = kp; + info->k_slices = 1; info->rows_per_call = rows_per_launch; info->grid_x = grid_x; info->grid_y = grid_y_full; + info->resident = true; info->kernel_cache_hit = true; + (void)omega_gpu_fmt(info->target_chip, sizeof info->target_chip, "%s", "NVIDIA DGX Spark (Grace Blackwell GB10)"); + info->sm_architecture = 121; + } + if (g.sealed && !(g.a_buf.reserved && g.c_buf.reserved)) { + /* sealed means no driver allocation on the call path; without a scratch reservation the + * buffers below could still grow, so refuse before touching them */ + omega_gpu_session_set_error("serving reservation exceeded: matmul sealed without a scratch reservation (call omega_gpu_reserve_serving first)"); + omega_gpu_session_unlock(); + return OMEGA_GPU_MATMUL_TOO_LARGE; + } + int src = omega_gpu_session_scratch(&g.a_buf, (size_t)mp * kp * 2u); + if (src == 0) src = omega_gpu_session_scratch(&g.c_buf, (size_t)mp * np * 4u); + if (src != 0) { + omega_gpu_session_unlock(); + /* 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 / _f32: f32 rows are converted + * while packing, one pass), zero padded, packed on the host straight into the uncached buffer + * (the CPU side of that memory is ordinary cached memory; dsb below orders it before the launch); + * result rows poisoned. A one-row call (decode) writes row 0 only when the buffer already holds + * a full one-row pack of this width (rows 1..15 of every block zero): the 15 zero rows are not + * rewritten per token. */ + uint16_t *ad = g.a_buf.mem.cpu; + const bool one_row = m == 1 && mp == 16u; + if (one_row && g.a_row0_ready && g.a_row0_kp == kp && g.a_row0_cpu == ad) { + if (a32) omega_matmul_frag_pack_a_row0_f32(a32, k, kp, ad); + else omega_matmul_frag_pack_a_row0(a16, k, kp, ad); + g.a_row0_hits++; + } else { + if (a32) omega_matmul_frag_pack_a_f32(a32, m, k, mp, kp, ad); + else omega_matmul_frag_pack_a(a16, m, k, mp, kp, ad); + g.a_row0_ready = one_row; g.a_row0_kp = kp; g.a_row0_cpu = ad; + } + /* result sentinels: one poison word per 16 x 8 fragment tile holding a real output word, at the tile's + * last real row and column (omega_matmul_result_sentinels). The kernel stores a tile as one straight-line + * run of STG.E words, so a tile whose sentinel survives was never stored. Poisoning and scanning every + * word was three passes over m x np (12.6 MB at m = 128, n = 24576: about 2 ms per prefill call, 2026-10-12). */ + float *cd = g.c_buf.mem.cpu; + omega_matmul_result_sentinels(cd, m, n, np, POISON_F32, 1); + if (omega_gpu_session_sync_to_gpu(&g.a_buf.mem) != 0 || omega_gpu_session_sync_to_gpu(&g.c_buf.mem) != 0) rc = OMEGA_GPU_MATMUL_CHIP_FAIL; + + for (uint32_t r0 = 0; r0 < mp && rc == OMEGA_GPU_MATMUL_OK; r0 += rows_per_launch) { + uint32_t rows = mp - r0 < rows_per_launch ? mp - r0 : rows_per_launch; + uint32_t grid_y = rows / 16u / rt; + CacheSlot *ks = NULL; bool hit = false; + rc = kernel_for(kp, np, grid_x, rt, ct, &ks, &hit); + if (rc != OMEGA_GPU_MATMUL_OK) break; + if (info && !hit) info->kernel_cache_hit = false; + rc = launch(ks, g.a_buf.mem.va + (uint64_t)r0 * kp * 2u, b->mem.va, g.c_buf.mem.va + (uint64_t)r0 * np * 4u, + grid_x, grid_y, info ? &info->elapsed_ns : NULL, info ? &info->completion_marker : NULL); + if (info) info->chip_calls++; + } + if (rc == OMEGA_GPU_MATMUL_OK && omega_gpu_session_sync_to_cpu(&g.c_buf.mem) != 0) rc = OMEGA_GPU_MATMUL_CHIP_FAIL; + if (rc == OMEGA_GPU_MATMUL_OK) { + /* the chip must have stored every fragment tile with a real output word (sentinel check) */ + size_t unchanged = omega_matmul_result_sentinels(cd, m, n, np, POISON_F32, 0); + if (unchanged && FAILAT("output poison survived")) rc = OMEGA_GPU_MATMUL_CHIP_FAIL; + else for (uint32_t r = 0; r < m; r++) memcpy(&c[(size_t)r * n], &cd[(size_t)r * np], (size_t)n * sizeof *c); + } + omega_gpu_session_unlock(); + return rc; +} + +static int resident_entry(uint32_t m, const uint16_t *a, const OmegaGpuTensor *b, float *c, OmegaGpuMatmulInfo *info) { + uint64_t t0 = now_ns(); + 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, NULL, b, c, info); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +int omega_gpu_matmul_resident_bf16(uint32_t m, const uint16_t *a, const OmegaGpuTensor *b, float *c, + OmegaGpuMatmulInfo *info) { + return resident_entry(m, a, b, c, info); +} + +int omega_gpu_matmul_resident_f32(uint32_t m, const float *a, const OmegaGpuTensor *b, float *c, + OmegaGpuMatmulInfo *info) { + uint64_t t0 = now_ns(); + 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, NULL, a, b, c, info); + if (info) info->call_ns = now_ns() - t0; + return rc; +} + +/* Host oracle: double accumulation of the bf16 inputs; an element mismatches when + * its error exceeds ORACLE_TOL of the accumulation scale (sum of |terms|). */ +static void oracle(uint32_t m, uint32_t k, uint32_t n, const uint16_t *a, const uint16_t *b, const float *c, OmegaGpuMatmulInfo *info) { + float max_abs = 0.0f, max_rel = 0.0f; + size_t mism = 0; + for (uint32_t i = 0; i < m; i++) { + for (uint32_t j = 0; j < n; j++) { + double acc = 0.0, scale = 0.0; + for (uint32_t t = 0; t < k; t++) { + double p = (double)omega_bf16_to_fp32(a[(size_t)i * k + t]) * (double)omega_bf16_to_fp32(b[(size_t)t * n + j]); + acc += p; scale += abs_d(p); + } + double d = abs_d(acc - (double)c[(size_t)i * n + j]); + double rel = d / (scale > 1e-6 ? scale : 1e-6); + if ((float)d > max_abs) max_abs = (float)d; + if ((float)rel > max_rel) max_rel = (float)rel; + if (rel > ORACLE_TOL) mism++; + } + } + info->max_abs_err = max_abs; info->max_rel_err = max_rel; info->mismatch_count = mism; + info->oracle_ran = true; info->parity_verified = (mism == 0); +} + +int omega_gpu_matmul_bf16(uint32_t m, uint32_t k, uint32_t n, + const uint16_t *a, const uint16_t *b, float *c, + OmegaGpuMatmulInfo *info) { + uint64_t t0 = now_ns(); + OmegaGpuMatmulInfo local; + if (!info) info = &local; + memset(info, 0, sizeof *info); + if (!a || !b || !c || m == 0 || k == 0 || n == 0) return OMEGA_GPU_MATMUL_BAD_ARGS; + if (m > OMEGA_BW_MATMUL_MAX_M || k > OMEGA_BW_MATMUL_MAX_K || n > OMEGA_BW_MATMUL_MAX_N) + return OMEGA_GPU_MATMUL_TOO_LARGE; + 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, NULL, t, c, info); + omega_gpu_tensor_free(t); + info->resident = false; + if (rc == OMEGA_GPU_MATMUL_OK && g.oracle) { + oracle(m, k, n, a, b, c, info); + if (!info->parity_verified) rc = OMEGA_GPU_MATMUL_PARITY_FAIL; + } + info->call_ns = now_ns() - t0; + return rc; +} + +int omega_gpu_matmul_f32(uint32_t m, uint32_t k, uint32_t n, + const float *a, const float *b, float *c, + OmegaGpuMatmulInfo *info) { + if (info) memset(info, 0, sizeof *info); + if (!a || !b || !c || m == 0 || k == 0 || n == 0) return OMEGA_GPU_MATMUL_BAD_ARGS; + if (m > OMEGA_BW_MATMUL_MAX_M || k > OMEGA_BW_MATMUL_MAX_K || n > OMEGA_BW_MATMUL_MAX_N) + return OMEGA_GPU_MATMUL_TOO_LARGE; + size_t na = (size_t)m * k, nb = (size_t)k * n; + uint16_t *ab = omega_gpu_host_alloc(na * sizeof *ab); + uint16_t *bb = omega_gpu_host_alloc(nb * sizeof *bb); + if (!ab || !bb) { omega_gpu_host_free(ab); omega_gpu_host_free(bb); return OMEGA_GPU_MATMUL_BAD_ARGS; } + for (size_t i = 0; i < na; i++) ab[i] = omega_fp32_to_bf16(a[i]); + for (size_t i = 0; i < nb; i++) bb[i] = omega_fp32_to_bf16(b[i]); + int rc = omega_gpu_matmul_bf16(m, k, n, ab, bb, c, info); + omega_gpu_host_free(ab); + omega_gpu_host_free(bb); + return rc; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform.c new file mode 100644 index 000000000..79f43c94a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform.c @@ -0,0 +1,192 @@ +/* omega_gpu_platform.c -- contract checks and the handle table of + * src/omega_gpu_platform.h. Freestanding: no libc beyond memset. */ +#include "omega_gpu_platform.h" + +#include + +static const char *const REFUSAL_NAMES[OMEGA_GPU_PLAT_REFUSAL_COUNT] = { + "OK", + "REFUSED_ARGS", + "REFUSED_ABI", + "REFUSED_MISSING_SERVICE", + "REFUSED_NULL_SERVICE", + "REFUSED_BAD_HANDLE", + "REFUSED_STALE_HANDLE", + "REFUSED_BAD_LENGTH", + "REFUSED_BAD_RIGHTS", + "REFUSED_BAD_KIND", + "REFUSED_CACHE_POLICY", + "REFUSED_LIMIT", + "REFUSED_BUSY", + "REFUSED_DEVICE", +}; + +const char *omega_gpu_platform_refusal_name(int refusal) +{ + if (refusal < 0 || refusal >= (int)OMEGA_GPU_PLAT_REFUSAL_COUNT) return "UNKNOWN"; + return REFUSAL_NAMES[refusal]; +} + +int omega_gpu_platform_negotiate(const OmegaGpuPlatformCaps *provided, const OmegaGpuPlatformCaps *required) +{ + if (!provided || !required) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (provided->abi_major != required->abi_major) return OMEGA_GPU_PLAT_REFUSED_ABI; + if (provided->abi_minor < required->abi_minor) return OMEGA_GPU_PLAT_REFUSED_ABI; + if ((provided->services | required->services) & ~OMEGA_GPU_SVC_ALL) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (required->services & ~provided->services) return OMEGA_GPU_PLAT_REFUSED_MISSING_SERVICE; + if (required->max_devices > provided->max_devices) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_buffers > provided->max_buffers) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_queues > provided->max_queues) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_inflight > provided->max_inflight) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_buffer_bytes > provided->max_buffer_bytes) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_total_bytes > provided->max_total_bytes) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + return OMEGA_GPU_PLAT_OK; +} + +/* A claimed service must have its functions; an unclaimed one must have none + * (a function the table never negotiated would be a silent fallback path). */ +static int svc(uint32_t services, uint32_t bit, int present_all, int present_any) +{ + if (services & bit) return present_all ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_PLAT_REFUSED_NULL_SERVICE; + return present_any ? OMEGA_GPU_PLAT_REFUSED_ARGS : OMEGA_GPU_PLAT_OK; +} + +int omega_gpu_platform_check(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps) +{ + return omega_gpu_platform_check_for(p, caps, OMEGA_GPU_SVC_REQUIRED_V1); +} + +int omega_gpu_platform_check_for(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps, uint32_t required) +{ + int rc; + uint32_t s; + if (!p || !caps) return OMEGA_GPU_PLAT_REFUSED_ARGS; + s = caps->services; + if (s & ~OMEGA_GPU_SVC_ALL) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (required & ~OMEGA_GPU_SVC_ALL) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if ((s & required) != required) return OMEGA_GPU_PLAT_REFUSED_MISSING_SERVICE; + if ((rc = svc(s, OMEGA_GPU_SVC_TIME, p->time_now_ms != 0, p->time_now_ms != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_WAIT, p->wait_ms != 0, p->wait_ms != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_LOCK, p->lock != 0 && p->unlock != 0, p->lock != 0 || p->unlock != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_MMIO, p->mmio_read32 != 0 && p->mmio_write32 != 0, + p->mmio_read32 != 0 || p->mmio_write32 != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_DMA, p->dma_alloc != 0 && p->dma_free != 0, + p->dma_alloc != 0 || p->dma_free != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_SYNC, p->sync_cpu_to_gpu != 0 && p->sync_gpu_to_cpu != 0, + p->sync_cpu_to_gpu != 0 || p->sync_gpu_to_cpu != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_COMPLETION, p->poll_word != 0, p->poll_word != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_IRQ, p->irq_wait != 0, p->irq_wait != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_DEVICE, p->device_open != 0 && p->device_close != 0 && p->diag_text != 0, + p->device_open != 0 || p->device_close != 0 || p->diag_text != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_QUEUE, + p->queue_open != 0 && p->queue_close != 0 && p->queue_submit != 0 && p->queue_retire != 0, + p->queue_open != 0 || p->queue_close != 0 || p->queue_submit != 0 || p->queue_retire != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_CLOCK_NS, p->time_now_ns != 0, p->time_now_ns != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_HOST_MEM, p->host_alloc != 0 && p->host_free != 0, + p->host_alloc != 0 || p->host_free != 0)) != 0) + return rc; + return OMEGA_GPU_PLAT_OK; +} + +static int is_pow2(uint32_t v) +{ + return v != 0u && (v & (v - 1u)) == 0u; +} + +int omega_gpu_platform_check_buffer(const OmegaGpuBufferDesc *d, const OmegaGpuPlatformCaps *caps) +{ + uint32_t r; + if (!d || !caps) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (d->kind != OMEGA_GPU_HANDLE_BUF_DATA && d->kind != OMEGA_GPU_HANDLE_BUF_CODE && + d->kind != OMEGA_GPU_HANDLE_BUF_QUEUE) + return OMEGA_GPU_PLAT_REFUSED_BAD_KIND; + if (d->bytes == 0u) return OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; + if (d->bytes > caps->max_buffer_bytes) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (d->align != 0u && !is_pow2(d->align)) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (d->gpu_cache != OMEGA_GPU_CACHE_GPU_UNCACHED && d->gpu_cache != OMEGA_GPU_CACHE_GPU_CACHED) + return OMEGA_GPU_PLAT_REFUSED_ARGS; + r = d->rights; + if (r == 0u || (r & ~OMEGA_GPU_RIGHT_ALL)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if ((r & OMEGA_GPU_RIGHT_GPU_EXEC) && d->kind != OMEGA_GPU_HANDLE_BUF_CODE) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (d->kind == OMEGA_GPU_HANDLE_BUF_CODE) { + /* code: CPU writes it, GPU executes it, GPU never writes it, nobody polls it */ + if (r & (OMEGA_GPU_RIGHT_GPU_WRITE | OMEGA_GPU_RIGHT_HOST_POLLED)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (!(r & OMEGA_GPU_RIGHT_GPU_EXEC) || !(r & OMEGA_GPU_RIGHT_CPU_WRITE)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + } + if (d->kind == OMEGA_GPU_HANDLE_BUF_QUEUE) { + /* a submission ring: the CPU writes methods, the device reads them */ + if (!(r & OMEGA_GPU_RIGHT_CPU_WRITE) || !(r & OMEGA_GPU_RIGHT_GPU_READ)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + } + if (r & OMEGA_GPU_RIGHT_HOST_POLLED) { + if (!(r & OMEGA_GPU_RIGHT_CPU_READ) || !(r & OMEGA_GPU_RIGHT_GPU_WRITE)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (d->gpu_cache != OMEGA_GPU_CACHE_GPU_UNCACHED) return OMEGA_GPU_PLAT_REFUSED_CACHE_POLICY; + } + return OMEGA_GPU_PLAT_OK; +} + +void omega_gpu_handles_init(OmegaGpuHandleTable *t) +{ + uint32_t i; + if (!t) return; + memset(t, 0, sizeof *t); + for (i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) t->generation[i] = 1u; +} + +static int kind_known(uint32_t kind) +{ + return kind >= OMEGA_GPU_HANDLE_DEVICE && kind < OMEGA_GPU_HANDLE_KIND_COUNT; +} + +int omega_gpu_handles_open(OmegaGpuHandleTable *t, uint32_t kind, uint64_t bytes, uint32_t limit_slots, + uint64_t limit_bytes, uint32_t *index, uint32_t *generation) +{ + uint32_t i; + uint32_t same_kind = 0; + if (!t || !index || !generation) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (!kind_known(kind)) return OMEGA_GPU_PLAT_REFUSED_BAD_KIND; + for (i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) + if (t->live[i] && t->kind[i] == kind) same_kind++; + if (same_kind >= limit_slots) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (bytes != 0u && (bytes > limit_bytes || t->total_bytes > limit_bytes - bytes)) /* byte accounting: buffers only */ + return OMEGA_GPU_PLAT_REFUSED_LIMIT; + for (i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) { + if (t->live[i]) continue; + if (t->generation[i] == 0u) continue; /* generation wrapped: the slot is retired, never reissued */ + t->live[i] = 1; + t->kind[i] = kind; + t->bytes[i] = bytes; + t->nlive++; + t->total_bytes += bytes; + *index = i; + *generation = t->generation[i]; + return OMEGA_GPU_PLAT_OK; + } + return OMEGA_GPU_PLAT_REFUSED_LIMIT; +} + +int omega_gpu_handles_check(const OmegaGpuHandleTable *t, uint32_t index, uint32_t generation, uint32_t kind) +{ + if (!t) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (index >= OMEGA_GPU_HANDLE_SLOTS || generation == 0u) return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + if (!t->live[index] || t->generation[index] != generation) return OMEGA_GPU_PLAT_REFUSED_STALE_HANDLE; + if (t->kind[index] != kind) return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + return OMEGA_GPU_PLAT_OK; +} + +int omega_gpu_handles_close(OmegaGpuHandleTable *t, uint32_t index, uint32_t generation, uint32_t kind) +{ + int rc = omega_gpu_handles_check(t, index, generation, kind); + if (rc != OMEGA_GPU_PLAT_OK) return rc; + t->live[index] = 0; + t->total_bytes -= t->bytes[index]; + t->bytes[index] = 0u; + t->nlive--; + t->generation[index]++; /* the closed handle is now stale; 0 after wrap retires the slot */ + return OMEGA_GPU_PLAT_OK; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform_linux.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform_linux.c new file mode 100644 index 000000000..dc02aab42 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_platform_linux.c @@ -0,0 +1,349 @@ +/* omega_gpu_platform_linux.c -- Linux REFERENCE implementation of OmegaGpuPlatform 1.1. REFERENCE ONLY: see the + * header. Every driver call here is the one src/omega_gpu_session.c made directly before P07 cut C, in the same + * order, so the launch path on GB10 under Linux is unchanged: + * device_open = nvrm_open + m16_native_create_channel (session open, before the four session buffers) + * dma_alloc = nvrm_alloc_gpu_uncached (every session / API buffer) + * dma_free = nvrm_free + * queue_open = ctx.pb_mem = the ring buffer (m16_native_enqueue_methods copies methods there) + * queue_submit = m16_native_submit_methods + * queue_retire = nvrm_retire(&rm, rm.put) (after both markers landed) + * poll_word = m16_native_wait_marker (>= serial compare, 50 us sleep-poll) + * sync_* = dsb sy (the barrier the session issued itself) + * device_close = m16_native_close (nvrm_close) + */ +#include "omega_gpu_platform_linux.h" + +#include "m16_native.h" +#include "nvrm.h" + +#include +#include +#include +#include +#include + +#define LINUX_REF_BUFFERS (OMEGA_GPU_HANDLE_SLOTS - 2u) /* one slot each for the device and the queue */ + +typedef struct { + pthread_mutex_t mu; /* table, device and diagnostics */ + pthread_mutex_t locks[OMEGA_GPU_PLATFORM_LINUX_LOCKS]; + int ready; + OmegaGpuHandleTable t; + NvrmMem mem[OMEGA_GPU_HANDLE_SLOTS]; + uint32_t rights[OMEGA_GPU_HANDLE_SLOTS]; + M16NativeContext m16; + OmegaGpuDeviceHandle dev; /* generation 0 = closed */ + OmegaGpuQueueHandle queue; + char diag[320]; +} LinuxRef; + +static LinuxRef g_ref = { + .mu = PTHREAD_MUTEX_INITIALIZER, + .locks = {PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER}, +}; + +static const OmegaGpuPlatformCaps g_caps = { + .abi_major = OMEGA_GPU_PLATFORM_ABI_MAJOR, + .abi_minor = OMEGA_GPU_PLATFORM_ABI_MINOR, + .services = OMEGA_GPU_SVC_REQUIRED_SESSION, /* no MMIO (RM owns the registers), no IRQ (polling only) */ + .max_devices = 1, + .max_buffers = LINUX_REF_BUFFERS, + .max_queues = 1, + .max_inflight = 1, + .max_buffer_bytes = 1ull << 37, /* 128 GiB: the whole unified pool */ + .max_total_bytes = 1ull << 37, +}; + +static void ref_lock(LinuxRef *r) { + pthread_mutex_lock(&r->mu); + if (!r->ready) { omega_gpu_handles_init(&r->t); r->ready = 1; } +} +static void ref_unlock(LinuxRef *r) { pthread_mutex_unlock(&r->mu); } + +/* Records why the call failed; REFUSED_DEVICE carries the driver text (Nvrm.err). Called with r->mu held. */ +static int refuse(LinuxRef *r, int rc, const char *stage) { + if (rc == OMEGA_GPU_PLAT_REFUSED_DEVICE) + snprintf(r->diag, sizeof r->diag, "%s: %s", stage, r->m16.rm.err[0] ? r->m16.rm.err : "(no driver text)"); + else + snprintf(r->diag, sizeof r->diag, "%s: %s", stage, omega_gpu_platform_refusal_name(rc)); + return rc; +} + +static int dev_ok(LinuxRef *r, OmegaGpuDeviceHandle d) { + return omega_gpu_handles_check(&r->t, d.index, d.generation, OMEGA_GPU_HANDLE_DEVICE); +} + +/* A live buffer handle of any buffer kind; *kind gets it. */ +static int buf_ok(LinuxRef *r, OmegaGpuBufferHandle b, uint32_t *kind) { + if (b.index >= OMEGA_GPU_HANDLE_SLOTS || b.generation == 0u) return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + if (!r->t.live[b.index] || r->t.generation[b.index] != b.generation) return OMEGA_GPU_PLAT_REFUSED_STALE_HANDLE; + const uint32_t k = r->t.kind[b.index]; + if (k != OMEGA_GPU_HANDLE_BUF_DATA && k != OMEGA_GPU_HANDLE_BUF_CODE && k != OMEGA_GPU_HANDLE_BUF_QUEUE) + return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + if (kind) *kind = k; + return OMEGA_GPU_PLAT_OK; +} + +static int range_ok(LinuxRef *r, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { + const uint64_t size = r->mem[b.index].size; + return (len == 0u || off > size || len > size - off) ? OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH : OMEGA_GPU_PLAT_OK; +} + +static uint64_t ref_now_ns(void *ctx) { + (void)ctx; + struct timespec t; + clock_gettime(CLOCK_MONOTONIC, &t); + return (uint64_t)t.tv_sec * 1000000000ull + (uint64_t)t.tv_nsec; +} +static uint64_t ref_now_ms(void *ctx) { return ref_now_ns(ctx) / 1000000ull; } + +static int ref_wait_ms(void *ctx, uint64_t ms) { + (void)ctx; + struct timespec t = {.tv_sec = (time_t)(ms / 1000u), .tv_nsec = (long)(ms % 1000u) * 1000000L}; + while (nanosleep(&t, &t) != 0) {} + return OMEGA_GPU_PLAT_OK; +} + +static int ref_lock_id(void *ctx, uint32_t id) { + LinuxRef *r = ctx; + if (id >= OMEGA_GPU_PLATFORM_LINUX_LOCKS) return OMEGA_GPU_PLAT_REFUSED_ARGS; + return pthread_mutex_lock(&r->locks[id]) == 0 ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_PLAT_REFUSED_BUSY; +} +static int ref_unlock_id(void *ctx, uint32_t id) { + LinuxRef *r = ctx; + if (id >= OMEGA_GPU_PLATFORM_LINUX_LOCKS) return OMEGA_GPU_PLAT_REFUSED_ARGS; + return pthread_mutex_unlock(&r->locks[id]) == 0 ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_PLAT_REFUSED_ARGS; +} + +static int ref_device_open(void *ctx, uint32_t ordinal, OmegaGpuDeviceHandle *out) { + LinuxRef *r = ctx; + int rc; + if (!out) return OMEGA_GPU_PLAT_REFUSED_ARGS; + memset(out, 0, sizeof *out); + ref_lock(r); + if (ordinal != 0u) { rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_ARGS, "device_open"); goto out; } + if (r->dev.generation != 0u) { rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_LIMIT, "device_open (already open)"); goto out; } + memset(&r->m16, 0, sizeof r->m16); + /* nvrm_open directly (m16_native_open is memset + nvrm_open + nvrm_close on failure) so the driver's own + * failure text survives into the stage name, as the session did before cut C. */ + if (nvrm_open(&r->m16.rm) != 0) { + rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "nvrm_open"); + (void)nvrm_close(&r->m16.rm); + goto out; + } + if (m16_native_create_channel(&r->m16) != 0) { + rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "m16_native_create_channel"); + (void)m16_native_close(&r->m16); + goto out; + } + rc = omega_gpu_handles_open(&r->t, OMEGA_GPU_HANDLE_DEVICE, 0, 1, 0, &out->index, &out->generation); + if (rc != OMEGA_GPU_PLAT_OK) { (void)m16_native_close(&r->m16); rc = refuse(r, rc, "device_open"); goto out; } + r->dev = *out; + r->diag[0] = '\0'; +out: + ref_unlock(r); + return rc; +} + +static int ref_device_close(void *ctx, OmegaGpuDeviceHandle dev) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = dev_ok(r, dev); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "device_close"); ref_unlock(r); return rc; } + /* Every handle of the device goes stale. The RM client close below releases the driver objects; buffers the + * caller did not free are not unmapped here, exactly as before cut C. */ + for (uint32_t i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) { + if (!r->t.live[i] || i == dev.index) continue; + (void)omega_gpu_handles_close(&r->t, i, r->t.generation[i], r->t.kind[i]); + memset(&r->mem[i], 0, sizeof r->mem[i]); + r->rights[i] = 0; + } + (void)omega_gpu_handles_close(&r->t, dev.index, dev.generation, OMEGA_GPU_HANDLE_DEVICE); + memset(&r->dev, 0, sizeof r->dev); + memset(&r->queue, 0, sizeof r->queue); + (void)m16_native_close(&r->m16); + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static const char *ref_diag_text(void *ctx) { return ((LinuxRef *)ctx)->diag; } + +static int ref_dma_alloc(void *ctx, OmegaGpuDeviceHandle dev, const OmegaGpuBufferDesc *desc, OmegaGpuBufferHandle *out, + OmegaCpuView *cpu, OmegaGpuVa *gpu, OmegaGpuBusAddr *bus) { + LinuxRef *r = ctx; + if (!desc || !out || !cpu || !gpu) return OMEGA_GPU_PLAT_REFUSED_ARGS; + memset(out, 0, sizeof *out); memset(cpu, 0, sizeof *cpu); memset(gpu, 0, sizeof *gpu); + if (bus) memset(bus, 0, sizeof *bus); + ref_lock(r); + int rc = dev_ok(r, dev); + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_platform_check_buffer(desc, &g_caps); + /* GPU-uncached by default. GPU-cached only for DEVICE-PRIVATE data buffers (OWN-30B T3b, 2026-10-13): no CPU_READ, no + * HOST_POLLED, so the CPU never reads a line the GPU may still hold in L2 (nvos.h:1116 "For system memory this will not be + * coherent with direct CPU mappings"). omega_gpu_mem_cached.c (OWN-30B L2) writes such a buffer from the CPU exactly once, + * before any GPU read, then syncs; omega_gpu_devmem.h (T3b) fills them with GPU writes only. Either way no stale L2 line exists. */ + const int cached = desc->gpu_cache == OMEGA_GPU_CACHE_GPU_CACHED; + if (rc == OMEGA_GPU_PLAT_OK && cached && + (desc->kind != OMEGA_GPU_HANDLE_BUF_DATA || (desc->rights & (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_HOST_POLLED)))) + rc = OMEGA_GPU_PLAT_REFUSED_CACHE_POLICY; + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "dma_alloc"); ref_unlock(r); return rc; } + uint32_t idx = 0, gen = 0; + rc = omega_gpu_handles_open(&r->t, desc->kind, desc->bytes, LINUX_REF_BUFFERS, g_caps.max_total_bytes, &idx, &gen); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "dma_alloc"); ref_unlock(r); return rc; } + NvrmMem m; + if ((cached ? nvrm_alloc(&r->m16.rm, desc->bytes, &m) : nvrm_alloc_gpu_uncached(&r->m16.rm, desc->bytes, &m)) != 0) { + (void)omega_gpu_handles_close(&r->t, idx, gen, desc->kind); /* this slot never got memory: its generation moves on */ + rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "nvrm_alloc_gpu_uncached"); + ref_unlock(r); + return rc; + } + r->mem[idx] = m; + r->rights[idx] = desc->rights; + out->index = idx; out->generation = gen; + cpu->ptr = m.cpu; cpu->len = (size_t)m.size; + gpu->va = m.va; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static int ref_dma_free(void *ctx, OmegaGpuBufferHandle b) { + LinuxRef *r = ctx; + uint32_t kind = 0; + ref_lock(r); + int rc = buf_ok(r, b, &kind); + if (rc == OMEGA_GPU_PLAT_OK && r->queue.generation != 0u && r->m16.pb_mem.handle == r->mem[b.index].handle && + r->m16.pb_mem.cpu == r->mem[b.index].cpu) + rc = OMEGA_GPU_PLAT_REFUSED_BUSY; /* the open queue still uses it as its ring */ + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "dma_free"); ref_unlock(r); return rc; } + (void)nvrm_free(&r->m16.rm, &r->mem[b.index]); + (void)omega_gpu_handles_close(&r->t, b.index, b.generation, kind); + memset(&r->mem[b.index], 0, sizeof r->mem[b.index]); + r->rights[b.index] = 0; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static void barrier(void) { +#if defined(__aarch64__) + __asm__ volatile("dsb sy" ::: "memory"); +#else + __sync_synchronize(); +#endif +} + +static int ref_sync(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len, const char *stage) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = buf_ok(r, b, NULL); + if (rc == OMEGA_GPU_PLAT_OK) rc = range_ok(r, b, off, len); + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, stage); + ref_unlock(r); + if (rc == OMEGA_GPU_PLAT_OK) barrier(); /* uncached system memory: a full barrier is the whole sync */ + return rc; +} +static int ref_sync_to_gpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_cpu_to_gpu"); } +static int ref_sync_to_cpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_gpu_to_cpu"); } + +static int ref_poll_word(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint32_t expected, uint64_t timeout_ms, uint32_t *observed) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = buf_ok(r, b, NULL); + if (rc == OMEGA_GPU_PLAT_OK && !(r->rights[b.index] & OMEGA_GPU_RIGHT_HOST_POLLED)) rc = OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (rc == OMEGA_GPU_PLAT_OK && (off & 3u)) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; + if (rc == OMEGA_GPU_PLAT_OK) rc = range_ok(r, b, off, 4u); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "poll_word"); ref_unlock(r); return rc; } + volatile uint32_t *w = (volatile uint32_t *)((uint8_t *)r->mem[b.index].cpu + off); + ref_unlock(r); /* never hold the table lock while polling */ + rc = m16_native_wait_marker(w, expected, timeout_ms) == 0 ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_POLL_TIMED_OUT; + if (observed) *observed = *w; + return rc; +} + +static int queue_ok(LinuxRef *r, OmegaGpuQueueHandle q) { + return omega_gpu_handles_check(&r->t, q.index, q.generation, OMEGA_GPU_HANDLE_QUEUE); +} + +static int ref_queue_open(void *ctx, OmegaGpuDeviceHandle dev, OmegaGpuBufferHandle ring, OmegaGpuQueueHandle *out) { + LinuxRef *r = ctx; + uint32_t kind = 0; + if (!out) return OMEGA_GPU_PLAT_REFUSED_ARGS; + memset(out, 0, sizeof *out); + ref_lock(r); + int rc = dev_ok(r, dev); + if (rc == OMEGA_GPU_PLAT_OK) rc = buf_ok(r, ring, &kind); + if (rc == OMEGA_GPU_PLAT_OK && kind != OMEGA_GPU_HANDLE_BUF_QUEUE) rc = OMEGA_GPU_PLAT_REFUSED_BAD_KIND; + if (rc == OMEGA_GPU_PLAT_OK && r->queue.generation != 0u) rc = OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_handles_open(&r->t, OMEGA_GPU_HANDLE_QUEUE, 0, 1, 0, &out->index, &out->generation); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "queue_open"); ref_unlock(r); return rc; } + r->m16.pb_mem = r->mem[ring.index]; /* m16_native_enqueue_methods copies the method stream here */ + r->queue = *out; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static int ref_queue_close(void *ctx, OmegaGpuQueueHandle q) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_handles_close(&r->t, q.index, q.generation, OMEGA_GPU_HANDLE_QUEUE); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "queue_close"); ref_unlock(r); return rc; } + memset(&r->queue, 0, sizeof r->queue); + memset(&r->m16.pb_mem, 0, sizeof r->m16.pb_mem); + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static int ref_queue_submit(void *ctx, OmegaGpuQueueHandle q, const uint32_t *words, uint32_t nwords) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK && (!words || nwords == 0u)) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; + if (rc == OMEGA_GPU_PLAT_OK && (uint64_t)nwords * 4u > r->m16.pb_mem.size) rc = OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; + if (rc == OMEGA_GPU_PLAT_OK && m16_native_submit_methods(&r->m16, words, nwords) != 0) rc = OMEGA_GPU_PLAT_REFUSED_DEVICE; + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, "submit_methods"); + ref_unlock(r); + return rc; +} + +static int ref_queue_retire(void *ctx, OmegaGpuQueueHandle q) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK) nvrm_retire(&r->m16.rm, r->m16.rm.put); /* both releases landed: the entry is consumed */ + else rc = refuse(r, rc, "queue_retire"); + ref_unlock(r); + return rc; +} + +static void *ref_host_alloc(void *ctx, size_t bytes) { (void)ctx; return bytes ? malloc(bytes) : NULL; } +static void ref_host_free(void *ctx, void *p) { (void)ctx; free(p); } + +static const OmegaGpuPlatform g_platform = { + .ctx = &g_ref, + .time_now_ms = ref_now_ms, + .wait_ms = ref_wait_ms, + .lock = ref_lock_id, + .unlock = ref_unlock_id, + .mmio_read32 = NULL, /* not provided: the RM driver owns the registers */ + .mmio_write32 = NULL, + .dma_alloc = ref_dma_alloc, + .dma_free = ref_dma_free, + .sync_cpu_to_gpu = ref_sync_to_gpu, + .sync_gpu_to_cpu = ref_sync_to_cpu, + .poll_word = ref_poll_word, + .irq_wait = NULL, /* polling is not interrupt support */ + .device_open = ref_device_open, + .device_close = ref_device_close, + .diag_text = ref_diag_text, + .queue_open = ref_queue_open, + .queue_close = ref_queue_close, + .queue_submit = ref_queue_submit, + .queue_retire = ref_queue_retire, + .time_now_ns = ref_now_ns, + .host_alloc = ref_host_alloc, + .host_free = ref_host_free, +}; + +const OmegaGpuPlatform *omega_gpu_platform_linux(OmegaGpuPlatformCaps *caps) { + if (caps) *caps = g_caps; + return &g_platform; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.c new file mode 100644 index 000000000..1e7c63722 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.c @@ -0,0 +1,542 @@ +/* + * omega_gpu_session.c: FB-1 cut 4b, made portable in native v1 P07 cut C (session part). See the header. + * + * The launch words are the ones omega_gpu_matmul_api.c (cut 1b, chip PASS FB1-CUT1B-4345406) and + * omega_gpu_elementwise_api.c (cut 4, FB1-CUT4-0d0241a) both emitted; cut C did not change one of them. What + * changed is where the machine comes from: every device, buffer, queue, clock, lock and host-memory call goes + * through the installed OmegaGpuPlatform (ABI 1.1), so this file builds freestanding (OMEGA_GPU_NO_POSIX) with no + * Linux header and no libc call. The hosted build installs the Linux reference (src/omega_gpu_platform_linux.c) + * on first use; it makes the same driver calls in the same order as this file did before. + * + * No read-modify-write atomics: the freestanding target must not pull libgcc outline atomics, so shared words are + * plain atomic loads and stores, and counters are only written with the session lock held. + */ +#include "omega_gpu_session.h" +#include "omega_gpu_code_alloc.h" +#include "omega_gpu_fmt.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" /* launch constants only (macros); the vector executor itself stays Linux-private */ +#include + +#ifndef OMEGA_GPU_NO_POSIX +#include "omega_gpu_platform_linux.h" +#include +#endif + +#define PAGE 0x1000ull + +/* Push-buffer method header (the nvrm_mthd encoding, physics nvrm.h): increasing, count words, subchannel. */ +static inline uint32_t bw_mthd(uint32_t subc, uint32_t mthd, uint32_t count) { + return (2u << 28) | (count << 16) | (subc << 13) | (mthd >> 2); +} + +/* Same words as src/omega_blackwell_submit.c SETUP_WORDS (compute class setup). */ +static const uint32_t SETUP_WORDS[18] = { + 0x20012061, 0x0000cec0, 0x20012092, 0x00000001, 0x200120a8, 0x0000000f, 0x2001255d, 0x00000003, + 0x2001255e, 0x20000000, 0x2001255f, 0x000fffff, 0x20012557, 0x00000003, 0x20012558, 0x22000000, + 0x20012559, 0x00000000, +}; + +static const OmegaGpuPlatform *g_p; /* installed platform (atomic load / store) */ +static OmegaGpuPlatformCaps g_caps; +static OmegaGpuSession g_s; +static bool g_open; +static uint32_t g_blocked; /* latched (atomic) */ +static uint32_t g_locked; /* session lock held (atomic) */ +static uint32_t g_cancel; /* cancel requested (atomic) */ +static uint32_t g_spin_us; /* omega_gpu_session_set_spin_us; 0 = poll_word only */ +static char g_err[320] = ""; +static void (*g_hooks[8])(void); +static unsigned g_nhooks; +static OmegaGpuAllocStats g_stats; /* written with the lock held, read with atomic loads */ +static OmegaGpuBufferHandle g_parked[OMEGA_GPU_SESSION_PARK_MAX]; +static OmegaGpuParkStats g_park; + +#define LOAD(x) __atomic_load_n(&(x), __ATOMIC_ACQUIRE) +#define STORE(x, v) __atomic_store_n(&(x), (v), __ATOMIC_RELEASE) +#define BUMP(x, by) STORE((x), LOAD(x) + (by)) /* lock held: one writer */ + +/* ---- platform ---- */ + +static int install(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps) { + if (!p || !caps) return OMEGA_GPU_PLAT_REFUSED_ARGS; + OmegaGpuPlatformCaps req = { + .abi_major = OMEGA_GPU_PLATFORM_ABI_MAJOR, .abi_minor = OMEGA_GPU_PLATFORM_ABI_MINOR, + .services = OMEGA_GPU_SVC_REQUIRED_SESSION, + .max_devices = 1, .max_buffers = 8, .max_queues = 1, .max_inflight = 1, + .max_buffer_bytes = 0x10000, .max_total_bytes = 0x10000 + 3 * 0x10000, + }; + int rc = omega_gpu_platform_negotiate(caps, &req); + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_platform_check_for(p, caps, OMEGA_GPU_SVC_REQUIRED_SESSION); + if (rc != OMEGA_GPU_PLAT_OK) return rc; + g_caps = *caps; + STORE(g_p, p); + return OMEGA_GPU_PLAT_OK; +} + +int omega_gpu_session_set_platform(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps) { + if (g_open || LOAD(g_locked) || LOAD(g_blocked)) return OMEGA_GPU_PLAT_REFUSED_BUSY; + if (!p) { STORE(g_p, (const OmegaGpuPlatform *)0); return OMEGA_GPU_PLAT_OK; } + return install(p, caps); +} + +#ifndef OMEGA_GPU_NO_POSIX +static pthread_once_t g_default_once = PTHREAD_ONCE_INIT; +static void install_default(void) { + if (LOAD(g_p)) return; /* one was installed explicitly */ + OmegaGpuPlatformCaps c; + const OmegaGpuPlatform *p = omega_gpu_platform_linux(&c); + (void)install(p, &c); +} +#endif + +static const OmegaGpuPlatform *platform(void) { + const OmegaGpuPlatform *p = LOAD(g_p); +#ifndef OMEGA_GPU_NO_POSIX + if (!p) { pthread_once(&g_default_once, install_default); p = LOAD(g_p); } +#endif + return p; +} + +const OmegaGpuPlatform *omega_gpu_session_platform(void) { return platform(); } +OmegaGpuCompletionMode omega_gpu_session_completion_mode(void) { return OMEGA_GPU_COMPLETION_POLLING; } + +uint64_t omega_gpu_session_now_ns(void) { + const OmegaGpuPlatform *p = platform(); + return p ? p->time_now_ns(p->ctx) : 0u; +} + +void *omega_gpu_host_alloc(size_t bytes) { + const OmegaGpuPlatform *p = platform(); + return p ? p->host_alloc(p->ctx, bytes ? bytes : 1) : (void *)0; /* 0 bytes: a unique 1-byte block, as malloc(0) gives */ +} +void *omega_gpu_host_calloc(size_t n, size_t size) { + size_t bytes; + if (__builtin_mul_overflow(n, size, &bytes)) return (void *)0; + void *q = omega_gpu_host_alloc(bytes); + if (q) memset(q, 0, bytes); + return q; +} +void omega_gpu_host_free(void *q) { + const OmegaGpuPlatform *p = platform(); + if (p && q) p->host_free(p->ctx, q); +} + +/* ---- errors ---- */ + +const char *omega_gpu_session_last_error(void) { return g_err; } +void omega_gpu_session_set_error(const char *stage) { omega_gpu_fmt(g_err, sizeof g_err, "%s", stage ? stage : ""); } + +/* A platform refusal: the driver text when the device refused (the Linux reference writes ": ", + * the stage names the session ever reported), else the stage and the refusal name. */ +static void fail_plat(const char *stage, int rc) { + const OmegaGpuPlatform *p = LOAD(g_p); + const char *diag = p ? p->diag_text(p->ctx) : ""; + if (rc == OMEGA_GPU_PLAT_REFUSED_DEVICE && diag && diag[0]) + omega_gpu_fmt(g_err, sizeof g_err, "%s", diag); + else + omega_gpu_fmt(g_err, sizeof g_err, "%s: %s", stage, omega_gpu_platform_refusal_name(rc)); +} + +/* ---- lock, state ---- */ + +void omega_gpu_session_lock(void) { + const OmegaGpuPlatform *p = platform(); + if (!p) return; + (void)p->lock(p->ctx, OMEGA_GPU_SESSION_LOCK_ID); + STORE(g_locked, 1u); +} +void omega_gpu_session_unlock(void) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (!p) return; + STORE(g_locked, 0u); + (void)p->unlock(p->ctx, OMEGA_GPU_SESSION_LOCK_ID); +} +bool omega_gpu_session_is_open(void) { return g_open; } +int omega_gpu_session_is_blocked(void) { return LOAD(g_blocked) ? 1 : 0; } +int omega_gpu_session_set_spin_us(uint32_t us) { + if (us > OMEGA_GPU_SESSION_MAX_SPIN_US) return -1; + STORE(g_spin_us, us); + return 0; +} +uint32_t omega_gpu_session_spin_us(void) { return LOAD(g_spin_us); } +void omega_gpu_session_cancel(void) { STORE(g_cancel, 1u); } + +/* Consumes a pending cancel request. */ +static bool take_cancel(void) { + if (!LOAD(g_cancel)) return false; + STORE(g_cancel, 0u); + return true; +} + +void omega_gpu_session_alloc_stats(OmegaGpuAllocStats *out) { + if (!out) return; + out->allocs = LOAD(g_stats.allocs); + out->alloc_bytes = LOAD(g_stats.alloc_bytes); + out->alloc_failures = LOAD(g_stats.alloc_failures); + out->frees = LOAD(g_stats.frees); + out->stale_refusals = LOAD(g_stats.stale_refusals); +} + +/* ---- parking ---- */ + +static void park(const OmegaGpuMem *m) { + uint32_t n = LOAD(g_park.buffers) - LOAD(g_park.untracked); + for (uint32_t i = 0; i < n; i++) + if (g_parked[i].index == m->handle.index && g_parked[i].generation == m->handle.generation) return; + if (n < OMEGA_GPU_SESSION_PARK_MAX) g_parked[n] = m->handle; + else BUMP(g_park.untracked, 1u); + BUMP(g_park.bytes, m->size); + BUMP(g_park.buffers, 1u); +} + +void omega_gpu_session_parked(OmegaGpuParkStats *out) { + if (!out) return; + out->buffers = LOAD(g_park.buffers); + out->untracked = LOAD(g_park.untracked); + out->bytes = LOAD(g_park.bytes); +} + +int omega_gpu_session_is_parked(OmegaGpuBufferHandle h) { + uint32_t n = LOAD(g_park.buffers) - LOAD(g_park.untracked); + if (h.generation == 0u) return 0; + for (uint32_t i = 0; i < n && i < OMEGA_GPU_SESSION_PARK_MAX; i++) + if (g_parked[i].index == h.index && g_parked[i].generation == h.generation) return 1; + return 0; +} + +/* Uncertain completion: the device may still touch any session buffer. Keep everything, refuse everything. */ +static void latch(const char *why) { + STORE(g_blocked, 1u); + if (g_s.pb.cpu) park(&g_s.pb); + if (g_s.cbank.cpu) park(&g_s.cbank); + if (g_s.marker.cpu) park(&g_s.marker); + if (g_s.qmd.cpu) park(&g_s.qmd); + omega_gpu_session_set_error(why); +} + +/* ---- buffers ---- */ + +static size_t page_up(size_t b) { b = (b + PAGE - 1) & ~(PAGE - 1); return b < PAGE ? PAGE : b; } + +static int mem_alloc(uint32_t kind, uint32_t rights, size_t bytes, OmegaGpuMem *out) { + const OmegaGpuPlatform *p = LOAD(g_p); + memset(out, 0, sizeof *out); + if (!g_open || LOAD(g_blocked) || !p) { omega_gpu_session_set_error("alloc without open device"); return -1; } + const size_t want = page_up(bytes); + OmegaGpuBufferDesc d = {.kind = kind, .rights = rights, .gpu_cache = OMEGA_GPU_CACHE_GPU_UNCACHED, .align = (uint32_t)PAGE, .bytes = want}; + OmegaCpuView cpu; OmegaGpuVa va; OmegaGpuBusAddr bus; /* the bus address never leaves this function */ + int rc = p->dma_alloc(p->ctx, g_s.dev, &d, &out->handle, &cpu, &va, &bus); + if (rc != OMEGA_GPU_PLAT_OK || !cpu.ptr || cpu.len < want) { + if (rc == OMEGA_GPU_PLAT_OK) { (void)p->dma_free(p->ctx, out->handle); rc = OMEGA_GPU_PLAT_REFUSED_LIMIT; } + BUMP(g_stats.alloc_failures, 1u); + fail_plat("dma_alloc", rc); + memset(out, 0, sizeof *out); + return -1; + } + out->kind = kind; out->cpu = cpu.ptr; out->va = va.va; out->size = cpu.len; + BUMP(g_stats.allocs, 1u); + BUMP(g_stats.alloc_bytes, (uint64_t)want); + return 0; +} + +#define RIGHTS_DATA (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ | OMEGA_GPU_RIGHT_GPU_WRITE) +#define RIGHTS_CODE (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ | OMEGA_GPU_RIGHT_GPU_EXEC) +#define RIGHTS_RING (OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ) +#define RIGHTS_MARKER (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_WRITE | OMEGA_GPU_RIGHT_HOST_POLLED) +#define RIGHTS_CBANK (OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ) + +int omega_gpu_session_alloc(size_t bytes, OmegaGpuMem *out) { + return mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_DATA, bytes, out); +} + +int omega_gpu_session_alloc_code(size_t code_size, OmegaGpuMem *out) { + size_t bytes = omega_gpu_code_alloc_bytes(code_size); + if (bytes == 0) { omega_gpu_session_set_error("code size overflow"); memset(out, 0, sizeof *out); return -1; } + if (mem_alloc(OMEGA_GPU_HANDLE_BUF_CODE, RIGHTS_CODE, bytes, out) != 0) return -1; + memset((uint8_t *)out->cpu + code_size, 0, bytes - code_size); + return 0; +} + +void omega_gpu_session_free(OmegaGpuMem *m) { + if (!m) return; + if (m->cpu) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (LOAD(g_blocked)) { + park(m); /* the device may still use it */ + } else if (!g_open || !p) { + BUMP(g_stats.stale_refusals, 1u); /* its device is closed: the handle is stale, nothing to release */ + } else { + int rc = p->dma_free(p->ctx, m->handle); + if (rc == OMEGA_GPU_PLAT_OK) BUMP(g_stats.frees, 1u); + else { BUMP(g_stats.stale_refusals, 1u); fail_plat("dma_free", rc); } + } + } + memset(m, 0, sizeof *m); +} + +static int sync_mem(const OmegaGpuMem *m, int to_gpu) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (!m || !m->cpu) return 0; + if (!p || !g_open) { omega_gpu_session_set_error("sync without open device"); return -1; } + int rc = to_gpu ? p->sync_cpu_to_gpu(p->ctx, m->handle, 0, m->size) : p->sync_gpu_to_cpu(p->ctx, m->handle, 0, m->size); + if (rc != OMEGA_GPU_PLAT_OK) { fail_plat(to_gpu ? "sync_cpu_to_gpu" : "sync_gpu_to_cpu", rc); return -1; } + return 0; +} +int omega_gpu_session_sync_to_gpu(const OmegaGpuMem *m) { return sync_mem(m, 1); } +int omega_gpu_session_sync_to_cpu(const OmegaGpuMem *m) { return sync_mem(m, 0); } + +int omega_gpu_session_scratch(OmegaGpuScratch *s, size_t bytes) { + if (s->reserved && (bytes > s->cap || !s->mem.cpu)) { + omega_gpu_fmt(g_err, sizeof g_err, "serving reservation exceeded: need %zu bytes, reserved %zu", bytes, s->cap); + return OMEGA_GPU_SESSION_SCRATCH_RESERVED; + } + if (bytes > s->high_water) s->high_water = bytes; + if (s->cap >= bytes && s->mem.cpu) return 0; + omega_gpu_session_free(&s->mem); + s->cap = 0; + if (omega_gpu_session_alloc(s->high_water, &s->mem) != 0) return -1; + s->cap = (size_t)s->mem.size; + return 0; +} + +void omega_gpu_session_scratch_free(OmegaGpuScratch *s) { + omega_gpu_session_free(&s->mem); + s->cap = 0; + s->reserved = false; +} + +int omega_gpu_session_scratch_reserve(OmegaGpuScratch *s, size_t bytes) { + s->reserved = false; /* grow normally first */ + if (omega_gpu_session_scratch(s, bytes) != 0) return -1; + s->reserved = true; + return 0; +} + +void omega_gpu_session_scratch_unreserve(OmegaGpuScratch *s) { s->reserved = false; } + +static void free_session_buffers(void) { + omega_gpu_session_free(&g_s.qmd); omega_gpu_session_free(&g_s.marker); + omega_gpu_session_free(&g_s.cbank); omega_gpu_session_free(&g_s.pb); +} + +/* ---- open, close ---- */ + +OmegaGpuSession *omega_gpu_session_open(void) { + if (LOAD(g_blocked)) { omega_gpu_session_set_error("process latched"); return NULL; } + if (g_open) return &g_s; + const OmegaGpuPlatform *p = platform(); + if (!p) { omega_gpu_session_set_error("no GPU platform installed (omega_gpu_session_set_platform)"); return NULL; } + uint64_t t0 = p->time_now_ns(p->ctx); + const uint32_t opens = g_s.opens; + memset(&g_s, 0, sizeof g_s); + g_s.opens = opens; + int rc = p->device_open(p->ctx, 0, &g_s.dev); + if (rc != OMEGA_GPU_PLAT_OK) { fail_plat("device_open", rc); memset(&g_s.dev, 0, sizeof g_s.dev); return NULL; } + g_open = true; /* so alloc / free work during the rest of the open */ + /* same four buffers, same sizes, same order as before cut C; every one GPU-uncached */ + if (mem_alloc(OMEGA_GPU_HANDLE_BUF_QUEUE, RIGHTS_RING, 0x10000, &g_s.pb) || + mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_CBANK, PAGE, &g_s.cbank) || + mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_MARKER, PAGE, &g_s.marker) || + mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_DATA, 0x10000, &g_s.qmd) || + (rc = p->queue_open(p->ctx, g_s.dev, g_s.pb.handle, &g_s.queue)) != OMEGA_GPU_PLAT_OK) { + char keep[sizeof g_err]; + if (rc != OMEGA_GPU_PLAT_OK) fail_plat("queue_open", rc); + memcpy(keep, g_err, sizeof keep); + free_session_buffers(); + g_open = false; + (void)p->device_close(p->ctx, g_s.dev); + memset(&g_s.dev, 0, sizeof g_s.dev); + omega_gpu_fmt(g_err, sizeof g_err, "session scratch alloc (%s)", keep); + return NULL; + } + g_s.opens++; + g_s.last_open_ns = p->time_now_ns(p->ctx) - t0; + return &g_s; +} + +int omega_gpu_session_on_close(void (*hook)(void)) { /* caller holds the lock (the APIs register from their open path) */ + if (!hook) return -1; + int rc = 0; + bool seen = false; + for (unsigned i = 0; i < g_nhooks; i++) if (g_hooks[i] == hook) seen = true; + if (!seen) { if (g_nhooks < sizeof g_hooks / sizeof g_hooks[0]) g_hooks[g_nhooks++] = hook; else rc = -1; } + return rc; +} + +void omega_gpu_session_close(void) { + omega_gpu_session_lock(); + const OmegaGpuPlatform *p = LOAD(g_p); + if (g_open && !LOAD(g_blocked) && p) { + for (unsigned i = 0; i < g_nhooks; i++) g_hooks[i](); + if (!LOAD(g_blocked)) { /* a hook's launch may have latched: then nothing below runs */ + (void)p->queue_close(p->ctx, g_s.queue); + memset(&g_s.queue, 0, sizeof g_s.queue); + free_session_buffers(); + (void)p->device_close(p->ctx, g_s.dev); /* every handle of this device is stale from here */ + memset(&g_s.dev, 0, sizeof g_s.dev); + g_open = false; + } + } + omega_gpu_session_unlock(); +} + +/* ---- launch ---- */ + +static uint32_t round_up(uint32_t v, uint32_t q) { return (v + q - 1) / q * q; } + +static inline void cpu_relax(void) { +#if defined(__aarch64__) + __asm__ volatile("yield" ::: "memory"); +#else + __asm__ volatile("" ::: "memory"); +#endif +} + +#define WAIT_CANCELLED 1 +#define WAIT_TIMED_OUT 2 +#define WAIT_REFUSED 3 + +/* Marker wait by POLLING. With spin_us, the host first re-reads the uncached marker word back to back (with the + * ARM yield hint) so a launch that finishes inside the window is seen within about one read. Then the platform's + * poll_word in slices of OMEGA_GPU_SESSION_POLL_SLICE_MS (Linux reference: the m16 50 us sleep-poll) until + * timeout_ms, checking for a cancel request between slices. */ +static int session_wait(const OmegaGpuPlatform *p, uint64_t off, uint32_t want, uint64_t timeout_ms, uint32_t spin_us) { + volatile uint32_t *m = (volatile uint32_t *)((uint8_t *)g_s.marker.cpu + off); + if (spin_us) { + const uint64_t end = p->time_now_ns(p->ctx) + (uint64_t)spin_us * 1000u; + do { + if ((int32_t)(*m - want) >= 0) return 0; + if (LOAD(g_cancel)) return WAIT_CANCELLED; + cpu_relax(); + } while (p->time_now_ns(p->ctx) < end); + } + uint64_t waited = 0; + for (;;) { + if (LOAD(g_cancel)) return WAIT_CANCELLED; + const uint64_t left = timeout_ms - waited; + const uint64_t slice = left < OMEGA_GPU_SESSION_POLL_SLICE_MS ? left : OMEGA_GPU_SESSION_POLL_SLICE_MS; + uint32_t seen = 0; + int rc = p->poll_word(p->ctx, g_s.marker.handle, off, want, slice, &seen); + if (rc == OMEGA_GPU_PLAT_OK) return 0; + if (rc != OMEGA_GPU_POLL_TIMED_OUT) return WAIT_REFUSED; + waited += slice; + if (waited >= timeout_ms) return WAIT_TIMED_OUT; + } +} + +int omega_gpu_session_launch(const OmegaGpuLaunch *L, uint64_t *elapsed_ns, uint32_t *marker_out) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (!g_open || LOAD(g_blocked) || !p) { + omega_gpu_session_set_error(LOAD(g_blocked) ? "process latched" : "launch without open device"); return -1; + } + if (!L || !L->args || L->n_args == 0 || L->n_args > OMEGA_GPU_SESSION_MAX_ARGS || L->threads_x == 0 || L->grid_x == 0 || L->grid_y == 0 || + L->spin_us > OMEGA_GPU_SESSION_MAX_SPIN_US) { + omega_gpu_session_set_error("launch arguments"); return -1; + } + if (take_cancel()) { omega_gpu_session_set_error("launch cancelled before submit"); return OMEGA_GPU_SESSION_CANCELLED; } + const uint32_t threads_y = L->threads_y ? L->threads_y : 1; + uint32_t cbank_data[OMEGA_BW_CBANK_DRIVER_WORDS]; + omega_blackwell_build_cbank_driver_2d(cbank_data, g_s.cbank.va, L->threads_x, threads_y, L->grid_x, L->grid_y); + memcpy(g_s.cbank.cpu, cbank_data, sizeof cbank_data); + memcpy((uint8_t *)g_s.cbank.cpu + 0x380, L->args, (size_t)L->n_args * 4u); + + const uint64_t qmd0_va = g_s.qmd.va, qmd1_va = g_s.qmd.va + 0x1000, sem_va = g_s.qmd.va + 0x2000, scratch_va = g_s.qmd.va + 0x4000; + uint32_t gpr = L->gpr_count > 64u ? round_up(L->gpr_count, 8u) : 64u; + OmegaBlackwellQmdConfig cfg = { + .code_va = L->code_va, .cbank_va = g_s.cbank.va, .scratch_va = scratch_va, .sem_va = sem_va, + .qmd0_va = qmd0_va, .qmd1_va = qmd1_va, .num_elements = L->num_elements, + .threads_per_block = L->threads_x, .grid_width = L->grid_x * L->grid_y, .threads_x = L->threads_x, .threads_y = threads_y, + .grid_x = L->grid_x, .grid_y = L->grid_y, .gpr_count = gpr, + .shared_bytes = L->shared_bytes, + }; + uint32_t qmd0_words[OMEGA_BW_QMD_WORDS], qmd1_words[OMEGA_BW_QMD_WORDS]; + omega_blackwell_build_qmd0(qmd0_words, qmd0_va, qmd1_va); + if (omega_blackwell_build_qmd1(qmd1_words, &cfg) != 0) { omega_gpu_session_set_error("qmd build (shared_bytes)"); return -1; } + if (omega_blackwell_verify_qmd_invariants(qmd1_words) != 0) { omega_gpu_session_set_error("qmd invariants"); return -1; } + memcpy(g_s.qmd.cpu, qmd0_words, sizeof qmd0_words); + memcpy((uint8_t *)g_s.qmd.cpu + 0x1000, qmd1_words, sizeof qmd1_words); + + volatile uint32_t *hsem = (volatile uint32_t *)((uint8_t *)g_s.qmd.cpu + 0x2000); + volatile uint32_t *hmarker = (volatile uint32_t *)g_s.marker.cpu; + volatile uint32_t *hmarker2 = (volatile uint32_t *)((uint8_t *)g_s.marker.cpu + 0x10); + *hsem = 0; *hmarker = 0; *hmarker2 = 0; + /* explicit visibility of everything the CPU just wrote (Linux reference: dsb sy, the barrier issued here before) */ + int rc = p->sync_cpu_to_gpu(p->ctx, g_s.cbank.handle, 0, PAGE); + if (rc == OMEGA_GPU_PLAT_OK) rc = p->sync_cpu_to_gpu(p->ctx, g_s.qmd.handle, 0, 0x3000); + if (rc == OMEGA_GPU_PLAT_OK) rc = p->sync_cpu_to_gpu(p->ctx, g_s.marker.handle, 0, 0x20); + if (rc != OMEGA_GPU_PLAT_OK) { fail_plat("sync_cpu_to_gpu", rc); return -1; } + + uint32_t pb[1024]; + size_t n = 0; + memcpy(&pb[n], SETUP_WORDS, sizeof SETUP_WORDS); n += sizeof SETUP_WORDS / 4; + /* Invalidate the SM instruction, constant and data caches before this launch + * (cut 1b finding: a reused code address served stale instructions; clcec0.h + * NVCEC0_INVALIDATE_SHADER_CACHES 0x021c, bits INSTRUCTION 0, DATA 4, CONSTANT 12). */ + pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = OMEGA_BW_INVALIDATE_SHADER_CACHES_ALL; + /* constant bank 0: driver words, then our arguments at 0x380 (inline upload) */ + pb[n++] = bw_mthd(1, 0x0188, 2); pb[n++] = (uint32_t)(g_s.cbank.va >> 32); pb[n++] = (uint32_t)g_s.cbank.va; + pb[n++] = bw_mthd(1, 0x0180, 2); pb[n++] = 0x00000380; pb[n++] = 0x00000001; + pb[n++] = bw_mthd(1, 0x01b0, 1); pb[n++] = 0x00000041; + pb[n++] = (224u << 16) | (1u << 13) | (0x01b4 >> 2) | (6u << 28); + memcpy(&pb[n], cbank_data, 224 * 4); n += 224; + pb[n++] = bw_mthd(1, 0x0188, 2); pb[n++] = (uint32_t)((g_s.cbank.va + 0x380) >> 32); pb[n++] = (uint32_t)(g_s.cbank.va + 0x380); + pb[n++] = bw_mthd(1, 0x0180, 2); pb[n++] = L->n_args * 4u; pb[n++] = 0x00000001; + pb[n++] = bw_mthd(1, 0x01b0, 1); pb[n++] = 0x00000041; + pb[n++] = (L->n_args << 16) | (1u << 13) | (0x01b4 >> 2) | (6u << 28); + memcpy(&pb[n], L->args, (size_t)L->n_args * 4u); n += L->n_args; + /* QMD0 (null grid, dependence 2) */ + pb[n++] = (98u << 16) | (1u << 13) | (0x0318 >> 2) | (2u << 28); + pb[n++] = (1u << 30) | (uint32_t)((qmd0_va >> 40) & 0x1ff); pb[n++] = (uint32_t)(qmd0_va >> 8); + memcpy(&pb[n], qmd0_words, 96 * 4); n += 96; + /* intermediate semaphore init */ + pb[n++] = bw_mthd(1, 0x0188, 2); pb[n++] = (uint32_t)(sem_va >> 32); pb[n++] = (uint32_t)sem_va; + pb[n++] = bw_mthd(1, 0x0180, 2); pb[n++] = 0x00000004; pb[n++] = 0x00000001; + pb[n++] = bw_mthd(1, 0x01b0, 1); pb[n++] = 0x00000041; + pb[n++] = (1u << 16) | (1u << 13) | (0x01b4 >> 2) | (6u << 28); + pb[n++] = OMEGA_BW_SEMAPHORE_INTERMEDIATE_INIT; + /* QMD1 (the kernel) */ + pb[n++] = (98u << 16) | (1u << 13) | (0x0318 >> 2) | (2u << 28); + pb[n++] = (1u << 30) | (uint32_t)((qmd1_va >> 40) & 0x1ff); pb[n++] = (uint32_t)(qmd1_va >> 8); + memcpy(&pb[n], qmd1_words, 96 * 4); n += 96; + /* first marker */ + pb[n++] = bw_mthd(0, 0x005c, 5); + pb[n++] = (uint32_t)g_s.marker.va; pb[n++] = (uint32_t)(g_s.marker.va >> 32); + pb[n++] = OMEGA_BW_MARKER_COMPLETION_PAYLOAD; pb[n++] = 0; pb[n++] = 0x1 | (1u << 20); + /* C3 tail: L2_FLUSH_DIRTY, then the second release on the uncached marker page */ + pb[n++] = bw_mthd(0, 0x0028, 4); pb[n++] = 0; pb[n++] = 0; pb[n++] = 0; pb[n++] = (0x10u << 27); + pb[n++] = bw_mthd(0, 0x005c, 5); + pb[n++] = (uint32_t)(g_s.marker.va + 0x10); pb[n++] = (uint32_t)((g_s.marker.va + 0x10) >> 32); + pb[n++] = OMEGA_BW_MARKER2_PAYLOAD; pb[n++] = 0; pb[n++] = 0x1 | (1u << 20); + + const uint32_t spin_us = L->spin_us ? L->spin_us : omega_gpu_session_spin_us(); + uint64_t t0 = p->time_now_ns(p->ctx); + rc = p->queue_submit(p->ctx, g_s.queue, pb, (uint32_t)n); + if (rc != OMEGA_GPU_PLAT_OK) { + fail_plat("submit_methods", rc); /* contract: a refused submit rang no doorbell, nothing is in flight */ + return -1; + } + int w = session_wait(p, 0, OMEGA_BW_MARKER_COMPLETION_PAYLOAD, L->timeout_ms, spin_us); + if (w == 0) w = session_wait(p, 0x10, OMEGA_BW_MARKER2_PAYLOAD, L->timeout_ms, spin_us); + if (w != 0) { + /* uncertain completion: keep everything (parked), refuse every later call */ + if (w == WAIT_CANCELLED) { + (void)take_cancel(); + latch("launch cancelled after submit (completion uncertain, latched)"); + return OMEGA_GPU_SESSION_CANCELLED; + } + latch(w == WAIT_TIMED_OUT ? "marker wait timed out (latched)" : "marker poll refused (latched)"); + return -1; + } + (void)p->sync_gpu_to_cpu(p->ctx, g_s.marker.handle, 0, 0x20); + (void)p->sync_gpu_to_cpu(p->ctx, g_s.qmd.handle, 0x2000, 4); + uint64_t t1 = p->time_now_ns(p->ctx); + (void)p->queue_retire(p->ctx, g_s.queue); /* both releases landed: the GPFIFO entry is consumed */ + if (*hsem != OMEGA_BW_SEMAPHORE_INTERMEDIATE_DONE) { omega_gpu_session_set_error("intermediate semaphore not DONE"); return -1; } + if (elapsed_ns) *elapsed_ns += t1 - t0; + if (marker_out) *marker_out = *hmarker; + (void)hmarker2; + return 0; +} + +uint32_t omega_gpu_session_open_count(void) { return g_s.opens; } diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.h new file mode 100644 index 000000000..cd454d49a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/omega_gpu_session.h @@ -0,0 +1,253 @@ +#ifndef OMEGA_GPU_SESSION_H +#define OMEGA_GPU_SESSION_H +/* + * omega_gpu_session: the ONE persistent device for the native GPU APIs + * (FB-1 cut 4b, 2026-10-04). Shared by omega_gpu_matmul_api, + * omega_gpu_elementwise_api and omega_gpu_attention_api. + * + * Before this cut the matmul API kept its own device open for the process while + * the elementwise and attention APIs opened a client, device, VA space and + * channel for EVERY call and closed them again (~40 ms per call against ~0.1 ms + * of chip time; TinyLlama decode makes ~3500 elementwise calls per 32 tokens, + * sovereign-core cut 3c: 0.207 tok/s). Now: + * - one RM client / device / channel per process, opened on the first launch of + * any API and kept until omega_gpu_session_close(); + * - one pushbuffer, constant bank, marker page and QMD page, reused per launch; + * - staging buffers owned by the callers grow to a high-water mark and are reused + * (omega_gpu_session_scratch); + * - every buffer is GPU-uncached (nvos.h NVOS32_ATTR2_GPU_CACHEABLE, read + * 2026-10-04: "For system memory this will not be coherent with direct CPU + * mappings"; the default for system memory is uncached), because the host + * writes inputs the chip then reads, and polls the markers the chip writes; + * - every launch keeps the chip-proven sequence: shader-cache invalidate + * (clcec0.h NVCEC0_INVALIDATE_SHADER_CACHES, cut 1b finding), constant bank + * upload, QMD0 / QMD1, first marker, L2_FLUSH_DIRTY, second marker on the + * uncached page (C3 tail, omega#225/#230), GPFIFO retire after completion. + * - an uncertain completion (marker wait timed out) latches the process: nothing + * is freed or closed (the chip may still be running) and every later launch + * of every API is refused, as the engine does (omega_gpu_engine.h). + * + * Threading: one process-wide mutex. A caller takes omega_gpu_session_lock(), + * does its whole call (kernel lookup, staging, launches, readback) and unlocks. + * Calls from several threads therefore serialise on the device; that is the + * documented model (one channel, one GPFIFO). + * + * Diagnostics (cut 4b flake investigation): every failure names its stage + * (omega_gpu_session_last_error) and an open failure carries the driver text + * (Nvrm.err: RM class, ioctl errno, RM status) so a first-call failure is never + * reported as a bare CHIP_FAIL again. + * + * Portability (native v1 P07 cut C, session part; aienos#286, docs/numeric/OMEGA_GPU_NATIVE_BOUNDARY.md): + * this file and omega_gpu_session.c no longer name a Linux driver type or call one. Everything the session + * needs from the machine goes through the installed OmegaGpuPlatform (src/omega_gpu_platform.h, ABI 1.1, + * service set OMEGA_GPU_SVC_REQUIRED_SESSION): device open/close, typed DMA buffers with explicit rights, + * kind and GPU-uncached policy, the submission queue, POLLING completion (poll_word; the session never + * claims or waits on an interrupt), explicit CPU<->GPU sync, the nanosecond clock, the session lock and + * CPU-only host memory. omega_gpu_session_set_platform installs one; the hosted build installs the Linux + * reference (src/omega_gpu_platform_linux.c, reference only) on first use when none was installed; the + * freestanding build (OMEGA_GPU_NO_POSIX) has no default and refuses until a platform is installed. + * Buffers are OmegaGpuMem: a typed handle (index + generation) plus the CPU view and the GPU VA as two + * distinct fields; no bus or physical address reaches the APIs. A handle from a closed device is stale and + * every use of it is refused. + * + * Uncertain completion parks, it never releases: after a marker poll timed out or a launch was cancelled + * after submit, the device may still be reading or writing any session buffer, so every buffer the session + * or an API frees from then on is PARKED (kept allocated, counted in omega_gpu_session_parked) and never + * returned to the platform; close and reopen are refused; the latch holds for the life of the process. + */ +#include +#include +#include +#include "omega_gpu_platform.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* A device buffer: typed handle, kind, CPU view (cpu, size bytes) and GPU VA (va). cpu NULL = none. */ +typedef struct { + OmegaGpuBufferHandle handle; + uint32_t kind; /* OMEGA_GPU_HANDLE_BUF_DATA, _BUF_CODE or _BUF_QUEUE */ + void *cpu; /* CPU view (OmegaCpuView.ptr) */ + uint64_t va; /* GPU virtual address (OmegaGpuVa.va) */ + uint64_t size; /* bytes of both views */ +} OmegaGpuMem; + +typedef struct { + OmegaGpuDeviceHandle dev; + OmegaGpuQueueHandle queue; + OmegaGpuMem pb, cbank, marker, qmd; /* per-launch scratch, owned by the session (pb is the queue ring) */ + uint32_t opens; /* device opens in this process */ + uint64_t last_open_ns; /* wall time of the last successful open */ +} OmegaGpuSession; + +/* A caller-owned staging buffer that grows to its high-water mark. */ +typedef struct { + OmegaGpuMem mem; + size_t cap; /* usable bytes */ + size_t high_water; /* largest request so far */ + bool reserved; /* serving reservation active: a request past cap is refused, never allocated (omega_gpu_session_scratch_reserve) */ +} OmegaGpuScratch; + +/* One launch: a kernel already resident at code_va, the argument words for + * constant bank 0 at 0x380 (buffer addresses then parameters), the grid. */ +typedef struct { + uint64_t code_va; + uint32_t gpr_count; /* registers the QMD declares (multiple of 8, >= 64 in practice) */ + uint32_t threads_x, threads_y; + uint32_t grid_x, grid_y; + size_t num_elements; /* QMD config num_elements (kept per API for identical words) */ + const uint32_t *args; /* n_args words written at cbank + 0x380 */ + uint32_t n_args; /* <= OMEGA_GPU_SESSION_MAX_ARGS */ + uint64_t timeout_ms; /* marker poll; past it the completion is uncertain and the process latches */ + uint32_t shared_bytes; /* shared memory per CTA; 0 = the QMD default (1024) */ + uint32_t spin_us; /* poll the marker without sleeping for up to this long, then the platform's + poll_word (Linux reference: 50 us sleep-poll) until timeout_ms; 0 = poll_word only */ +} OmegaGpuLaunch; +#define OMEGA_GPU_SESSION_MAX_SPIN_US 1000000u +#define OMEGA_GPU_SESSION_MAX_ARGS 32u +/* poll_word is called in slices of at most this many ms so a cancel request is seen within one slice */ +#define OMEGA_GPU_SESSION_POLL_SLICE_MS 1u + +/* ---- platform (ABI 1.1) ---- */ + +/* Installs the platform the session runs on. Negotiates caps against OMEGA_GPU_SVC_REQUIRED_SESSION and checks the + * table (omega_gpu_platform_check_for). OMEGA_GPU_PLAT_OK, or the refusal; REFUSED_BUSY while the device is open, + * the lock is held or the process is latched. NULL p uninstalls (refused the same way). Install once, at start. */ +int omega_gpu_session_set_platform(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps); +/* The installed platform (the hosted build installs the Linux reference here when none was installed); NULL in the + * freestanding build until omega_gpu_session_set_platform. */ +const OmegaGpuPlatform *omega_gpu_session_platform(void); + +/* Completion is observed by polling a GPU-uncached word; the session never claims interrupt support. */ +typedef enum { OMEGA_GPU_COMPLETION_POLLING = 1 } OmegaGpuCompletionMode; +OmegaGpuCompletionMode omega_gpu_session_completion_mode(void); + +/* Platform clock in ns (CLOCK_NS); 0 without a platform. */ +uint64_t omega_gpu_session_now_ns(void); + +/* CPU-only memory for API tables and staging, from the platform HOST_MEM service (Linux reference: malloc/free). + * NULL without a platform or on refusal; 0 bytes gives a unique 1-byte block (malloc(0) behaviour); calloc also + * refuses n * size overflow. free(NULL) is a no-op. */ +void *omega_gpu_host_alloc(size_t bytes); +void *omega_gpu_host_calloc(size_t n, size_t size); +void omega_gpu_host_free(void *p); + +/* ---- lock, open, state ---- */ + +/* Take the session lock (platform LOCK service, lock id OMEGA_GPU_SESSION_LOCK_ID). Does not touch the device. + * Without a platform it is a no-op and the open that follows refuses. */ +#define OMEGA_GPU_SESSION_LOCK_ID 0u +void omega_gpu_session_lock(void); +void omega_gpu_session_unlock(void); + +/* Caller holds the lock. Opens the device on first use. NULL when the process is + * latched, no platform is installed or the open failed (stage in omega_gpu_session_last_error). */ +OmegaGpuSession *omega_gpu_session_open(void); +bool omega_gpu_session_is_open(void); + +/* 1 once an uncertain completion has latched this process. */ +int omega_gpu_session_is_blocked(void); + +/* Process-wide marker-poll spin window, used by every launch whose own spin_us is 0 + * (the matmul, elementwise and attention APIs leave it 0). 0 (the default) keeps the + * poll_word sleep-poll (Linux reference: 50 us, which Linux timer slack rounds to about 102 us + * per launch on GB10, omega#328). 0 on success, -1 above OMEGA_GPU_SESSION_MAX_SPIN_US (setting unchanged). */ +int omega_gpu_session_set_spin_us(uint32_t us); +uint32_t omega_gpu_session_spin_us(void); + +/* ---- buffers ---- */ + +/* Caller holds the lock, device open. GPU-uncached DATA buffer (CPU and GPU read/write), page rounded. */ +int omega_gpu_session_alloc(size_t bytes, OmegaGpuMem *out); +/* Caller holds the lock, device open. A CODE buffer (CPU writes, GPU executes, GPU never writes) for code_size + * bytes with the 2 KB instruction prefetch tail (omega_gpu_code_alloc.h), the tail zero-filled; the caller writes + * the code to out->cpu. */ +int omega_gpu_session_alloc_code(size_t code_size, OmegaGpuMem *out); +/* Releases m to the platform and zeroes *m. Latched: m is PARKED instead (never released). A handle from a closed + * device (stale) or a closed session is refused: nothing is released, the refusal is counted + * (OmegaGpuAllocStats.stale_refusals) and *m is zeroed. */ +void omega_gpu_session_free(OmegaGpuMem *m); + +/* Explicit visibility of a whole buffer (platform SYNC): CPU writes before the device reads them, device writes + * before the CPU reads them (Linux reference: dsb sy, the barrier the APIs issued themselves before cut C). + * 0 also for a buffer with no CPU view (nothing to sync); -1 with the stage named when refused or no device. */ +int omega_gpu_session_sync_to_gpu(const OmegaGpuMem *m); +int omega_gpu_session_sync_to_cpu(const OmegaGpuMem *m); + +/* Caller holds the lock, device open. Makes s->mem at least `bytes` long + * (reallocated when it grows; contents are not kept). */ +int omega_gpu_session_scratch(OmegaGpuScratch *s, size_t bytes); +/* Caller holds the lock, device open. Allocates s->mem for `bytes` now and marks it reserved: from then on + * omega_gpu_session_scratch(s, n) with n <= the reserved capacity never touches the driver, and with n past it + * returns OMEGA_GPU_SESSION_SCRATCH_RESERVED (-2) with a clear error and no allocation. 0 on success, -1 on + * allocation failure (not reserved then). Cleared by omega_gpu_session_scratch_free (device close) or _unreserve. */ +#define OMEGA_GPU_SESSION_SCRATCH_RESERVED (-2) +int omega_gpu_session_scratch_reserve(OmegaGpuScratch *s, size_t bytes); +void omega_gpu_session_scratch_unreserve(OmegaGpuScratch *s); +void omega_gpu_session_scratch_free(OmegaGpuScratch *s); + +/* ---- launch, cancel ---- */ + +/* Caller holds the lock, device open, not latched. Submits one launch and polls + * for both markers. 0 on success; -1 with the stage named on failure. A marker + * timeout latches the process (uncertain completion). elapsed_ns (submit to second + * marker) and the observed first marker word are added / stored when the pointers are given. + * OMEGA_GPU_SESSION_CANCELLED: a cancel request was seen. Before submit nothing was submitted and the + * session stays usable; after submit the completion is uncertain and the process latches. */ +#define OMEGA_GPU_SESSION_CANCELLED (-3) +int omega_gpu_session_launch(const OmegaGpuLaunch *L, uint64_t *elapsed_ns, uint32_t *marker_out); + +/* Asks the launch in progress (or the next one) to stop. Any thread, no lock. Polling cannot stop the device: a + * launch already submitted is not cancelled on the chip, its completion becomes uncertain (latch + park). The + * request is consumed by the launch that sees it. */ +void omega_gpu_session_cancel(void); + +/* Stage of the most recent failure ("" if none). Shared by every API. */ +const char *omega_gpu_session_last_error(void); +void omega_gpu_session_set_error(const char *stage); + +/* Caller holds the lock. Register a function the session calls (lock held, device + * still open) right before it closes, so an API can drop its resident kernels and + * scratch. Up to 8; the same function is registered once. (Taking the lock inside + * deadlocked the first call of every API on 2026-10-04: the APIs register from + * their open path, which already holds it.) */ +int omega_gpu_session_on_close(void (*hook)(void)); + +/* Close the device and free every session buffer. Takes the lock itself. + * Refused (no-op) after an uncertain completion. The next open reopens; every handle of the + * closed device is stale from then on. */ +void omega_gpu_session_close(void); + +/* Device opens so far in this process (diagnostics; a persistent session shows 1). */ +uint32_t omega_gpu_session_open_count(void); + +/* Driver allocations made through omega_gpu_session_alloc (every GPU API buffer, tensor, scratch growth and kernel + * code buffer) since the process started, for measurement: a serving daemon reads it after warm-up and per request + * to show that serving asks the driver for nothing. Covers this session layer only, not other engines. */ +typedef struct { + uint64_t allocs; /* successful driver allocations */ + uint64_t alloc_bytes; /* their page-rounded bytes */ + uint64_t alloc_failures; /* driver refusals (e.g. NV_ERR_NO_MEMORY) */ + uint64_t frees; /* driver frees */ + uint64_t stale_refusals; /* frees refused because the handle was stale (closed device or double free) */ +} OmegaGpuAllocStats; +void omega_gpu_session_alloc_stats(OmegaGpuAllocStats *out); + +/* Buffers parked after an uncertain completion: kept allocated, never returned to the platform. The session's own + * launch buffers (ring, constant bank, marker, QMD page) are parked at the latch; every later free parks too. + * The first OMEGA_GPU_SESSION_PARK_MAX are listed by handle; past that they are still kept, counted in untracked. */ +#define OMEGA_GPU_SESSION_PARK_MAX 512u +typedef struct { + uint32_t buffers; /* parked buffers (listed + untracked) */ + uint32_t untracked; /* parked past the list (still never released) */ + uint64_t bytes; /* their bytes */ +} OmegaGpuParkStats; +void omega_gpu_session_parked(OmegaGpuParkStats *out); +/* 1 if this handle is parked (listed). */ +int omega_gpu_session_is_parked(OmegaGpuBufferHandle h); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe.log new file mode 100644 index 000000000..f883ed82a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe.log @@ -0,0 +1,10 @@ +## negative_control (fd limit 4: the loader runs, /dev/nvidiactl cannot be opened) +./build/gpu_session_probe: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24 +negative_control exit=127 (must be non-zero with a named stage) +## baseline N=30 +baseline: failures 0 / 30 +## back_to_back N=30 +back_to_back: failures 0 / 30 +## overlap N=30 +overlap: failures 0 / 30 +PROBE_GPU_OPEN: negative_control_exit=127 first_call_failures=0/90 (details /home/drakestapleton/workspace/requal-0c63/omega-gates/cut4b/FB1-CUT4B-710d438c/probe/failures.txt) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/SHA256SUMS new file mode 100644 index 000000000..7259ad4b9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/SHA256SUMS @@ -0,0 +1,10 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +179ff826bc590b1fcec5580dae5994f2a22ea649eb6f9e4877c3f47e46a3fa25 device.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 failures.txt +2cf1630f99767bd7a9ab1e1f0940516dd3b534dd71906ef0a6c7d8e7ae0c63c8 gpu_session_probe.c +97b912eb4a61df5f806ca6239dde3e1a4f51ad20aced1642cbb83dc510a5fa6b ok_count.txt +f89c08a11b1c0a37a0f76f895899cfe261e76dee71dbcd911f2125647a3e34f2 omega_gpu_platform.c +949515810f07f0e7ecb6c7fe71dad17d51c33c3f8ebbebd0ecd7b67abdb64f93 omega_gpu_platform_linux.c +36ffb699ce73e8d7e8be4fc8c4327ad84be678c539712972590d0bd81932d960 omega_gpu_session.c +62917b652c99e4d01906f9071000c41049ab610052de2e6f3661f2aadd0097d5 probe_gpu_open.sh +c63c2b52e20cec5f83b7879d7a1e9884e3d04f726e2f8622070882fa712daee2 probe.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/device.txt new file mode 100644 index 000000000..8b5b007f3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/device.txt @@ -0,0 +1,5 @@ +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 +omega 710d438cac6c1159b4ca2b39af49812ce08f554b physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +2026-10-15T01:05:10Z +end 2026-10-15T01:05:43Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/failures.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/failures.txt new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/gpu_session_probe.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/gpu_session_probe.c new file mode 100644 index 000000000..dee34588b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/gpu_session_probe.c @@ -0,0 +1,56 @@ +/* gpu_session_probe: FB-1 cut 4b flake investigation (first-call device-open failure). + * + * One fresh process = one sample: open the shared device through the API's own + * path (omega_gpu_ex2_f32 on 128 values is the smallest launch there is), report + * the stage that failed (with the driver's own text) or the open time, exit 0/1. + * + * ./gpu_session_probe [--label L] [--calls N] [--hold-ms M] + * --calls N launches after the first (default 1); keeps the device busy for an overlap test + * --hold-ms M sleep M ms with the device open before exit (overlap window for a second probe) + * + * Output (one line, Astra's SNAP shape; every unknown says so): + * PROBE label=L pid=P rc=OK|CHIP_FAIL|... stage="..." first_call_ms=F open_ms=O calls_ok=K/N opens=1 + * Never run outside the heavy queue (tools/probe_gpu_open.sh). + */ +#include "omega_gpu_elementwise_api.h" +#include "omega_gpu_session.h" +#include +#include +#include +#include +#include + +static double now_ms(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * 1e3 + t.tv_nsec / 1e6; } + +int main(int argc, char **argv) { + const char *label = "probe"; int calls = 1, hold_ms = 0; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--label") == 0 && i + 1 < argc) label = argv[++i]; + else if (strcmp(argv[i], "--calls") == 0 && i + 1 < argc) calls = atoi(argv[++i]); + else if (strcmp(argv[i], "--hold-ms") == 0 && i + 1 < argc) hold_ms = atoi(argv[++i]); + else { fprintf(stderr, "unknown flag %s\n", argv[i]); return 2; } + } + float x[128], y[128]; + for (int i = 0; i < 128; i++) { x[i] = (float)i / 16.0f - 4.0f; y[i] = 0.0f; } + OmegaGpuEwInfo info; memset(&info, 0, sizeof info); + double t0 = now_ms(); + int rc = omega_gpu_ex2_f32(128, x, y, &info); + double first_ms = now_ms() - t0; + int ok = 0; + if (rc == OMEGA_GPU_EW_OK) { + /* negative control on the result itself: 2^0 must be 1 (x[64] = 0) */ + if (y[64] < 0.999f || y[64] > 1.001f) { rc = OMEGA_GPU_EW_UNWRITTEN; omega_gpu_session_set_error("probe: 2^0 != 1"); } + else ok = 1; + } + int more_ok = 0; + for (int i = 1; i < calls && ok; i++) if (omega_gpu_ex2_f32(128, x, y, &info) == OMEGA_GPU_EW_OK) more_ok++; + if (hold_ms > 0) usleep((useconds_t)hold_ms * 1000u); + const char *stage = omega_gpu_elementwise_last_error(); + printf("PROBE label=%s pid=%d rc=%s stage=\"%s\" first_call_ms=%.1f chip_us=%.1f calls_ok=%d/%d opens=%u%s\n", + label, (int)getpid(), omega_gpu_elementwise_rc_name(rc), stage[0] ? stage : "-", first_ms, + info.elapsed_ns / 1e3, ok + more_ok, calls, omega_gpu_session_open_count(), + rc == OMEGA_GPU_EW_OK && !stage[0] ? "" : (rc == OMEGA_GPU_EW_OK ? " note=stage_text_from_earlier_failure" : "")); + fflush(stdout); + omega_gpu_session_close(); /* the explicit close is part of what the next process sees */ + return ok ? 0 : 1; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/ok_count.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/ok_count.txt new file mode 100644 index 000000000..52bd8e43a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/ok_count.txt @@ -0,0 +1 @@ +120 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform.c new file mode 100644 index 000000000..79f43c94a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform.c @@ -0,0 +1,192 @@ +/* omega_gpu_platform.c -- contract checks and the handle table of + * src/omega_gpu_platform.h. Freestanding: no libc beyond memset. */ +#include "omega_gpu_platform.h" + +#include + +static const char *const REFUSAL_NAMES[OMEGA_GPU_PLAT_REFUSAL_COUNT] = { + "OK", + "REFUSED_ARGS", + "REFUSED_ABI", + "REFUSED_MISSING_SERVICE", + "REFUSED_NULL_SERVICE", + "REFUSED_BAD_HANDLE", + "REFUSED_STALE_HANDLE", + "REFUSED_BAD_LENGTH", + "REFUSED_BAD_RIGHTS", + "REFUSED_BAD_KIND", + "REFUSED_CACHE_POLICY", + "REFUSED_LIMIT", + "REFUSED_BUSY", + "REFUSED_DEVICE", +}; + +const char *omega_gpu_platform_refusal_name(int refusal) +{ + if (refusal < 0 || refusal >= (int)OMEGA_GPU_PLAT_REFUSAL_COUNT) return "UNKNOWN"; + return REFUSAL_NAMES[refusal]; +} + +int omega_gpu_platform_negotiate(const OmegaGpuPlatformCaps *provided, const OmegaGpuPlatformCaps *required) +{ + if (!provided || !required) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (provided->abi_major != required->abi_major) return OMEGA_GPU_PLAT_REFUSED_ABI; + if (provided->abi_minor < required->abi_minor) return OMEGA_GPU_PLAT_REFUSED_ABI; + if ((provided->services | required->services) & ~OMEGA_GPU_SVC_ALL) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (required->services & ~provided->services) return OMEGA_GPU_PLAT_REFUSED_MISSING_SERVICE; + if (required->max_devices > provided->max_devices) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_buffers > provided->max_buffers) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_queues > provided->max_queues) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_inflight > provided->max_inflight) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_buffer_bytes > provided->max_buffer_bytes) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (required->max_total_bytes > provided->max_total_bytes) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + return OMEGA_GPU_PLAT_OK; +} + +/* A claimed service must have its functions; an unclaimed one must have none + * (a function the table never negotiated would be a silent fallback path). */ +static int svc(uint32_t services, uint32_t bit, int present_all, int present_any) +{ + if (services & bit) return present_all ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_PLAT_REFUSED_NULL_SERVICE; + return present_any ? OMEGA_GPU_PLAT_REFUSED_ARGS : OMEGA_GPU_PLAT_OK; +} + +int omega_gpu_platform_check(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps) +{ + return omega_gpu_platform_check_for(p, caps, OMEGA_GPU_SVC_REQUIRED_V1); +} + +int omega_gpu_platform_check_for(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps, uint32_t required) +{ + int rc; + uint32_t s; + if (!p || !caps) return OMEGA_GPU_PLAT_REFUSED_ARGS; + s = caps->services; + if (s & ~OMEGA_GPU_SVC_ALL) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (required & ~OMEGA_GPU_SVC_ALL) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if ((s & required) != required) return OMEGA_GPU_PLAT_REFUSED_MISSING_SERVICE; + if ((rc = svc(s, OMEGA_GPU_SVC_TIME, p->time_now_ms != 0, p->time_now_ms != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_WAIT, p->wait_ms != 0, p->wait_ms != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_LOCK, p->lock != 0 && p->unlock != 0, p->lock != 0 || p->unlock != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_MMIO, p->mmio_read32 != 0 && p->mmio_write32 != 0, + p->mmio_read32 != 0 || p->mmio_write32 != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_DMA, p->dma_alloc != 0 && p->dma_free != 0, + p->dma_alloc != 0 || p->dma_free != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_SYNC, p->sync_cpu_to_gpu != 0 && p->sync_gpu_to_cpu != 0, + p->sync_cpu_to_gpu != 0 || p->sync_gpu_to_cpu != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_COMPLETION, p->poll_word != 0, p->poll_word != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_IRQ, p->irq_wait != 0, p->irq_wait != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_DEVICE, p->device_open != 0 && p->device_close != 0 && p->diag_text != 0, + p->device_open != 0 || p->device_close != 0 || p->diag_text != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_QUEUE, + p->queue_open != 0 && p->queue_close != 0 && p->queue_submit != 0 && p->queue_retire != 0, + p->queue_open != 0 || p->queue_close != 0 || p->queue_submit != 0 || p->queue_retire != 0)) != 0) + return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_CLOCK_NS, p->time_now_ns != 0, p->time_now_ns != 0)) != 0) return rc; + if ((rc = svc(s, OMEGA_GPU_SVC_HOST_MEM, p->host_alloc != 0 && p->host_free != 0, + p->host_alloc != 0 || p->host_free != 0)) != 0) + return rc; + return OMEGA_GPU_PLAT_OK; +} + +static int is_pow2(uint32_t v) +{ + return v != 0u && (v & (v - 1u)) == 0u; +} + +int omega_gpu_platform_check_buffer(const OmegaGpuBufferDesc *d, const OmegaGpuPlatformCaps *caps) +{ + uint32_t r; + if (!d || !caps) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (d->kind != OMEGA_GPU_HANDLE_BUF_DATA && d->kind != OMEGA_GPU_HANDLE_BUF_CODE && + d->kind != OMEGA_GPU_HANDLE_BUF_QUEUE) + return OMEGA_GPU_PLAT_REFUSED_BAD_KIND; + if (d->bytes == 0u) return OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; + if (d->bytes > caps->max_buffer_bytes) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (d->align != 0u && !is_pow2(d->align)) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (d->gpu_cache != OMEGA_GPU_CACHE_GPU_UNCACHED && d->gpu_cache != OMEGA_GPU_CACHE_GPU_CACHED) + return OMEGA_GPU_PLAT_REFUSED_ARGS; + r = d->rights; + if (r == 0u || (r & ~OMEGA_GPU_RIGHT_ALL)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if ((r & OMEGA_GPU_RIGHT_GPU_EXEC) && d->kind != OMEGA_GPU_HANDLE_BUF_CODE) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (d->kind == OMEGA_GPU_HANDLE_BUF_CODE) { + /* code: CPU writes it, GPU executes it, GPU never writes it, nobody polls it */ + if (r & (OMEGA_GPU_RIGHT_GPU_WRITE | OMEGA_GPU_RIGHT_HOST_POLLED)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (!(r & OMEGA_GPU_RIGHT_GPU_EXEC) || !(r & OMEGA_GPU_RIGHT_CPU_WRITE)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + } + if (d->kind == OMEGA_GPU_HANDLE_BUF_QUEUE) { + /* a submission ring: the CPU writes methods, the device reads them */ + if (!(r & OMEGA_GPU_RIGHT_CPU_WRITE) || !(r & OMEGA_GPU_RIGHT_GPU_READ)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + } + if (r & OMEGA_GPU_RIGHT_HOST_POLLED) { + if (!(r & OMEGA_GPU_RIGHT_CPU_READ) || !(r & OMEGA_GPU_RIGHT_GPU_WRITE)) return OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (d->gpu_cache != OMEGA_GPU_CACHE_GPU_UNCACHED) return OMEGA_GPU_PLAT_REFUSED_CACHE_POLICY; + } + return OMEGA_GPU_PLAT_OK; +} + +void omega_gpu_handles_init(OmegaGpuHandleTable *t) +{ + uint32_t i; + if (!t) return; + memset(t, 0, sizeof *t); + for (i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) t->generation[i] = 1u; +} + +static int kind_known(uint32_t kind) +{ + return kind >= OMEGA_GPU_HANDLE_DEVICE && kind < OMEGA_GPU_HANDLE_KIND_COUNT; +} + +int omega_gpu_handles_open(OmegaGpuHandleTable *t, uint32_t kind, uint64_t bytes, uint32_t limit_slots, + uint64_t limit_bytes, uint32_t *index, uint32_t *generation) +{ + uint32_t i; + uint32_t same_kind = 0; + if (!t || !index || !generation) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (!kind_known(kind)) return OMEGA_GPU_PLAT_REFUSED_BAD_KIND; + for (i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) + if (t->live[i] && t->kind[i] == kind) same_kind++; + if (same_kind >= limit_slots) return OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (bytes != 0u && (bytes > limit_bytes || t->total_bytes > limit_bytes - bytes)) /* byte accounting: buffers only */ + return OMEGA_GPU_PLAT_REFUSED_LIMIT; + for (i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) { + if (t->live[i]) continue; + if (t->generation[i] == 0u) continue; /* generation wrapped: the slot is retired, never reissued */ + t->live[i] = 1; + t->kind[i] = kind; + t->bytes[i] = bytes; + t->nlive++; + t->total_bytes += bytes; + *index = i; + *generation = t->generation[i]; + return OMEGA_GPU_PLAT_OK; + } + return OMEGA_GPU_PLAT_REFUSED_LIMIT; +} + +int omega_gpu_handles_check(const OmegaGpuHandleTable *t, uint32_t index, uint32_t generation, uint32_t kind) +{ + if (!t) return OMEGA_GPU_PLAT_REFUSED_ARGS; + if (index >= OMEGA_GPU_HANDLE_SLOTS || generation == 0u) return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + if (!t->live[index] || t->generation[index] != generation) return OMEGA_GPU_PLAT_REFUSED_STALE_HANDLE; + if (t->kind[index] != kind) return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + return OMEGA_GPU_PLAT_OK; +} + +int omega_gpu_handles_close(OmegaGpuHandleTable *t, uint32_t index, uint32_t generation, uint32_t kind) +{ + int rc = omega_gpu_handles_check(t, index, generation, kind); + if (rc != OMEGA_GPU_PLAT_OK) return rc; + t->live[index] = 0; + t->total_bytes -= t->bytes[index]; + t->bytes[index] = 0u; + t->nlive--; + t->generation[index]++; /* the closed handle is now stale; 0 after wrap retires the slot */ + return OMEGA_GPU_PLAT_OK; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform_linux.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform_linux.c new file mode 100644 index 000000000..dc02aab42 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_platform_linux.c @@ -0,0 +1,349 @@ +/* omega_gpu_platform_linux.c -- Linux REFERENCE implementation of OmegaGpuPlatform 1.1. REFERENCE ONLY: see the + * header. Every driver call here is the one src/omega_gpu_session.c made directly before P07 cut C, in the same + * order, so the launch path on GB10 under Linux is unchanged: + * device_open = nvrm_open + m16_native_create_channel (session open, before the four session buffers) + * dma_alloc = nvrm_alloc_gpu_uncached (every session / API buffer) + * dma_free = nvrm_free + * queue_open = ctx.pb_mem = the ring buffer (m16_native_enqueue_methods copies methods there) + * queue_submit = m16_native_submit_methods + * queue_retire = nvrm_retire(&rm, rm.put) (after both markers landed) + * poll_word = m16_native_wait_marker (>= serial compare, 50 us sleep-poll) + * sync_* = dsb sy (the barrier the session issued itself) + * device_close = m16_native_close (nvrm_close) + */ +#include "omega_gpu_platform_linux.h" + +#include "m16_native.h" +#include "nvrm.h" + +#include +#include +#include +#include +#include + +#define LINUX_REF_BUFFERS (OMEGA_GPU_HANDLE_SLOTS - 2u) /* one slot each for the device and the queue */ + +typedef struct { + pthread_mutex_t mu; /* table, device and diagnostics */ + pthread_mutex_t locks[OMEGA_GPU_PLATFORM_LINUX_LOCKS]; + int ready; + OmegaGpuHandleTable t; + NvrmMem mem[OMEGA_GPU_HANDLE_SLOTS]; + uint32_t rights[OMEGA_GPU_HANDLE_SLOTS]; + M16NativeContext m16; + OmegaGpuDeviceHandle dev; /* generation 0 = closed */ + OmegaGpuQueueHandle queue; + char diag[320]; +} LinuxRef; + +static LinuxRef g_ref = { + .mu = PTHREAD_MUTEX_INITIALIZER, + .locks = {PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER}, +}; + +static const OmegaGpuPlatformCaps g_caps = { + .abi_major = OMEGA_GPU_PLATFORM_ABI_MAJOR, + .abi_minor = OMEGA_GPU_PLATFORM_ABI_MINOR, + .services = OMEGA_GPU_SVC_REQUIRED_SESSION, /* no MMIO (RM owns the registers), no IRQ (polling only) */ + .max_devices = 1, + .max_buffers = LINUX_REF_BUFFERS, + .max_queues = 1, + .max_inflight = 1, + .max_buffer_bytes = 1ull << 37, /* 128 GiB: the whole unified pool */ + .max_total_bytes = 1ull << 37, +}; + +static void ref_lock(LinuxRef *r) { + pthread_mutex_lock(&r->mu); + if (!r->ready) { omega_gpu_handles_init(&r->t); r->ready = 1; } +} +static void ref_unlock(LinuxRef *r) { pthread_mutex_unlock(&r->mu); } + +/* Records why the call failed; REFUSED_DEVICE carries the driver text (Nvrm.err). Called with r->mu held. */ +static int refuse(LinuxRef *r, int rc, const char *stage) { + if (rc == OMEGA_GPU_PLAT_REFUSED_DEVICE) + snprintf(r->diag, sizeof r->diag, "%s: %s", stage, r->m16.rm.err[0] ? r->m16.rm.err : "(no driver text)"); + else + snprintf(r->diag, sizeof r->diag, "%s: %s", stage, omega_gpu_platform_refusal_name(rc)); + return rc; +} + +static int dev_ok(LinuxRef *r, OmegaGpuDeviceHandle d) { + return omega_gpu_handles_check(&r->t, d.index, d.generation, OMEGA_GPU_HANDLE_DEVICE); +} + +/* A live buffer handle of any buffer kind; *kind gets it. */ +static int buf_ok(LinuxRef *r, OmegaGpuBufferHandle b, uint32_t *kind) { + if (b.index >= OMEGA_GPU_HANDLE_SLOTS || b.generation == 0u) return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + if (!r->t.live[b.index] || r->t.generation[b.index] != b.generation) return OMEGA_GPU_PLAT_REFUSED_STALE_HANDLE; + const uint32_t k = r->t.kind[b.index]; + if (k != OMEGA_GPU_HANDLE_BUF_DATA && k != OMEGA_GPU_HANDLE_BUF_CODE && k != OMEGA_GPU_HANDLE_BUF_QUEUE) + return OMEGA_GPU_PLAT_REFUSED_BAD_HANDLE; + if (kind) *kind = k; + return OMEGA_GPU_PLAT_OK; +} + +static int range_ok(LinuxRef *r, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { + const uint64_t size = r->mem[b.index].size; + return (len == 0u || off > size || len > size - off) ? OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH : OMEGA_GPU_PLAT_OK; +} + +static uint64_t ref_now_ns(void *ctx) { + (void)ctx; + struct timespec t; + clock_gettime(CLOCK_MONOTONIC, &t); + return (uint64_t)t.tv_sec * 1000000000ull + (uint64_t)t.tv_nsec; +} +static uint64_t ref_now_ms(void *ctx) { return ref_now_ns(ctx) / 1000000ull; } + +static int ref_wait_ms(void *ctx, uint64_t ms) { + (void)ctx; + struct timespec t = {.tv_sec = (time_t)(ms / 1000u), .tv_nsec = (long)(ms % 1000u) * 1000000L}; + while (nanosleep(&t, &t) != 0) {} + return OMEGA_GPU_PLAT_OK; +} + +static int ref_lock_id(void *ctx, uint32_t id) { + LinuxRef *r = ctx; + if (id >= OMEGA_GPU_PLATFORM_LINUX_LOCKS) return OMEGA_GPU_PLAT_REFUSED_ARGS; + return pthread_mutex_lock(&r->locks[id]) == 0 ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_PLAT_REFUSED_BUSY; +} +static int ref_unlock_id(void *ctx, uint32_t id) { + LinuxRef *r = ctx; + if (id >= OMEGA_GPU_PLATFORM_LINUX_LOCKS) return OMEGA_GPU_PLAT_REFUSED_ARGS; + return pthread_mutex_unlock(&r->locks[id]) == 0 ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_PLAT_REFUSED_ARGS; +} + +static int ref_device_open(void *ctx, uint32_t ordinal, OmegaGpuDeviceHandle *out) { + LinuxRef *r = ctx; + int rc; + if (!out) return OMEGA_GPU_PLAT_REFUSED_ARGS; + memset(out, 0, sizeof *out); + ref_lock(r); + if (ordinal != 0u) { rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_ARGS, "device_open"); goto out; } + if (r->dev.generation != 0u) { rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_LIMIT, "device_open (already open)"); goto out; } + memset(&r->m16, 0, sizeof r->m16); + /* nvrm_open directly (m16_native_open is memset + nvrm_open + nvrm_close on failure) so the driver's own + * failure text survives into the stage name, as the session did before cut C. */ + if (nvrm_open(&r->m16.rm) != 0) { + rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "nvrm_open"); + (void)nvrm_close(&r->m16.rm); + goto out; + } + if (m16_native_create_channel(&r->m16) != 0) { + rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "m16_native_create_channel"); + (void)m16_native_close(&r->m16); + goto out; + } + rc = omega_gpu_handles_open(&r->t, OMEGA_GPU_HANDLE_DEVICE, 0, 1, 0, &out->index, &out->generation); + if (rc != OMEGA_GPU_PLAT_OK) { (void)m16_native_close(&r->m16); rc = refuse(r, rc, "device_open"); goto out; } + r->dev = *out; + r->diag[0] = '\0'; +out: + ref_unlock(r); + return rc; +} + +static int ref_device_close(void *ctx, OmegaGpuDeviceHandle dev) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = dev_ok(r, dev); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "device_close"); ref_unlock(r); return rc; } + /* Every handle of the device goes stale. The RM client close below releases the driver objects; buffers the + * caller did not free are not unmapped here, exactly as before cut C. */ + for (uint32_t i = 0; i < OMEGA_GPU_HANDLE_SLOTS; i++) { + if (!r->t.live[i] || i == dev.index) continue; + (void)omega_gpu_handles_close(&r->t, i, r->t.generation[i], r->t.kind[i]); + memset(&r->mem[i], 0, sizeof r->mem[i]); + r->rights[i] = 0; + } + (void)omega_gpu_handles_close(&r->t, dev.index, dev.generation, OMEGA_GPU_HANDLE_DEVICE); + memset(&r->dev, 0, sizeof r->dev); + memset(&r->queue, 0, sizeof r->queue); + (void)m16_native_close(&r->m16); + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static const char *ref_diag_text(void *ctx) { return ((LinuxRef *)ctx)->diag; } + +static int ref_dma_alloc(void *ctx, OmegaGpuDeviceHandle dev, const OmegaGpuBufferDesc *desc, OmegaGpuBufferHandle *out, + OmegaCpuView *cpu, OmegaGpuVa *gpu, OmegaGpuBusAddr *bus) { + LinuxRef *r = ctx; + if (!desc || !out || !cpu || !gpu) return OMEGA_GPU_PLAT_REFUSED_ARGS; + memset(out, 0, sizeof *out); memset(cpu, 0, sizeof *cpu); memset(gpu, 0, sizeof *gpu); + if (bus) memset(bus, 0, sizeof *bus); + ref_lock(r); + int rc = dev_ok(r, dev); + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_platform_check_buffer(desc, &g_caps); + /* GPU-uncached by default. GPU-cached only for DEVICE-PRIVATE data buffers (OWN-30B T3b, 2026-10-13): no CPU_READ, no + * HOST_POLLED, so the CPU never reads a line the GPU may still hold in L2 (nvos.h:1116 "For system memory this will not be + * coherent with direct CPU mappings"). omega_gpu_mem_cached.c (OWN-30B L2) writes such a buffer from the CPU exactly once, + * before any GPU read, then syncs; omega_gpu_devmem.h (T3b) fills them with GPU writes only. Either way no stale L2 line exists. */ + const int cached = desc->gpu_cache == OMEGA_GPU_CACHE_GPU_CACHED; + if (rc == OMEGA_GPU_PLAT_OK && cached && + (desc->kind != OMEGA_GPU_HANDLE_BUF_DATA || (desc->rights & (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_HOST_POLLED)))) + rc = OMEGA_GPU_PLAT_REFUSED_CACHE_POLICY; + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "dma_alloc"); ref_unlock(r); return rc; } + uint32_t idx = 0, gen = 0; + rc = omega_gpu_handles_open(&r->t, desc->kind, desc->bytes, LINUX_REF_BUFFERS, g_caps.max_total_bytes, &idx, &gen); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "dma_alloc"); ref_unlock(r); return rc; } + NvrmMem m; + if ((cached ? nvrm_alloc(&r->m16.rm, desc->bytes, &m) : nvrm_alloc_gpu_uncached(&r->m16.rm, desc->bytes, &m)) != 0) { + (void)omega_gpu_handles_close(&r->t, idx, gen, desc->kind); /* this slot never got memory: its generation moves on */ + rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "nvrm_alloc_gpu_uncached"); + ref_unlock(r); + return rc; + } + r->mem[idx] = m; + r->rights[idx] = desc->rights; + out->index = idx; out->generation = gen; + cpu->ptr = m.cpu; cpu->len = (size_t)m.size; + gpu->va = m.va; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static int ref_dma_free(void *ctx, OmegaGpuBufferHandle b) { + LinuxRef *r = ctx; + uint32_t kind = 0; + ref_lock(r); + int rc = buf_ok(r, b, &kind); + if (rc == OMEGA_GPU_PLAT_OK && r->queue.generation != 0u && r->m16.pb_mem.handle == r->mem[b.index].handle && + r->m16.pb_mem.cpu == r->mem[b.index].cpu) + rc = OMEGA_GPU_PLAT_REFUSED_BUSY; /* the open queue still uses it as its ring */ + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "dma_free"); ref_unlock(r); return rc; } + (void)nvrm_free(&r->m16.rm, &r->mem[b.index]); + (void)omega_gpu_handles_close(&r->t, b.index, b.generation, kind); + memset(&r->mem[b.index], 0, sizeof r->mem[b.index]); + r->rights[b.index] = 0; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static void barrier(void) { +#if defined(__aarch64__) + __asm__ volatile("dsb sy" ::: "memory"); +#else + __sync_synchronize(); +#endif +} + +static int ref_sync(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len, const char *stage) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = buf_ok(r, b, NULL); + if (rc == OMEGA_GPU_PLAT_OK) rc = range_ok(r, b, off, len); + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, stage); + ref_unlock(r); + if (rc == OMEGA_GPU_PLAT_OK) barrier(); /* uncached system memory: a full barrier is the whole sync */ + return rc; +} +static int ref_sync_to_gpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_cpu_to_gpu"); } +static int ref_sync_to_cpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_gpu_to_cpu"); } + +static int ref_poll_word(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint32_t expected, uint64_t timeout_ms, uint32_t *observed) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = buf_ok(r, b, NULL); + if (rc == OMEGA_GPU_PLAT_OK && !(r->rights[b.index] & OMEGA_GPU_RIGHT_HOST_POLLED)) rc = OMEGA_GPU_PLAT_REFUSED_BAD_RIGHTS; + if (rc == OMEGA_GPU_PLAT_OK && (off & 3u)) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; + if (rc == OMEGA_GPU_PLAT_OK) rc = range_ok(r, b, off, 4u); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "poll_word"); ref_unlock(r); return rc; } + volatile uint32_t *w = (volatile uint32_t *)((uint8_t *)r->mem[b.index].cpu + off); + ref_unlock(r); /* never hold the table lock while polling */ + rc = m16_native_wait_marker(w, expected, timeout_ms) == 0 ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_POLL_TIMED_OUT; + if (observed) *observed = *w; + return rc; +} + +static int queue_ok(LinuxRef *r, OmegaGpuQueueHandle q) { + return omega_gpu_handles_check(&r->t, q.index, q.generation, OMEGA_GPU_HANDLE_QUEUE); +} + +static int ref_queue_open(void *ctx, OmegaGpuDeviceHandle dev, OmegaGpuBufferHandle ring, OmegaGpuQueueHandle *out) { + LinuxRef *r = ctx; + uint32_t kind = 0; + if (!out) return OMEGA_GPU_PLAT_REFUSED_ARGS; + memset(out, 0, sizeof *out); + ref_lock(r); + int rc = dev_ok(r, dev); + if (rc == OMEGA_GPU_PLAT_OK) rc = buf_ok(r, ring, &kind); + if (rc == OMEGA_GPU_PLAT_OK && kind != OMEGA_GPU_HANDLE_BUF_QUEUE) rc = OMEGA_GPU_PLAT_REFUSED_BAD_KIND; + if (rc == OMEGA_GPU_PLAT_OK && r->queue.generation != 0u) rc = OMEGA_GPU_PLAT_REFUSED_LIMIT; + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_handles_open(&r->t, OMEGA_GPU_HANDLE_QUEUE, 0, 1, 0, &out->index, &out->generation); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "queue_open"); ref_unlock(r); return rc; } + r->m16.pb_mem = r->mem[ring.index]; /* m16_native_enqueue_methods copies the method stream here */ + r->queue = *out; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static int ref_queue_close(void *ctx, OmegaGpuQueueHandle q) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_handles_close(&r->t, q.index, q.generation, OMEGA_GPU_HANDLE_QUEUE); + if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "queue_close"); ref_unlock(r); return rc; } + memset(&r->queue, 0, sizeof r->queue); + memset(&r->m16.pb_mem, 0, sizeof r->m16.pb_mem); + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; +} + +static int ref_queue_submit(void *ctx, OmegaGpuQueueHandle q, const uint32_t *words, uint32_t nwords) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK && (!words || nwords == 0u)) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; + if (rc == OMEGA_GPU_PLAT_OK && (uint64_t)nwords * 4u > r->m16.pb_mem.size) rc = OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; + if (rc == OMEGA_GPU_PLAT_OK && m16_native_submit_methods(&r->m16, words, nwords) != 0) rc = OMEGA_GPU_PLAT_REFUSED_DEVICE; + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, "submit_methods"); + ref_unlock(r); + return rc; +} + +static int ref_queue_retire(void *ctx, OmegaGpuQueueHandle q) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK) nvrm_retire(&r->m16.rm, r->m16.rm.put); /* both releases landed: the entry is consumed */ + else rc = refuse(r, rc, "queue_retire"); + ref_unlock(r); + return rc; +} + +static void *ref_host_alloc(void *ctx, size_t bytes) { (void)ctx; return bytes ? malloc(bytes) : NULL; } +static void ref_host_free(void *ctx, void *p) { (void)ctx; free(p); } + +static const OmegaGpuPlatform g_platform = { + .ctx = &g_ref, + .time_now_ms = ref_now_ms, + .wait_ms = ref_wait_ms, + .lock = ref_lock_id, + .unlock = ref_unlock_id, + .mmio_read32 = NULL, /* not provided: the RM driver owns the registers */ + .mmio_write32 = NULL, + .dma_alloc = ref_dma_alloc, + .dma_free = ref_dma_free, + .sync_cpu_to_gpu = ref_sync_to_gpu, + .sync_gpu_to_cpu = ref_sync_to_cpu, + .poll_word = ref_poll_word, + .irq_wait = NULL, /* polling is not interrupt support */ + .device_open = ref_device_open, + .device_close = ref_device_close, + .diag_text = ref_diag_text, + .queue_open = ref_queue_open, + .queue_close = ref_queue_close, + .queue_submit = ref_queue_submit, + .queue_retire = ref_queue_retire, + .time_now_ns = ref_now_ns, + .host_alloc = ref_host_alloc, + .host_free = ref_host_free, +}; + +const OmegaGpuPlatform *omega_gpu_platform_linux(OmegaGpuPlatformCaps *caps) { + if (caps) *caps = g_caps; + return &g_platform; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_session.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_session.c new file mode 100644 index 000000000..1e7c63722 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/omega_gpu_session.c @@ -0,0 +1,542 @@ +/* + * omega_gpu_session.c: FB-1 cut 4b, made portable in native v1 P07 cut C (session part). See the header. + * + * The launch words are the ones omega_gpu_matmul_api.c (cut 1b, chip PASS FB1-CUT1B-4345406) and + * omega_gpu_elementwise_api.c (cut 4, FB1-CUT4-0d0241a) both emitted; cut C did not change one of them. What + * changed is where the machine comes from: every device, buffer, queue, clock, lock and host-memory call goes + * through the installed OmegaGpuPlatform (ABI 1.1), so this file builds freestanding (OMEGA_GPU_NO_POSIX) with no + * Linux header and no libc call. The hosted build installs the Linux reference (src/omega_gpu_platform_linux.c) + * on first use; it makes the same driver calls in the same order as this file did before. + * + * No read-modify-write atomics: the freestanding target must not pull libgcc outline atomics, so shared words are + * plain atomic loads and stores, and counters are only written with the session lock held. + */ +#include "omega_gpu_session.h" +#include "omega_gpu_code_alloc.h" +#include "omega_gpu_fmt.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" /* launch constants only (macros); the vector executor itself stays Linux-private */ +#include + +#ifndef OMEGA_GPU_NO_POSIX +#include "omega_gpu_platform_linux.h" +#include +#endif + +#define PAGE 0x1000ull + +/* Push-buffer method header (the nvrm_mthd encoding, physics nvrm.h): increasing, count words, subchannel. */ +static inline uint32_t bw_mthd(uint32_t subc, uint32_t mthd, uint32_t count) { + return (2u << 28) | (count << 16) | (subc << 13) | (mthd >> 2); +} + +/* Same words as src/omega_blackwell_submit.c SETUP_WORDS (compute class setup). */ +static const uint32_t SETUP_WORDS[18] = { + 0x20012061, 0x0000cec0, 0x20012092, 0x00000001, 0x200120a8, 0x0000000f, 0x2001255d, 0x00000003, + 0x2001255e, 0x20000000, 0x2001255f, 0x000fffff, 0x20012557, 0x00000003, 0x20012558, 0x22000000, + 0x20012559, 0x00000000, +}; + +static const OmegaGpuPlatform *g_p; /* installed platform (atomic load / store) */ +static OmegaGpuPlatformCaps g_caps; +static OmegaGpuSession g_s; +static bool g_open; +static uint32_t g_blocked; /* latched (atomic) */ +static uint32_t g_locked; /* session lock held (atomic) */ +static uint32_t g_cancel; /* cancel requested (atomic) */ +static uint32_t g_spin_us; /* omega_gpu_session_set_spin_us; 0 = poll_word only */ +static char g_err[320] = ""; +static void (*g_hooks[8])(void); +static unsigned g_nhooks; +static OmegaGpuAllocStats g_stats; /* written with the lock held, read with atomic loads */ +static OmegaGpuBufferHandle g_parked[OMEGA_GPU_SESSION_PARK_MAX]; +static OmegaGpuParkStats g_park; + +#define LOAD(x) __atomic_load_n(&(x), __ATOMIC_ACQUIRE) +#define STORE(x, v) __atomic_store_n(&(x), (v), __ATOMIC_RELEASE) +#define BUMP(x, by) STORE((x), LOAD(x) + (by)) /* lock held: one writer */ + +/* ---- platform ---- */ + +static int install(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps) { + if (!p || !caps) return OMEGA_GPU_PLAT_REFUSED_ARGS; + OmegaGpuPlatformCaps req = { + .abi_major = OMEGA_GPU_PLATFORM_ABI_MAJOR, .abi_minor = OMEGA_GPU_PLATFORM_ABI_MINOR, + .services = OMEGA_GPU_SVC_REQUIRED_SESSION, + .max_devices = 1, .max_buffers = 8, .max_queues = 1, .max_inflight = 1, + .max_buffer_bytes = 0x10000, .max_total_bytes = 0x10000 + 3 * 0x10000, + }; + int rc = omega_gpu_platform_negotiate(caps, &req); + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_platform_check_for(p, caps, OMEGA_GPU_SVC_REQUIRED_SESSION); + if (rc != OMEGA_GPU_PLAT_OK) return rc; + g_caps = *caps; + STORE(g_p, p); + return OMEGA_GPU_PLAT_OK; +} + +int omega_gpu_session_set_platform(const OmegaGpuPlatform *p, const OmegaGpuPlatformCaps *caps) { + if (g_open || LOAD(g_locked) || LOAD(g_blocked)) return OMEGA_GPU_PLAT_REFUSED_BUSY; + if (!p) { STORE(g_p, (const OmegaGpuPlatform *)0); return OMEGA_GPU_PLAT_OK; } + return install(p, caps); +} + +#ifndef OMEGA_GPU_NO_POSIX +static pthread_once_t g_default_once = PTHREAD_ONCE_INIT; +static void install_default(void) { + if (LOAD(g_p)) return; /* one was installed explicitly */ + OmegaGpuPlatformCaps c; + const OmegaGpuPlatform *p = omega_gpu_platform_linux(&c); + (void)install(p, &c); +} +#endif + +static const OmegaGpuPlatform *platform(void) { + const OmegaGpuPlatform *p = LOAD(g_p); +#ifndef OMEGA_GPU_NO_POSIX + if (!p) { pthread_once(&g_default_once, install_default); p = LOAD(g_p); } +#endif + return p; +} + +const OmegaGpuPlatform *omega_gpu_session_platform(void) { return platform(); } +OmegaGpuCompletionMode omega_gpu_session_completion_mode(void) { return OMEGA_GPU_COMPLETION_POLLING; } + +uint64_t omega_gpu_session_now_ns(void) { + const OmegaGpuPlatform *p = platform(); + return p ? p->time_now_ns(p->ctx) : 0u; +} + +void *omega_gpu_host_alloc(size_t bytes) { + const OmegaGpuPlatform *p = platform(); + return p ? p->host_alloc(p->ctx, bytes ? bytes : 1) : (void *)0; /* 0 bytes: a unique 1-byte block, as malloc(0) gives */ +} +void *omega_gpu_host_calloc(size_t n, size_t size) { + size_t bytes; + if (__builtin_mul_overflow(n, size, &bytes)) return (void *)0; + void *q = omega_gpu_host_alloc(bytes); + if (q) memset(q, 0, bytes); + return q; +} +void omega_gpu_host_free(void *q) { + const OmegaGpuPlatform *p = platform(); + if (p && q) p->host_free(p->ctx, q); +} + +/* ---- errors ---- */ + +const char *omega_gpu_session_last_error(void) { return g_err; } +void omega_gpu_session_set_error(const char *stage) { omega_gpu_fmt(g_err, sizeof g_err, "%s", stage ? stage : ""); } + +/* A platform refusal: the driver text when the device refused (the Linux reference writes ": ", + * the stage names the session ever reported), else the stage and the refusal name. */ +static void fail_plat(const char *stage, int rc) { + const OmegaGpuPlatform *p = LOAD(g_p); + const char *diag = p ? p->diag_text(p->ctx) : ""; + if (rc == OMEGA_GPU_PLAT_REFUSED_DEVICE && diag && diag[0]) + omega_gpu_fmt(g_err, sizeof g_err, "%s", diag); + else + omega_gpu_fmt(g_err, sizeof g_err, "%s: %s", stage, omega_gpu_platform_refusal_name(rc)); +} + +/* ---- lock, state ---- */ + +void omega_gpu_session_lock(void) { + const OmegaGpuPlatform *p = platform(); + if (!p) return; + (void)p->lock(p->ctx, OMEGA_GPU_SESSION_LOCK_ID); + STORE(g_locked, 1u); +} +void omega_gpu_session_unlock(void) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (!p) return; + STORE(g_locked, 0u); + (void)p->unlock(p->ctx, OMEGA_GPU_SESSION_LOCK_ID); +} +bool omega_gpu_session_is_open(void) { return g_open; } +int omega_gpu_session_is_blocked(void) { return LOAD(g_blocked) ? 1 : 0; } +int omega_gpu_session_set_spin_us(uint32_t us) { + if (us > OMEGA_GPU_SESSION_MAX_SPIN_US) return -1; + STORE(g_spin_us, us); + return 0; +} +uint32_t omega_gpu_session_spin_us(void) { return LOAD(g_spin_us); } +void omega_gpu_session_cancel(void) { STORE(g_cancel, 1u); } + +/* Consumes a pending cancel request. */ +static bool take_cancel(void) { + if (!LOAD(g_cancel)) return false; + STORE(g_cancel, 0u); + return true; +} + +void omega_gpu_session_alloc_stats(OmegaGpuAllocStats *out) { + if (!out) return; + out->allocs = LOAD(g_stats.allocs); + out->alloc_bytes = LOAD(g_stats.alloc_bytes); + out->alloc_failures = LOAD(g_stats.alloc_failures); + out->frees = LOAD(g_stats.frees); + out->stale_refusals = LOAD(g_stats.stale_refusals); +} + +/* ---- parking ---- */ + +static void park(const OmegaGpuMem *m) { + uint32_t n = LOAD(g_park.buffers) - LOAD(g_park.untracked); + for (uint32_t i = 0; i < n; i++) + if (g_parked[i].index == m->handle.index && g_parked[i].generation == m->handle.generation) return; + if (n < OMEGA_GPU_SESSION_PARK_MAX) g_parked[n] = m->handle; + else BUMP(g_park.untracked, 1u); + BUMP(g_park.bytes, m->size); + BUMP(g_park.buffers, 1u); +} + +void omega_gpu_session_parked(OmegaGpuParkStats *out) { + if (!out) return; + out->buffers = LOAD(g_park.buffers); + out->untracked = LOAD(g_park.untracked); + out->bytes = LOAD(g_park.bytes); +} + +int omega_gpu_session_is_parked(OmegaGpuBufferHandle h) { + uint32_t n = LOAD(g_park.buffers) - LOAD(g_park.untracked); + if (h.generation == 0u) return 0; + for (uint32_t i = 0; i < n && i < OMEGA_GPU_SESSION_PARK_MAX; i++) + if (g_parked[i].index == h.index && g_parked[i].generation == h.generation) return 1; + return 0; +} + +/* Uncertain completion: the device may still touch any session buffer. Keep everything, refuse everything. */ +static void latch(const char *why) { + STORE(g_blocked, 1u); + if (g_s.pb.cpu) park(&g_s.pb); + if (g_s.cbank.cpu) park(&g_s.cbank); + if (g_s.marker.cpu) park(&g_s.marker); + if (g_s.qmd.cpu) park(&g_s.qmd); + omega_gpu_session_set_error(why); +} + +/* ---- buffers ---- */ + +static size_t page_up(size_t b) { b = (b + PAGE - 1) & ~(PAGE - 1); return b < PAGE ? PAGE : b; } + +static int mem_alloc(uint32_t kind, uint32_t rights, size_t bytes, OmegaGpuMem *out) { + const OmegaGpuPlatform *p = LOAD(g_p); + memset(out, 0, sizeof *out); + if (!g_open || LOAD(g_blocked) || !p) { omega_gpu_session_set_error("alloc without open device"); return -1; } + const size_t want = page_up(bytes); + OmegaGpuBufferDesc d = {.kind = kind, .rights = rights, .gpu_cache = OMEGA_GPU_CACHE_GPU_UNCACHED, .align = (uint32_t)PAGE, .bytes = want}; + OmegaCpuView cpu; OmegaGpuVa va; OmegaGpuBusAddr bus; /* the bus address never leaves this function */ + int rc = p->dma_alloc(p->ctx, g_s.dev, &d, &out->handle, &cpu, &va, &bus); + if (rc != OMEGA_GPU_PLAT_OK || !cpu.ptr || cpu.len < want) { + if (rc == OMEGA_GPU_PLAT_OK) { (void)p->dma_free(p->ctx, out->handle); rc = OMEGA_GPU_PLAT_REFUSED_LIMIT; } + BUMP(g_stats.alloc_failures, 1u); + fail_plat("dma_alloc", rc); + memset(out, 0, sizeof *out); + return -1; + } + out->kind = kind; out->cpu = cpu.ptr; out->va = va.va; out->size = cpu.len; + BUMP(g_stats.allocs, 1u); + BUMP(g_stats.alloc_bytes, (uint64_t)want); + return 0; +} + +#define RIGHTS_DATA (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ | OMEGA_GPU_RIGHT_GPU_WRITE) +#define RIGHTS_CODE (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ | OMEGA_GPU_RIGHT_GPU_EXEC) +#define RIGHTS_RING (OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ) +#define RIGHTS_MARKER (OMEGA_GPU_RIGHT_CPU_READ | OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_WRITE | OMEGA_GPU_RIGHT_HOST_POLLED) +#define RIGHTS_CBANK (OMEGA_GPU_RIGHT_CPU_WRITE | OMEGA_GPU_RIGHT_GPU_READ) + +int omega_gpu_session_alloc(size_t bytes, OmegaGpuMem *out) { + return mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_DATA, bytes, out); +} + +int omega_gpu_session_alloc_code(size_t code_size, OmegaGpuMem *out) { + size_t bytes = omega_gpu_code_alloc_bytes(code_size); + if (bytes == 0) { omega_gpu_session_set_error("code size overflow"); memset(out, 0, sizeof *out); return -1; } + if (mem_alloc(OMEGA_GPU_HANDLE_BUF_CODE, RIGHTS_CODE, bytes, out) != 0) return -1; + memset((uint8_t *)out->cpu + code_size, 0, bytes - code_size); + return 0; +} + +void omega_gpu_session_free(OmegaGpuMem *m) { + if (!m) return; + if (m->cpu) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (LOAD(g_blocked)) { + park(m); /* the device may still use it */ + } else if (!g_open || !p) { + BUMP(g_stats.stale_refusals, 1u); /* its device is closed: the handle is stale, nothing to release */ + } else { + int rc = p->dma_free(p->ctx, m->handle); + if (rc == OMEGA_GPU_PLAT_OK) BUMP(g_stats.frees, 1u); + else { BUMP(g_stats.stale_refusals, 1u); fail_plat("dma_free", rc); } + } + } + memset(m, 0, sizeof *m); +} + +static int sync_mem(const OmegaGpuMem *m, int to_gpu) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (!m || !m->cpu) return 0; + if (!p || !g_open) { omega_gpu_session_set_error("sync without open device"); return -1; } + int rc = to_gpu ? p->sync_cpu_to_gpu(p->ctx, m->handle, 0, m->size) : p->sync_gpu_to_cpu(p->ctx, m->handle, 0, m->size); + if (rc != OMEGA_GPU_PLAT_OK) { fail_plat(to_gpu ? "sync_cpu_to_gpu" : "sync_gpu_to_cpu", rc); return -1; } + return 0; +} +int omega_gpu_session_sync_to_gpu(const OmegaGpuMem *m) { return sync_mem(m, 1); } +int omega_gpu_session_sync_to_cpu(const OmegaGpuMem *m) { return sync_mem(m, 0); } + +int omega_gpu_session_scratch(OmegaGpuScratch *s, size_t bytes) { + if (s->reserved && (bytes > s->cap || !s->mem.cpu)) { + omega_gpu_fmt(g_err, sizeof g_err, "serving reservation exceeded: need %zu bytes, reserved %zu", bytes, s->cap); + return OMEGA_GPU_SESSION_SCRATCH_RESERVED; + } + if (bytes > s->high_water) s->high_water = bytes; + if (s->cap >= bytes && s->mem.cpu) return 0; + omega_gpu_session_free(&s->mem); + s->cap = 0; + if (omega_gpu_session_alloc(s->high_water, &s->mem) != 0) return -1; + s->cap = (size_t)s->mem.size; + return 0; +} + +void omega_gpu_session_scratch_free(OmegaGpuScratch *s) { + omega_gpu_session_free(&s->mem); + s->cap = 0; + s->reserved = false; +} + +int omega_gpu_session_scratch_reserve(OmegaGpuScratch *s, size_t bytes) { + s->reserved = false; /* grow normally first */ + if (omega_gpu_session_scratch(s, bytes) != 0) return -1; + s->reserved = true; + return 0; +} + +void omega_gpu_session_scratch_unreserve(OmegaGpuScratch *s) { s->reserved = false; } + +static void free_session_buffers(void) { + omega_gpu_session_free(&g_s.qmd); omega_gpu_session_free(&g_s.marker); + omega_gpu_session_free(&g_s.cbank); omega_gpu_session_free(&g_s.pb); +} + +/* ---- open, close ---- */ + +OmegaGpuSession *omega_gpu_session_open(void) { + if (LOAD(g_blocked)) { omega_gpu_session_set_error("process latched"); return NULL; } + if (g_open) return &g_s; + const OmegaGpuPlatform *p = platform(); + if (!p) { omega_gpu_session_set_error("no GPU platform installed (omega_gpu_session_set_platform)"); return NULL; } + uint64_t t0 = p->time_now_ns(p->ctx); + const uint32_t opens = g_s.opens; + memset(&g_s, 0, sizeof g_s); + g_s.opens = opens; + int rc = p->device_open(p->ctx, 0, &g_s.dev); + if (rc != OMEGA_GPU_PLAT_OK) { fail_plat("device_open", rc); memset(&g_s.dev, 0, sizeof g_s.dev); return NULL; } + g_open = true; /* so alloc / free work during the rest of the open */ + /* same four buffers, same sizes, same order as before cut C; every one GPU-uncached */ + if (mem_alloc(OMEGA_GPU_HANDLE_BUF_QUEUE, RIGHTS_RING, 0x10000, &g_s.pb) || + mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_CBANK, PAGE, &g_s.cbank) || + mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_MARKER, PAGE, &g_s.marker) || + mem_alloc(OMEGA_GPU_HANDLE_BUF_DATA, RIGHTS_DATA, 0x10000, &g_s.qmd) || + (rc = p->queue_open(p->ctx, g_s.dev, g_s.pb.handle, &g_s.queue)) != OMEGA_GPU_PLAT_OK) { + char keep[sizeof g_err]; + if (rc != OMEGA_GPU_PLAT_OK) fail_plat("queue_open", rc); + memcpy(keep, g_err, sizeof keep); + free_session_buffers(); + g_open = false; + (void)p->device_close(p->ctx, g_s.dev); + memset(&g_s.dev, 0, sizeof g_s.dev); + omega_gpu_fmt(g_err, sizeof g_err, "session scratch alloc (%s)", keep); + return NULL; + } + g_s.opens++; + g_s.last_open_ns = p->time_now_ns(p->ctx) - t0; + return &g_s; +} + +int omega_gpu_session_on_close(void (*hook)(void)) { /* caller holds the lock (the APIs register from their open path) */ + if (!hook) return -1; + int rc = 0; + bool seen = false; + for (unsigned i = 0; i < g_nhooks; i++) if (g_hooks[i] == hook) seen = true; + if (!seen) { if (g_nhooks < sizeof g_hooks / sizeof g_hooks[0]) g_hooks[g_nhooks++] = hook; else rc = -1; } + return rc; +} + +void omega_gpu_session_close(void) { + omega_gpu_session_lock(); + const OmegaGpuPlatform *p = LOAD(g_p); + if (g_open && !LOAD(g_blocked) && p) { + for (unsigned i = 0; i < g_nhooks; i++) g_hooks[i](); + if (!LOAD(g_blocked)) { /* a hook's launch may have latched: then nothing below runs */ + (void)p->queue_close(p->ctx, g_s.queue); + memset(&g_s.queue, 0, sizeof g_s.queue); + free_session_buffers(); + (void)p->device_close(p->ctx, g_s.dev); /* every handle of this device is stale from here */ + memset(&g_s.dev, 0, sizeof g_s.dev); + g_open = false; + } + } + omega_gpu_session_unlock(); +} + +/* ---- launch ---- */ + +static uint32_t round_up(uint32_t v, uint32_t q) { return (v + q - 1) / q * q; } + +static inline void cpu_relax(void) { +#if defined(__aarch64__) + __asm__ volatile("yield" ::: "memory"); +#else + __asm__ volatile("" ::: "memory"); +#endif +} + +#define WAIT_CANCELLED 1 +#define WAIT_TIMED_OUT 2 +#define WAIT_REFUSED 3 + +/* Marker wait by POLLING. With spin_us, the host first re-reads the uncached marker word back to back (with the + * ARM yield hint) so a launch that finishes inside the window is seen within about one read. Then the platform's + * poll_word in slices of OMEGA_GPU_SESSION_POLL_SLICE_MS (Linux reference: the m16 50 us sleep-poll) until + * timeout_ms, checking for a cancel request between slices. */ +static int session_wait(const OmegaGpuPlatform *p, uint64_t off, uint32_t want, uint64_t timeout_ms, uint32_t spin_us) { + volatile uint32_t *m = (volatile uint32_t *)((uint8_t *)g_s.marker.cpu + off); + if (spin_us) { + const uint64_t end = p->time_now_ns(p->ctx) + (uint64_t)spin_us * 1000u; + do { + if ((int32_t)(*m - want) >= 0) return 0; + if (LOAD(g_cancel)) return WAIT_CANCELLED; + cpu_relax(); + } while (p->time_now_ns(p->ctx) < end); + } + uint64_t waited = 0; + for (;;) { + if (LOAD(g_cancel)) return WAIT_CANCELLED; + const uint64_t left = timeout_ms - waited; + const uint64_t slice = left < OMEGA_GPU_SESSION_POLL_SLICE_MS ? left : OMEGA_GPU_SESSION_POLL_SLICE_MS; + uint32_t seen = 0; + int rc = p->poll_word(p->ctx, g_s.marker.handle, off, want, slice, &seen); + if (rc == OMEGA_GPU_PLAT_OK) return 0; + if (rc != OMEGA_GPU_POLL_TIMED_OUT) return WAIT_REFUSED; + waited += slice; + if (waited >= timeout_ms) return WAIT_TIMED_OUT; + } +} + +int omega_gpu_session_launch(const OmegaGpuLaunch *L, uint64_t *elapsed_ns, uint32_t *marker_out) { + const OmegaGpuPlatform *p = LOAD(g_p); + if (!g_open || LOAD(g_blocked) || !p) { + omega_gpu_session_set_error(LOAD(g_blocked) ? "process latched" : "launch without open device"); return -1; + } + if (!L || !L->args || L->n_args == 0 || L->n_args > OMEGA_GPU_SESSION_MAX_ARGS || L->threads_x == 0 || L->grid_x == 0 || L->grid_y == 0 || + L->spin_us > OMEGA_GPU_SESSION_MAX_SPIN_US) { + omega_gpu_session_set_error("launch arguments"); return -1; + } + if (take_cancel()) { omega_gpu_session_set_error("launch cancelled before submit"); return OMEGA_GPU_SESSION_CANCELLED; } + const uint32_t threads_y = L->threads_y ? L->threads_y : 1; + uint32_t cbank_data[OMEGA_BW_CBANK_DRIVER_WORDS]; + omega_blackwell_build_cbank_driver_2d(cbank_data, g_s.cbank.va, L->threads_x, threads_y, L->grid_x, L->grid_y); + memcpy(g_s.cbank.cpu, cbank_data, sizeof cbank_data); + memcpy((uint8_t *)g_s.cbank.cpu + 0x380, L->args, (size_t)L->n_args * 4u); + + const uint64_t qmd0_va = g_s.qmd.va, qmd1_va = g_s.qmd.va + 0x1000, sem_va = g_s.qmd.va + 0x2000, scratch_va = g_s.qmd.va + 0x4000; + uint32_t gpr = L->gpr_count > 64u ? round_up(L->gpr_count, 8u) : 64u; + OmegaBlackwellQmdConfig cfg = { + .code_va = L->code_va, .cbank_va = g_s.cbank.va, .scratch_va = scratch_va, .sem_va = sem_va, + .qmd0_va = qmd0_va, .qmd1_va = qmd1_va, .num_elements = L->num_elements, + .threads_per_block = L->threads_x, .grid_width = L->grid_x * L->grid_y, .threads_x = L->threads_x, .threads_y = threads_y, + .grid_x = L->grid_x, .grid_y = L->grid_y, .gpr_count = gpr, + .shared_bytes = L->shared_bytes, + }; + uint32_t qmd0_words[OMEGA_BW_QMD_WORDS], qmd1_words[OMEGA_BW_QMD_WORDS]; + omega_blackwell_build_qmd0(qmd0_words, qmd0_va, qmd1_va); + if (omega_blackwell_build_qmd1(qmd1_words, &cfg) != 0) { omega_gpu_session_set_error("qmd build (shared_bytes)"); return -1; } + if (omega_blackwell_verify_qmd_invariants(qmd1_words) != 0) { omega_gpu_session_set_error("qmd invariants"); return -1; } + memcpy(g_s.qmd.cpu, qmd0_words, sizeof qmd0_words); + memcpy((uint8_t *)g_s.qmd.cpu + 0x1000, qmd1_words, sizeof qmd1_words); + + volatile uint32_t *hsem = (volatile uint32_t *)((uint8_t *)g_s.qmd.cpu + 0x2000); + volatile uint32_t *hmarker = (volatile uint32_t *)g_s.marker.cpu; + volatile uint32_t *hmarker2 = (volatile uint32_t *)((uint8_t *)g_s.marker.cpu + 0x10); + *hsem = 0; *hmarker = 0; *hmarker2 = 0; + /* explicit visibility of everything the CPU just wrote (Linux reference: dsb sy, the barrier issued here before) */ + int rc = p->sync_cpu_to_gpu(p->ctx, g_s.cbank.handle, 0, PAGE); + if (rc == OMEGA_GPU_PLAT_OK) rc = p->sync_cpu_to_gpu(p->ctx, g_s.qmd.handle, 0, 0x3000); + if (rc == OMEGA_GPU_PLAT_OK) rc = p->sync_cpu_to_gpu(p->ctx, g_s.marker.handle, 0, 0x20); + if (rc != OMEGA_GPU_PLAT_OK) { fail_plat("sync_cpu_to_gpu", rc); return -1; } + + uint32_t pb[1024]; + size_t n = 0; + memcpy(&pb[n], SETUP_WORDS, sizeof SETUP_WORDS); n += sizeof SETUP_WORDS / 4; + /* Invalidate the SM instruction, constant and data caches before this launch + * (cut 1b finding: a reused code address served stale instructions; clcec0.h + * NVCEC0_INVALIDATE_SHADER_CACHES 0x021c, bits INSTRUCTION 0, DATA 4, CONSTANT 12). */ + pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = OMEGA_BW_INVALIDATE_SHADER_CACHES_ALL; + /* constant bank 0: driver words, then our arguments at 0x380 (inline upload) */ + pb[n++] = bw_mthd(1, 0x0188, 2); pb[n++] = (uint32_t)(g_s.cbank.va >> 32); pb[n++] = (uint32_t)g_s.cbank.va; + pb[n++] = bw_mthd(1, 0x0180, 2); pb[n++] = 0x00000380; pb[n++] = 0x00000001; + pb[n++] = bw_mthd(1, 0x01b0, 1); pb[n++] = 0x00000041; + pb[n++] = (224u << 16) | (1u << 13) | (0x01b4 >> 2) | (6u << 28); + memcpy(&pb[n], cbank_data, 224 * 4); n += 224; + pb[n++] = bw_mthd(1, 0x0188, 2); pb[n++] = (uint32_t)((g_s.cbank.va + 0x380) >> 32); pb[n++] = (uint32_t)(g_s.cbank.va + 0x380); + pb[n++] = bw_mthd(1, 0x0180, 2); pb[n++] = L->n_args * 4u; pb[n++] = 0x00000001; + pb[n++] = bw_mthd(1, 0x01b0, 1); pb[n++] = 0x00000041; + pb[n++] = (L->n_args << 16) | (1u << 13) | (0x01b4 >> 2) | (6u << 28); + memcpy(&pb[n], L->args, (size_t)L->n_args * 4u); n += L->n_args; + /* QMD0 (null grid, dependence 2) */ + pb[n++] = (98u << 16) | (1u << 13) | (0x0318 >> 2) | (2u << 28); + pb[n++] = (1u << 30) | (uint32_t)((qmd0_va >> 40) & 0x1ff); pb[n++] = (uint32_t)(qmd0_va >> 8); + memcpy(&pb[n], qmd0_words, 96 * 4); n += 96; + /* intermediate semaphore init */ + pb[n++] = bw_mthd(1, 0x0188, 2); pb[n++] = (uint32_t)(sem_va >> 32); pb[n++] = (uint32_t)sem_va; + pb[n++] = bw_mthd(1, 0x0180, 2); pb[n++] = 0x00000004; pb[n++] = 0x00000001; + pb[n++] = bw_mthd(1, 0x01b0, 1); pb[n++] = 0x00000041; + pb[n++] = (1u << 16) | (1u << 13) | (0x01b4 >> 2) | (6u << 28); + pb[n++] = OMEGA_BW_SEMAPHORE_INTERMEDIATE_INIT; + /* QMD1 (the kernel) */ + pb[n++] = (98u << 16) | (1u << 13) | (0x0318 >> 2) | (2u << 28); + pb[n++] = (1u << 30) | (uint32_t)((qmd1_va >> 40) & 0x1ff); pb[n++] = (uint32_t)(qmd1_va >> 8); + memcpy(&pb[n], qmd1_words, 96 * 4); n += 96; + /* first marker */ + pb[n++] = bw_mthd(0, 0x005c, 5); + pb[n++] = (uint32_t)g_s.marker.va; pb[n++] = (uint32_t)(g_s.marker.va >> 32); + pb[n++] = OMEGA_BW_MARKER_COMPLETION_PAYLOAD; pb[n++] = 0; pb[n++] = 0x1 | (1u << 20); + /* C3 tail: L2_FLUSH_DIRTY, then the second release on the uncached marker page */ + pb[n++] = bw_mthd(0, 0x0028, 4); pb[n++] = 0; pb[n++] = 0; pb[n++] = 0; pb[n++] = (0x10u << 27); + pb[n++] = bw_mthd(0, 0x005c, 5); + pb[n++] = (uint32_t)(g_s.marker.va + 0x10); pb[n++] = (uint32_t)((g_s.marker.va + 0x10) >> 32); + pb[n++] = OMEGA_BW_MARKER2_PAYLOAD; pb[n++] = 0; pb[n++] = 0x1 | (1u << 20); + + const uint32_t spin_us = L->spin_us ? L->spin_us : omega_gpu_session_spin_us(); + uint64_t t0 = p->time_now_ns(p->ctx); + rc = p->queue_submit(p->ctx, g_s.queue, pb, (uint32_t)n); + if (rc != OMEGA_GPU_PLAT_OK) { + fail_plat("submit_methods", rc); /* contract: a refused submit rang no doorbell, nothing is in flight */ + return -1; + } + int w = session_wait(p, 0, OMEGA_BW_MARKER_COMPLETION_PAYLOAD, L->timeout_ms, spin_us); + if (w == 0) w = session_wait(p, 0x10, OMEGA_BW_MARKER2_PAYLOAD, L->timeout_ms, spin_us); + if (w != 0) { + /* uncertain completion: keep everything (parked), refuse every later call */ + if (w == WAIT_CANCELLED) { + (void)take_cancel(); + latch("launch cancelled after submit (completion uncertain, latched)"); + return OMEGA_GPU_SESSION_CANCELLED; + } + latch(w == WAIT_TIMED_OUT ? "marker wait timed out (latched)" : "marker poll refused (latched)"); + return -1; + } + (void)p->sync_gpu_to_cpu(p->ctx, g_s.marker.handle, 0, 0x20); + (void)p->sync_gpu_to_cpu(p->ctx, g_s.qmd.handle, 0x2000, 4); + uint64_t t1 = p->time_now_ns(p->ctx); + (void)p->queue_retire(p->ctx, g_s.queue); /* both releases landed: the GPFIFO entry is consumed */ + if (*hsem != OMEGA_BW_SEMAPHORE_INTERMEDIATE_DONE) { omega_gpu_session_set_error("intermediate semaphore not DONE"); return -1; } + if (elapsed_ns) *elapsed_ns += t1 - t0; + if (marker_out) *marker_out = *hmarker; + (void)hmarker2; + return 0; +} + +uint32_t omega_gpu_session_open_count(void) { return g_s.opens; } diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/probe.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/probe.log new file mode 100644 index 000000000..d151cd8bb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/probe.log @@ -0,0 +1,129 @@ +## negative_control (fd limit 4: the loader runs, /dev/nvidiactl cannot be opened) +./build/gpu_session_probe: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24 +negative_control exit=127 (must be non-zero with a named stage) +## baseline N=30 +PROBE label=baseline#1 pid=2564917 rc=OK stage="-" first_call_ms=135.7 chip_us=214.5 calls_ok=1/1 opens=1 +PROBE label=baseline#2 pid=2564965 rc=OK stage="-" first_call_ms=126.0 chip_us=218.2 calls_ok=1/1 opens=1 +PROBE label=baseline#3 pid=2565226 rc=OK stage="-" first_call_ms=134.5 chip_us=213.2 calls_ok=1/1 opens=1 +PROBE label=baseline#4 pid=2565544 rc=OK stage="-" first_call_ms=135.8 chip_us=217.7 calls_ok=1/1 opens=1 +PROBE label=baseline#5 pid=2565553 rc=OK stage="-" first_call_ms=137.5 chip_us=217.8 calls_ok=1/1 opens=1 +PROBE label=baseline#6 pid=2565560 rc=OK stage="-" first_call_ms=133.0 chip_us=217.2 calls_ok=1/1 opens=1 +PROBE label=baseline#7 pid=2565616 rc=OK stage="-" first_call_ms=138.1 chip_us=213.0 calls_ok=1/1 opens=1 +PROBE label=baseline#8 pid=2565631 rc=OK stage="-" first_call_ms=134.3 chip_us=213.8 calls_ok=1/1 opens=1 +PROBE label=baseline#9 pid=2565643 rc=OK stage="-" first_call_ms=135.7 chip_us=182.8 calls_ok=1/1 opens=1 +PROBE label=baseline#10 pid=2565673 rc=OK stage="-" first_call_ms=133.8 chip_us=213.6 calls_ok=1/1 opens=1 +PROBE label=baseline#11 pid=2565687 rc=OK stage="-" first_call_ms=122.4 chip_us=214.4 calls_ok=1/1 opens=1 +PROBE label=baseline#12 pid=2565694 rc=OK stage="-" first_call_ms=138.5 chip_us=216.1 calls_ok=1/1 opens=1 +PROBE label=baseline#13 pid=2565710 rc=OK stage="-" first_call_ms=134.6 chip_us=215.1 calls_ok=1/1 opens=1 +PROBE label=baseline#14 pid=2565902 rc=OK stage="-" first_call_ms=156.5 chip_us=216.2 calls_ok=1/1 opens=1 +PROBE label=baseline#15 pid=2566275 rc=OK stage="-" first_call_ms=135.6 chip_us=216.9 calls_ok=1/1 opens=1 +PROBE label=baseline#16 pid=2566509 rc=OK stage="-" first_call_ms=136.7 chip_us=215.8 calls_ok=1/1 opens=1 +PROBE label=baseline#17 pid=2566538 rc=OK stage="-" first_call_ms=135.5 chip_us=218.6 calls_ok=1/1 opens=1 +PROBE label=baseline#18 pid=2566545 rc=OK stage="-" first_call_ms=134.9 chip_us=212.4 calls_ok=1/1 opens=1 +PROBE label=baseline#19 pid=2566552 rc=OK stage="-" first_call_ms=135.4 chip_us=214.5 calls_ok=1/1 opens=1 +PROBE label=baseline#20 pid=2566559 rc=OK stage="-" first_call_ms=133.6 chip_us=214.1 calls_ok=1/1 opens=1 +PROBE label=baseline#21 pid=2566568 rc=OK stage="-" first_call_ms=137.8 chip_us=217.0 calls_ok=1/1 opens=1 +PROBE label=baseline#22 pid=2566575 rc=OK stage="-" first_call_ms=133.9 chip_us=221.5 calls_ok=1/1 opens=1 +PROBE label=baseline#23 pid=2566582 rc=OK stage="-" first_call_ms=135.4 chip_us=213.7 calls_ok=1/1 opens=1 +PROBE label=baseline#24 pid=2566589 rc=OK stage="-" first_call_ms=135.2 chip_us=212.8 calls_ok=1/1 opens=1 +PROBE label=baseline#25 pid=2566596 rc=OK stage="-" first_call_ms=133.1 chip_us=215.2 calls_ok=1/1 opens=1 +PROBE label=baseline#26 pid=2566671 rc=OK stage="-" first_call_ms=135.6 chip_us=217.5 calls_ok=1/1 opens=1 +PROBE label=baseline#27 pid=2566986 rc=OK stage="-" first_call_ms=122.7 chip_us=215.3 calls_ok=1/1 opens=1 +PROBE label=baseline#28 pid=2567366 rc=OK stage="-" first_call_ms=136.9 chip_us=210.9 calls_ok=1/1 opens=1 +PROBE label=baseline#29 pid=2567558 rc=OK stage="-" first_call_ms=134.5 chip_us=216.2 calls_ok=1/1 opens=1 +PROBE label=baseline#30 pid=2567565 rc=OK stage="-" first_call_ms=134.7 chip_us=213.4 calls_ok=1/1 opens=1 +baseline: failures 0 / 30 +## back_to_back N=30 +PROBE label=back_to_back#1 pid=2567577 rc=OK stage="-" first_call_ms=135.6 chip_us=213.9 calls_ok=1/1 opens=1 +PROBE label=back_to_back#2 pid=2567585 rc=OK stage="-" first_call_ms=129.0 chip_us=214.9 calls_ok=1/1 opens=1 +PROBE label=back_to_back#3 pid=2567593 rc=OK stage="-" first_call_ms=117.0 chip_us=212.1 calls_ok=1/1 opens=1 +PROBE label=back_to_back#4 pid=2567599 rc=OK stage="-" first_call_ms=100.5 chip_us=219.1 calls_ok=1/1 opens=1 +PROBE label=back_to_back#5 pid=2567605 rc=OK stage="-" first_call_ms=101.9 chip_us=113.8 calls_ok=1/1 opens=1 +PROBE label=back_to_back#6 pid=2567633 rc=OK stage="-" first_call_ms=127.0 chip_us=216.4 calls_ok=1/1 opens=1 +PROBE label=back_to_back#7 pid=2567639 rc=OK stage="-" first_call_ms=122.7 chip_us=216.7 calls_ok=1/1 opens=1 +PROBE label=back_to_back#8 pid=2567645 rc=OK stage="-" first_call_ms=106.2 chip_us=111.4 calls_ok=1/1 opens=1 +PROBE label=back_to_back#9 pid=2567651 rc=OK stage="-" first_call_ms=102.3 chip_us=117.4 calls_ok=1/1 opens=1 +PROBE label=back_to_back#10 pid=2567657 rc=OK stage="-" first_call_ms=100.2 chip_us=217.5 calls_ok=1/1 opens=1 +PROBE label=back_to_back#11 pid=2567663 rc=OK stage="-" first_call_ms=101.2 chip_us=114.9 calls_ok=1/1 opens=1 +PROBE label=back_to_back#12 pid=2567676 rc=OK stage="-" first_call_ms=101.9 chip_us=186.8 calls_ok=1/1 opens=1 +PROBE label=back_to_back#13 pid=2567682 rc=OK stage="-" first_call_ms=105.1 chip_us=212.7 calls_ok=1/1 opens=1 +PROBE label=back_to_back#14 pid=2567688 rc=OK stage="-" first_call_ms=101.3 chip_us=112.4 calls_ok=1/1 opens=1 +PROBE label=back_to_back#15 pid=2567694 rc=OK stage="-" first_call_ms=94.1 chip_us=113.5 calls_ok=1/1 opens=1 +PROBE label=back_to_back#16 pid=2567700 rc=OK stage="-" first_call_ms=97.7 chip_us=113.4 calls_ok=1/1 opens=1 +PROBE label=back_to_back#17 pid=2567707 rc=OK stage="-" first_call_ms=95.0 chip_us=114.0 calls_ok=1/1 opens=1 +PROBE label=back_to_back#18 pid=2567844 rc=OK stage="-" first_call_ms=100.2 chip_us=116.0 calls_ok=1/1 opens=1 +PROBE label=back_to_back#19 pid=2568000 rc=OK stage="-" first_call_ms=103.5 chip_us=111.7 calls_ok=1/1 opens=1 +PROBE label=back_to_back#20 pid=2568114 rc=OK stage="-" first_call_ms=104.6 chip_us=113.6 calls_ok=1/1 opens=1 +PROBE label=back_to_back#21 pid=2568306 rc=OK stage="-" first_call_ms=117.9 chip_us=215.4 calls_ok=1/1 opens=1 +PROBE label=back_to_back#22 pid=2568363 rc=OK stage="-" first_call_ms=131.3 chip_us=177.4 calls_ok=1/1 opens=1 +PROBE label=back_to_back#23 pid=2568369 rc=OK stage="-" first_call_ms=110.6 chip_us=113.0 calls_ok=1/1 opens=1 +PROBE label=back_to_back#24 pid=2568375 rc=OK stage="-" first_call_ms=101.6 chip_us=115.3 calls_ok=1/1 opens=1 +PROBE label=back_to_back#25 pid=2568421 rc=OK stage="-" first_call_ms=101.1 chip_us=113.6 calls_ok=1/1 opens=1 +PROBE label=back_to_back#26 pid=2568427 rc=OK stage="-" first_call_ms=101.5 chip_us=214.2 calls_ok=1/1 opens=1 +PROBE label=back_to_back#27 pid=2568433 rc=OK stage="-" first_call_ms=103.3 chip_us=215.3 calls_ok=1/1 opens=1 +PROBE label=back_to_back#28 pid=2568439 rc=OK stage="-" first_call_ms=102.4 chip_us=217.3 calls_ok=1/1 opens=1 +PROBE label=back_to_back#29 pid=2568445 rc=OK stage="-" first_call_ms=104.6 chip_us=217.3 calls_ok=1/1 opens=1 +PROBE label=back_to_back#30 pid=2568451 rc=OK stage="-" first_call_ms=104.4 chip_us=113.7 calls_ok=1/1 opens=1 +back_to_back: failures 0 / 30 +## overlap N=30 +PROBE label=overlap#1 pid=2568467 rc=OK stage="-" first_call_ms=85.4 chip_us=214.3 calls_ok=1/1 opens=1 +PROBE label=holder pid=2568462 rc=OK stage="-" first_call_ms=137.1 chip_us=214.9 calls_ok=1/1 opens=1 +PROBE label=overlap#2 pid=2568474 rc=OK stage="-" first_call_ms=84.3 chip_us=210.7 calls_ok=1/1 opens=1 +PROBE label=holder pid=2568471 rc=OK stage="-" first_call_ms=136.2 chip_us=210.4 calls_ok=1/1 opens=1 +PROBE label=overlap#3 pid=2568484 rc=OK stage="-" first_call_ms=86.3 chip_us=211.9 calls_ok=1/1 opens=1 +PROBE label=holder pid=2568481 rc=OK stage="-" first_call_ms=137.8 chip_us=115.7 calls_ok=1/1 opens=1 +PROBE label=overlap#4 pid=2568493 rc=OK stage="-" first_call_ms=86.1 chip_us=208.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2568489 rc=OK stage="-" first_call_ms=138.0 chip_us=212.4 calls_ok=1/1 opens=1 +PROBE label=overlap#5 pid=2568500 rc=OK stage="-" first_call_ms=110.2 chip_us=211.5 calls_ok=1/1 opens=1 +PROBE label=holder pid=2568497 rc=OK stage="-" first_call_ms=162.2 chip_us=111.3 calls_ok=1/1 opens=1 +PROBE label=overlap#6 pid=2568673 rc=OK stage="-" first_call_ms=112.7 chip_us=211.6 calls_ok=1/1 opens=1 +PROBE label=holder pid=2568630 rc=OK stage="-" first_call_ms=163.5 chip_us=213.5 calls_ok=1/1 opens=1 +PROBE label=overlap#7 pid=2569280 rc=OK stage="-" first_call_ms=125.8 chip_us=212.3 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569244 rc=OK stage="-" first_call_ms=177.5 chip_us=209.6 calls_ok=1/1 opens=1 +PROBE label=overlap#8 pid=2569292 rc=OK stage="-" first_call_ms=127.3 chip_us=225.7 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569289 rc=OK stage="-" first_call_ms=178.2 chip_us=213.5 calls_ok=1/1 opens=1 +PROBE label=overlap#9 pid=2569330 rc=OK stage="-" first_call_ms=113.2 chip_us=210.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569327 rc=OK stage="-" first_call_ms=165.0 chip_us=211.8 calls_ok=1/1 opens=1 +PROBE label=overlap#10 pid=2569492 rc=OK stage="-" first_call_ms=86.8 chip_us=121.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569435 rc=OK stage="-" first_call_ms=137.9 chip_us=209.6 calls_ok=1/1 opens=1 +PROBE label=overlap#11 pid=2569683 rc=OK stage="-" first_call_ms=131.8 chip_us=228.1 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569680 rc=OK stage="-" first_call_ms=182.8 chip_us=211.3 calls_ok=1/1 opens=1 +PROBE label=overlap#12 pid=2569713 rc=OK stage="-" first_call_ms=121.0 chip_us=211.9 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569710 rc=OK stage="-" first_call_ms=172.5 chip_us=214.1 calls_ok=1/1 opens=1 +PROBE label=overlap#13 pid=2569721 rc=OK stage="-" first_call_ms=114.6 chip_us=145.5 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569718 rc=OK stage="-" first_call_ms=166.5 chip_us=216.3 calls_ok=1/1 opens=1 +PROBE label=overlap#14 pid=2569729 rc=OK stage="-" first_call_ms=87.3 chip_us=109.3 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569726 rc=OK stage="-" first_call_ms=141.0 chip_us=220.8 calls_ok=1/1 opens=1 +PROBE label=overlap#15 pid=2569977 rc=OK stage="-" first_call_ms=86.7 chip_us=212.1 calls_ok=1/1 opens=1 +PROBE label=holder pid=2569909 rc=OK stage="-" first_call_ms=137.5 chip_us=210.4 calls_ok=1/1 opens=1 +PROBE label=overlap#16 pid=2570315 rc=OK stage="-" first_call_ms=85.3 chip_us=214.1 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570287 rc=OK stage="-" first_call_ms=136.4 chip_us=211.3 calls_ok=1/1 opens=1 +PROBE label=overlap#17 pid=2570325 rc=OK stage="-" first_call_ms=81.1 chip_us=208.9 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570322 rc=OK stage="-" first_call_ms=132.3 chip_us=212.3 calls_ok=1/1 opens=1 +PROBE label=overlap#18 pid=2570360 rc=OK stage="-" first_call_ms=83.6 chip_us=212.1 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570353 rc=OK stage="-" first_call_ms=135.9 chip_us=209.3 calls_ok=1/1 opens=1 +PROBE label=overlap#19 pid=2570394 rc=OK stage="-" first_call_ms=117.0 chip_us=212.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570391 rc=OK stage="-" first_call_ms=160.5 chip_us=182.6 calls_ok=1/1 opens=1 +PROBE label=overlap#20 pid=2570402 rc=OK stage="-" first_call_ms=129.4 chip_us=210.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570399 rc=OK stage="-" first_call_ms=182.1 chip_us=214.2 calls_ok=1/1 opens=1 +PROBE label=overlap#21 pid=2570410 rc=OK stage="-" first_call_ms=84.4 chip_us=212.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570407 rc=OK stage="-" first_call_ms=120.7 chip_us=215.7 calls_ok=1/1 opens=1 +PROBE label=overlap#22 pid=2570428 rc=OK stage="-" first_call_ms=85.6 chip_us=216.9 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570424 rc=OK stage="-" first_call_ms=136.8 chip_us=212.4 calls_ok=1/1 opens=1 +PROBE label=overlap#23 pid=2570435 rc=OK stage="-" first_call_ms=86.4 chip_us=212.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570432 rc=OK stage="-" first_call_ms=137.2 chip_us=113.9 calls_ok=1/1 opens=1 +PROBE label=overlap#24 pid=2570561 rc=OK stage="-" first_call_ms=87.0 chip_us=127.4 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570519 rc=OK stage="-" first_call_ms=138.3 chip_us=111.1 calls_ok=1/1 opens=1 +PROBE label=overlap#25 pid=2570899 rc=OK stage="-" first_call_ms=111.8 chip_us=210.1 calls_ok=1/1 opens=1 +PROBE label=holder pid=2570873 rc=OK stage="-" first_call_ms=162.8 chip_us=211.7 calls_ok=1/1 opens=1 +PROBE label=overlap#26 pid=2571093 rc=OK stage="-" first_call_ms=83.9 chip_us=309.3 calls_ok=1/1 opens=1 +PROBE label=holder pid=2571090 rc=OK stage="-" first_call_ms=135.4 chip_us=108.9 calls_ok=1/1 opens=1 +PROBE label=overlap#27 pid=2571103 rc=OK stage="-" first_call_ms=78.2 chip_us=211.2 calls_ok=1/1 opens=1 +PROBE label=holder pid=2571100 rc=OK stage="-" first_call_ms=154.2 chip_us=214.3 calls_ok=1/1 opens=1 +PROBE label=overlap#28 pid=2571112 rc=OK stage="-" first_call_ms=87.6 chip_us=226.2 calls_ok=1/1 opens=1 +PROBE label=holder pid=2571109 rc=OK stage="-" first_call_ms=138.0 chip_us=211.4 calls_ok=1/1 opens=1 +PROBE label=overlap#29 pid=2571150 rc=OK stage="-" first_call_ms=86.8 chip_us=213.8 calls_ok=1/1 opens=1 +PROBE label=holder pid=2571147 rc=OK stage="-" first_call_ms=139.7 chip_us=226.7 calls_ok=1/1 opens=1 +PROBE label=overlap#30 pid=2571162 rc=OK stage="-" first_call_ms=85.7 chip_us=215.9 calls_ok=1/1 opens=1 +PROBE label=holder pid=2571155 rc=OK stage="-" first_call_ms=136.7 chip_us=208.7 calls_ok=1/1 opens=1 +overlap: failures 0 / 30 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/probe_gpu_open.sh b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/probe_gpu_open.sh new file mode 100755 index 000000000..3581b84a3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/cut4b/FB1-CUT4B-710d438c/probe/probe_gpu_open.sh @@ -0,0 +1,49 @@ +#!/bin/bash +# tools/probe_gpu_open.sh OUT_DIR [N] +# FB-1 cut 4b flake investigation: does the FIRST chip call of a fresh process fail +# in the device-open path (seen twice: cut 1b run 2, cut 3c attempt 1)? Each sample +# is a fresh process (build/gpu_session_probe). Variants, N samples each, in order: +# baseline one probe at a time, idle gap 200 ms between processes +# back_to_back the next probe starts the instant the previous one exits (the sighting: +# "another chip job had just used the chip") +# overlap a holder keeps a device open (hold 300 ms) while the probe opens its own +# after_latch NOT RUN (would need a deliberate stall; never leave the chip uncertain) +# Negative control first: the probe must report a failure when it cannot open the +# control nodes (file-descriptor limit 4 -> open() fails; limit 3 stops the dynamic loader itself, exit 127, which proves nothing), with the stage named. +# Run through the heavy queue only (lanes.sh queue --heavy); never kill it. +set -u +OUT=${1:?out dir}; N=${2:-30} +cd "$(dirname "$0")/.." || exit 2 +P=${PHYSICS_DIR:-../physics} +mkdir -p "$OUT" +make PHYSICS_DIR="$P" build/gpu_session_probe > "$OUT/build.log" 2>&1 || { echo "PROBE BUILD FAIL"; exit 1; } +PR=./build/gpu_session_probe +LOG="$OUT/probe.log"; : > "$LOG" +{ uname -a; nvidia-smi --query-gpu=name,driver_version --format=csv,noheader 2>/dev/null; echo "omega $(git rev-parse HEAD) physics $(git -C "$P" rev-parse HEAD)"; date -u +%FT%TZ; } > "$OUT/device.txt" +echo "## negative_control (fd limit 4: the loader runs, /dev/nvidiactl cannot be opened)" | tee -a "$LOG" +( ulimit -n 4; $PR --label negative_control ) 2>&1 | tee -a "$LOG" +neg_rc=${PIPESTATUS[0]} +echo "negative_control exit=$neg_rc (must be non-zero with a named stage)" | tee -a "$LOG" +fails=0; total=0 +run_variant() { # name + local name=$1 f=0 + echo "## $name N=$N" | tee -a "$LOG" + for i in $(seq 1 "$N"); do + if [ "$name" = overlap ]; then $PR --label holder --hold-ms 300 >> "$LOG" 2>&1 & sleep 0.05; fi + $PR --label "$name#$i" 2>&1 | tee -a "$LOG" | grep -q 'rc=OK' || f=$((f+1)) + [ "$name" = overlap ] && wait + [ "$name" = baseline ] && sleep 0.2 + done + echo "$name: failures $f / $N" | tee -a "$LOG" + fails=$((fails+f)); total=$((total+N)) +} +run_variant baseline +run_variant back_to_back +run_variant overlap +grep -c 'rc=OK' "$LOG" > "$OUT/ok_count.txt" +grep 'rc=' "$LOG" | grep -v 'rc=OK' | grep -v negative_control > "$OUT/failures.txt" +echo "end $(date -u +%FT%TZ)" >> "$OUT/device.txt" +cp tests/gpu_session_probe.c src/omega_gpu_session.c src/omega_gpu_platform.c src/omega_gpu_platform_linux.c tools/probe_gpu_open.sh "$OUT/" +(cd "$OUT" && sha256sum -- * > SHA256SUMS) +echo "PROBE_GPU_OPEN: negative_control_exit=$neg_rc first_call_failures=$fails/$total (details $OUT/failures.txt)" +[ "$neg_rc" != 0 ] || { echo "PROBE_GPU_OPEN: INSTRUMENT FAIL (negative control passed)"; exit 3; } diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn.out new file mode 100644 index 000000000..7c58501d8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn.out @@ -0,0 +1,85 @@ +rope rows vs libm: 1013 positions x 64 dims, 1 one-ulp differences, 0 worse +hostmath vs libm: sincos max abs 2.22e-16, pow/exp/log max rel 1.31e-14 +codegen depth 1: 988 instructions, 112 registers (declared 120, 256 threads -> 30720 of 65536) +codegen depth 2: 996 instructions, 116 registers (declared 120, 256 threads -> 30720 of 65536) +codegen depth 3: 1004 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536) +codegen depth 4: 1012 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536) +gpu_decode_attn_test: 41 checks, 0 failed: PASS +sim context 1 depth 1: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 7 depth 2: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 7, sharp q (x4) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 256 (full chunk, 1 split) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 257 (2 splits, last holds one position) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 301 (2 splits) depth 3: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 701 (3 splits) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 701 (per_split 512: 2 chunks per CTA) depth 2: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim mutant 1 at context 301: caught (bad=4601 worst=24.241 rows: k[0] chip bf76 ref becc) +sim mutant 2 at context 301: caught (bad=3756 worst=37.139 rows: ok (0 one-ulp k flips)) +sim mutant 3 at context 301: caught (bad=2114 worst=16.257 rows: v[0] chip 0000 ref bf4c) +sim mutant 4 at context 301: caught (bad=2233 worst=21.965 rows: ok (0 one-ulp k flips)) +sim: 6925320 warp issues in total +gpu_decode_attn_test: 12 checks, 0 failed: PASS +PASS timing 1x2048x8192 upload_ms=240.9 ok_calls=100 median_ms=0.367 p90_ms=0.412 min_ms=0.296 max_ms=0.910 chip_ns_mean=353151 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.1 ok_calls=100 median_ms=0.595 p90_ms=0.618 min_ms=0.411 max_ms=1.077 chip_ns_mean=521542 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) +cache alloc (1 layer, 32768 positions): rc=OK 340.1 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=2048 fill=0.0ms chip_med=39.8us (0.1 GB/s) call_med=41.9us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=14336 fill=0.0ms chip_med=41.2us (0.3 GB/s) call_med=43.3us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=524288 fill=0.0ms chip_med=73.3us (7.2 GB/s) call_med=75.5us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=2x4 per_split=256 depth=4 kv_bytes=616448 fill=0.0ms chip_med=73.7us (8.4 GB/s) call_med=75.8us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: caught (rc=OK bad=2010 worst=18.655) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.1ms chip_med=79.1us (26.5 GB/s) call_med=81.2us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=16x4 per_split=256 depth=4 kv_bytes=8388608 fill=0.2ms chip_med=183.1us (45.8 GB/s) call_med=185.8us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=256 depth=4 kv_bytes=16777216 fill=0.5ms chip_med=356.5us (47.1 GB/s) call_med=358.4us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=128x4 per_split=256 depth=4 kv_bytes=67108864 fill=2.7ms chip_med=1207.3us (55.6 GB/s) call_med=1209.1us reps=20 +gpu_decode_attn_test: 29 checks, 0 failed: PASS +cache alloc (1 layer, 32768 positions): rc=OK 340.2 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=2048 fill=0.0ms chip_med=38.8us (0.1 GB/s) call_med=40.8us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=14336 fill=0.0ms chip_med=40.4us (0.4 GB/s) call_med=42.5us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=524288 fill=0.0ms chip_med=69.2us (7.6 GB/s) call_med=71.1us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=2x4 per_split=256 depth=4 kv_bytes=616448 fill=0.0ms chip_med=74.0us (8.3 GB/s) call_med=76.0us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: caught (rc=OK bad=2010 worst=18.655) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.0ms chip_med=85.4us (24.5 GB/s) call_med=87.5us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=16x4 per_split=256 depth=4 kv_bytes=8388608 fill=0.2ms chip_med=160.7us (52.2 GB/s) call_med=162.9us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=256 depth=4 kv_bytes=16777216 fill=0.5ms chip_med=351.6us (47.7 GB/s) call_med=353.8us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=128x4 per_split=256 depth=4 kv_bytes=67108864 fill=2.7ms chip_med=1175.8us (57.1 GB/s) call_med=1177.7us reps=20 +gpu_decode_attn_test: 29 checks, 0 failed: PASS +no-evict exit 0 (informational) +cache alloc (1 layer, 32768 positions): rc=OK 339.2 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=256 depth=1 kv_bytes=2048 fill=0.0ms chip_med=38.5us (0.1 GB/s) call_med=40.7us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=1 kv_bytes=14336 fill=0.0ms chip_med=40.7us (0.4 GB/s) call_med=42.7us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=1 kv_bytes=524288 fill=0.0ms chip_med=69.3us (7.6 GB/s) call_med=71.5us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=2x4 per_split=256 depth=1 kv_bytes=616448 fill=0.0ms chip_med=74.2us (8.3 GB/s) call_med=76.4us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: caught (rc=OK bad=2010 worst=18.655) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=1 kv_bytes=2097152 fill=0.0ms chip_med=78.0us (26.9 GB/s) call_med=80.2us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=16x4 per_split=256 depth=1 kv_bytes=8388608 fill=0.2ms chip_med=178.5us (47.0 GB/s) call_med=180.6us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=256 depth=1 kv_bytes=16777216 fill=0.5ms chip_med=350.0us (47.9 GB/s) call_med=352.1us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=128x4 per_split=256 depth=1 kv_bytes=67108864 fill=2.8ms chip_med=1191.5us (56.3 GB/s) call_med=1193.8us reps=20 +gpu_decode_attn_test: 29 checks, 0 failed: PASS +depth 1 exit 0 (informational) +cache alloc (1 layer, 32768 positions): rc=OK 339.9 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=2048 fill=0.0ms chip_med=41.0us (0.0 GB/s) call_med=43.3us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=14336 fill=0.0ms chip_med=45.1us (0.3 GB/s) call_med=47.2us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=524288 fill=0.0ms chip_med=70.4us (7.4 GB/s) call_med=72.5us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=616448 fill=0.0ms chip_med=88.1us (7.0 GB/s) call_med=90.2us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: inert (1 split, the combine is not exercised) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=2097152 fill=0.1ms chip_med=175.9us (11.9 GB/s) call_med=178.2us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=1024 depth=4 kv_bytes=8388608 fill=0.2ms chip_med=188.6us (44.5 GB/s) call_med=190.8us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=8x4 per_split=1024 depth=4 kv_bytes=16777216 fill=0.6ms chip_med=234.8us (71.4 GB/s) call_med=237.1us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=1024 depth=4 kv_bytes=67108864 fill=2.8ms chip_med=760.3us (88.3 GB/s) call_med=762.4us reps=20 +gpu_decode_attn_test: 28 checks, 0 failed: PASS +per-split 1024 exit 0 (informational) +GPU_DECODE_ATTN_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/SHA256SUMS new file mode 100644 index 000000000..d85d768e7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/SHA256SUMS @@ -0,0 +1,14 @@ +835c0b037f89bf45d7839afc689b8b567dc15717d7fd57e47acb0e4dc237d574 receipt-baseline-matmul.json +9e49f85d36150e8d1704e6f3faf23b01e648335a14313fb60564dcb525b358a5 receipt-depth1.json +2e3e1f972de7e8e8e00d4a7856e42b7816f5f651188c45ea62c01808fde1257e receipt-main.json +14d1758c1e40d1ea248fee1daa004c75e9c5deddebbfe9266a613869bd267519 receipt-noevict.json +54fe23f9bf8afe9889774686f4afaa0b7df1a67a022d118c047a9da3e7b115c2 receipt-persplit1024.json +901b0f40e8ecf6b9a3d33b3a55ef1d5e0f2f6b595487c065068f7b2ac0c115d8 baseline-matmul.log +66f32fbc83402bb2a0e52e65ab16dd002c489f812da3d3b30e391bd9af6b07e4 build.log +770fbbdd97c9056ed5db3a6574ca610a974a0896a9ec92a0d4346b3b555de8c8 depth1.log +6c03925a9331d0ac13fda50ccecab2128ded77c748ccea16a78d66f9518b31f8 host-only.log +09f61f87fe90553e05b6b39b2d77126f37668de3d8e40a4501266684e51dbe89 main.log +67fe17a83d968fae0d5e7d3307e15c4ea9cb03b038f5f15258d552e385e23736 noevict.log +52affd799a89c25cc4533a56676b287770296008e50f89343834a683a5d617ca persplit1024.log +2f0512cfebb60b3751133eab11007e16857e11de4671ee4cd4bde0bcb99c0368 sim.log +1cf30937f23a78b32b51e191d960acb8c5a0794b0cbdf0dceaf6f512c778a48e device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/baseline-matmul.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/baseline-matmul.log new file mode 100644 index 000000000..f4f16f0f0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/baseline-matmul.log @@ -0,0 +1,4 @@ +PASS timing 1x2048x8192 upload_ms=240.9 ok_calls=100 median_ms=0.367 p90_ms=0.412 min_ms=0.296 max_ms=0.910 chip_ns_mean=353151 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.1 ok_calls=100 median_ms=0.595 p90_ms=0.618 min_ms=0.411 max_ms=1.077 chip_ns_mean=521542 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/build.log new file mode 100644 index 000000000..c7d3efa09 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/build.log @@ -0,0 +1 @@ +make: 'build/gpu_matmul_api_test' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/depth1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/depth1.log new file mode 100644 index 000000000..0864793b0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/depth1.log @@ -0,0 +1,15 @@ +cache alloc (1 layer, 32768 positions): rc=OK 339.2 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=256 depth=1 kv_bytes=2048 fill=0.0ms chip_med=38.5us (0.1 GB/s) call_med=40.7us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=1 kv_bytes=14336 fill=0.0ms chip_med=40.7us (0.4 GB/s) call_med=42.7us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=1 kv_bytes=524288 fill=0.0ms chip_med=69.3us (7.6 GB/s) call_med=71.5us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=2x4 per_split=256 depth=1 kv_bytes=616448 fill=0.0ms chip_med=74.2us (8.3 GB/s) call_med=76.4us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: caught (rc=OK bad=2010 worst=18.655) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=1 kv_bytes=2097152 fill=0.0ms chip_med=78.0us (26.9 GB/s) call_med=80.2us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=16x4 per_split=256 depth=1 kv_bytes=8388608 fill=0.2ms chip_med=178.5us (47.0 GB/s) call_med=180.6us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=256 depth=1 kv_bytes=16777216 fill=0.5ms chip_med=350.0us (47.9 GB/s) call_med=352.1us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=128x4 per_split=256 depth=1 kv_bytes=67108864 fill=2.8ms chip_med=1191.5us (56.3 GB/s) call_med=1193.8us reps=20 +gpu_decode_attn_test: 29 checks, 0 failed: PASS +depth 1 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/device.txt new file mode 100644 index 000000000..14eecaff1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:55:33Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 73 2 36 106 +end 2026-10-15T00:55:40Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/host-only.log new file mode 100644 index 000000000..ba594ce59 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/host-only.log @@ -0,0 +1,7 @@ +rope rows vs libm: 1013 positions x 64 dims, 1 one-ulp differences, 0 worse +hostmath vs libm: sincos max abs 2.22e-16, pow/exp/log max rel 1.31e-14 +codegen depth 1: 988 instructions, 112 registers (declared 120, 256 threads -> 30720 of 65536) +codegen depth 2: 996 instructions, 116 registers (declared 120, 256 threads -> 30720 of 65536) +codegen depth 3: 1004 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536) +codegen depth 4: 1012 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536) +gpu_decode_attn_test: 41 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/main.log new file mode 100644 index 000000000..b8e775a69 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/main.log @@ -0,0 +1,14 @@ +cache alloc (1 layer, 32768 positions): rc=OK 340.1 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=2048 fill=0.0ms chip_med=39.8us (0.1 GB/s) call_med=41.9us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=14336 fill=0.0ms chip_med=41.2us (0.3 GB/s) call_med=43.3us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=524288 fill=0.0ms chip_med=73.3us (7.2 GB/s) call_med=75.5us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=2x4 per_split=256 depth=4 kv_bytes=616448 fill=0.0ms chip_med=73.7us (8.4 GB/s) call_med=75.8us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: caught (rc=OK bad=2010 worst=18.655) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.1ms chip_med=79.1us (26.5 GB/s) call_med=81.2us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=16x4 per_split=256 depth=4 kv_bytes=8388608 fill=0.2ms chip_med=183.1us (45.8 GB/s) call_med=185.8us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=256 depth=4 kv_bytes=16777216 fill=0.5ms chip_med=356.5us (47.1 GB/s) call_med=358.4us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=128x4 per_split=256 depth=4 kv_bytes=67108864 fill=2.7ms chip_med=1207.3us (55.6 GB/s) call_med=1209.1us reps=20 +gpu_decode_attn_test: 29 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/noevict.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/noevict.log new file mode 100644 index 000000000..1a618cedc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/noevict.log @@ -0,0 +1,15 @@ +cache alloc (1 layer, 32768 positions): rc=OK 340.2 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=2048 fill=0.0ms chip_med=38.8us (0.1 GB/s) call_med=40.8us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=14336 fill=0.0ms chip_med=40.4us (0.4 GB/s) call_med=42.5us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=256 depth=4 kv_bytes=524288 fill=0.0ms chip_med=69.2us (7.6 GB/s) call_med=71.1us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=2x4 per_split=256 depth=4 kv_bytes=616448 fill=0.0ms chip_med=74.0us (8.3 GB/s) call_med=76.0us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: caught (rc=OK bad=2010 worst=18.655) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.0ms chip_med=85.4us (24.5 GB/s) call_med=87.5us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=16x4 per_split=256 depth=4 kv_bytes=8388608 fill=0.2ms chip_med=160.7us (52.2 GB/s) call_med=162.9us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=256 depth=4 kv_bytes=16777216 fill=0.5ms chip_med=351.6us (47.7 GB/s) call_med=353.8us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=128x4 per_split=256 depth=4 kv_bytes=67108864 fill=2.7ms chip_med=1175.8us (57.1 GB/s) call_med=1177.7us reps=20 +gpu_decode_attn_test: 29 checks, 0 failed: PASS +no-evict exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/persplit1024.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/persplit1024.log new file mode 100644 index 000000000..ab29be1bc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/persplit1024.log @@ -0,0 +1,15 @@ +cache alloc (1 layer, 32768 positions): rc=OK 339.9 ms () +chip context 1 rc=OK bad=0 worst=0.000 rows=ok (1 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=2048 fill=0.0ms chip_med=41.0us (0.0 GB/s) call_med=43.3us reps=20 +chip context 7 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=14336 fill=0.0ms chip_med=45.1us (0.3 GB/s) call_med=47.2us reps=20 +chip context 256 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=524288 fill=0.0ms chip_med=70.4us (7.4 GB/s) call_med=72.5us reps=20 +chip context 301 sharp q rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=616448 fill=0.0ms chip_med=88.1us (7.0 GB/s) call_med=90.2us reps=20 +chip context 301 sharp q mutant 1: caught (rc=OK bad=3630 worst=25.864) +chip context 301 sharp q mutant 2: caught (rc=OK bad=3773 worst=40.263) +chip context 301 sharp q mutant 3: caught (rc=OK bad=820 worst=6.838) +chip context 301 sharp q mutant 4: inert (1 split, the combine is not exercised) +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=1x4 per_split=1024 depth=4 kv_bytes=2097152 fill=0.1ms chip_med=175.9us (11.9 GB/s) call_med=178.2us reps=20 +chip context 4096 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=1024 depth=4 kv_bytes=8388608 fill=0.2ms chip_med=188.6us (44.5 GB/s) call_med=190.8us reps=20 +chip context 8192 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=8x4 per_split=1024 depth=4 kv_bytes=16777216 fill=0.6ms chip_med=234.8us (71.4 GB/s) call_med=237.1us reps=20 +chip context 32768 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=32x4 per_split=1024 depth=4 kv_bytes=67108864 fill=2.8ms chip_med=760.3us (88.3 GB/s) call_med=762.4us reps=20 +gpu_decode_attn_test: 28 checks, 0 failed: PASS +per-split 1024 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-baseline-matmul.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-baseline-matmul.json new file mode 100644 index 000000000..cfe093d79 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-baseline-matmul.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_TIMING_V1","cta_budget":64,"spin_us":0,"calls":100,"shapes":[{"m":1,"k":2048,"n":8192,"pass":true,"upload_ms":240.950,"ok_calls":100,"median_ms":0.3672,"p90_ms":0.4118,"min_ms":0.2956,"max_ms":0.9103,"chip_ns_mean":353151,"grid_x":64,"grid_y":1,"e2e_first":2.36603e-07,"e2e_last":2.36603e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0},{"m":1,"k":8192,"n":2048,"pass":true,"upload_ms":105.127,"ok_calls":100,"median_ms":0.5952,"p90_ms":0.6183,"min_ms":0.4106,"max_ms":1.0767,"chip_ns_mean":521542,"grid_x":64,"grid_y":1,"e2e_first":5.21488e-07,"e2e_last":5.21488e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-depth1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-depth1.json new file mode 100644 index 000000000..2dacc1f8c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-depth1.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_DECODE_ATTN_V1","reps":20,"evict":1,"points":[{"name":"context 1","pos":0,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (1 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":2048,"fill_ms":0.0,"chip_median_ns":38497,"gb_per_s":0.1,"call_median_ns":40737,"reps":20},{"name":"context 7","pos":6,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":14336,"fill_ms":0.0,"chip_median_ns":40656,"gb_per_s":0.4,"call_median_ns":42704,"reps":20},{"name":"context 256","pos":255,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":524288,"fill_ms":0.0,"chip_median_ns":69281,"gb_per_s":7.6,"call_median_ns":71521,"reps":20},{"name":"context 301 sharp q","pos":300,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":2,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":616448,"fill_ms":0.0,"chip_median_ns":74177,"gb_per_s":8.3,"call_median_ns":76369,"reps":20},{"name":"context 301 sharp q mutant 1","caught":1,"rc":"OK","bad":3630,"worst_of_tol":25.864},{"name":"context 301 sharp q mutant 2","caught":1,"rc":"OK","bad":3773,"worst_of_tol":40.263},{"name":"context 301 sharp q mutant 3","caught":1,"rc":"OK","bad":820,"worst_of_tol":6.838},{"name":"context 301 sharp q mutant 4","caught":1,"rc":"OK","bad":2010,"worst_of_tol":18.655},{"name":"context 1024","pos":1023,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":4,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":2097152,"fill_ms":0.0,"chip_median_ns":78017,"gb_per_s":26.9,"call_median_ns":80161,"reps":20},{"name":"context 4096","pos":4095,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":16,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":8388608,"fill_ms":0.2,"chip_median_ns":178483,"gb_per_s":47.0,"call_median_ns":180643,"reps":20},{"name":"context 8192","pos":8191,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":32,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":16777216,"fill_ms":0.5,"chip_median_ns":349989,"gb_per_s":47.9,"call_median_ns":352053,"reps":20},{"name":"context 32768","pos":32767,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":128,"grid_y":4,"per_split":256,"depth":1,"kv_bytes":67108864,"fill_ms":2.8,"chip_median_ns":1191456,"gb_per_s":56.3,"call_median_ns":1193792,"reps":20}],"checks":29,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_DECODE_ATTN_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-main.json new file mode 100644 index 000000000..261a71404 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-main.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_DECODE_ATTN_V1","reps":20,"evict":1,"points":[{"name":"context 1","pos":0,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (1 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":2048,"fill_ms":0.0,"chip_median_ns":39841,"gb_per_s":0.1,"call_median_ns":41889,"reps":20},{"name":"context 7","pos":6,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":14336,"fill_ms":0.0,"chip_median_ns":41184,"gb_per_s":0.3,"call_median_ns":43329,"reps":20},{"name":"context 256","pos":255,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":524288,"fill_ms":0.0,"chip_median_ns":73313,"gb_per_s":7.2,"call_median_ns":75473,"reps":20},{"name":"context 301 sharp q","pos":300,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":2,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":616448,"fill_ms":0.0,"chip_median_ns":73745,"gb_per_s":8.4,"call_median_ns":75761,"reps":20},{"name":"context 301 sharp q mutant 1","caught":1,"rc":"OK","bad":3630,"worst_of_tol":25.864},{"name":"context 301 sharp q mutant 2","caught":1,"rc":"OK","bad":3773,"worst_of_tol":40.263},{"name":"context 301 sharp q mutant 3","caught":1,"rc":"OK","bad":820,"worst_of_tol":6.838},{"name":"context 301 sharp q mutant 4","caught":1,"rc":"OK","bad":2010,"worst_of_tol":18.655},{"name":"context 1024","pos":1023,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":4,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":2097152,"fill_ms":0.1,"chip_median_ns":79121,"gb_per_s":26.5,"call_median_ns":81233,"reps":20},{"name":"context 4096","pos":4095,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":16,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":8388608,"fill_ms":0.2,"chip_median_ns":183107,"gb_per_s":45.8,"call_median_ns":185778,"reps":20},{"name":"context 8192","pos":8191,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":32,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":16777216,"fill_ms":0.5,"chip_median_ns":356517,"gb_per_s":47.1,"call_median_ns":358405,"reps":20},{"name":"context 32768","pos":32767,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":128,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":67108864,"fill_ms":2.7,"chip_median_ns":1207295,"gb_per_s":55.6,"call_median_ns":1209135,"reps":20}],"checks":29,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_DECODE_ATTN_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-noevict.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-noevict.json new file mode 100644 index 000000000..2ec826500 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-noevict.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_DECODE_ATTN_V1","reps":20,"evict":0,"points":[{"name":"context 1","pos":0,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (1 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":2048,"fill_ms":0.0,"chip_median_ns":38753,"gb_per_s":0.1,"call_median_ns":40817,"reps":20},{"name":"context 7","pos":6,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":14336,"fill_ms":0.0,"chip_median_ns":40433,"gb_per_s":0.4,"call_median_ns":42512,"reps":20},{"name":"context 256","pos":255,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":524288,"fill_ms":0.0,"chip_median_ns":69201,"gb_per_s":7.6,"call_median_ns":71105,"reps":20},{"name":"context 301 sharp q","pos":300,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":2,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":616448,"fill_ms":0.0,"chip_median_ns":74017,"gb_per_s":8.3,"call_median_ns":76017,"reps":20},{"name":"context 301 sharp q mutant 1","caught":1,"rc":"OK","bad":3630,"worst_of_tol":25.864},{"name":"context 301 sharp q mutant 2","caught":1,"rc":"OK","bad":3773,"worst_of_tol":40.263},{"name":"context 301 sharp q mutant 3","caught":1,"rc":"OK","bad":820,"worst_of_tol":6.838},{"name":"context 301 sharp q mutant 4","caught":1,"rc":"OK","bad":2010,"worst_of_tol":18.655},{"name":"context 1024","pos":1023,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":4,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":2097152,"fill_ms":0.0,"chip_median_ns":85441,"gb_per_s":24.5,"call_median_ns":87489,"reps":20},{"name":"context 4096","pos":4095,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":16,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":8388608,"fill_ms":0.2,"chip_median_ns":160738,"gb_per_s":52.2,"call_median_ns":162898,"reps":20},{"name":"context 8192","pos":8191,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":32,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":16777216,"fill_ms":0.5,"chip_median_ns":351636,"gb_per_s":47.7,"call_median_ns":353781,"reps":20},{"name":"context 32768","pos":32767,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":128,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":67108864,"fill_ms":2.7,"chip_median_ns":1175839,"gb_per_s":57.1,"call_median_ns":1177743,"reps":20}],"checks":29,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_DECODE_ATTN_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-persplit1024.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-persplit1024.json new file mode 100644 index 000000000..2ccd6c61a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/receipt-persplit1024.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_DECODE_ATTN_V1","reps":20,"evict":1,"points":[{"name":"context 1","pos":0,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (1 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":2048,"fill_ms":0.0,"chip_median_ns":40993,"gb_per_s":0.0,"call_median_ns":43312,"reps":20},{"name":"context 7","pos":6,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":14336,"fill_ms":0.0,"chip_median_ns":45088,"gb_per_s":0.3,"call_median_ns":47201,"reps":20},{"name":"context 256","pos":255,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":524288,"fill_ms":0.0,"chip_median_ns":70433,"gb_per_s":7.4,"call_median_ns":72465,"reps":20},{"name":"context 301 sharp q","pos":300,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":616448,"fill_ms":0.0,"chip_median_ns":88113,"gb_per_s":7.0,"call_median_ns":90193,"reps":20},{"name":"context 301 sharp q mutant 1","caught":1,"rc":"OK","bad":3630,"worst_of_tol":25.864},{"name":"context 301 sharp q mutant 2","caught":1,"rc":"OK","bad":3773,"worst_of_tol":40.263},{"name":"context 301 sharp q mutant 3","caught":1,"rc":"OK","bad":820,"worst_of_tol":6.838},{"name":"context 1024","pos":1023,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":1,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":2097152,"fill_ms":0.1,"chip_median_ns":175938,"gb_per_s":11.9,"call_median_ns":178194,"reps":20},{"name":"context 4096","pos":4095,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":4,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":8388608,"fill_ms":0.2,"chip_median_ns":188611,"gb_per_s":44.5,"call_median_ns":190755,"reps":20},{"name":"context 8192","pos":8191,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":8,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":16777216,"fill_ms":0.6,"chip_median_ns":234835,"gb_per_s":71.4,"call_median_ns":237059,"reps":20},{"name":"context 32768","pos":32767,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":32,"grid_y":4,"per_split":1024,"depth":4,"kv_bytes":67108864,"fill_ms":2.8,"chip_median_ns":760346,"gb_per_s":88.3,"call_median_ns":762409,"reps":20}],"checks":28,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_DECODE_ATTN_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/sim.log new file mode 100644 index 000000000..95adec6d8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_attn/sim.log @@ -0,0 +1,14 @@ +sim context 1 depth 1: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 7 depth 2: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 7, sharp q (x4) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 256 (full chunk, 1 split) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 257 (2 splits, last holds one position) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 301 (2 splits) depth 3: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 701 (3 splits) depth 4: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim context 701 (per_split 512: 2 chunks per CTA) depth 2: ok bad=0 worst=0.000 rows: ok (0 one-ulp k flips) +sim mutant 1 at context 301: caught (bad=4601 worst=24.241 rows: k[0] chip bf76 ref becc) +sim mutant 2 at context 301: caught (bad=3756 worst=37.139 rows: ok (0 one-ulp k flips)) +sim mutant 3 at context 301: caught (bad=2114 worst=16.257 rows: v[0] chip 0000 ref bf4c) +sim mutant 4 at context 301: caught (bad=2233 worst=21.965 rows: ok (0 one-ulp k flips)) +sim: 6925320 warp issues in total +gpu_decode_attn_test: 12 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph.out new file mode 100644 index 000000000..5458ff569 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph.out @@ -0,0 +1,43 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 20 reps ran +ok: A deterministic over 20 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 20 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 20 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 20 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3989.6 us <= chip 4076.9 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 16.0 us qkv x2 167.7 us attn x2 145.4 us o_proj x2 121.5 us res_add x2 10.3 us router x2 72.3 us gate_up x2 329.2 us swiglu x2 6.8 us down x2 173.0 us combine_norm x2 19.6 us lm_head x1 2913.0 us argmax x2 14.9 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 20, 2 layers): A host-glue 13 launches 5002.5 us | C one list 22 launches 3978.7 us (chip 3975.4 us, record 2.5 us) | B per-launch submits 22 launches 5337.5 us (chip sum 5326.6 us) +chip: 13 checks, 0 failed: PASS +GPU_DECODE_GRAPH_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/SHA256SUMS new file mode 100644 index 000000000..9ca646aaf --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/SHA256SUMS @@ -0,0 +1,7 @@ +b829ba6ce27ec4144c98d1d62a14707227175780b5be3863c4b0d18fb2322c30 receipt-main.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc host-only.log +8b1d065b63ed15f3b68921af762f2d2b81a3f5b12f6e5fb6d014d1ba11a91fd7 main.log +2e920f69f4ec0a774627f5ca5773ad43c4aee77a92781da591b73e205b085522 device.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 worktree.diff +66cd0541d6bef1045e83312c1b29d1bf5cd2b0efa6daeab6796e7d03ed61b7e9 binaries.sha256 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/binaries.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/binaries.sha256 new file mode 100644 index 000000000..bd6d5a459 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/binaries.sha256 @@ -0,0 +1,2 @@ +4a8a7aa373b9c04ae3f4343a2f45738a57662ad79609f6af99b64f8173028eec ./build/gpu_decode_graph_test +6a6cb4df479ddbcc5cd4ef0fda1aea968832b2b70be2ff3312051c3e9921aad5 build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/device.txt new file mode 100644 index 000000000..a151cbfe8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:55:40Z mode=main omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 16 72 2 36 105 +end 2026-10-15T00:55:42Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/host-only.log new file mode 100644 index 000000000..c60d68363 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/host-only.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/main.log new file mode 100644 index 000000000..d2ee9e04e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/main.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 20 reps ran +ok: A deterministic over 20 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 20 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 20 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 20 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3989.6 us <= chip 4076.9 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 16.0 us qkv x2 167.7 us attn x2 145.4 us o_proj x2 121.5 us res_add x2 10.3 us router x2 72.3 us gate_up x2 329.2 us swiglu x2 6.8 us down x2 173.0 us combine_norm x2 19.6 us lm_head x1 2913.0 us argmax x2 14.9 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 20, 2 layers): A host-glue 13 launches 5002.5 us | C one list 22 launches 3978.7 us (chip 3975.4 us, record 2.5 us) | B per-launch submits 22 launches 5337.5 us (chip sum 5326.6 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/receipt-main.json new file mode 100644 index 000000000..b42887172 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/receipt-main.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":20,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3989568,"chip_ns":4076853,"per_kind_ns":{"norm":[1,15968],"qkv":[2,167744],"attn":[2,145440],"o_proj":[2,121504],"res_add":[2,10304],"router":[2,72288],"gate_up":[2,329184],"swiglu":[2,6752],"down":[2,172960],"combine_norm":[2,19584],"lm_head":[1,2912960],"argmax":[2,14880]}},"median_ns":{"A_total":5002544,"C_total":3978675,"C_chip":3975395,"C_record":2464,"B_total":5337477,"B_chip":5326613},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/worktree.diff b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/worktree.diff new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached.out new file mode 100644 index 000000000..3bc6997fb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached.out @@ -0,0 +1,43 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 20 reps ran +ok: A deterministic over 20 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 20 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 20 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 20 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3893.6 us <= chip 3981.1 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 7.4 us qkv x2 133.1 us attn x2 141.9 us o_proj x2 112.3 us res_add x2 10.2 us router x2 49.0 us gate_up x2 294.4 us swiglu x2 6.1 us down x2 174.7 us combine_norm x2 20.2 us lm_head x1 2929.3 us argmax x2 15.1 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 20, 2 layers): A host-glue 13 launches 5002.5 us | C one list 22 launches 3976.4 us (chip 3973.1 us, record 2.4 us) | B per-launch submits 22 launches 5381.1 us (chip sum 5369.8 us) +chip: 13 checks, 0 failed: PASS +GPU_DECODE_GRAPH_CHIP_CACHED: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/SHA256SUMS new file mode 100644 index 000000000..6193babbf --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/SHA256SUMS @@ -0,0 +1,7 @@ +6aa9ed345a6881f11170e5072bf3369c006f71e0b717806ee6d37b2d42f69355 receipt-cached.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +d471440cae10d719d2a6d502eee410afb379ff12b17d29801e57931bf2f1114a cached.log +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc host-only.log +08bc071886cf478fc3c6d23211d2cf636251e4047bfad229db9e7975969806ea device.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 worktree.diff +66cd0541d6bef1045e83312c1b29d1bf5cd2b0efa6daeab6796e7d03ed61b7e9 binaries.sha256 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/binaries.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/binaries.sha256 new file mode 100644 index 000000000..bd6d5a459 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/binaries.sha256 @@ -0,0 +1,2 @@ +4a8a7aa373b9c04ae3f4343a2f45738a57662ad79609f6af99b64f8173028eec ./build/gpu_decode_graph_test +6a6cb4df479ddbcc5cd4ef0fda1aea968832b2b70be2ff3312051c3e9921aad5 build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/cached.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/cached.log new file mode 100644 index 000000000..3fc8bc08b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/cached.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 20 reps ran +ok: A deterministic over 20 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 20 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 20 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 20 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3893.6 us <= chip 3981.1 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 7.4 us qkv x2 133.1 us attn x2 141.9 us o_proj x2 112.3 us res_add x2 10.2 us router x2 49.0 us gate_up x2 294.4 us swiglu x2 6.1 us down x2 174.7 us combine_norm x2 20.2 us lm_head x1 2929.3 us argmax x2 15.1 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 20, 2 layers): A host-glue 13 launches 5002.5 us | C one list 22 launches 3976.4 us (chip 3973.1 us, record 2.4 us) | B per-launch submits 22 launches 5381.1 us (chip sum 5369.8 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/device.txt new file mode 100644 index 000000000..f075c0389 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:55:44Z mode=cached omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 16 72 2 36 105 +end 2026-10-15T00:55:46Z cached_exit=0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/host-only.log new file mode 100644 index 000000000..c60d68363 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/host-only.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/receipt-cached.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/receipt-cached.json new file mode 100644 index 000000000..da71825ab --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/receipt-cached.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":20,"red":0,"cached_weights":1,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3893568,"chip_ns":3981123,"per_kind_ns":{"norm":[1,7360],"qkv":[2,133056],"attn":[2,141888],"o_proj":[2,112288],"res_add":[2,10176],"router":[2,48992],"gate_up":[2,294368],"swiglu":[2,6144],"down":[2,174656],"combine_norm":[2,20192],"lm_head":[1,2929312],"argmax":[2,15136]}},"median_ns":{"A_total":5002544,"C_total":3976404,"C_chip":3973059,"C_record":2448,"B_total":5381061,"B_chip":5369797},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/worktree.diff b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_cached/worktree.diff new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red.out new file mode 100644 index 000000000..1829604f2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red.out @@ -0,0 +1,34 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 3 reps ran +ok: A deterministic over 3 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 3 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 3 reps (token 70886) +A vs C: token 62700 vs 70886, logits max |d| 2.55 (scale 6.03, rel 0.423, tol 1e-04), x max rel 0.54, hidden max rel 0.508 +FAIL: argmax token identical: A 62700, C 70886 +FAIL: logits A vs C within 1e-04 of max|logit| (max |d| 2.55, scale 6.03) +chip-red: 6 checks, 2 failed: FAIL +GPU_DECODE_GRAPH_CHIP_RED: FAILED_AS_EXPECTED diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/SHA256SUMS new file mode 100644 index 000000000..6494bbab5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/SHA256SUMS @@ -0,0 +1,7 @@ +ea9e3d311d3039cc65ef1c396888c773452ef36f1b6d4f360ad766ba171364ca receipt-red.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc host-only.log +287e4895ca699a433ed651506a008f852e504874a8a146733a7f2c63b6fe3662 red.log +ed9b67f128ab688e96f5d827a65d7165dee03d02dcbd0095e84b81a79191c4d4 device.txt +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 worktree.diff +66cd0541d6bef1045e83312c1b29d1bf5cd2b0efa6daeab6796e7d03ed61b7e9 binaries.sha256 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/binaries.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/binaries.sha256 new file mode 100644 index 000000000..bd6d5a459 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/binaries.sha256 @@ -0,0 +1,2 @@ +4a8a7aa373b9c04ae3f4343a2f45738a57662ad79609f6af99b64f8173028eec ./build/gpu_decode_graph_test +6a6cb4df479ddbcc5cd4ef0fda1aea968832b2b70be2ff3312051c3e9921aad5 build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/device.txt new file mode 100644 index 000000000..60dd82a47 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:55:42Z mode=red omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 16 72 2 36 105 +end 2026-10-15T00:55:44Z red_exit=1 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/host-only.log new file mode 100644 index 000000000..c60d68363 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/host-only.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/receipt-red.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/receipt-red.json new file mode 100644 index 000000000..2a983848a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/receipt-red.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":3,"red":1,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":70886,"launches":22,"submits":1},"A_vs_C":{"tok_same":0,"logit_max_abs":2.55477,"logit_scale":6.03418,"x_max_rel":0.540449,"hidden_max_rel":0.507762,"tol_rel":0.0001},"checks":6,"failed":2,"verdict":"FAIL"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/red.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/red.log new file mode 100644 index 000000000..f7088d5bf --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/red.log @@ -0,0 +1,12 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 3 reps ran +ok: A deterministic over 3 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 3 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 3 reps (token 70886) +A vs C: token 62700 vs 70886, logits max |d| 2.55 (scale 6.03, rel 0.423, tol 1e-04), x max rel 0.54, hidden max rel 0.508 +FAIL: argmax token identical: A 62700, C 70886 +FAIL: logits A vs C within 1e-04 of max|logit| (max |d| 2.55, scale 6.03) +chip-red: 6 checks, 2 failed: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/worktree.diff b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph_red/worktree.diff new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise.out new file mode 100644 index 000000000..9b2e76072 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise.out @@ -0,0 +1,2 @@ +PASS: 35 checks, 0 failed +FB1-CUT4 chip gate rc=0 receipt=/home/drakestapleton/workspace/requal-0c63/omega-gates/elementwise/FB1-CUT4-710d438c/receipt.json diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/SHA256SUMS new file mode 100644 index 000000000..ed099f17a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/SHA256SUMS @@ -0,0 +1,7 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +a8326dea97537e17b741cea608562663d00a6de162fb62dd136a1745dcd01772 device.txt +f4b7865a3459036719024599d5a81718bd3039812dd4b23f556464581dbff5ac gpu_elementwise_test.c +7366eb0f8bbeb012f680bacc7c28b2b4bb6489726df08c6dc80dae640c0ba71c omega_gpu_elementwise_api.c +5d62a2ea6209fc5a0133f866b60469a74d3ef2a32da67a30312e4daacc96b97f omega_gpu_elementwise_api.h +8233ca2dcdda935c3fbe372b326f7ecb06991af7c2e7fbc02d525b3adbee377c receipt.json +dec76ee6c472d5ba9443b3ae39b54908157368e36a1ed86456d6d769f2f81e35 run.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/device.txt new file mode 100644 index 000000000..e3df9ce15 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/device.txt @@ -0,0 +1,5 @@ +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 +omega 710d438cac6c1159b4ca2b39af49812ce08f554b (0 uncommitted paths) +physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +2026-10-15T01:05:43Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/gpu_elementwise_test.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/gpu_elementwise_test.c new file mode 100644 index 000000000..e485d0680 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/gpu_elementwise_test.c @@ -0,0 +1,387 @@ +/* gpu_elementwise_test: FB-1 cut 4 gate for omega_gpu_elementwise_api. + * + * ./gpu_elementwise_test --host-only refusals, codegen, word fixtures, register budget, + * nvdisasm listing check when /usr/local/cuda/bin/nvdisasm exists + * ./gpu_elementwise_test --out receipt.json chip gate: every op against the host oracle, then its mutant + * (a deliberately wrong kernel) which the same check must catch + * ./gpu_elementwise_test --timing --out t.json cut 4b gate: persistent device, 100 calls each of rmsnorm 1x2048 + * and swiglu 5632 under 0.5 ms median, one device open per process + * + * Oracles re-state aien-sovereign-core crates/aien-inference-abi/src/tensor.rs (main 5fdab70) in C: + * rmsnorm sums in f64, rope computes cos/sin in f64 and casts to f32 before f32 math, swiglu is f64. + * This file is compiled with -ffp-contract=off so the f32 oracle math has no hidden fused multiply-add. + * + * Tolerances (why): EX2 1e-6 rel (PTX ex2.approx.f32: 2^-22.5 rel, we allow 2x). XCHG exact. + * RMSNORM 1e-5 rel + 1e-6 abs (f32 sum of up to 16384 squares against an f64 sum, plus RSQ seed with one + * Newton step; the mutant moves the scale by about 40 percent). ROPE exact (same f32 ops, same order). + * SWIGLU 1e-5 rel + 1e-6 abs (EX2 and RCP approximations, each about 2^-22 rel; the mutant flips the sign + * of the exponent, which is wrong by a factor of e^(2g)). + */ +#include "omega_gpu_elementwise_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_gpu_session.h" +#include +#include +#include +#include +#include +#include +#include + +static int g_checks, g_failed; +#define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0) + +static uint32_t lcg(uint32_t *s) { *s = *s * 1664525u + 1013904223u; return *s; } +static float frand(uint32_t *s, float lo, float hi) { return lo + (hi - lo) * ((float)(lcg(s) >> 8) / 16777216.0f); } + +/* ----------------------------------------------------------------- oracles */ +static void oracle_rmsnorm(const float *x, const float *w, float eps, float *out, size_t dim) { + double ss = 0.0; + for (size_t i = 0; i < dim; i++) ss += (double)x[i] * (double)x[i]; + double mean = ss / (double)dim; + float scale = (float)(1.0 / sqrt(mean + (double)eps)); + for (size_t i = 0; i < dim; i++) { float t = x[i] * scale; out[i] = t * w[i]; } +} +static void oracle_rope_tables(size_t head_dim, size_t pos, float theta, float *cos_half, float *sin_half) { + size_t half = head_dim / 2; + for (size_t i = 0; i < half; i++) { + double exponent = (double)(2 * i) / (double)head_dim; + double freq = 1.0 / pow((double)theta, exponent); + double rot = (double)pos * freq; + sin_half[i] = (float)sin(rot); + cos_half[i] = (float)cos(rot); + } +} +static void oracle_rope(const float *v, size_t heads, size_t head_dim, const float *cos_half, const float *sin_half, float *out) { + size_t half = head_dim / 2; + for (size_t h = 0; h < heads; h++) + for (size_t i = 0; i < half; i++) { + size_t i0 = h * head_dim + i, i1 = i0 + half; + float q0 = v[i0], q1 = v[i1], c = cos_half[i], s = sin_half[i]; + float a = q0 * c, b = q1 * s; out[i0] = a - b; + float d = q0 * s, e = q1 * c; out[i1] = d + e; + } +} +static void oracle_swiglu(const float *g, const float *u, float *out, size_t n) { + for (size_t i = 0; i < n; i++) { double gg = g[i]; double silu = gg / (1.0 + exp(-gg)); out[i] = (float)(silu * (double)u[i]); } +} + +/* |got - want| <= rel*|want| + abs; returns the number of violations and the worst scaled error */ +static size_t compare(const float *got, const float *want, size_t n, double rel, double abs_tol, double *worst) { + size_t bad = 0; *worst = 0.0; + for (size_t i = 0; i < n; i++) { + double d = fabs((double)got[i] - (double)want[i]); + double lim = rel * fabs((double)want[i]) + abs_tol; + double scaled = lim > 0 ? d / lim : (d > 0 ? INFINITY : 0.0); + if (scaled > *worst) *worst = scaled; + if (!(d <= lim)) bad++; /* NaN counts as bad */ + } + return bad; +} + +/* ------------------------------------------------------------- host only */ +static int nvdisasm_check(OmegaGpuEwOp op, const char *name, const char *const *must, int n_must) { + const char *nv = "/usr/local/cuda/bin/nvdisasm"; + if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + if (omega_gpu_elementwise_codegen(op, NULL, 0.0f, &k) != OMEGA_GPU_EW_OK) return -1; + char bin[64], lst[64], cmd[256]; + snprintf(bin, sizeof bin, "/tmp/omega_ew_%s_%d.bin", name, (int)getpid()); + snprintf(lst, sizeof lst, "/tmp/omega_ew_%s_%d.sass", name, (int)getpid()); + FILE *f = fopen(bin, "wb"); if (!f) { free(k.code); return -1; } + fwrite(k.code, 1, k.code_size, f); fclose(f); + snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); + int rc = system(cmd); + free(k.code); + FILE *l = fopen(lst, "r"); if (!l) return -1; + char line[512]; int seen[16] = {0}; int bad = 0, insns = 0; + while (fgets(line, sizeof line, l)) { + if (!strstr(line, "/*0")) continue; + insns++; + if (strstr(line, "?") || strstr(line, "error")) bad++; + for (int i = 0; i < n_must; i++) if (strstr(line, must[i])) seen[i] = 1; + } + fclose(l); + int miss = 0; + for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } + printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); + unlink(bin); + return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; +} + +static void host_only(void) { + CHECK(omega_blackwell_verify_codegen_fixtures_fb1cut4() == 0, "word fixtures MUFU_EX2 / BAR_SYNC / LDS32 / STS32 (rc %d)", omega_blackwell_verify_codegen_fixtures_fb1cut4()); + float a[256] = {0}, b[256] = {0}, c[256] = {0}; + CHECK(omega_gpu_rmsnorm_f32(0, 128, a, b, 1e-5f, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "rows=0 refused"); + CHECK(omega_gpu_rmsnorm_f32(1, 100, a, b, 1e-5f, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "dim not a multiple of 128 refused"); + CHECK(omega_gpu_rmsnorm_f32(1, OMEGA_GPU_EW_MAX_DIM + 128, a, b, 1e-5f, c, NULL) == OMEGA_GPU_EW_TOO_LARGE, "dim over limit refused"); + CHECK(omega_gpu_rope_f32(1, 63, a, b, b, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "odd head_dim refused"); + CHECK(omega_gpu_rope_f32(1, 64, NULL, b, b, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "NULL vector refused"); + CHECK(omega_gpu_swiglu_f32(0, a, b, c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "n=0 refused"); + CHECK(omega_gpu_shared_xchg_u32(100, (uint32_t *)a, (uint32_t *)c, NULL) == OMEGA_GPU_EW_BAD_ARGS, "xchg n not a multiple of 128 refused"); + CHECK(strcmp(omega_gpu_elementwise_rc_name(OMEGA_GPU_EW_UNWRITTEN), "UNWRITTEN") == 0, "rc name"); + + struct { OmegaGpuEwOp op; const char *name; const char *must[6]; int n; } ops[] = { + { OMEGA_GPU_EW_EX2, "ex2", { "MUFU.EX2", "@P0 EXIT", "STG.E" }, 3 }, + { OMEGA_GPU_EW_XCHG, "xchg", { "STS [R", "BAR.SYNC", "LDS R" }, 3 }, + { OMEGA_GPU_EW_RMSNORM, "rmsnorm", { "SHFL.DOWN", "BAR.SYNC", "MUFU.RSQ", "@!P0 BRA", "STS [R", "LDS R" }, 6 }, + { OMEGA_GPU_EW_ROPE, "rope", { "FADD", "FMUL", "STG.E" }, 3 }, + { OMEGA_GPU_EW_SWIGLU, "swiglu", { "MUFU.EX2", "MUFU.RCP", "@P0 EXIT" }, 3 }, + }; + for (size_t i = 0; i < sizeof ops / sizeof ops[0]; i++) { + OmegaBlackwellKernel k; memset(&k, 0, sizeof k); + int rc = omega_gpu_elementwise_codegen(ops[i].op, NULL, 0.0f, &k); + CHECK(rc == OMEGA_GPU_EW_OK && k.code_size > 0 && k.gpr_count <= 64, "%s kernel generated (rc %s, %zu insns, %u gprs)", ops[i].name, omega_gpu_elementwise_rc_name(rc), k.insn_count, k.gpr_count); + printf("codegen %s: %zu insns, %u gprs, %u ugprs\n", ops[i].name, k.insn_count, k.gpr_count, k.uniform_gpr_count); + uint8_t digest[32]; memcpy(digest, k.code_digest, 32); + free(k.code); + /* the mutant must be a different kernel */ + omega_gpu_elementwise_test_set_mutant((int)ops[i].op); + memset(&k, 0, sizeof k); + CHECK(omega_gpu_elementwise_codegen(ops[i].op, NULL, 0.0f, &k) == OMEGA_GPU_EW_OK && memcmp(digest, k.code_digest, 32) != 0, "%s mutant kernel differs", ops[i].name); + free(k.code); + omega_gpu_elementwise_test_set_mutant(0); + CHECK(nvdisasm_check(ops[i].op, ops[i].name, ops[i].must, ops[i].n) == 0, "%s nvdisasm listing decodes and shows the expected instructions", ops[i].name); + } +} + +/* ------------------------------------------------------------- chip gate */ +typedef struct { const char *name; size_t n; int rc; size_t bad; double worst; int pass; int mutant_rc; size_t mutant_bad; int mutant_caught; uint64_t chip_ns; uint32_t calls; uint32_t unwritten; } Case; +static Case g_cases[16]; static int g_ncases; + +static void record(Case c, FILE *out) { + g_cases[g_ncases++] = c; + CHECK(c.pass, "%s rc=%s violations=%zu worst=%g", c.name, omega_gpu_elementwise_rc_name(c.rc), c.bad, c.worst); + CHECK(c.mutant_caught, "%s mutant caught (rc=%s violations=%zu)", c.name, omega_gpu_elementwise_rc_name(c.mutant_rc), c.mutant_bad); + printf("%s %s n=%zu rc=%s violations=%zu worst_scaled_err=%g chip_ns=%" PRIu64 " calls=%u unwritten=%u | mutant rc=%s violations=%zu %s\n", + c.pass && c.mutant_caught ? "PASS" : "FAIL", c.name, c.n, omega_gpu_elementwise_rc_name(c.rc), c.bad, c.worst, c.chip_ns, c.calls, c.unwritten, + omega_gpu_elementwise_rc_name(c.mutant_rc), c.mutant_bad, c.mutant_caught ? "CAUGHT" : "NOT CAUGHT"); + if (out) fprintf(out, "%s{\"case\":\"%s\",\"n\":%zu,\"rc\":\"%s\",\"violations\":%zu,\"worst_scaled_err\":%g,\"pass\":%s,\"chip_elapsed_ns\":%" PRIu64 ",\"chip_calls\":%u,\"unwritten_words\":%u,\"mutant_rc\":\"%s\",\"mutant_violations\":%zu,\"mutant_caught\":%s}", + g_ncases > 1 ? "," : "", c.name, c.n, omega_gpu_elementwise_rc_name(c.rc), c.bad, c.worst, c.pass ? "true" : "false", c.chip_ns, c.calls, c.unwritten, + omega_gpu_elementwise_rc_name(c.mutant_rc), c.mutant_bad, c.mutant_caught ? "true" : "false"); +} + +static int chip(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ELEMENTWISE_V1\",\"tolerances\":{\"ex2_rel\":1e-6,\"xchg\":\"exact\",\"rmsnorm_rel\":1e-5,\"rmsnorm_abs\":1e-6,\"rope\":\"exact\",\"swiglu_rel\":1e-5,\"swiglu_abs\":1e-6},\"cases\":["); + uint32_t seed = 0xfb1c0004u; + OmegaGpuEwInfo info; + + /* 1. EX2 probe, with a negative control on the comparison itself */ + { + size_t n = 4096; float *x = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *wrong = malloc(n * 4); + for (size_t i = 0; i < n; i++) { x[i] = frand(&seed, -20.0f, 20.0f); want[i] = (float)exp2((double)x[i]); wrong[i] = (float)exp2((double)x[i] + 1.0); } + Case c = { .name = "ex2_probe", .n = n }; + c.rc = omega_gpu_ex2_f32((uint32_t)n, x, got, &info); + c.bad = compare(got, want, n, 1e-6, 0.0, &c.worst); + double w2; size_t neg = compare(got, wrong, n, 1e-6, 0.0, &w2); + CHECK(neg > n / 2, "ex2 negative control: the check rejects a wrong expectation (%zu of %zu flagged)", neg, n); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_EX2); + c.mutant_rc = omega_gpu_ex2_f32((uint32_t)n, x, got, &info); + c.mutant_bad = compare(got, want, n, 1e-6, 0.0, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(x); free(got); free(want); free(wrong); + } + /* 2. shared-memory exchange probe (STS, BAR.SYNC, LDS) */ + { + size_t n = 4096; uint32_t *x = malloc(n * 4), *got = malloc(n * 4); + for (size_t i = 0; i < n; i++) x[i] = lcg(&seed); + Case c = { .name = "shared_xchg_probe", .n = n }; + c.rc = omega_gpu_shared_xchg_u32((uint32_t)n, x, got, &info); + for (size_t i = 0; i < n; i++) if (got[i] != x[i ^ (OMEGA_GPU_EW_THREADS - 1)]) c.bad++; + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_XCHG); + c.mutant_rc = omega_gpu_shared_xchg_u32((uint32_t)n, x, got, &info); + for (size_t i = 0; i < n; i++) if (got[i] != x[i ^ (OMEGA_GPU_EW_THREADS - 1)]) c.mutant_bad++; + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(x); free(got); + } + /* 3. rmsnorm at the model hidden sizes (TinyLlama and Llama-3.2-1B: 2048), plus small and large */ + { size_t dims[3] = { 2048, 256, 8192 }; size_t rowss[3] = { 4, 1, 2 }; + for (int t = 0; t < 3; t++) { + size_t dim = dims[t], rows = rowss[t], n = rows * dim; float eps = 1e-5f; + float *x = malloc(n * 4), *w = malloc(dim * 4), *got = malloc(n * 4), *want = malloc(n * 4), *again = malloc(n * 4); + for (size_t i = 0; i < n; i++) x[i] = frand(&seed, -3.0f, 3.0f); + for (size_t i = 0; i < dim; i++) w[i] = frand(&seed, 0.5f, 1.5f); + for (size_t r = 0; r < rows; r++) oracle_rmsnorm(x + r * dim, w, eps, want + r * dim, dim); + char name[64]; snprintf(name, sizeof name, "rmsnorm_%zux%zu", rows, dim); + Case c = { .name = strdup(name), .n = n }; + c.rc = omega_gpu_rmsnorm_f32((uint32_t)rows, (uint32_t)dim, x, w, eps, got, &info); + c.bad = compare(got, want, n, 1e-5, 1e-6, &c.worst); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + OmegaGpuEwInfo i2; int rc2 = omega_gpu_rmsnorm_f32((uint32_t)rows, (uint32_t)dim, x, w, eps, again, &i2); + CHECK(rc2 == OMEGA_GPU_EW_OK && i2.kernel_cache_hit && memcmp(got, again, n * 4) == 0, "%s repeat run (cache hit) is bit-identical", name); + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_RMSNORM); + double w2; c.mutant_rc = omega_gpu_rmsnorm_f32((uint32_t)rows, (uint32_t)dim, x, w, eps, got, &info); + c.mutant_bad = compare(got, want, n, 1e-5, 1e-6, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(x); free(w); free(got); free(want); free(again); + } } + /* 4. rope: TinyLlama (32 q heads, 4 kv heads, head_dim 64, theta 10000) and Llama-3.2-1B (32/8, 64, 500000) */ + { struct { size_t heads, hd, pos; float theta; } rs[4] = { { 32, 64, 17, 10000.0f }, { 4, 64, 17, 10000.0f }, { 32, 64, 1023, 500000.0f }, { 8, 64, 1023, 500000.0f } }; + for (int t = 0; t < 4; t++) { + size_t heads = rs[t].heads, hd = rs[t].hd, n = heads * hd, half = hd / 2; + float *v = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4), *ch = malloc(half * 4), *sh = malloc(half * 4); + for (size_t i = 0; i < n; i++) v[i] = frand(&seed, -4.0f, 4.0f); + oracle_rope_tables(hd, rs[t].pos, rs[t].theta, ch, sh); + oracle_rope(v, heads, hd, ch, sh, want); + char name[64]; snprintf(name, sizeof name, "rope_%zuh_%zud_pos%zu_theta%g", heads, hd, rs[t].pos, rs[t].theta); + Case c = { .name = strdup(name), .n = n }; + c.rc = omega_gpu_rope_f32((uint32_t)heads, (uint32_t)hd, v, ch, sh, got, &info); + c.bad = compare(got, want, n, 0.0, 0.0, &c.worst); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_ROPE); + double w2; c.mutant_rc = omega_gpu_rope_f32((uint32_t)heads, (uint32_t)hd, v, ch, sh, got, &info); + c.mutant_bad = compare(got, want, n, 0.0, 0.0, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + 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), 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); } + oracle_swiglu(g, u, want, n); + char name[64]; snprintf(name, sizeof name, "swiglu_%zu", n); + Case c = { .name = strdup(name), .n = n }; + c.rc = omega_gpu_swiglu_f32((uint32_t)n, g, u, got, &info); + c.bad = compare(got, want, n, 1e-5, 1e-6, &c.worst); + c.pass = c.rc == OMEGA_GPU_EW_OK && c.bad == 0; c.chip_ns = info.elapsed_ns; c.calls = info.chip_calls; c.unwritten = info.unwritten_words; + omega_gpu_elementwise_test_set_mutant(OMEGA_GPU_EW_SWIGLU); + double w2; c.mutant_rc = omega_gpu_swiglu_f32((uint32_t)n, g, u, got, &info); + c.mutant_bad = compare(got, want, n, 1e-5, 1e-6, &w2); + c.mutant_caught = c.mutant_rc != OMEGA_GPU_EW_OK || c.mutant_bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + record(c, out); free(g); free(u); free(got); free(want); + } } + /* 6. stale-SM-instruction-cache guard (cut 1b finding, omega #256): 10 distinct kernels + * (5 ops + 5 mutants) in rotation, two rounds. Every launch uploads code into a freshly + * allocated page, so a kernel routinely lands on the code address its predecessor used, + * and 10 keys evict the 8-slot kernel cache. Each clean launch must match the oracle and + * each mutant must still be caught; a stale icache would make a mutant pass or a clean + * kernel fail. Red was observed by cut 1b on matmul before its invalidate (receipt + * FB1-CUT1B-f629798); this build carries the invalidate, so the case is a guard. */ + { + enum { RN = 256, RH = 4, RD = 64 }; + float *x = malloc(RN * 4), *w = malloc(RN * 4), *u = malloc(RN * 4), *got = malloc(RN * 4), *want = malloc(RN * 4); + float *ch = malloc(RD / 2 * 4), *sh = malloc(RD / 2 * 4); + uint32_t *xu = malloc(RN * 4), *gu = malloc(RN * 4); + for (size_t i = 0; i < RN; i++) { x[i] = frand(&seed, -3.0f, 3.0f); w[i] = frand(&seed, 0.5f, 1.5f); u[i] = frand(&seed, -2.0f, 2.0f); xu[i] = lcg(&seed); } + oracle_rope_tables(RD, 17, 10000.0f, ch, sh); + Case c = { .name = "icache_reuse_rotation", .n = 20 }; + c.rc = OMEGA_GPU_EW_OK; c.mutant_rc = OMEGA_GPU_EW_OK; c.mutant_caught = 1; + const int order[10] = { OMEGA_GPU_EW_EX2, -OMEGA_GPU_EW_SWIGLU, OMEGA_GPU_EW_XCHG, -OMEGA_GPU_EW_EX2, OMEGA_GPU_EW_RMSNORM, + -OMEGA_GPU_EW_XCHG, OMEGA_GPU_EW_SWIGLU, -OMEGA_GPU_EW_ROPE, OMEGA_GPU_EW_ROPE, -OMEGA_GPU_EW_RMSNORM }; + for (int step = 0; step < 20; step++) { + int round = step / 10, k = step % 10; + int mut = order[k] < 0, op = mut ? -order[k] : order[k]; + omega_gpu_elementwise_test_set_mutant(mut ? op : 0); + int rc; size_t bad = 0; double wst; + switch (op) { + case OMEGA_GPU_EW_EX2: + for (size_t i = 0; i < RN; i++) want[i] = (float)exp2((double)x[i]); + rc = omega_gpu_ex2_f32(RN, x, got, &info); bad = compare(got, want, RN, 1e-6, 0.0, &wst); break; + case OMEGA_GPU_EW_XCHG: + rc = omega_gpu_shared_xchg_u32(RN, xu, gu, &info); + for (size_t i = 0; i < RN; i++) { if (gu[i] != xu[i ^ (OMEGA_GPU_EW_THREADS - 1)]) bad++; } + break; + case OMEGA_GPU_EW_RMSNORM: + oracle_rmsnorm(x, w, 1e-5f, want, RN); + rc = omega_gpu_rmsnorm_f32(1, RN, x, w, 1e-5f, got, &info); bad = compare(got, want, RN, 1e-5, 1e-6, &wst); break; + case OMEGA_GPU_EW_ROPE: + oracle_rope(x, RH, RD, ch, sh, want); + rc = omega_gpu_rope_f32(RH, RD, x, ch, sh, got, &info); bad = compare(got, want, RH * RD, 0.0, 0.0, &wst); break; + default: + oracle_swiglu(x, u, want, RN); + rc = omega_gpu_swiglu_f32(RN, x, u, got, &info); bad = compare(got, want, RN, 1e-5, 1e-6, &wst); break; + } + omega_gpu_elementwise_test_set_mutant(0); + int ok = rc == OMEGA_GPU_EW_OK && bad == 0; + if (!mut && !ok) { c.bad++; if (rc != OMEGA_GPU_EW_OK) c.rc = rc; printf(" rotation %d/%d: clean op %d FAILED rc=%s violations=%zu\n", round, k, op, omega_gpu_elementwise_rc_name(rc), bad); } + if (mut && ok) { c.mutant_bad++; c.mutant_caught = 0; printf(" rotation %d/%d: mutant op %d NOT caught\n", round, k, op); } + c.chip_ns += info.elapsed_ns; c.calls += info.chip_calls; c.unwritten += info.unwritten_words; + } + c.pass = c.bad == 0 && c.rc == OMEGA_GPU_EW_OK; + record(c, out); + free(x); free(w); free(u); free(got); free(want); free(ch); free(sh); free(xu); free(gu); + } + /* cut 4b: the whole battery (clean and mutant kernels, cache clears) ran on ONE device open */ + CHECK(omega_gpu_session_open_count() == 1, "device opened once for the battery (opens=%u)", omega_gpu_session_open_count()); + printf("device_opens=%u\n", omega_gpu_session_open_count()); + if (out) { + fprintf(out, "],\"device_opens\":%u,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", omega_gpu_session_open_count(), g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ELEMENTWISE_PASS" : "OMEGA_GPU_ELEMENTWISE_FAIL"); + fclose(out); + } + return 0; +} + +/* ------------------------------------------------------------ timing gate (cut 4b) */ +/* The persistent device: 100 calls each of rmsnorm 1x2048 and swiglu 5632 (the TinyLlama + * decode shapes), every call checked against the oracle, median wall time per call under + * 0.5 ms (cut 4 opened and closed the device per call: ~40 ms). The device must have been + * opened exactly once in this process. */ +static int cmp_d(const void *a, const void *b) { double x = *(const double *)a, y = *(const double *)b; return x < y ? -1 : x > y; } +static double now_ms(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * 1e3 + t.tv_nsec / 1e6; } +static int timing(const char *out_path) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + if (out_path && !out) { printf("cannot open %s\n", out_path); return 2; } + if (out) fprintf(out, "{\"schema\":\"OMEGA_GPU_ELEMENTWISE_TIMING_V1\",\"gate_median_ms\":0.5,\"calls\":100,\"cases\":["); + uint32_t seed = 0xfb1c004bu; + enum { N = 100 }; + for (int t = 0; t < 2; t++) { + const char *name = t == 0 ? "rmsnorm_1x2048" : "swiglu_5632"; + size_t n = t == 0 ? 2048 : 5632; + float *a = malloc(n * 4), *b = malloc(n * 4), *got = malloc(n * 4), *want = malloc(n * 4); + for (size_t i = 0; i < n; i++) { a[i] = frand(&seed, -3.0f, 3.0f); b[i] = t == 0 ? frand(&seed, 0.5f, 1.5f) : frand(&seed, -2.0f, 2.0f); } + if (t == 0) oracle_rmsnorm(a, b, 1e-5f, want, n); else oracle_swiglu(a, b, want, n); + double samples[N]; int ok_calls = 0; size_t bad_total = 0; double worst = 0; uint64_t chip_sum = 0; int rc_last = 0; + OmegaGpuEwInfo info; + /* warm-up: first call opens the device and generates the kernel (not timed) */ + int rc0 = t == 0 ? omega_gpu_rmsnorm_f32(1, (uint32_t)n, a, b, 1e-5f, got, &info) : omega_gpu_swiglu_f32((uint32_t)n, a, b, got, &info); + double first_ms = info.call_ns / 1e6; + CHECK(rc0 == OMEGA_GPU_EW_OK, "%s first call rc=%s err=\"%s\"", name, omega_gpu_elementwise_rc_name(rc0), omega_gpu_elementwise_last_error()); + for (int i = 0; i < N; i++) { + double t0 = now_ms(); + int rc = t == 0 ? omega_gpu_rmsnorm_f32(1, (uint32_t)n, a, b, 1e-5f, got, &info) : omega_gpu_swiglu_f32((uint32_t)n, a, b, got, &info); + samples[i] = now_ms() - t0; + double w; size_t bad = compare(got, want, n, 1e-5, 1e-6, &w); + if (w > worst) worst = w; + bad_total += bad; chip_sum += info.elapsed_ns; rc_last = rc; + if (rc == OMEGA_GPU_EW_OK && bad == 0) ok_calls++; + } + qsort(samples, N, sizeof samples[0], cmp_d); + double median = samples[N / 2], p90 = samples[N * 9 / 10], mn = samples[0], mx = samples[N - 1]; + uint32_t opens = omega_gpu_session_open_count(); + int pass = ok_calls == N && bad_total == 0 && median < 0.5 && opens == 1; + CHECK(pass, "timing %s ok_calls=%d/%d violations=%zu median_ms=%.3f opens=%u last_rc=%s err=\"%s\"", name, ok_calls, N, bad_total, median, opens, omega_gpu_elementwise_rc_name(rc_last), omega_gpu_elementwise_last_error()); + printf("%s timing %s first_call_ms=%.3f ok_calls=%d/%d violations=%zu worst_scaled_err=%g median_ms=%.3f p90_ms=%.3f min_ms=%.3f max_ms=%.3f chip_us_mean=%.1f device_opens=%u\n", + pass ? "PASS" : "FAIL", name, first_ms, ok_calls, N, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens); + if (out) fprintf(out, "%s{\"case\":\"%s\",\"first_call_ms\":%.3f,\"ok_calls\":%d,\"violations\":%zu,\"worst_scaled_err\":%g,\"median_ms\":%.4f,\"p90_ms\":%.4f,\"min_ms\":%.4f,\"max_ms\":%.4f,\"chip_us_mean\":%.1f,\"device_opens\":%u,\"pass\":%s}", + t ? "," : "", name, first_ms, ok_calls, bad_total, worst, median, p90, mn, mx, chip_sum / 1e3 / N, opens, pass ? "true" : "false"); + free(a); free(b); free(got); free(want); + } + if (out) { fprintf(out, "],\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_ELEMENTWISE_TIMING_PASS" : "OMEGA_GPU_ELEMENTWISE_TIMING_FAIL"); fclose(out); } + return 0; +} + +int main(int argc, char **argv) { + const char *out_path = NULL; int host = 0, timing_mode = 0; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--host-only") == 0) host = 1; + else if (strcmp(argv[i], "--timing") == 0) timing_mode = 1; + else if (strcmp(argv[i], "--out") == 0 && i + 1 < argc) out_path = argv[++i]; + } + if (host) host_only(); + else if (timing_mode) { if (timing(out_path) != 0) return 2; } + else if (chip(out_path) != 0) return 2; + printf("%s: %d checks, %d failed\n", g_failed ? "FAIL" : "PASS", g_checks, g_failed); + return g_failed ? 1 : 0; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.c new file mode 100644 index 000000000..fb821e4f3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.c @@ -0,0 +1,1139 @@ +/* omega_gpu_elementwise_api.c: FB-1 cut 4 (2026-10-04). See the header. + * + * Layout of this file: (1) kernel codegen on top of the BlackwellIR, with a + * small scheduler that writes every control word; (2) one launcher cloned from + * the chip-proven tensor matmul path (omega_blackwell_execute_matmul_tensor); + * (3) the public entry points, which split work into <= OMEGA_GPU_EW_MAX_CTAS + * launches and run the host-side bookkeeping. + * + * Scheduling rules (chip-learned, src/omega_numeric.c omega_numeric_check_patch): + * - a variable-latency result (LDG, LDS, LDC, LDCU, S2R, SHFL, MUFU) arrives through + * a scoreboard; the producer stalls >= 2 and the consumer waits on that SB; + * - a fixed-latency result (FADD FMUL FFMA IMAD IADD3 MOV LOP3 SHF) has no + * scoreboard: the producer stalls >= 5 before its consumer (we use 6); + * - a predicate producer (ISETP) stalls 14 before @P0 use (NAK SM120 padding); + * - stores (STG, STS) set a read barrier so the next instruction cannot overwrite + * the source register early. + * The emitter below serialises: every instruction waits on everything still + * pending. A final local pass tightens supported adjacent ALU pairs to 5 cycles. + */ +#include "omega_gpu_elementwise_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_bw_reconv.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" +#include "omega_gpu_session.h" +#include "sha256.h" +#include +#include +#include +#include + +/* ------------------------------------------------------------------ codegen */ + +#define CW(stall, wbar, rbar, wait) \ + (((uint32_t)(stall) << 9) | ((uint32_t)(wbar) << 14) | ((uint32_t)(rbar) << 17) | ((uint32_t)(wait) << 20)) +#define CW_YIELD 0x2000u +#define SB_NONE 7u +#define SB_GPR 0u /* variable-latency GPR results */ +#define SB_RD 1u /* store source-register read barrier */ +#define SB_UGPR 2u /* uniform-register results (LDCU) */ + +enum { K_FIXED, K_PRED, K_VAR, K_UVAR, K_STORE, K_SYNC, K_EXIT, K_BRA, K_BSSY, K_BSYNC }; + +#define EW_MAX_LOOPS 4 +typedef struct { + BlackwellIRProgram *p; + uint32_t pending; /* scoreboards set and not yet waited on */ + int err; + int loop_start[EW_MAX_LOOPS], loop_end[EW_MAX_LOOPS]; + int n_loops; + int open_start[EW_MAX_LOOPS]; /* starts of loops begun and not yet ended (nesting stack) */ + int depth; + BwRegions rg; /* structured reconvergence regions (omega #308) */ + int rg_mutant; /* test only: 1 = drop the BSYNC at join, 2 = corrupt the BSSY target (host sim must catch both) */ + int exited; /* a predicated EXIT was emitted: some lanes of a warp may be gone */ + int exit_sync_ok; /* test only: lets a kernel put SHFL/BAR after a predicated EXIT (the negative control R6) */ + int test_path; /* building for omega_gpu_elementwise_codegen_ir (host tests), never for a launch */ +} Em; + +static void emit(Em *e, BlackwellIRInsn in, int kind) { + uint32_t wait = e->pending; + switch (kind) { + case K_FIXED: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_PRED: in.control = CW(14, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_VAR: in.control = CW(4, SB_GPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_GPR; break; + case K_UVAR: in.control = CW(4, SB_UGPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_UGPR; break; + case K_STORE: in.control = CW(4, SB_NONE, SB_RD, wait) | CW_YIELD; e->pending = 1u << SB_RD; break; + case K_SYNC: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + /* a predicated EXIT or BRA that falls through must not be the only waiter */ + case K_EXIT: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + case K_BRA: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + /* BSSY / BSYNC read no registers; the stall counts (1 and 5, both with yield) are the ones + * nvcc 13.0.88 writes for sm_121 (docs/gpu-reconvergence-308.md). They wait on everything + * pending so that, as for every branch here, nothing is in flight across a control edge + * and the straight-line scoreboard walk in the tests stays valid. */ + case K_BSSY: in.control = CW(1, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + case K_BSYNC: in.control = CW(5, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + default: e->err = -1; return; + } + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; /* append returns the index */ +} + +static int V(Em *e) { int v = omega_bw_ir_alloc_vreg(e->p); if (v < 0) e->err = -1; return v; } +static int V64(Em *e) { int v = omega_bw_ir_alloc_vreg64(e->p); if (v < 0) e->err = -1; return v; } +static int UV64(Em *e) { int v = omega_bw_ir_alloc_uvreg64(e->p); if (v < 0) e->err = -1; return v; } +static int here(const Em *e) { return (int)e->p->count; } + +#define NOREG -1 +static BlackwellIRInsn I0(BlackwellIROpcode op) { + BlackwellIRInsn in; memset(&in, 0, sizeof in); + in.op = op; in.dst_vreg = NOREG; in.src1_vreg = NOREG; in.src2_vreg = NOREG; in.src3_vreg = NOREG; in.ureg = NOREG; + return in; +} +static void ldcu64(Em *e, int udst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDCU64); i.dst_vreg = udst; i.imm = off; i.is_uniform = true; emit(e, i, K_UVAR); } +static void ldc64(Em *e, int dst64, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC64); i.dst_vreg = dst64; i.imm = off; emit(e, i, K_VAR); } +static void ldc32(Em *e, int dst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC); i.dst_vreg = dst; i.imm = off; emit(e, i, K_VAR); } +static void s2r(Em *e, int dst, uint32_t sr) { BlackwellIRInsn i = I0(BW_IR_S2R); i.dst_vreg = dst; i.imm = sr; emit(e, i, K_VAR); } +static void movi(Em *e, int dst, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_MOV_IMM); i.dst_vreg = dst; i.imm = imm; emit(e, i, K_FIXED); } +static void movf(Em *e, int dst, float f) { uint32_t u; memcpy(&u, &f, 4); movi(e, dst, u); } +static void movrz(Em *e, int dst) { BlackwellIRInsn i = I0(BW_IR_MOV_RZ); i.dst_vreg = dst; emit(e, i, K_FIXED); } +/* dst = a * imm + c (c may be NOREG for RZ) */ +static void imadi(Em *e, int dst, int a, uint32_t imm, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); } +/* dst = a * b + c (registers) */ +static void imadr(Em *e, int dst, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void iadd3(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IADD3); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void lop3xor(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_LOP3_XOR); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +/* dst64 = idx * 4 + ptr64 (byte address of element idx) */ +static void addr4(Em *e, int dst64, int idx, int ptr64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.imm = 4; i.src3_vreg = ptr64; emit(e, i, K_FIXED); } +static void ldg(Em *e, int dst, int addr64, int udesc) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit(e, i, K_VAR); } +/* Independent loads (LDG_E from global, or LDS32 from shared memory with ureg NOREG) issued + * back to back (campaign C2a, 2026-10-05). The first load + * waits on whatever is pending; the others wait on nothing, so all n are in flight together. + * Every load sets SB_GPR (a counting scoreboard), so the next instruction waits once for all + * of them instead of once per load. Fails the build if a load address is a destination of the + * group or a destination repeats (the later loads would read an operand still in flight). */ +static void ld_group(Em *e, BlackwellIROpcode op, int n, const int *dst, const int *addr, int ureg) { + for (int i = 0; i < n; i++) + for (int k = 0; k < n; k++) + if (addr[i] == dst[k] || (k != i && dst[i] == dst[k])) { e->err = -1; return; } + for (int i = 0; i < n; i++) { + if (op != BW_IR_LDG_E && op != BW_IR_LDS32) { e->err = -1; return; } + BlackwellIRInsn in = I0(op); in.dst_vreg = dst[i]; in.src1_vreg = addr[i]; in.ureg = ureg; + if (i == 0) { emit(e, in, K_VAR); continue; } + in.control = CW(4, SB_GPR, SB_NONE, 0) | CW_YIELD; /* nonzero, so the encoder keeps it */ + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; + } +} +static void stg(Em *e, int addr64, int val, int udesc) { BlackwellIRInsn i = I0(BW_IR_STG_E); i.src1_vreg = addr64; i.src2_vreg = val; i.ureg = udesc; emit(e, i, K_STORE); } +static void fadd(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FADD); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void fsub(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FSUB); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void fmul(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FMUL); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void ffma(Em *e, int d, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_FFMA); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void mufu(Em *e, BlackwellIROpcode op, int d, int a) { BlackwellIRInsn i = I0(op); i.dst_vreg = d; i.src1_vreg = a; emit(e, i, K_VAR); } +/* Cross-lane and warp-ending ops are refused inside an open reconvergence region (omega #308): + * a SHFL or BAR.SYNC reached by a split warp reads inactive lanes / counts a partial warp + * (undefined; the 2026-10-04 attention bug), and a lane that EXITs inside a region can no + * longer be joined. The build fails closed instead of emitting such code. */ +/* Cross-lane instructions (SHFL, BAR.SYNC) need the whole warp present. The emitter refuses + * them (fails the build) inside an open reconvergence region, where lanes may be on different + * paths, and after a predicated EXIT, where lanes may be gone for good: a SHFL then reads + * inactive lanes (undefined on the chip, the attention failure of 2026-10-04). A kernel that + * must drop lanes before a cross-lane step clamps them instead and exits them afterwards. */ +static int warp_split(Em *e) { if (e->rg.depth > 0 || (e->exited && !e->exit_sync_ok)) { e->err = -1; return 1; } return 0; } +static void shfl_down(Em *e, int d, int a, uint32_t off) { if (warp_split(e)) return; BlackwellIRInsn i = I0(BW_IR_SHFL_DOWN); i.dst_vreg = d; i.src1_vreg = a; i.imm = off; emit(e, i, K_VAR); } +static void sts32(Em *e, int addr, int val) { BlackwellIRInsn i = I0(BW_IR_STS32); i.src1_vreg = addr; i.src2_vreg = val; emit(e, i, K_STORE); } +static void lds32(Em *e, int d, int addr) { BlackwellIRInsn i = I0(BW_IR_LDS32); i.dst_vreg = d; i.src1_vreg = addr; emit(e, i, K_VAR); } +static void bar_sync(Em *e) { if (warp_split(e)) return; emit(e, I0(BW_IR_BAR_SYNC), K_SYNC); } +static void isetp_ge_u32(Em *e, int a, int b) { BlackwellIRInsn i = I0(BW_IR_ISETP_GE_U32); i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_PRED); } +/* An EXIT inside a region would leave the barrier waiting for a lane that never comes: refused. */ +static void exit_if_p0(Em *e) { if (e->rg.depth > 0) { e->err = -1; return; } e->exited = 1; BlackwellIRInsn i = I0(BW_IR_EXIT); i.predicate_p0 = true; emit(e, i, K_EXIT); } +static void bra_back_if_not_p0(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.predicate_not = true; i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } +static void tail(Em *e) { + emit(e, I0(BW_IR_EXIT), K_EXIT); + BlackwellIRInsn self = I0(BW_IR_BRA); /* the self-branch every kernel here ends with */ + self.control = 0x000fc000u; + if (omega_bw_ir_append(e->p, &self) < 0) e->err = -1; +} +/* Loops may nest (prime race cut): begin pushes the start, end pops it, so the inner + * loop is closed (and its liveness fixed) first. For the single-level loops above this + * is exactly the old behaviour. */ +static void loop_begin(Em *e) { if (e->depth >= EW_MAX_LOOPS) { e->err = -1; return; } e->open_start[e->depth++] = here(e); } +/* Closing a loop: every value defined before the loop and read inside it stays + * live until the back-branch, otherwise the linear-scan allocator (which knows + * nothing about back-edges) would hand its register to a body temporary whose + * first definition comes after the value's last textual use (e.g. the scale y + * in rmsnorm pass 2), and the next iteration would read garbage. */ +static void loop_end(Em *e) { + if (e->n_loops >= EW_MAX_LOOPS || e->depth <= 0) { e->err = -1; return; } + int start = e->open_start[--e->depth], end = here(e) - 1; + e->loop_start[e->n_loops] = start; + e->loop_end[e->n_loops] = end; + e->n_loops++; + OmegaRegAlloc *ra = &e->p->regalloc; + for (int v = 0; v < ra->num_vregs; v++) { + OmegaLiveInterval *iv = &ra->intervals[v]; + if (iv->first_def >= 0 && iv->first_def < start && iv->last_use >= start && iv->last_use < end) iv->last_use = end; + } +} + +/* Kernel argument words (constant bank 0, same slots as the matmul path): + * 0x380 a, 0x388 b, 0x390 c (64-bit each), then four 32-bit parameters. */ +#define ARG_A 0x380u +#define ARG_B 0x388u +#define ARG_C 0x390u +#define ARG_P0 0x398u +#define ARG_P1 0x39cu +#define ARG_P2 0x3a0u +#define ARG_P3 0x3a4u +#define ARG_P4 0x3a8u +#define DESC_OFF 0x358u + +typedef struct { int udesc, pa, pb, pc, tid, cta; } Pro; +static Pro prologue(Em *e) { + Pro r; + r.udesc = UV64(e); r.pa = V64(e); r.pb = V64(e); r.pc = V64(e); r.tid = V(e); r.cta = V(e); + ldcu64(e, r.udesc, DESC_OFF); + ldc64(e, r.pa, ARG_A); ldc64(e, r.pb, ARG_B); ldc64(e, r.pc, ARG_C); + s2r(e, r.tid, BW_SR_TID_X); s2r(e, r.cta, BW_SR_CTAID_X); + return r; +} + +/* out[i] = 2^a[i] for i < n (n = P0). Threads 128, grid ceil(n/128). Mutant: 2^(a+1). */ +static void gen_ex2(Em *e, int mutant) { + Pro p = prologue(e); + int n = V(e), i = V(e), off = V64(e), x = V(e), y = V(e); + ldc32(e, n, ARG_P0); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + isetp_ge_u32(e, i, n); + exit_if_p0(e); + addr4(e, off, i, p.pa); + ldg(e, x, off, p.udesc); + if (mutant) { int one = V(e); movf(e, one, 1.0f); fadd(e, x, x, one); } + mufu(e, BW_IR_MUFU_EX2, y, x); + addr4(e, off, i, p.pc); + stg(e, off, y, p.udesc); + tail(e); +} + +/* out[i] = a[i ^ 127] within each CTA of 128 (n % 128 == 0). STS own word, BAR.SYNC, + * LDS the partner word. Mutant: LDS own word (no exchange). */ +static void gen_xchg(Em *e, int mutant) { + Pro p = prologue(e); + int i = V(e), off = V64(e), x = V(e), saddr = V(e), paddr = V(e), mask = V(e), y = V(e); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + addr4(e, off, i, p.pa); + ldg(e, x, off, p.udesc); + imadi(e, saddr, p.tid, 4, NOREG); + sts32(e, saddr, x); + bar_sync(e); + if (mutant) { + lds32(e, y, saddr); + } else { + movi(e, mask, OMEGA_GPU_EW_THREADS - 1); + lop3xor(e, paddr, p.tid, mask); + imadi(e, paddr, paddr, 4, NOREG); + lds32(e, y, paddr); + } + addr4(e, off, i, p.pc); + stg(e, off, y, p.udesc); + tail(e); +} + +/* One CTA of 128 threads per row. P0 = dim/128 (loop count), P1 = bits(1/dim), + * P2 = bits(eps), P3 = dim. Mutant: the warp tree drops the last SHFL step. */ +static void gen_rmsnorm(Em *e, int mutant) { + Pro p = prologue(e); + int nk = V(e), invd = V(e), eps = V(e), dim = V(e); + int rowbase = V(e), idx = V(e), col = V(e), k = V(e), acc = V(e), cT = V(e), c1 = V(e); + int off = V64(e), x = V(e), t = V(e); + ldc32(e, nk, ARG_P0); ldc32(e, invd, ARG_P1); ldc32(e, eps, ARG_P2); ldc32(e, dim, ARG_P3); + imadr(e, rowbase, p.cta, dim, NOREG); + iadd3(e, idx, rowbase, p.tid); + movrz(e, acc); movrz(e, k); + movi(e, cT, OMEGA_GPU_EW_THREADS); movi(e, c1, 1); + loop_begin(e); + int l1 = here(e); + addr4(e, off, idx, p.pa); + ldg(e, x, off, p.udesc); + ffma(e, acc, x, x, acc); + iadd3(e, idx, idx, cT); + iadd3(e, k, k, c1); + isetp_ge_u32(e, k, nk); + bra_back_if_not_p0(e, l1); + loop_end(e); + static const uint32_t steps[5] = { 16, 8, 4, 2, 1 }; + for (int s = 0; s < (mutant ? 4 : 5); s++) { shfl_down(e, t, acc, steps[s]); fadd(e, acc, acc, t); } + int saddr = V(e); + imadi(e, saddr, p.tid, 4, NOREG); + sts32(e, saddr, acc); + bar_sync(e); + int a0 = V(e), a1 = V(e), a2 = V(e), a3 = V(e), s0 = V(e), s1 = V(e), s2 = V(e), s3 = V(e), sum = V(e); + movrz(e, a0); movi(e, a1, 128); movi(e, a2, 256); movi(e, a3, 384); + lds32(e, s0, a0); lds32(e, s1, a1); lds32(e, s2, a2); lds32(e, s3, a3); + fadd(e, sum, s0, s1); fadd(e, sum, sum, s2); fadd(e, sum, sum, s3); + int v = V(e), y = V(e), u = V(e), cmh = V(e), c15 = V(e); + fmul(e, v, sum, invd); + fadd(e, v, v, eps); + mufu(e, BW_IR_MUFU_RSQ, y, v); + movf(e, cmh, -0.5f); movf(e, c15, 1.5f); + fmul(e, u, v, y); fmul(e, u, u, y); ffma(e, u, u, cmh, c15); fmul(e, y, y, u); + int offw = V64(e), offc = V64(e), w = V(e), o = V(e); + iadd3(e, idx, rowbase, p.tid); + imadi(e, col, p.tid, 1, NOREG); /* col = tid (the encoder maps a missing src2 to R0, not RZ, so no IADD3 here) */ + movrz(e, k); + loop_begin(e); + int l2 = here(e); + addr4(e, off, idx, p.pa); + ldg(e, x, off, p.udesc); + addr4(e, offw, col, p.pb); + ldg(e, w, offw, p.udesc); + fmul(e, o, x, y); + fmul(e, o, o, w); + addr4(e, offc, idx, p.pc); + stg(e, offc, o, p.udesc); + iadd3(e, idx, idx, cT); + iadd3(e, col, col, cT); + iadd3(e, k, k, c1); + isetp_ge_u32(e, k, nk); + bra_back_if_not_p0(e, l2); + loop_end(e); + tail(e); +} + +/* One CTA of head_dim/2 threads per head. P0 = head_dim, P1 = head_dim/2. + * a = vector, b = table (cos in the first half of each head, sin in the second). + * Mutant: out0 = q0*cos + q1*sin. */ +static void gen_rope(Em *e, int mutant) { + Pro p = prologue(e); + int hd = V(e), half = V(e), i0 = V(e), i1 = V(e), off0 = V64(e), off1 = V64(e); + int q0 = V(e), q1 = V(e), c = V(e), s = V(e), t0 = V(e), t1 = V(e), o0 = V(e), o1 = V(e); + ldc32(e, hd, ARG_P0); ldc32(e, half, ARG_P1); + imadr(e, i0, p.cta, hd, p.tid); + iadd3(e, i1, i0, half); + addr4(e, off0, i0, p.pa); ldg(e, q0, off0, p.udesc); + addr4(e, off1, i1, p.pa); ldg(e, q1, off1, p.udesc); + addr4(e, off0, i0, p.pb); ldg(e, c, off0, p.udesc); + addr4(e, off1, i1, p.pb); ldg(e, s, off1, p.udesc); + fmul(e, t0, q0, c); fmul(e, t1, q1, s); + if (mutant) fadd(e, o0, t0, t1); else fsub(e, o0, t0, t1); + fmul(e, t0, q0, s); fmul(e, t1, q1, c); + fadd(e, o1, t0, t1); + addr4(e, off0, i0, p.pc); stg(e, off0, o0, p.udesc); + addr4(e, off1, i1, p.pc); stg(e, off1, o1, p.udesc); + tail(e); +} + +/* out[i] = g/(1+2^(g*-log2e)) * up for i < n (P0). Mutant: 2^(g*+log2e). */ +static void gen_swiglu(Em *e, int mutant) { + Pro p = prologue(e); + int n = V(e), i = V(e), off = V64(e), g = V(e), u = V(e), k = V(e), t = V(e), ex = V(e), d = V(e), r = V(e), one = V(e), o = V(e); + ldc32(e, n, ARG_P0); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + isetp_ge_u32(e, i, n); + exit_if_p0(e); + addr4(e, off, i, p.pa); ldg(e, g, off, p.udesc); + addr4(e, off, i, p.pb); ldg(e, u, off, p.udesc); + movf(e, k, mutant ? 1.4426950408889634f : -1.4426950408889634f); + movf(e, one, 1.0f); + fmul(e, t, g, k); + mufu(e, BW_IR_MUFU_EX2, ex, t); + fadd(e, d, ex, one); + mufu(e, BW_IR_MUFU_RCP, r, d); + fmul(e, o, g, r); + fmul(e, o, o, u); + addr4(e, off, i, p.pc); + stg(e, off, o, p.udesc); + tail(e); +} + +/* ------------------------------------------- prime race sieve (2026-10-05) */ +static void lop3lut(Em *e, int d, int a, int b, int c, uint32_t lut) { BlackwellIRInsn i = I0(BW_IR_LOP3_LUT); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; i.imm = lut & 0xffu; emit(e, i, K_FIXED); } +static void shl_r(Em *e, int d, int a, int n) { BlackwellIRInsn i = I0(BW_IR_SHF_L_U32); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = n; emit(e, i, K_FIXED); } +static void shr_i(Em *e, int d, int a, uint32_t n) { BlackwellIRInsn i = I0(BW_IR_SHF_R); i.dst_vreg = d; i.src1_vreg = a; i.imm = n; emit(e, i, K_FIXED); } +static void imadhi(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IMAD_HI_U32); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +/* dst64 = a * imm + c64 (IMAD.WIDE.U32 immediate form) */ +static void widei(Em *e, int dst64, int a, uint32_t imm, int c64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c64; emit(e, i, K_FIXED); } +/* @P0 BRA forward; returns the instruction index for bra_patch_here */ +static int bra_fwd_if_p0(Em *e) { int at = here(e); BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.imm = 1; emit(e, i, K_BRA); return at; } +static void bra_patch_here(Em *e, int at) { if (e->err == 0 && at >= 0 && at < here(e)) e->p->insns[at].imm = (uint32_t)(here(e) - at); else e->err = -1; } +static void bra_always(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } + +/* ---- structured reconvergence regions (omega #308; bookkeeping in omega_bw_reconv.h) ---- + * region_begin: BSSY Bd (d = nesting depth), fails closed when no barrier register is left. + * region_exit: a forward branch out of the innermost region, patched to its BSYNC at join + * (RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0). + * region_join: BSYNC Bd; patches the BSSY to the instruction after it and every exit to it. + * Usage: divergent loop = region_begin; L: isetp; region_exit(RX_IF_P0); body; bra_always(L); region_join. + * if/else diamond = region_begin; isetp; t = bra_fwd_if_p0; then; region_exit(RX_ALWAYS); + * bra_patch_here(t); else; region_join. */ +enum { RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0 }; +static int region_begin(Em *e) { + int bar = bw_regions_next_bar(&e->rg); + if (bar < 0) { e->err = -1; return -1; } + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BSSY); i.bar_reg = (uint8_t)bar; i.imm = 2; emit(e, i, K_BSSY); + if (bw_regions_begin(&e->rg, at) < 0) e->err = -1; + return bar; +} +static void region_exit(Em *e, int cond) { + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = 1; + if (cond != RX_ALWAYS) { i.predicate_p0 = true; i.predicate_not = (cond == RX_IF_NOT_P0); } + emit(e, i, K_BRA); + if (bw_regions_exit(&e->rg, at) < 0) e->err = -1; +} +static void region_join(Em *e) { + if (e->rg.depth <= 0) { e->err = -1; return; } + int d = e->rg.depth - 1, bsync = here(e); + BlackwellIRInsn i = I0(e->rg_mutant == 1 ? BW_IR_NOP : BW_IR_BSYNC); i.bar_reg = (uint8_t)d; emit(e, i, K_BSYNC); + if (e->rg_mutant == 1) { + /* negative control (host sim only): the join is a NOP; patch as the real join would */ + BwRegions *r = &e->rg; r->depth--; + e->p->insns[r->bssy_at[d]].imm = (uint32_t)(bsync + 1 - r->bssy_at[d]); + for (int k = 0; k < r->n_exits[d]; k++) e->p->insns[r->exits[d][k]].imm = (uint32_t)(bsync - r->exits[d][k]); + return; + } + if (bw_regions_join(&e->rg, e->p, bsync) != d) e->err = -1; + if (e->rg_mutant == 2) e->p->insns[e->rg.bssy_at[d]].imm += 1; /* negative control: BSSY names the wrong join */ +} + +/* Word-parallel odd-only sieve (docs: handoff 2026-10-05 DESIGN "GPU kernel (native)"). + * Thread t owns 32-bit output words w = t, t + S, t + 2S, ... (S = P1 = threads launched; + * the I42 envelope caps a launch at OMEGA_GPU_EW_MAX_CTAS CTAs, so a grid-stride loop + * replaces one thread per word). Every word has exactly one writer; no atomics. + * Bit j of word w is the odd number 2(32w + j) + 1. + * Arguments: a (0x380) = prime table, entries {p, magic = ceil(2^32 / p), k0 = (p*p - 1)/2} + * (12 bytes, ascending p, odd primes <= isqrt(limit)) followed by ONE sentinel entry with + * k0 = 0xffffffff that ends every scan; c (0x390) = output words; + * P0 = nwords, P1 = S, P2 = last word index, P3 = ~tailmask (bits past the last odd). + * Range: limit < 2^32 (so base, k0 < 2^31 and the sign-bit tricks below hold). + * Per word: base = 32w; for each prime while k0 < base + 32: + * d = base - k0; neg = d >> 31 (k0 > base); dpos = neg ? 0 : d; jadd = neg ? k0 - base : 0 + * q = hi32(dpos * magic) (= floor(dpos/p) or one more: magic is rounded up) + * r = dpos - q*p (q one too big -> r = (dpos mod p) - p, wrapped) + * j = p - r; j -= p * ((r - 1) >> 31) (r == 0 -> 0; wrapped r -> p - (dpos mod p)) + * One fix covers both cases: with q one too big, dpos mod p >= p - dpos*e/2^32 > p/2 > 0 + * (e = magic*p - 2^32 < p, dpos < 2^31), so the true remainder is never 0 there and + * p - r - p = p - (dpos mod p) is the right offset. A separate "r += p if wrapped" step was + * removed after a negative control showed it changes no output (host sim, limit 1e7, where + * the overshoot occurs 268 times; bench/prime_race/tests magic_model). + * j += jadd; while j < 32 { acc |= 1 << j; j += p } + * then acc |= (w == 0) (the number 1), word = ~(acc | (w == last ? ~tailmask : 0)). + * Branch-free except the loop branches. Mutant: drops the j fix (j = p - r unreduced), so words where + * base - k0 is a multiple of p (or q overshot) mark the wrong bits. + * + * staged = 1 (OMEGA_GPU_EW_PRIME_SIEVE_SHARED, campaign C3): P4 = table words, sentinel included + * (3 per entry). The CTA first copies the table into shared memory at offset 0 (thread t copies + * words t, t + 128, ...), BAR_SYNC, then the prime loop reads shared memory (LDS) instead of + * uncached global memory. Every thread reaches the barrier: the w >= nwords exit comes after + * it. The launch must declare at least 4 * P4 bytes of shared memory. + * + * divergent (omega #308, regression R1): 0 = the warp-uniform mark loop above (campaign C5). + * 1 = the original lane-dependent mark loop (omega 888a011: `while j < 32 { acc |= 1 << j; j += p }`) + * wrapped in a reconvergence region. 2 = as 1, and the prime loop (whose break `k0 >= base + 32` + * is also lane-dependent: every lane sieves a different word) wrapped in an outer region, so the + * mark loop's region nests inside it (B0 outer, B1 inner). */ +static void gen_prime_sieve(Em *e, int mutant, int staged, int divergent) { + Pro pr = prologue(e); + int nwords = V(e), stride = V(e), lastw = V(e), tailinv = V(e); + int one = V(e), c32 = V(e), cm1 = V(e), w = V(e); + ldc32(e, nwords, ARG_P0); ldc32(e, stride, ARG_P1); ldc32(e, lastw, ARG_P2); ldc32(e, tailinv, ARG_P3); + movi(e, one, 1); movi(e, c32, 32); movi(e, cm1, 0xffffffffu); + int c4 = -1, c8 = -1, c12 = -1; + if (staged) { + int twords = V(e), i = V(e), ga = V64(e), val = V(e), sa = V(e); + c4 = V(e); c8 = V(e); c12 = V(e); + ldc32(e, twords, ARG_P4); + movi(e, c4, 4); movi(e, c8, 8); movi(e, c12, 12); + imadi(e, i, pr.tid, 1, NOREG); + /* The staging loop's trip count differs per thread (thread t copies words t, t+128, ...), + * so its exit splits the warp. The divergent variants rejoin the warp before BAR.SYNC + * (a barrier is not a reconvergence point: the fragments would stay split for the rest + * of the kernel). The production kernel keeps the 2026-10-05 C3 form unchanged. */ + if (divergent) region_begin(e); + loop_begin(e); /* staging loop */ + int ls = here(e); + isetp_ge_u32(e, i, twords); + int sdone = -1; + if (divergent) region_exit(e, RX_IF_P0); else sdone = bra_fwd_if_p0(e); + addr4(e, ga, i, pr.pa); + ldg(e, val, ga, pr.udesc); + imadi(e, sa, i, 4, NOREG); + sts32(e, sa, val); + imadi(e, i, one, OMEGA_GPU_EW_THREADS, i); + bra_always(e, ls); + loop_end(e); + if (divergent) region_join(e); else bra_patch_here(e, sdone); + bar_sync(e); + } + imadi(e, w, pr.cta, OMEGA_GPU_EW_THREADS, pr.tid); + isetp_ge_u32(e, w, nwords); + exit_if_p0(e); + + /* ptr, a64, a64m: global addresses, or (staged) 32-bit shared offsets */ + int base = V(e), basep32 = V(e), acc = V(e); + int ptr = staged ? V(e) : V64(e), a64 = staged ? V(e) : V64(e), a64m = staged ? V(e) : V64(e); + int p = V(e), magic = V(e), k0 = V(e), negp = V(e), d = V(e), neg = V(e), nd = V(e), dpos = V(e), jadd = V(e); + int q = V(e), r = V(e), j = V(e), t = V(e), z = V(e), bit = V(e); + int e1 = V(e), m = V(e), word = V(e), oaddr = V64(e); + int tt = V(e), jj = V(e), sh = V(e), c31 = V(e), cm32 = V(e); + movi(e, c31, 31); movi(e, cm32, 0xffffffe0u); + + loop_begin(e); /* word loop */ + int lw = here(e); + imadi(e, base, w, 32, NOREG); + iadd3(e, basep32, base, c32); + movrz(e, acc); + if (staged) movrz(e, ptr); else widei(e, ptr, one, 0, pr.pa); + + if (divergent >= 2) region_begin(e); /* outer region: the prime loop's break is lane-dependent */ + loop_begin(e); /* prime loop */ + int lp = here(e); + /* one memory round trip per prime: all three entry words load together (C2a). The + * sentinel entry is a whole entry, so loading p and magic before the k0 test is in bounds. */ + if (staged) { iadd3(e, a64, ptr, c8); iadd3(e, a64m, ptr, c4); } + else { widei(e, a64, one, 8, ptr); widei(e, a64m, one, 4, ptr); } + { + const int dsts[3] = { k0, p, magic }, adrs[3] = { a64, ptr, a64m }; + if (staged) ld_group(e, BW_IR_LDS32, 3, dsts, adrs, NOREG); + else ld_group(e, BW_IR_LDG_E, 3, dsts, adrs, pr.udesc); + } + isetp_ge_u32(e, k0, basep32); + int brk = -1; + if (divergent >= 2) region_exit(e, RX_IF_P0); else brk = bra_fwd_if_p0(e); + imadi(e, negp, p, 0xffffffffu, NOREG); /* -p */ + imadi(e, d, k0, 0xffffffffu, base); /* base - k0 */ + shr_i(e, neg, d, 31); + imadi(e, nd, d, 0xffffffffu, NOREG); /* -d */ + imadr(e, dpos, neg, nd, d); /* d - neg*d */ + imadr(e, jadd, neg, nd, NOREG); /* neg * (k0 - base) */ + imadhi(e, q, dpos, magic); + imadr(e, r, q, negp, dpos); /* dpos - q*p */ + imadi(e, j, r, 0xffffffffu, p); /* p - r */ + if (!mutant) { + iadd3(e, t, r, cm1); + shr_i(e, z, t, 31); /* r == 0, or r wrapped (q one too big) */ + imadr(e, j, z, negp, j); /* j - p */ + } + iadd3(e, j, j, jadd); + + /* mark loop (campaign C5): the trip count depends only on p, so every active lane runs the + * same ceil(32/p) steps and the warp never splits here (all active lanes are on the same + * prime). Bits past this word are masked out instead of branched around. The old loop ran + * "while j < 32", a lane-dependent branch with no reconvergence point. */ + if (divergent) { + /* R1: the 888a011 mark loop, lane-dependent trip count, inside a region. Each lane + * leaves at its own iteration (the exit jumps to the BSYNC) and the warp reunites there. */ + region_begin(e); + loop_begin(e); + int li = here(e); + isetp_ge_u32(e, j, c32); + region_exit(e, RX_IF_P0); + shl_r(e, bit, one, j); + lop3lut(e, acc, acc, bit, NOREG, 0xfc); /* acc | bit */ + iadd3(e, j, j, p); + bra_always(e, li); + loop_end(e); + region_join(e); + } else { + movrz(e, tt); + loop_begin(e); + int li = here(e); + isetp_ge_u32(e, tt, c32); + int done = bra_fwd_if_p0(e); + iadd3(e, jj, j, tt); + lop3lut(e, sh, jj, c31, NOREG, 0xc0); /* jj & 31 */ + shl_r(e, bit, one, sh); + iadd3(e, t, jj, cm32); + shr_i(e, z, t, 31); /* jj < 32 (j <= p + 31, far below 2^31) */ + imadi(e, m, z, 0xffffffffu, NOREG); /* all ones when jj < 32, else 0 */ + lop3lut(e, acc, acc, bit, m, 0xf8); /* acc | (bit & m) */ + iadd3(e, tt, tt, p); + bra_always(e, li); + loop_end(e); + bra_patch_here(e, done); + } + + if (staged) iadd3(e, ptr, ptr, c12); else widei(e, ptr, one, 12, ptr); + bra_always(e, lp); + loop_end(e); + if (divergent >= 2) region_join(e); else bra_patch_here(e, brk); + + iadd3(e, t, w, cm1); + shr_i(e, z, t, 31); /* w == 0: the number 1 is not prime */ + lop3lut(e, acc, acc, z, NOREG, 0xfc); + lop3xor(e, e1, w, lastw); + iadd3(e, t, e1, cm1); + shr_i(e, z, t, 31); /* w == last word */ + imadr(e, m, z, tailinv, NOREG); + lop3lut(e, word, acc, m, NOREG, 0x03); /* ~(acc | m) */ + addr4(e, oaddr, w, pr.pc); + stg(e, oaddr, word, pr.udesc); + /* IMAD, not IADD3: the IADD3 encoder ignores the scheduler control word (fixed + * 0x010fca00), so right after a store it would not wait on the read barrier */ + imadr(e, w, stride, one, w); + isetp_ge_u32(e, w, nwords); + bra_back_if_not_p0(e, lw); + loop_end(e); + tail(e); +} + +/* ---- reconvergence probes (omega #308, regressions R3..R6 and the resource bound) ---- + * All: a, b = u32 inputs, out = u32, P0 = n; 128 threads, grid ceil(n/128); launched by + * omega_gpu_reconv_probe_u32. A lane past n clamps its index to n-1 so that it loads valid + * data and takes part in the warp-wide SHFL; it exits only after the SHFL, before its store. + * Each probe computes a per-lane r on divergent paths, joins, then + * out[i] = r + 4099 * s, s = r of lane (lane+1) in the same warp (SHFL.DOWN 1; lane 31: own r) + * so a lane that joined late, never, or with the wrong value shows in the neighbour's word too. + * The host oracle is rc_oracle in tests/gpu_reconv_test.c. */ +typedef struct { Pro pr; int n, i, idx, x, y, r, s, one, cm1; } Rp; +static Rp rp_begin(Em *e) { + Rp k; memset(&k, 0, sizeof k); + k.pr = prologue(e); + k.n = V(e); k.i = V(e); k.idx = V(e); k.x = V(e); k.y = V(e); k.r = V(e); k.s = V(e); k.one = V(e); k.cm1 = V(e); + int nm1 = V(e), d = V(e), neg = V(e), off = V64(e); + ldc32(e, k.n, ARG_P0); + movi(e, k.one, 1); movi(e, k.cm1, 0xffffffffu); + imadi(e, k.i, k.pr.cta, OMEGA_GPU_EW_THREADS, k.pr.tid); + iadd3(e, nm1, k.n, k.cm1); /* n - 1 */ + imadi(e, d, k.i, 0xffffffffu, nm1); /* (n - 1) - i, top bit set when i > n - 1 */ + shr_i(e, neg, d, 31); + imadr(e, k.idx, neg, d, k.i); /* i, or n - 1 when past the end */ + addr4(e, off, k.idx, k.pr.pa); ldg(e, k.x, off, k.pr.udesc); + addr4(e, off, k.idx, k.pr.pb); ldg(e, k.y, off, k.pr.udesc); + return k; +} +static void rp_end(Em *e, const Rp *k) { + int out = V(e), off = V64(e); + shfl_down(e, k->s, k->r, 1); + imadi(e, out, k->s, 4099, k->r); + isetp_ge_u32(e, k->i, k->n); + exit_if_p0(e); + addr4(e, off, k->i, k->pr.pc); + stg(e, off, out, k->pr.udesc); + tail(e); +} +/* R3: if/else with sides of different length. x >= y: r = f(x, y) (5 steps); else r = x + 1. + * Math mutant: the long side is one too big. */ +static void gen_rc_diamond(Em *e, int mutant) { + Rp k = rp_begin(e); + int t = V(e), u = V(e); + region_begin(e); + isetp_ge_u32(e, k.x, k.y); + int els = bra_fwd_if_p0(e); + iadd3(e, k.r, k.x, k.one); /* short side */ + region_exit(e, RX_ALWAYS); + bra_patch_here(e, els); + imadi(e, t, k.x, 3, k.y); /* long side: t = 3x + y */ + lop3xor(e, u, t, k.x); /* u = t ^ x */ + imadi(e, k.r, u, 5, k.one); /* r = 5u + 1 */ + shr_i(e, t, k.r, 3); + iadd3(e, k.r, k.r, t); /* r += r >> 3 */ + if (mutant) iadd3(e, k.r, k.r, k.one); + region_join(e); + rp_end(e, &k); +} +/* The lane-dependent loop shared by R4 and R5: v = x & 255, step = (y & 15) + 1, + * while v < 256 { v += step; cnt += 1 }. Math mutant: the bound is 255. Emits the region. */ +static void rc_count_loop(Em *e, const Rp *k, int mutant, int v, int cnt) { + int st = V(e), bound = V(e), c255 = V(e), c15 = V(e); + movi(e, c255, 255); movi(e, c15, 15); movi(e, bound, mutant ? 255 : 256); + lop3lut(e, v, k->x, c255, NOREG, 0xc0); + lop3lut(e, st, k->y, c15, NOREG, 0xc0); + iadd3(e, st, st, k->one); + movrz(e, cnt); + region_begin(e); + loop_begin(e); + int L = here(e); + isetp_ge_u32(e, v, bound); + region_exit(e, RX_IF_P0); + iadd3(e, v, v, st); + iadd3(e, cnt, cnt, k->one); + bra_always(e, L); + loop_end(e); + region_join(e); +} +/* R4: lane-dependent loop exit (break). r = 256 * cnt + v. */ +static void gen_rc_loopbreak(Em *e, int mutant) { + Rp k = rp_begin(e); + int v = V(e), cnt = V(e); + rc_count_loop(e, &k, mutant, v, cnt); + imadi(e, k.r, cnt, 256, v); + rp_end(e, &k); +} +/* R5: nested divergence. Odd x: r = 7 (skips the inner region). Even x: the R4 loop inside the + * outer region, r = 256 * cnt + v + 100. */ +static void gen_rc_nested(Em *e, int mutant) { + Rp k = rp_begin(e); + int v = V(e), cnt = V(e), low = V(e), c100 = V(e); + movi(e, k.r, 7); movi(e, c100, 100); + lop3lut(e, low, k.x, k.one, NOREG, 0xc0); /* x & 1 */ + region_begin(e); + isetp_ge_u32(e, low, k.one); + region_exit(e, RX_IF_P0); + rc_count_loop(e, &k, mutant, v, cnt); + imadi(e, k.r, cnt, 256, v); + iadd3(e, k.r, k.r, c100); + region_join(e); + rp_end(e, &k); +} +/* R6: lanes past the end, a divergent region, then a CTA-wide exchange and the warp SHFL. + * xv = x | 1 computed on divergent paths (even lanes take the branch), every thread stores xv + * to its shared slot, BAR.SYNC, reads its partner's (tid ^ 1), r = 3x + partner_xv. + * Production form: lanes past n are clamped and exit after the SHFL (correct). early_exit + * (mutant 1): lanes past n EXIT first, as a naive kernel would; the emitter refuses that + * (BAR/SHFL after a predicated EXIT). Only the host-test build path (codegen_ir) may bypass the + * refusal, so the simulator can show what the kernel would do (SHFL_EXITED); a launch never can. */ +static void gen_rc_exit_bar(Em *e, int early_exit) { + Rp k = rp_begin(e); + int saddr = V(e), paddr = V(e), yv = V(e), xv = V(e), low = V(e); + if (early_exit) { + e->exit_sync_ok = early_exit == 1 && e->test_path; + isetp_ge_u32(e, k.i, k.n); + exit_if_p0(e); + } + imadi(e, xv, k.x, 1, NOREG); + lop3lut(e, low, k.x, k.one, NOREG, 0xc0); /* x & 1 */ + region_begin(e); + isetp_ge_u32(e, low, k.one); + region_exit(e, RX_IF_P0); /* odd lanes leave */ + iadd3(e, xv, xv, k.one); /* even lanes: xv = x + 1 */ + region_join(e); + imadi(e, saddr, k.pr.tid, 4, NOREG); + sts32(e, saddr, xv); + bar_sync(e); + lop3xor(e, paddr, k.pr.tid, k.one); + imadi(e, paddr, paddr, 4, NOREG); + lds32(e, yv, paddr); + imadi(e, k.r, k.x, 3, yv); + rp_end(e, &k); +} +/* Barrier-register bound: `levels` nested regions, each leaving lanes with x >= y out and adding 1 + * for the others: r = x + levels * (x < y). 16 levels must build (B0..B15); 17 must be refused. */ +static void gen_rc_depth(Em *e, int levels) { + Rp k = rp_begin(e); + imadi(e, k.r, k.x, 1, NOREG); + for (int d = 0; d < levels; d++) { + region_begin(e); + isetp_ge_u32(e, k.x, k.y); + region_exit(e, RX_IF_P0); + iadd3(e, k.r, k.r, k.one); + } + for (int d = 0; d < levels; d++) region_join(e); + rp_end(e, &k); +} +/* Codegen refusals (each must come back CODEGEN_FAIL; a kernel with a split warp at a + * cross-lane step must never reach the chip). */ +static void gen_rc_refuse(Em *e, OmegaGpuEwOp which) { + Rp k = rp_begin(e); + switch (which) { + case OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION: region_begin(e); isetp_ge_u32(e, k.i, k.n); exit_if_p0(e); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION: region_begin(e); bar_sync(e); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION: region_begin(e); shfl_down(e, k.s, k.x, 1); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_UNCLOSED: region_begin(e); isetp_ge_u32(e, k.x, k.y); region_exit(e, RX_IF_P0); break; /* no join */ + case OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY: region_join(e); break; /* BSYNC without BSSY */ + default: e->err = -1; break; + } + imadi(e, k.r, k.x, 1, NOREG); + rp_end(e, &k); +} + +/* A value first defined inside a loop body may not be read after the loop + * before it is written again: the allocator could have let a later body + * temporary share its register, and the last iteration's value would be lost. */ +static int check_loop_invariant(const Em *e) { + const OmegaRegAlloc *ra = &e->p->regalloc; + for (int L = 0; L < e->n_loops; L++) + for (int v = 0; v < ra->num_vregs; v++) { + int fd = ra->intervals[v].first_def; + if (fd < e->loop_start[L] || fd > e->loop_end[L]) continue; + for (size_t i = (size_t)e->loop_end[L] + 1; i < e->p->count; i++) { + const BlackwellIRInsn *in = &e->p->insns[i]; + if (in->src1_vreg == v || in->src2_vreg == v || in->src3_vreg == v) return -1; + if (in->dst_vreg == v && !in->is_uniform) break; + } + } + return 0; +} + +#define EW_GPR_BUDGET 64u /* the QMD declares 64 registers, as the matmul launcher does */ + +/* Mesa NAK sm120_instr_latencies.rs + sm100/reg_raw.csv: ALU/dual-ALU pairs + * and FMA/FMA pairs need 4 + 1 cycles; mixed pairs need 5 + 1. CSV rows are + * READERS, columns WRITERS (see lat_rs_gen.py), not the reverse. IMAD.WIDE + * has operand-specific latencies and is deliberately excluded here. + * + * Retain at least 5 cycles after every fixed producer. Thus the next reader + * uses the pair-specific bound and later readers are >= 9 cycles away (the + * next instruction in a tightened pair is itself fixed). No instruction, + * branch target, wait, barrier assignment or register allocation is changed. + * IADD3's encoder still supplies its historical control word; do not pretend + * to schedule that producer here. Its existing 5-cycle delay is unchanged. + * + * Predicate-to-guard uses NAK paw_latency -> raw(write, None): reader + * RedirectedFp64, writer Dualalu = 13, plus SM120's 1 = 14, in emit above. + * NVIDIA's public ISA docs are silent about SASS control-word semantics. + */ +static int fixed_pair_class(BlackwellIROpcode op) { + switch (op) { + case BW_IR_MOV_RZ: case BW_IR_MOV_IMM: case BW_IR_IADD3: + case BW_IR_LOP3_XOR: case BW_IR_LOP3_LUT: + case BW_IR_SHF_R: case BW_IR_SHF_L_U32: return 1; + case BW_IR_IMAD: case BW_IR_IMAD_HI_U32: + case BW_IR_FADD: case BW_IR_FSUB: case BW_IR_FMUL: case BW_IR_FFMA: return 2; + default: return 0; + } +} + +static void schedule_fixed_pairs(BlackwellIRProgram *p) { + for (size_t i = 0; i + 1 < p->count; i++) { + BlackwellIRInsn *a = &p->insns[i]; + const BlackwellIRInsn *b = &p->insns[i + 1]; + int cls = fixed_pair_class(a->op); + if (!cls || cls != fixed_pair_class(b->op) || a->op == BW_IR_IADD3 || + a->predicate_p0 || b->predicate_p0 || ((a->control >> 9) & 15u) != 6) + continue; + a->control = (a->control & ~(15u << 9)) | (5u << 9); + } +} + +static int build_kernel(OmegaGpuEwOp op, int mutant, OmegaBlackwellKernel *kernel, BlackwellIRProgram *prog_out, int test_path) { + BlackwellIRProgram *prog = calloc(1, sizeof *prog); + if (!prog) return OMEGA_GPU_EW_CODEGEN_FAIL; + omega_bw_ir_init(prog); + Em e; memset(&e, 0, sizeof e); e.p = prog; e.test_path = test_path; + /* mutant 1 = the op's math mutant (as before); 2 = the join (BSYNC) dropped; 3 = the BSSY + * names the wrong join. 2 and 3 only change kernels that open a region. */ + e.rg_mutant = mutant == 2 ? 1 : mutant == 3 ? 2 : 0; + int math = mutant == 1; + switch (op) { + case OMEGA_GPU_EW_EX2: gen_ex2(&e, math); break; + case OMEGA_GPU_EW_XCHG: gen_xchg(&e, math); break; + case OMEGA_GPU_EW_RMSNORM: gen_rmsnorm(&e, math); break; + case OMEGA_GPU_EW_ROPE: gen_rope(&e, math); break; + case OMEGA_GPU_EW_SWIGLU: gen_swiglu(&e, math); break; + case OMEGA_GPU_EW_PRIME_SIEVE: gen_prime_sieve(&e, math, 0, 0); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED: gen_prime_sieve(&e, math, 1, 0); break; + case OMEGA_GPU_EW_PRIME_SIEVE_DIV1: gen_prime_sieve(&e, math, 0, 1); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV1: gen_prime_sieve(&e, math, 1, 1); break; + case OMEGA_GPU_EW_PRIME_SIEVE_DIV2: gen_prime_sieve(&e, math, 0, 2); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2: gen_prime_sieve(&e, math, 1, 2); break; + case OMEGA_GPU_EW_RC_DIAMOND: gen_rc_diamond(&e, math); break; + case OMEGA_GPU_EW_RC_LOOPBREAK: gen_rc_loopbreak(&e, math); break; + case OMEGA_GPU_EW_RC_NESTED: gen_rc_nested(&e, math); break; + case OMEGA_GPU_EW_RC_EXIT_BAR: gen_rc_exit_bar(&e, math); break; + case OMEGA_GPU_EW_RC_REFUSE_EXIT_SHFL: gen_rc_exit_bar(&e, 2); break; + case OMEGA_GPU_EW_RC_DEPTH16: gen_rc_depth(&e, BW_RECONV_MAX_BAR); break; + case OMEGA_GPU_EW_RC_REFUSE_DEPTH17: gen_rc_depth(&e, BW_RECONV_MAX_BAR + 1); break; + case OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION: case OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION: + case OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION: case OMEGA_GPU_EW_RC_REFUSE_UNCLOSED: + case OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY: gen_rc_refuse(&e, op); break; + default: e.err = -1; break; + } + if (e.rg.depth != 0) e.err = -1; /* a region left open has no join: refuse the build */ + schedule_fixed_pairs(prog); + int rc = OMEGA_GPU_EW_CODEGEN_FAIL; + int ra_rc = (e.err == 0) ? omega_bw_regalloc_solve(prog) : -1; + int loop_rc = (ra_rc == 0) ? check_loop_invariant(&e) : -1; +#ifdef OMEGA_EW_DEBUG + fprintf(stderr, "ew codegen op=%d mutant=%d emit_err=%d insns=%zu vregs=%d regalloc=%d loops=%d peak_gpr=%u\n", + (int)op, mutant, e.err, prog->count, prog->regalloc.num_vregs, ra_rc, loop_rc, prog->regalloc.peak_gpr_usage); +#endif + if (e.err == 0 && ra_rc == 0 && loop_rc == 0 && prog->regalloc.peak_gpr_usage <= EW_GPR_BUDGET) { + size_t max_bytes = (size_t)BW_MAX_IR_INSNS * 16; + memset(kernel, 0, sizeof *kernel); + kernel->code = malloc(max_bytes); + size_t emitted = 0; + if (kernel->code && omega_bw_encode_program(prog, kernel->code, max_bytes, &emitted) == 0) { + kernel->code_size = emitted; + kernel->insn_count = emitted / 16; + kernel->gpr_count = prog->regalloc.peak_gpr_usage; + kernel->uniform_gpr_count = prog->regalloc.peak_ugpr_usage; + sha256_hash(kernel->code, kernel->code_size, kernel->code_digest); + if (prog_out) *prog_out = *prog; + rc = OMEGA_GPU_EW_OK; + } else { +#ifdef OMEGA_EW_DEBUG + fprintf(stderr, "ew codegen op=%d: encode failed (an instruction form the encoder refuses)\n", (int)op); +#endif + free(kernel->code); kernel->code = NULL; + } + } + free(prog); + return rc; +} + +/* --------------------------------------------------------- kernel cache */ + +/* One kernel per (op, mutant); the device copy is uploaded once and stays + * resident for the process (cut 4b: no per-call code page). */ +typedef struct { int used; int op; int mutant; OmegaBlackwellKernel kernel; OmegaGpuMem code; } Slot; +static int g_mutant_op; /* 0 = none */ +static int g_mutant_level = 1; /* the mutant number built for g_mutant_op (1 math, 2 join dropped, 3 join corrupted) */ +static Slot g_cache[8]; +static OmegaGpuScratch g_a, g_b, g_c; /* staging, grown to the high-water mark, reused per call */ +static bool g_hooked; +#define LOCK() omega_gpu_session_lock() +#define UNLOCK() omega_gpu_session_unlock() + +static void cache_clear_locked(void) { + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used) { free(g_cache[i].kernel.code); omega_gpu_session_free(&g_cache[i].code); memset(&g_cache[i], 0, sizeof g_cache[i]); } +} + +void omega_gpu_elementwise_cache_clear(void) { + LOCK(); + cache_clear_locked(); + UNLOCK(); +} + +/* Called by the session (lock held, device still open) right before it closes. */ +static void on_session_close(void) { + cache_clear_locked(); + omega_gpu_session_scratch_free(&g_a); omega_gpu_session_scratch_free(&g_b); omega_gpu_session_scratch_free(&g_c); +} + +void omega_gpu_elementwise_test_set_mutant(int op) { + LOCK(); + g_mutant_op = op; g_mutant_level = 1; + cache_clear_locked(); + UNLOCK(); +} +void omega_gpu_elementwise_test_set_mutant_level(int op, int level) { + LOCK(); + g_mutant_op = op; g_mutant_level = level < 1 ? 1 : level > 3 ? 3 : level; + cache_clear_locked(); + UNLOCK(); +} + +/* Caller holds the lock. Builds the kernel if needed; uploads the device copy when a + * device is open (upload = false lets the host-only codegen path run without a chip). */ +static int kernel_for(OmegaGpuEwOp op, bool upload, Slot **out, bool *hit) { + int mutant = (g_mutant_op == (int)op) ? g_mutant_level : 0; + Slot *s = NULL; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used && g_cache[i].op == (int)op && g_cache[i].mutant == mutant) { s = &g_cache[i]; *hit = true; break; } + if (!s) { + OmegaBlackwellKernel k; + int rc = build_kernel(op, mutant, &k, NULL, 0); + if (rc != OMEGA_GPU_EW_OK) return rc; + size_t slot = 0; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) if (!g_cache[i].used) { slot = i; break; } + s = &g_cache[slot]; + if (s->used) { free(s->kernel.code); omega_gpu_session_free(&s->code); } /* full: evict slot 0 */ + memset(s, 0, sizeof *s); + s->used = 1; s->op = (int)op; s->mutant = mutant; s->kernel = k; + *hit = false; + } + if (upload && !s->code.cpu) { + if (omega_gpu_session_alloc_code(s->kernel.code_size, &s->code) != 0) return OMEGA_GPU_EW_CHIP_FAIL; + memcpy(s->code.cpu, s->kernel.code, s->kernel.code_size); + __asm__ volatile("dsb sy" ::: "memory"); + } + *out = s; + return OMEGA_GPU_EW_OK; +} + +int omega_gpu_elementwise_codegen(OmegaGpuEwOp op, const uint32_t *dims, float eps, OmegaBlackwellKernel *kernel) { + (void)dims; (void)eps; /* kernels read their shape from the argument words */ + if (!kernel) return OMEGA_GPU_EW_BAD_ARGS; + LOCK(); + int mutant = (g_mutant_op == (int)op) ? g_mutant_level : 0; + UNLOCK(); + return build_kernel(op, mutant, kernel, NULL, 0); +} + +int omega_gpu_elementwise_codegen_ir(OmegaGpuEwOp op, int mutant, void *prog, OmegaBlackwellKernel *kernel) { + if (!kernel) return OMEGA_GPU_EW_BAD_ARGS; + if (mutant < 0 || mutant > 3) return OMEGA_GPU_EW_BAD_ARGS; + return build_kernel(op, mutant, kernel, (BlackwellIRProgram *)prog, 1); +} + +const char *omega_gpu_elementwise_last_error(void) { return omega_gpu_session_last_error(); } + +/* ------------------------------------------------------------ launcher */ + +#define EW_POISON 0xffbadbadu /* a NaN pattern no kernel here produces on purpose */ +#define EW_WAIT_MS 600000ull /* like main's load/store launchers; a 5 s wait failed under contention (omega#198) */ + +static uint64_t now_ns(void) { + struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); + return (uint64_t)t.tv_sec * 1000000000ULL + (uint64_t)t.tv_nsec; +} + +/* Caller holds the lock. Opens the shared device on first use. */ +static int dev_open_locked(void) { + if (!g_hooked) { (void)omega_gpu_session_on_close(on_session_close); g_hooked = true; } + return omega_gpu_session_open() ? OMEGA_GPU_EW_OK : OMEGA_GPU_EW_CHIP_FAIL; +} + +/* One launch: a and b staged in, c out (c_bytes/4 words, poison-filled first), through + * the shared session (omega_gpu_session_launch: shader-cache invalidate, constant bank, + * QMD0/QMD1, first marker, L2_FLUSH_DIRTY, second marker), then readback and the + * poison scan. b may be NULL when b_fill wrote the staging buffer already. */ +static int run_abc(const Slot *ks, const void *a, size_t a_bytes, const void *b, size_t b_bytes, + void *c, size_t c_bytes, uint32_t threads_x, uint32_t grid_x, + const uint32_t params[4], OmegaGpuEwInfo *info) { + if (omega_gpu_session_scratch(&g_a, a_bytes) || omega_gpu_session_scratch(&g_b, b_bytes) || omega_gpu_session_scratch(&g_c, c_bytes)) + return OMEGA_GPU_EW_CHIP_FAIL; + memcpy(g_a.mem.cpu, a, a_bytes); + if (b) memcpy(g_b.mem.cpu, b, b_bytes); + size_t c_words = c_bytes / 4; + uint32_t *c_dev = (uint32_t *)g_c.mem.cpu; + for (size_t i = 0; i < c_words; i++) c_dev[i] = EW_POISON; + __asm__ volatile("dsb sy" ::: "memory"); + + uint32_t args[OMEGA_BW_CBANK_MATMUL_ARGS_WORDS]; + args[0] = (uint32_t)g_a.mem.va; args[1] = (uint32_t)(g_a.mem.va >> 32); + args[2] = (uint32_t)g_b.mem.va; args[3] = (uint32_t)(g_b.mem.va >> 32); + args[4] = (uint32_t)g_c.mem.va; args[5] = (uint32_t)(g_c.mem.va >> 32); + args[6] = params[0]; args[7] = params[1]; args[8] = params[2]; args[9] = params[3]; + OmegaGpuLaunch L = { + .code_va = ks->code.va, .gpr_count = EW_GPR_BUDGET, .threads_x = threads_x, .threads_y = 1, + .grid_x = grid_x, .grid_y = 1, .num_elements = c_words, + .args = args, .n_args = OMEGA_BW_CBANK_MATMUL_ARGS_WORDS, .timeout_ms = EW_WAIT_MS, + }; + uint64_t elapsed = 0; uint32_t marker = 0; + if (omega_gpu_session_launch(&L, &elapsed, &marker) != 0) return OMEGA_GPU_EW_CHIP_FAIL; + + memcpy(c, g_c.mem.cpu, c_bytes); + uint32_t unwritten = 0; + for (size_t i = 0; i < c_words; i++) if (((uint32_t *)c)[i] == EW_POISON) unwritten++; + if (info) { + info->chip_calls++; + info->elapsed_ns += elapsed; + info->completion_marker = marker; + info->unwritten_words += unwritten; + info->threads_per_cta = threads_x; + info->ctas_last_launch = grid_x; + } + return unwritten ? OMEGA_GPU_EW_UNWRITTEN : OMEGA_GPU_EW_OK; +} + +/* ------------------------------------------------------- public entries */ + +static void info_begin(OmegaGpuEwInfo *info, const OmegaBlackwellKernel *k, bool hit) { + if (!info) return; + memset(info, 0, sizeof *info); + info->kernel_cache_hit = hit; + info->gpr_count = k->gpr_count; + info->insn_count = (uint32_t)k->insn_count; + snprintf(info->target_chip, sizeof info->target_chip, "NVIDIA DGX Spark (Grace Blackwell GB10)"); + info->sm_architecture = 121; +} +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static void info_end(OmegaGpuEwInfo *info, uint64_t t0) { if (info) info->call_ns = now_ns() - t0; } + +/* Common prologue of every chip entry: lock, open, kernel (resident), info. */ +static int begin(OmegaGpuEwOp op, Slot **ks, OmegaGpuEwInfo *info) { + LOCK(); + int rc = dev_open_locked(); + bool hit = false; + if (rc == OMEGA_GPU_EW_OK) rc = kernel_for(op, true, ks, &hit); + if (rc != OMEGA_GPU_EW_OK) { UNLOCK(); return rc; } + info_begin(info, &(*ks)->kernel, hit); + return OMEGA_GPU_EW_OK; +} + +int omega_gpu_rmsnorm_f32(uint32_t rows, uint32_t dim, const float *x, const float *weight, + float eps, float *out, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + if (!x || !weight || !out || rows == 0 || dim == 0 || dim % OMEGA_GPU_EW_THREADS != 0) return OMEGA_GPU_EW_BAD_ARGS; + if (dim > OMEGA_GPU_EW_MAX_DIM) return OMEGA_GPU_EW_TOO_LARGE; + Slot *k = NULL; + int rc = begin(OMEGA_GPU_EW_RMSNORM, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + uint32_t params[4] = { dim / OMEGA_GPU_EW_THREADS, f2u(1.0f / (float)dim), f2u(eps), dim }; + for (uint32_t r0 = 0; r0 < rows && rc == OMEGA_GPU_EW_OK; r0 += OMEGA_GPU_EW_MAX_CTAS) { + uint32_t nr = rows - r0 < OMEGA_GPU_EW_MAX_CTAS ? rows - r0 : OMEGA_GPU_EW_MAX_CTAS; + size_t bytes = (size_t)nr * dim * 4; + rc = run_abc(k, x + (size_t)r0 * dim, bytes, weight, (size_t)dim * 4, out + (size_t)r0 * dim, bytes, + OMEGA_GPU_EW_THREADS, nr, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +int omega_gpu_rope_f32(uint32_t heads, uint32_t head_dim, const float *v, + const float *cos_half, const float *sin_half, float *out, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + if (!v || !cos_half || !sin_half || !out || heads == 0 || head_dim < 2 || (head_dim & 1)) return OMEGA_GPU_EW_BAD_ARGS; + if (head_dim > 2048) return OMEGA_GPU_EW_TOO_LARGE; + Slot *k = NULL; + int rc = begin(OMEGA_GPU_EW_ROPE, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + uint32_t half = head_dim / 2; + uint32_t params[4] = { head_dim, half, 0, 0 }; + for (uint32_t h0 = 0; h0 < heads && rc == OMEGA_GPU_EW_OK; h0 += OMEGA_GPU_EW_MAX_CTAS) { + uint32_t nh = heads - h0 < OMEGA_GPU_EW_MAX_CTAS ? heads - h0 : OMEGA_GPU_EW_MAX_CTAS; + size_t bytes = (size_t)nh * head_dim * 4; + /* table: cos in the first half of each head, sin in the second, written straight into + * the staging buffer (one copy per head of this launch) */ + if (omega_gpu_session_scratch(&g_b, bytes) != 0) { rc = OMEGA_GPU_EW_CHIP_FAIL; break; } + float *table = g_b.mem.cpu; + for (uint32_t h = 0; h < nh; h++) { + memcpy(table + (size_t)h * head_dim, cos_half, half * sizeof *table); + memcpy(table + (size_t)h * head_dim + half, sin_half, half * sizeof *table); + } + /* out may alias v: v is copied into the staging buffer before the result lands in out */ + rc = run_abc(k, v + (size_t)h0 * head_dim, bytes, NULL, bytes, out + (size_t)h0 * head_dim, bytes, half, nh, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +static int run_1d(OmegaGpuEwOp op, uint32_t n, const void *a, const void *b, void *c, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + Slot *k = NULL; + int rc = begin(op, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + const uint32_t chunk = OMEGA_GPU_EW_MAX_CTAS * OMEGA_GPU_EW_THREADS; + for (uint32_t i0 = 0; i0 < n && rc == OMEGA_GPU_EW_OK; i0 += chunk) { + uint32_t ni = n - i0 < chunk ? n - i0 : chunk; + uint32_t grid = (ni + OMEGA_GPU_EW_THREADS - 1) / OMEGA_GPU_EW_THREADS; + uint32_t params[4] = { ni, 0, 0, 0 }; + size_t bytes = (size_t)ni * 4; + rc = run_abc(k, (const uint8_t *)a + (size_t)i0 * 4, bytes, b ? (const uint8_t *)b + (size_t)i0 * 4 : a, bytes, + (uint8_t *)c + (size_t)i0 * 4, bytes, OMEGA_GPU_EW_THREADS, grid, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +int omega_gpu_swiglu_f32(uint32_t n, const float *gate, const float *up, float *out, OmegaGpuEwInfo *info) { + if (!gate || !up || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_SWIGLU, n, gate, up, out, info); +} +int omega_gpu_ex2_f32(uint32_t n, const float *x, float *out, OmegaGpuEwInfo *info) { + if (!x || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_EX2, n, x, NULL, out, info); +} +int omega_gpu_shared_xchg_u32(uint32_t n, const uint32_t *x, uint32_t *out, OmegaGpuEwInfo *info) { + if (!x || !out || n == 0 || n % OMEGA_GPU_EW_THREADS != 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_XCHG, n, x, NULL, out, info); +} +int omega_gpu_reconv_probe_u32(OmegaGpuEwOp op, uint32_t n, const uint32_t *a, const uint32_t *b, uint32_t *out, OmegaGpuEwInfo *info) { + if (!a || !b || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + switch (op) { + case OMEGA_GPU_EW_RC_DIAMOND: case OMEGA_GPU_EW_RC_LOOPBREAK: case OMEGA_GPU_EW_RC_NESTED: + case OMEGA_GPU_EW_RC_EXIT_BAR: case OMEGA_GPU_EW_RC_DEPTH16: break; + default: return OMEGA_GPU_EW_BAD_ARGS; + } + return run_1d(op, n, a, b, out, info); +} + +const char *omega_gpu_elementwise_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_EW_OK: return "OK"; + case OMEGA_GPU_EW_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_EW_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_EW_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_EW_CHIP_FAIL: return "CHIP_FAIL"; + case OMEGA_GPU_EW_UNWRITTEN: return "UNWRITTEN"; + default: return "UNKNOWN"; + } +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.h new file mode 100644 index 000000000..243b1ed9c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/omega_gpu_elementwise_api.h @@ -0,0 +1,183 @@ +#ifndef OMEGA_GPU_ELEMENTWISE_API_H +#define OMEGA_GPU_ELEMENTWISE_API_H +/* + * omega_gpu_elementwise_api: native (no CUDA) elementwise and row-reduction + * kernels for the AIEN inference stack (FB-1 cut 4, 2026-10-04). + * + * Three inference ops plus two probe ops, every kernel generated by our own + * codegen (src/omega_blackwell_codegen.c IR) and launched through the same + * chip-proven sequence as the tensor matmul path: all buffers GPU-uncached + * (nvos.h NVOS32_ATTR2_GPU_CACHEABLE: system memory cached by the GPU is not + * coherent with CPU mappings), first marker, L2_FLUSH_DIRTY, second marker + * (C3 tail), poison-filled output scanned for unwritten words after readback. + * + * The math follows aien-sovereign-core crates/aien-inference-abi/src/tensor.rs + * (ReferenceCpuBackend), read 2026-10-04 at main 5fdab70: + * rmsnorm: scale = 1/sqrt(mean(x^2) + eps) (oracle sums in f64; the chip + * sums in f32 and uses MUFU.RSQ refined by one Newton step), + * out[i] = (x[i] * scale) * weight[i] in that order. + * rope: rotate_half pairs (i, i + head_dim/2) per head, cos/sin tables + * supplied by the host as f32 (the oracle casts f64 cos/sin to f32 + * before the f32 math): out0 = q0*cos - q1*sin, out1 = q0*sin + q1*cos, + * emitted as FMUL, FMUL, FADD (no fused multiply-add), so the chip + * result is bit-identical to the f32 oracle. + * swiglu: out = silu(gate) * up, silu(g) = g / (1 + exp(-g)); the chip uses + * MUFU.EX2(g * -log2(e)) and MUFU.RCP (approximate units), the + * oracle computes in f64. Tolerance is stated per op in the test. + * + * Cut 4b (2026-10-04): the device, channel and launch scratch are the process-wide + * session shared with the matmul and attention APIs (omega_gpu_session.h): one open + * 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 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 +#include +#include +#include "omega_blackwell_matmul.h" /* OmegaBlackwellKernel */ + +#ifdef __cplusplus +extern "C" { +#endif + +enum { + OMEGA_GPU_EW_OK = 0, + OMEGA_GPU_EW_BAD_ARGS = -1, /* NULL pointer, zero dimension, or a shape rule below broken */ + OMEGA_GPU_EW_TOO_LARGE = -2, /* dimension outside the codegen limits */ + OMEGA_GPU_EW_CODEGEN_FAIL = -3, /* our codegen refused or exceeded the register budget */ + OMEGA_GPU_EW_CHIP_FAIL = -4, /* device open, submit, marker or release failed */ + OMEGA_GPU_EW_UNWRITTEN = -5 /* output words still equal to their poison after the run */ +}; + +/* Kernel families. The two probes exist to prove the new instructions on the + * chip with the smallest possible kernels (and are kept for regression). */ +typedef enum { + OMEGA_GPU_EW_EX2 = 1, /* out[i] = 2^a[i] (probe for MUFU.EX2) */ + OMEGA_GPU_EW_XCHG, /* out[i] = a[i ^ (T-1)] inside each CTA (probe for STS/BAR.SYNC/LDS) */ + OMEGA_GPU_EW_RMSNORM, + OMEGA_GPU_EW_ROPE, + OMEGA_GPU_EW_SWIGLU, + OMEGA_GPU_EW_PRIME_SIEVE, /* prime race (2026-10-05): word-parallel odd-only sieve, codegen only + * here; launched by bench/prime_race/gb10_native.c (argument words in + * gen_prime_sieve's comment) */ + OMEGA_GPU_EW_PRIME_SIEVE_SHARED, /* the same sieve with the table staged in shared memory (C3) */ + /* Structured warp reconvergence (omega #308). The four sieves below are the production sieve + * with its lane-dependent loops put back inside BSSY/BSYNC regions (regression R1): DIV1 wraps + * the original mark loop (omega 888a011), DIV2 also wraps the prime loop (nested regions). */ + OMEGA_GPU_EW_PRIME_SIEVE_DIV1, + OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV1, + OMEGA_GPU_EW_PRIME_SIEVE_DIV2, + OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2, + /* Probes for omega_gpu_reconv_probe_u32 (u32 in a, b; u32 out; oracle in tests/gpu_reconv_test.c) */ + OMEGA_GPU_EW_RC_DIAMOND, /* R3: if/else, sides of different length, SHFL after the join */ + OMEGA_GPU_EW_RC_LOOPBREAK, /* R4: loop with a lane-dependent break */ + OMEGA_GPU_EW_RC_NESTED, /* R5: a lane-dependent loop region inside an if region */ + OMEGA_GPU_EW_RC_EXIT_BAR, /* R6: lanes past the end + STS/BAR.SYNC/LDS exchange + SHFL, lanes exit last */ + OMEGA_GPU_EW_RC_DEPTH16, /* 16 nested regions: every barrier register B0..B15 in use */ + /* Codegen refusals: omega_gpu_elementwise_codegen_ir must return CODEGEN_FAIL for each */ + OMEGA_GPU_EW_RC_REFUSE_DEPTH17, /* a 17th nested region: no barrier register left */ + OMEGA_GPU_EW_RC_REFUSE_EXIT_SHFL, /* lanes EXIT, then BAR.SYNC/SHFL on the rest */ + OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION, /* EXIT inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION, /* BAR.SYNC inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION, /* SHFL inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_UNCLOSED, /* region begun, never joined */ + OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY /* BSYNC with no BSSY */ +} OmegaGpuEwOp; + +/* Shape rules (checked, refused with BAD_ARGS / TOO_LARGE): + * rmsnorm: dim % OMEGA_GPU_EW_THREADS == 0, dim <= OMEGA_GPU_EW_MAX_DIM, rows >= 1 + * rope: head_dim even, 2 <= head_dim <= 2048 (head_dim/2 threads per CTA), heads >= 1 + * swiglu: n >= 1 (the kernel guards the tail with a predicated EXIT) + * 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 1024u + +typedef struct { + uint32_t chip_calls; /* launches made */ + uint64_t elapsed_ns; /* sum of launch-to-second-marker over the launches */ + uint32_t completion_marker; /* observed first marker word of the last launch */ + uint32_t unwritten_words; /* output words still equal to poison (0 on success) */ + bool kernel_cache_hit; /* the shape's kernel was already generated in this process */ + uint32_t gpr_count; /* registers the generated kernel uses */ + uint32_t insn_count; + uint32_t threads_per_cta; + uint32_t ctas_last_launch; + char target_chip[64]; + uint32_t sm_architecture; + uint64_t call_ns; /* cut 4b: wall time of the whole API call (staging, launches, copy-out) */ +} OmegaGpuEwInfo; + +/* out[r*dim + i] = x[r*dim + i] * scale_r * weight[i]; scale_r = 1/sqrt(mean_i(x^2) + eps). */ +int omega_gpu_rmsnorm_f32(uint32_t rows, uint32_t dim, const float *x, const float *weight, + float eps, float *out, OmegaGpuEwInfo *info); + +/* v holds `heads` heads of head_dim values back to back; cos_half and sin_half + * hold head_dim/2 values each (cos(pos*freq_i), sin(pos*freq_i)); out gets the + * rotated heads (may alias v: the API copies through its own buffers). */ +int omega_gpu_rope_f32(uint32_t heads, uint32_t head_dim, const float *v, + const float *cos_half, const float *sin_half, float *out, + OmegaGpuEwInfo *info); + +/* out[i] = silu(gate[i]) * up[i] for i < n. */ +int omega_gpu_swiglu_f32(uint32_t n, const float *gate, const float *up, float *out, + OmegaGpuEwInfo *info); + +/* Probes. ex2: out[i] = 2^x[i]. xchg: out[i] = x[i ^ (OMEGA_GPU_EW_THREADS-1)] within each CTA. */ +int omega_gpu_ex2_f32(uint32_t n, const float *x, float *out, OmegaGpuEwInfo *info); +int omega_gpu_shared_xchg_u32(uint32_t n, const uint32_t *x, uint32_t *out, OmegaGpuEwInfo *info); +/* Reconvergence probes (op = one of OMEGA_GPU_EW_RC_DIAMOND .. OMEGA_GPU_EW_RC_DEPTH16, else + * BAD_ARGS). n >= 1, any n: lanes past the end take part in the warp step and exit before + * their store. out[i] = r_i + 4099 * r_(i+1 in warp); r per op in src/omega_gpu_elementwise_api.c. */ +int omega_gpu_reconv_probe_u32(OmegaGpuEwOp op, uint32_t n, const uint32_t *a, const uint32_t *b, + uint32_t *out, OmegaGpuEwInfo *info); + +/* Generate (without launching) the kernel for one op. Kernels read their shape + * from the argument words, so one kernel per op serves every shape; dims and eps + * are accepted for forward compatibility and ignored today (may be NULL / 0). + * Lets tests disassemble the bytes offline (nvdisasm) and check the register + * budget. Caller frees kernel->code. */ +int omega_gpu_elementwise_codegen(OmegaGpuEwOp op, const uint32_t *dims, float eps, + OmegaBlackwellKernel *kernel); + +/* Same, with the mutant chosen by the caller (0 = production kernel, 1 = the op's math mutant, + * 2 = the reconvergence join (BSYNC) dropped, 3 = the BSSY names the wrong join; 2 and 3 change + * only kernels that open a region, the host simulator must catch both) and, when prog is + * not NULL, a copy of the allocated IR program (a BlackwellIRProgram, post register + * allocation) for a host IR simulator. Does not touch the device or the kernel cache. + * Caller frees kernel->code. */ +int omega_gpu_elementwise_codegen_ir(OmegaGpuEwOp op, int mutant, void *prog, + OmegaBlackwellKernel *kernel); + +/* TEST ONLY. Selects a deliberately wrong kernel for one op (0 clears). Each + * mutant changes the math by far more than the op's tolerance, so a parity + * check that still passes against it proves nothing. Clears the kernel cache. + * EX2: computes 2^(x+1). XCHG: reads its own shared word (no exchange). + * RMSNORM: the warp tree drops its last SHFL step (half the lanes go missing). + * ROPE: out0 = q0*cos + q1*sin. SWIGLU: exp(+g) instead of exp(-g). */ +void omega_gpu_elementwise_test_set_mutant(int op); +/* TEST ONLY. Like test_set_mutant, choosing the mutant number (1 math, 2 join dropped, 3 join + * corrupted) that the next launch of `op` builds; lets a chip test observe what a missing + * reconvergence does (the simulator must have flagged it first). */ +void omega_gpu_elementwise_test_set_mutant_level(int op, int level); + +const char *omega_gpu_elementwise_rc_name(int rc); +void omega_gpu_elementwise_cache_clear(void); + +/* Stage name of the most recent CHIP_FAIL ("" if none), shared with the other GPU APIs + * (omega_gpu_session_last_error); an open failure carries the driver text. */ +const char *omega_gpu_elementwise_last_error(void); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/receipt.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/receipt.json new file mode 100644 index 000000000..52aa5d93a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/receipt.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_ELEMENTWISE_V1","tolerances":{"ex2_rel":1e-6,"xchg":"exact","rmsnorm_rel":1e-5,"rmsnorm_abs":1e-6,"rope":"exact","swiglu_rel":1e-5,"swiglu_abs":1e-6},"cases":[{"case":"ex2_probe","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0.152538,"pass":true,"chip_elapsed_ns":112177,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":4096,"mutant_caught":true},{"case":"shared_xchg_probe","n":4096,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103634,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":4096,"mutant_caught":true},{"case":"rmsnorm_4x2048","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.0244808,"pass":true,"chip_elapsed_ns":103601,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":8192,"mutant_caught":true},{"case":"rmsnorm_1x256","n":256,"rc":"OK","violations":0,"worst_scaled_err":0.0206888,"pass":true,"chip_elapsed_ns":103217,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":256,"mutant_caught":true},{"case":"rmsnorm_2x8192","n":16384,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103169,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":16384,"mutant_caught":true},{"case":"rope_32h_64d_pos17_theta10000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":102993,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1024,"mutant_caught":true},{"case":"rope_4h_64d_pos17_theta10000","n":256,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":102801,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":128,"mutant_caught":true},{"case":"rope_32h_64d_pos1023_theta500000","n":2048,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103249,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1024,"mutant_caught":true},{"case":"rope_8h_64d_pos1023_theta500000","n":512,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":103089,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":256,"mutant_caught":true},{"case":"swiglu_5632","n":5632,"rc":"OK","violations":0,"worst_scaled_err":0.0196297,"pass":true,"chip_elapsed_ns":102977,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":5630,"mutant_caught":true},{"case":"swiglu_8192","n":8192,"rc":"OK","violations":0,"worst_scaled_err":0.0177689,"pass":true,"chip_elapsed_ns":103153,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":8192,"mutant_caught":true},{"case":"swiglu_1000","n":1000,"rc":"OK","violations":0,"worst_scaled_err":0.017264,"pass":true,"chip_elapsed_ns":102849,"chip_calls":1,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1000,"mutant_caught":true},{"case":"swiglu_131073","n":131073,"rc":"OK","violations":0,"worst_scaled_err":0.0236441,"pass":true,"chip_elapsed_ns":210242,"chip_calls":2,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":131059,"mutant_caught":true},{"case":"swiglu_1572864","n":1572864,"rc":"OK","violations":0,"worst_scaled_err":0.0250368,"pass":true,"chip_elapsed_ns":1250941,"chip_calls":12,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":1572612,"mutant_caught":true},{"case":"icache_reuse_rotation","n":20,"rc":"OK","violations":0,"worst_scaled_err":0,"pass":true,"chip_elapsed_ns":2052404,"chip_calls":20,"unwritten_words":0,"mutant_rc":"OK","mutant_violations":0,"mutant_caught":true}],"device_opens":1,"checks":35,"failed":0,"verdict":"OMEGA_GPU_ELEMENTWISE_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/run.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/run.log new file mode 100644 index 000000000..99e43de54 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/elementwise/FB1-CUT4-710d438c/run.log @@ -0,0 +1,17 @@ +PASS ex2_probe n=4096 rc=OK violations=0 worst_scaled_err=0.152538 chip_ns=112177 calls=1 unwritten=0 | mutant rc=OK violations=4096 CAUGHT +PASS shared_xchg_probe n=4096 rc=OK violations=0 worst_scaled_err=0 chip_ns=103634 calls=1 unwritten=0 | mutant rc=OK violations=4096 CAUGHT +PASS rmsnorm_4x2048 n=8192 rc=OK violations=0 worst_scaled_err=0.0244808 chip_ns=103601 calls=1 unwritten=0 | mutant rc=OK violations=8192 CAUGHT +PASS rmsnorm_1x256 n=256 rc=OK violations=0 worst_scaled_err=0.0206888 chip_ns=103217 calls=1 unwritten=0 | mutant rc=OK violations=256 CAUGHT +PASS rmsnorm_2x8192 n=16384 rc=OK violations=0 worst_scaled_err=0 chip_ns=103169 calls=1 unwritten=0 | mutant rc=OK violations=16384 CAUGHT +PASS rope_32h_64d_pos17_theta10000 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=102993 calls=1 unwritten=0 | mutant rc=OK violations=1024 CAUGHT +PASS rope_4h_64d_pos17_theta10000 n=256 rc=OK violations=0 worst_scaled_err=0 chip_ns=102801 calls=1 unwritten=0 | mutant rc=OK violations=128 CAUGHT +PASS rope_32h_64d_pos1023_theta500000 n=2048 rc=OK violations=0 worst_scaled_err=0 chip_ns=103249 calls=1 unwritten=0 | mutant rc=OK violations=1024 CAUGHT +PASS rope_8h_64d_pos1023_theta500000 n=512 rc=OK violations=0 worst_scaled_err=0 chip_ns=103089 calls=1 unwritten=0 | mutant rc=OK violations=256 CAUGHT +PASS swiglu_5632 n=5632 rc=OK violations=0 worst_scaled_err=0.0196297 chip_ns=102977 calls=1 unwritten=0 | mutant rc=OK violations=5630 CAUGHT +PASS swiglu_8192 n=8192 rc=OK violations=0 worst_scaled_err=0.0177689 chip_ns=103153 calls=1 unwritten=0 | mutant rc=OK violations=8192 CAUGHT +PASS swiglu_1000 n=1000 rc=OK violations=0 worst_scaled_err=0.017264 chip_ns=102849 calls=1 unwritten=0 | mutant rc=OK violations=1000 CAUGHT +PASS swiglu_131073 n=131073 rc=OK violations=0 worst_scaled_err=0.0236441 chip_ns=210242 calls=2 unwritten=0 | mutant rc=OK violations=131059 CAUGHT +PASS swiglu_1572864 n=1572864 rc=OK violations=0 worst_scaled_err=0.0250368 chip_ns=1250941 calls=12 unwritten=0 | mutant rc=OK violations=1572612 CAUGHT +PASS icache_reuse_rotation n=20 rc=OK violations=0 worst_scaled_err=0 chip_ns=2052404 calls=20 unwritten=0 | mutant rc=OK violations=0 CAUGHT +device_opens=1 +PASS: 35 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8.out new file mode 100644 index 000000000..36ceae1bd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8.out @@ -0,0 +1,164 @@ +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 180 kernels built, largest 884 IR instructions, peak 88 GPRs +nvdisasm k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_2441696.sass) +nvdisasm k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_2441696.sass) +nvdisasm k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_2441696.sass) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +nvdisasm v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_2441696.sass) +gpu_fp8_api_test: 1482 checks, 0 failed: PASS +sim one-hot conversion: 256/256 rows exact +sim k256 lb8 r1 w1 rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r1 w1 deep rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r2 w2 rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 deep rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 deep mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 deep mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k768 lb8 r4 w8 (down shape width) rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r4 w8 (down shape width) deep rc=0 worst_rel=3.352e-08 bad=0 (9 ms) +sim k768 lb8 r8 rc=0 worst_rel=3.023e-08 bad=0 (9 ms) +sim k2048 lb16 r8 w8 (gate shape width) rc=0 worst_rel=2.818e-08 bad=0 (33 ms) +sim k2048 lb16 r8 w8 (gate shape width) mutant 1: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 2: caught (rc=0 bad=383 worst_rel=1.578e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 4: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r1 rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k2048 lb16 r1 deep rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) deep rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim 4 experts shared x (gate+up) rc=0 worst_rel=2.646e-08 bad=0 (88 ms) +sim 4 experts shared x (gate+up) mutant 1: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 4 experts shared x (gate+up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.503e-01) +sim 4 experts shared x (gate+up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.976e-01) +sim 4 experts shared x (gate+up) mutant 4: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep rc=0 worst_rel=4.441e-08 bad=0 (76 ms) +sim 8 groups per-group x, repeated ids (down) deep mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 2 groups per-group x rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim 2 groups per-group x deep rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim k768 w7: partial staging round (deep) rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim k768 w7: partial staging round (deep) deep rc=0 worst_rel=2.724e-08 bad=0 (22 ms) +sim battery: worst relative error 7.101e-08 over 11 points, 12579824 warp issues +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) rc=0 worst_rel=2.463e-08 bad=0 identical_to_v1=1 (26 ms) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 1: caught (rc=0 bad=256 worst_rel=2.218e-01, identity check differs=1) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 2: caught (rc=0 bad=256 worst_rel=1.690e-01, identity check differs=1) +sim v2 k2048 lb16 r2 w8 (128 B per lane) rc=0 worst_rel=2.578e-08 bad=0 identical_to_v1=1 (24 ms) +sim v2 k4096 lb16 r1 w8 (o_proj width) rc=0 worst_rel=1.878e-08 bad=0 identical_to_v1=1 (50 ms) +sim v2 k768 lb8 r1 w8 (down width) rc=0 worst_rel=2.677e-08 bad=0 identical_to_v1=1 (11 ms) +sim v2 k768 lb8 r4 w8 rc=0 worst_rel=3.253e-08 bad=0 identical_to_v1=1 (10 ms) +sim v2 k768 w7: partial staging round rc=0 worst_rel=3.262e-08 bad=0 identical_to_v1=1 (23 ms) +sim v2 4 experts shared x (gate_up) rc=0 worst_rel=2.472e-08 bad=0 identical_to_v1=1 (103 ms) +sim v2 4 experts shared x (gate_up) mutant 1: caught (rc=0 bad=1022 worst_rel=2.155e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.745e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.980e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.875e-08 bad=0 identical_to_v1=1 (82 ms) +sim v2 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2048 worst_rel=3.773e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=5.105e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=1.327e+00, identity check differs=1) +sim v2 2 groups per-group x, r8 k256 rc=0 worst_rel=5.595e-08 bad=0 identical_to_v1=1 (4 ms) +sim v2 k512 w3 (odd warps, tail row groups) rc=0 worst_rel=4.233e-08 bad=0 identical_to_v1=1 (7 ms) +sim v2 battery: 10/10 points bit-identical to variant 1 +gpu_fp8_api_test: 70 checks, 0 failed: PASS +PASS timing 1x2048x8192 upload_ms=240.7 ok_calls=100 median_ms=0.412 p90_ms=0.413 min_ms=0.360 max_ms=0.946 chip_ns_mean=404552 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.9 ok_calls=100 median_ms=0.794 p90_ms=0.821 min_ms=0.411 max_ms=1.241 chip_ns_mean=645531 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=16.5us (2.0 GB/s) call_med=22.6us (1.5 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=16.0us (12.3 GB/s) call_med=25.6us (7.7 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=24.5us (32.1 GB/s) call_med=40.0us (19.7 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=27.5us (57.2 GB/s) call_med=43.4us (36.2 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.5ms chip_med=39.0us (80.7 GB/s) call_med=55.9us (56.3 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=46.4us (33.9 GB/s) call_med=58.7us (26.8 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=77.8us (107.9 GB/s) call_med=83.7us (100.3 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=25.9us (40.5 GB/s) call_med=41.6us (25.2 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=69.6us (120.6 GB/s) call_med=74.4us (112.8 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.6ms chip_med=82.4us (127.2 GB/s) call_med=88.0us (119.2 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.3ms chip_med=146.8us (171.4 GB/s) call_med=155.4us (162.0 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.6ms chip_med=92.8us (135.6 GB/s) call_med=105.5us (119.3 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.2ms chip_med=147.0us (171.2 GB/s) call_med=155.5us (161.9 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.9ms chip_med=192.3us (174.5 GB/s) call_med=203.8us (164.7 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=17.9us (1.8 GB/s) call_med=24.0us (1.4 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=24.7us (7.9 GB/s) call_med=34.3us (5.7 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=38.8us (20.3 GB/s) call_med=54.5us (14.4 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=59.5us (26.4 GB/s) call_med=76.1us (20.7 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.5ms chip_med=79.6us (39.5 GB/s) call_med=96.3us (32.7 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=58.6us (26.9 GB/s) call_med=70.4us (22.4 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=109.0us (76.9 GB/s) call_med=115.6us (72.6 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=34.0us (30.8 GB/s) call_med=49.8us (21.0 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=136.3us (61.6 GB/s) call_med=141.0us (59.5 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.7ms chip_med=80.4us (130.4 GB/s) call_med=85.9us (122.1 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.2ms chip_med=147.7us (170.4 GB/s) call_med=156.5us (160.9 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.5ms chip_med=86.5us (145.5 GB/s) call_med=98.7us (127.5 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.5ms chip_med=144.6us (174.1 GB/s) call_med=153.6us (163.8 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.8ms chip_med=185.4us (181.0 GB/s) call_med=196.9us (170.4 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +no-evict exit 0 (informational) +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=0 bytes=32776 upload=0.1ms chip_med=15.3us (2.1 GB/s) call_med=16.2us (2.0 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=0 bytes=196656 upload=0.3ms chip_med=26.3us (7.5 GB/s) call_med=27.7us (7.1 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=0 bytes=786624 upload=0.5ms chip_med=35.4us (22.2 GB/s) call_med=37.5us (21.0 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=42.2us (37.3 GB/s) call_med=44.9us (35.0 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=0 bytes=3146496 upload=1.5ms chip_med=42.8us (73.5 GB/s) call_med=47.2us (66.6 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=35.2us (44.7 GB/s) call_med=40.3us (39.0 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=78.4us (107.1 GB/s) call_med=85.3us (98.4 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=0 bytes=1048832 upload=0.6ms chip_med=37.8us (27.7 GB/s) call_med=40.2us (26.1 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=65.1us (129.0 GB/s) call_med=71.0us (118.1 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.7ms chip_med=71.3us (147.0 GB/s) call_med=77.3us (135.6 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.3ms chip_med=149.0us (168.9 GB/s) call_med=157.9us (159.4 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.6ms chip_med=89.4us (140.7 GB/s) call_med=101.7us (123.8 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.1ms chip_med=146.9us (171.3 GB/s) call_med=155.3us (162.1 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.8ms chip_med=191.7us (175.1 GB/s) call_med=202.8us (165.5 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +depth 0 exit 0 (informational) +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=192x8 lb=16 rows=1 warps=8 depth=0 bytes=25171968 upload=11.4ms chip_med=152.6us (165.0 GB/s) call_med=161.4us (156.0 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=256x8 lb=8 rows=1 warps=8 depth=0 bytes=12585984 upload=5.5ms chip_med=168.5us (74.7 GB/s) call_med=181.0us (69.5 GB/s) reps=50 +gpu_fp8_api_test: 7 checks, 0 failed: PASS +grouped-old exit 0 (control) +GPU_FP8_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/SHA256SUMS new file mode 100644 index 000000000..295a78d43 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/SHA256SUMS @@ -0,0 +1,14 @@ +f63af1161a839934c2d2637d81f3978bee3f6b4671fb050fcd7e78a3502d7fe7 receipt-baseline-matmul.json +0b40fc76aa9ad852a19e827dece69b0798c842c4395b14c9219725062fc83811 receipt-depth0.json +6c7d47696ef7596c89375ae75a921b29d208936aa125c4df37b84e2e1f79076d receipt-grouped-old.json +3d301f9e8b9c5f4c7258467616f8919e4b70363a477765473d08f75cd6981f46 receipt-main.json +6a781814a3eb7dcb03bcc1cf39e7db0d130a6ebec2d0cf86c3208496bae45e64 receipt-noevict.json +7b1fd89ec382bb3ee5c385b1248820abed2a59d1b0a3467199dc71d3b00e55c5 baseline-matmul.log +66f32fbc83402bb2a0e52e65ab16dd002c489f812da3d3b30e391bd9af6b07e4 build.log +5477e1fc449f5f0e5cc495b8c77961f9e59c0b8918a4741ec11c866c1bd2ff56 depth0.log +6164a89b0a102738dc78079d2c8265509b7443516723732ed1e59ece761f1117 grouped-old.log +b348e0f0406584d2c38b6d025c80313d6b8045a84ecc6ebd1b5d2d4ea3cac1eb host-only.log +2ee3a76d01482f95af24c929d870ecf8a1ae0daea254d203dc29335c8256dee3 main.log +754052312aabda39df947760db8048f832483d786e67823bcb002b1162114275 noevict.log +34e71a0e4a7d5344323208f1e209dd024337614865182f4f7cf81fe2c2bc4248 sim.log +48653701735a9f19a0c85ab93f44163dc3b8cf43f4ea1b9143e028938cc395e6 device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/baseline-matmul.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/baseline-matmul.log new file mode 100644 index 000000000..dc9b24273 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/baseline-matmul.log @@ -0,0 +1,4 @@ +PASS timing 1x2048x8192 upload_ms=240.7 ok_calls=100 median_ms=0.412 p90_ms=0.413 min_ms=0.360 max_ms=0.946 chip_ns_mean=404552 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.9 ok_calls=100 median_ms=0.794 p90_ms=0.821 min_ms=0.411 max_ms=1.241 chip_ns_mean=645531 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/build.log new file mode 100644 index 000000000..c7d3efa09 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/build.log @@ -0,0 +1 @@ +make: 'build/gpu_matmul_api_test' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/depth0.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/depth0.log new file mode 100644 index 000000000..7b933f4b5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/depth0.log @@ -0,0 +1,24 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=0 bytes=32776 upload=0.1ms chip_med=15.3us (2.1 GB/s) call_med=16.2us (2.0 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=0 bytes=196656 upload=0.3ms chip_med=26.3us (7.5 GB/s) call_med=27.7us (7.1 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=0 bytes=786624 upload=0.5ms chip_med=35.4us (22.2 GB/s) call_med=37.5us (21.0 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=42.2us (37.3 GB/s) call_med=44.9us (35.0 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=0 bytes=3146496 upload=1.5ms chip_med=42.8us (73.5 GB/s) call_med=47.2us (66.6 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=35.2us (44.7 GB/s) call_med=40.3us (39.0 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=78.4us (107.1 GB/s) call_med=85.3us (98.4 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=0 bytes=1048832 upload=0.6ms chip_med=37.8us (27.7 GB/s) call_med=40.2us (26.1 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=65.1us (129.0 GB/s) call_med=71.0us (118.1 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.7ms chip_med=71.3us (147.0 GB/s) call_med=77.3us (135.6 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.3ms chip_med=149.0us (168.9 GB/s) call_med=157.9us (159.4 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.6ms chip_med=89.4us (140.7 GB/s) call_med=101.7us (123.8 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.1ms chip_med=146.9us (171.3 GB/s) call_med=155.3us (162.1 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.8ms chip_med=191.7us (175.1 GB/s) call_med=202.8us (165.5 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +depth 0 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/device.txt new file mode 100644 index 000000000..bfc56348e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:55:46Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 16 72 2 37 105 +end 2026-10-15T00:55:58Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/grouped-old.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/grouped-old.log new file mode 100644 index 000000000..cf47d969a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/grouped-old.log @@ -0,0 +1,9 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=192x8 lb=16 rows=1 warps=8 depth=0 bytes=25171968 upload=11.4ms chip_med=152.6us (165.0 GB/s) call_med=161.4us (156.0 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=256x8 lb=8 rows=1 warps=8 depth=0 bytes=12585984 upload=5.5ms chip_med=168.5us (74.7 GB/s) call_med=181.0us (69.5 GB/s) reps=50 +gpu_fp8_api_test: 7 checks, 0 failed: PASS +grouped-old exit 0 (control) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/host-only.log new file mode 100644 index 000000000..257beacdf --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/host-only.log @@ -0,0 +1,17 @@ +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 180 kernels built, largest 884 IR instructions, peak 88 GPRs +nvdisasm k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_2441696.sass) +nvdisasm k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_2441696.sass) +nvdisasm k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_2441696.sass) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +nvdisasm v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_2441696.sass) +gpu_fp8_api_test: 1482 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/main.log new file mode 100644 index 000000000..410cbf7ac --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/main.log @@ -0,0 +1,23 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=16.5us (2.0 GB/s) call_med=22.6us (1.5 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=16.0us (12.3 GB/s) call_med=25.6us (7.7 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=24.5us (32.1 GB/s) call_med=40.0us (19.7 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=27.5us (57.2 GB/s) call_med=43.4us (36.2 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.5ms chip_med=39.0us (80.7 GB/s) call_med=55.9us (56.3 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=46.4us (33.9 GB/s) call_med=58.7us (26.8 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=77.8us (107.9 GB/s) call_med=83.7us (100.3 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=25.9us (40.5 GB/s) call_med=41.6us (25.2 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=69.6us (120.6 GB/s) call_med=74.4us (112.8 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.6ms chip_med=82.4us (127.2 GB/s) call_med=88.0us (119.2 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.3ms chip_med=146.8us (171.4 GB/s) call_med=155.4us (162.0 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.6ms chip_med=92.8us (135.6 GB/s) call_med=105.5us (119.3 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.2ms chip_med=147.0us (171.2 GB/s) call_med=155.5us (161.9 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.9ms chip_med=192.3us (174.5 GB/s) call_med=203.8us (164.7 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/noevict.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/noevict.log new file mode 100644 index 000000000..c8c717861 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/noevict.log @@ -0,0 +1,24 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=17.9us (1.8 GB/s) call_med=24.0us (1.4 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=24.7us (7.9 GB/s) call_med=34.3us (5.7 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=38.8us (20.3 GB/s) call_med=54.5us (14.4 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=59.5us (26.4 GB/s) call_med=76.1us (20.7 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.5ms chip_med=79.6us (39.5 GB/s) call_med=96.3us (32.7 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=58.6us (26.9 GB/s) call_med=70.4us (22.4 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=109.0us (76.9 GB/s) call_med=115.6us (72.6 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=34.0us (30.8 GB/s) call_med=49.8us (21.0 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=136.3us (61.6 GB/s) call_med=141.0us (59.5 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.7ms chip_med=80.4us (130.4 GB/s) call_med=85.9us (122.1 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.2ms chip_med=147.7us (170.4 GB/s) call_med=156.5us (160.9 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.5ms chip_med=86.5us (145.5 GB/s) call_med=98.7us (127.5 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.5ms chip_med=144.6us (174.1 GB/s) call_med=153.6us (163.8 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.8ms chip_med=185.4us (181.0 GB/s) call_med=196.9us (170.4 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +no-evict exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-baseline-matmul.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-baseline-matmul.json new file mode 100644 index 000000000..c471568da --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-baseline-matmul.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_TIMING_V1","cta_budget":64,"spin_us":0,"calls":100,"shapes":[{"m":1,"k":2048,"n":8192,"pass":true,"upload_ms":240.710,"ok_calls":100,"median_ms":0.4116,"p90_ms":0.4128,"min_ms":0.3605,"max_ms":0.9460,"chip_ns_mean":404552,"grid_x":64,"grid_y":1,"e2e_first":2.36603e-07,"e2e_last":2.36603e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0},{"m":1,"k":8192,"n":2048,"pass":true,"upload_ms":105.946,"ok_calls":100,"median_ms":0.7935,"p90_ms":0.8213,"min_ms":0.4108,"max_ms":1.2411,"chip_ns_mean":645531,"grid_x":64,"grid_y":1,"e2e_first":5.21488e-07,"e2e_last":5.21488e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-depth0.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-depth0.json new file mode 100644 index 000000000..d572ab587 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-depth0.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":1,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":32776,"upload_ms":0.10,"chip_median_ns":15281,"gbps_chip":2.14,"call_median_ns":16193,"gbps_call":2.02,"reps":50,"marker":1145324612,"evict":1},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":1,"grid_x":32,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":196656,"upload_ms":0.32,"chip_median_ns":26321,"gbps_chip":7.47,"call_median_ns":27729,"gbps_call":7.09,"reps":50,"marker":1145324612,"evict":1},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":1,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":786624,"upload_ms":0.52,"chip_median_ns":35377,"gbps_chip":22.24,"call_median_ns":37473,"gbps_call":20.99,"reps":50,"marker":1145324612,"evict":1},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":1,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":1573248,"upload_ms":0.83,"chip_median_ns":42176,"gbps_chip":37.30,"call_median_ns":44928,"gbps_call":35.02,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":3146496,"upload_ms":1.53,"chip_median_ns":42832,"gbps_chip":73.46,"call_median_ns":47217,"gbps_call":66.64,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":1573248,"upload_ms":0.78,"chip_median_ns":35200,"gbps_chip":44.69,"call_median_ns":40305,"gbps_call":39.03,"reps":50,"marker":1145324612,"evict":1},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.67,"chip_median_ns":78353,"gbps_chip":107.09,"call_median_ns":85281,"gbps_call":98.39,"reps":50,"marker":1145324612,"evict":1},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":1,"grid_x":64,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":1048832,"upload_ms":0.60,"chip_median_ns":37841,"gbps_chip":27.72,"call_median_ns":40193,"gbps_call":26.09,"reps":50,"marker":1145324612,"evict":1},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.67,"chip_median_ns":65056,"gbps_chip":128.98,"call_median_ns":71041,"gbps_call":118.11,"reps":50,"marker":1145324612,"evict":1},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":10488320,"upload_ms":4.66,"chip_median_ns":71344,"gbps_chip":147.01,"call_median_ns":77329,"gbps_call":135.63,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":11.28,"chip_median_ns":149041,"gbps_chip":168.89,"call_median_ns":157938,"gbps_call":159.38,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":12585984,"upload_ms":5.56,"chip_median_ns":89425,"gbps_chip":140.74,"call_median_ns":101681,"gbps_call":123.78,"reps":50,"marker":1145324612,"evict":1},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":22.13,"chip_median_ns":146946,"gbps_chip":171.30,"call_median_ns":155314,"gbps_call":162.07,"reps":50,"marker":1145324612,"evict":1},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":33562624,"upload_ms":14.82,"chip_median_ns":191650,"gbps_chip":175.12,"call_median_ns":202786,"gbps_call":165.51,"reps":50,"marker":1145324612,"evict":1}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-grouped-old.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-grouped-old.json new file mode 100644 index 000000000..004a934d5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-grouped-old.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":25171968,"upload_ms":11.35,"chip_median_ns":152594,"gbps_chip":164.96,"call_median_ns":161410,"gbps_call":155.95,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":12585984,"upload_ms":5.55,"chip_median_ns":168547,"gbps_chip":74.67,"call_median_ns":180978,"gbps_call":69.54,"reps":50,"marker":1145324612,"evict":1}],"checks":7,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-main.json new file mode 100644 index 000000000..fab7e4442 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-main.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":1,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":1,"bytes":32776,"upload_ms":0.10,"chip_median_ns":16529,"gbps_chip":1.98,"call_median_ns":22576,"gbps_call":1.45,"reps":50,"marker":1145324612,"evict":1},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":1,"grid_x":32,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":196656,"upload_ms":0.32,"chip_median_ns":16048,"gbps_chip":12.25,"call_median_ns":25584,"gbps_call":7.69,"reps":50,"marker":1145324612,"evict":1},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":1,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":786624,"upload_ms":0.52,"chip_median_ns":24480,"gbps_chip":32.13,"call_median_ns":40001,"gbps_call":19.67,"reps":50,"marker":1145324612,"evict":1},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":1,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1573248,"upload_ms":0.83,"chip_median_ns":27488,"gbps_chip":57.23,"call_median_ns":43440,"gbps_call":36.22,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":3146496,"upload_ms":1.53,"chip_median_ns":39009,"gbps_chip":80.66,"call_median_ns":55873,"gbps_call":56.32,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":1573248,"upload_ms":0.79,"chip_median_ns":46401,"gbps_chip":33.91,"call_median_ns":58705,"gbps_call":26.80,"reps":50,"marker":1145324612,"evict":1},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.71,"chip_median_ns":77777,"gbps_chip":107.88,"call_median_ns":83665,"gbps_call":100.29,"reps":50,"marker":1145324612,"evict":1},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":1,"grid_x":64,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1048832,"upload_ms":0.60,"chip_median_ns":25888,"gbps_chip":40.51,"call_median_ns":41616,"gbps_call":25.20,"reps":50,"marker":1145324612,"evict":1},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.68,"chip_median_ns":69601,"gbps_chip":120.55,"call_median_ns":74417,"gbps_call":112.75,"reps":50,"marker":1145324612,"evict":1},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":10488320,"upload_ms":4.63,"chip_median_ns":82449,"gbps_chip":127.21,"call_median_ns":88017,"gbps_call":119.16,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":11.28,"chip_median_ns":146834,"gbps_chip":171.43,"call_median_ns":155362,"gbps_call":162.02,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":12585984,"upload_ms":5.55,"chip_median_ns":92801,"gbps_chip":135.62,"call_median_ns":105458,"gbps_call":119.35,"reps":50,"marker":1145324612,"evict":1},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":22.23,"chip_median_ns":147025,"gbps_chip":171.21,"call_median_ns":155506,"gbps_call":161.87,"reps":50,"marker":1145324612,"evict":1},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":33562624,"upload_ms":14.85,"chip_median_ns":192323,"gbps_chip":174.51,"call_median_ns":203842,"gbps_call":164.65,"reps":50,"marker":1145324612,"evict":1}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-noevict.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-noevict.json new file mode 100644 index 000000000..29197b8f2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/receipt-noevict.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":1,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":1,"bytes":32776,"upload_ms":0.10,"chip_median_ns":17856,"gbps_chip":1.84,"call_median_ns":24001,"gbps_call":1.37,"reps":50,"marker":1145324612,"evict":0},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":1,"grid_x":32,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":196656,"upload_ms":0.25,"chip_median_ns":24737,"gbps_chip":7.95,"call_median_ns":34273,"gbps_call":5.74,"reps":50,"marker":1145324612,"evict":0},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":1,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":786624,"upload_ms":0.48,"chip_median_ns":38801,"gbps_chip":20.27,"call_median_ns":54513,"gbps_call":14.43,"reps":50,"marker":1145324612,"evict":0},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":1,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1573248,"upload_ms":0.78,"chip_median_ns":59537,"gbps_chip":26.42,"call_median_ns":76081,"gbps_call":20.68,"reps":50,"marker":1145324612,"evict":0},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":3146496,"upload_ms":1.47,"chip_median_ns":79649,"gbps_chip":39.50,"call_median_ns":96274,"gbps_call":32.68,"reps":50,"marker":1145324612,"evict":0},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":1573248,"upload_ms":0.79,"chip_median_ns":58592,"gbps_chip":26.85,"call_median_ns":70353,"gbps_call":22.36,"reps":50,"marker":1145324612,"evict":0},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.68,"chip_median_ns":109042,"gbps_chip":76.95,"call_median_ns":115554,"gbps_call":72.61,"reps":50,"marker":1145324612,"evict":0},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":1,"grid_x":64,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1048832,"upload_ms":0.59,"chip_median_ns":34048,"gbps_chip":30.80,"call_median_ns":49841,"gbps_call":21.04,"reps":50,"marker":1145324612,"evict":0},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.65,"chip_median_ns":136321,"gbps_chip":61.55,"call_median_ns":140994,"gbps_call":59.51,"reps":50,"marker":1145324612,"evict":0},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":10488320,"upload_ms":4.66,"chip_median_ns":80449,"gbps_chip":130.37,"call_median_ns":85889,"gbps_call":122.11,"reps":50,"marker":1145324612,"evict":0},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":11.21,"chip_median_ns":147730,"gbps_chip":170.39,"call_median_ns":156466,"gbps_call":160.88,"reps":50,"marker":1145324612,"evict":0},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":12585984,"upload_ms":5.54,"chip_median_ns":86529,"gbps_chip":145.45,"call_median_ns":98738,"gbps_call":127.47,"reps":50,"marker":1145324612,"evict":0},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":22.49,"chip_median_ns":144578,"gbps_chip":174.11,"call_median_ns":153634,"gbps_call":163.84,"reps":50,"marker":1145324612,"evict":0},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":33562624,"upload_ms":14.76,"chip_median_ns":185442,"gbps_chip":180.99,"call_median_ns":196931,"gbps_call":170.43,"reps":50,"marker":1145324612,"evict":0}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/sim.log new file mode 100644 index 000000000..bee487a7d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8/sim.log @@ -0,0 +1,62 @@ +sim one-hot conversion: 256/256 rows exact +sim k256 lb8 r1 w1 rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r1 w1 deep rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r2 w2 rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 deep rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 deep mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 deep mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k768 lb8 r4 w8 (down shape width) rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r4 w8 (down shape width) deep rc=0 worst_rel=3.352e-08 bad=0 (9 ms) +sim k768 lb8 r8 rc=0 worst_rel=3.023e-08 bad=0 (9 ms) +sim k2048 lb16 r8 w8 (gate shape width) rc=0 worst_rel=2.818e-08 bad=0 (33 ms) +sim k2048 lb16 r8 w8 (gate shape width) mutant 1: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 2: caught (rc=0 bad=383 worst_rel=1.578e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 4: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r1 rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k2048 lb16 r1 deep rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) deep rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim 4 experts shared x (gate+up) rc=0 worst_rel=2.646e-08 bad=0 (88 ms) +sim 4 experts shared x (gate+up) mutant 1: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 4 experts shared x (gate+up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.503e-01) +sim 4 experts shared x (gate+up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.976e-01) +sim 4 experts shared x (gate+up) mutant 4: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep rc=0 worst_rel=4.441e-08 bad=0 (76 ms) +sim 8 groups per-group x, repeated ids (down) deep mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 2 groups per-group x rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim 2 groups per-group x deep rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim k768 w7: partial staging round (deep) rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim k768 w7: partial staging round (deep) deep rc=0 worst_rel=2.724e-08 bad=0 (22 ms) +sim battery: worst relative error 7.101e-08 over 11 points, 12579824 warp issues +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) rc=0 worst_rel=2.463e-08 bad=0 identical_to_v1=1 (26 ms) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 1: caught (rc=0 bad=256 worst_rel=2.218e-01, identity check differs=1) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 2: caught (rc=0 bad=256 worst_rel=1.690e-01, identity check differs=1) +sim v2 k2048 lb16 r2 w8 (128 B per lane) rc=0 worst_rel=2.578e-08 bad=0 identical_to_v1=1 (24 ms) +sim v2 k4096 lb16 r1 w8 (o_proj width) rc=0 worst_rel=1.878e-08 bad=0 identical_to_v1=1 (50 ms) +sim v2 k768 lb8 r1 w8 (down width) rc=0 worst_rel=2.677e-08 bad=0 identical_to_v1=1 (11 ms) +sim v2 k768 lb8 r4 w8 rc=0 worst_rel=3.253e-08 bad=0 identical_to_v1=1 (10 ms) +sim v2 k768 w7: partial staging round rc=0 worst_rel=3.262e-08 bad=0 identical_to_v1=1 (23 ms) +sim v2 4 experts shared x (gate_up) rc=0 worst_rel=2.472e-08 bad=0 identical_to_v1=1 (103 ms) +sim v2 4 experts shared x (gate_up) mutant 1: caught (rc=0 bad=1022 worst_rel=2.155e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.745e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.980e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.875e-08 bad=0 identical_to_v1=1 (82 ms) +sim v2 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2048 worst_rel=3.773e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=5.105e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=1.327e+00, identity check differs=1) +sim v2 2 groups per-group x, r8 k256 rc=0 worst_rel=5.595e-08 bad=0 identical_to_v1=1 (4 ms) +sim v2 k512 w3 (odd warps, tail row groups) rc=0 worst_rel=4.233e-08 bad=0 identical_to_v1=1 (7 ms) +sim v2 battery: 10/10 points bit-identical to variant 1 +gpu_fp8_api_test: 70 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2.out new file mode 100644 index 000000000..335bedb2c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2.out @@ -0,0 +1,220 @@ +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 180 kernels built, largest 884 IR instructions, peak 88 GPRs +nvdisasm k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_2443996.sass) +nvdisasm k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_2443996.sass) +nvdisasm k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_2443996.sass) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +nvdisasm v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_2443996.sass) +gpu_fp8_api_test: 1482 checks, 0 failed: PASS +sim one-hot conversion: 256/256 rows exact +sim k256 lb8 r1 w1 rc=0 worst_rel=4.868e-08 bad=0 (5 ms) +sim k256 lb8 r1 w1 deep rc=0 worst_rel=4.868e-08 bad=0 (5 ms) +sim k256 lb8 r2 w2 rc=0 worst_rel=3.955e-08 bad=0 (7 ms) +sim k256 lb8 r2 w2 mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 deep rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 deep mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 deep mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k768 lb8 r4 w8 (down shape width) rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r4 w8 (down shape width) deep rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r8 rc=0 worst_rel=3.023e-08 bad=0 (9 ms) +sim k2048 lb16 r8 w8 (gate shape width) rc=0 worst_rel=2.818e-08 bad=0 (33 ms) +sim k2048 lb16 r8 w8 (gate shape width) mutant 1: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 2: caught (rc=0 bad=383 worst_rel=1.578e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 4: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r1 rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k2048 lb16 r1 deep rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) deep rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim 4 experts shared x (gate+up) rc=0 worst_rel=2.646e-08 bad=0 (88 ms) +sim 4 experts shared x (gate+up) mutant 1: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 4 experts shared x (gate+up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.503e-01) +sim 4 experts shared x (gate+up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.976e-01) +sim 4 experts shared x (gate+up) mutant 4: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep rc=0 worst_rel=4.441e-08 bad=0 (76 ms) +sim 8 groups per-group x, repeated ids (down) deep mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 2 groups per-group x rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim 2 groups per-group x deep rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim k768 w7: partial staging round (deep) rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim k768 w7: partial staging round (deep) deep rc=0 worst_rel=2.724e-08 bad=0 (22 ms) +sim battery: worst relative error 7.101e-08 over 11 points, 12579824 warp issues +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) rc=0 worst_rel=2.463e-08 bad=0 identical_to_v1=1 (26 ms) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 1: caught (rc=0 bad=256 worst_rel=2.218e-01, identity check differs=1) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 2: caught (rc=0 bad=256 worst_rel=1.690e-01, identity check differs=1) +sim v2 k2048 lb16 r2 w8 (128 B per lane) rc=0 worst_rel=2.578e-08 bad=0 identical_to_v1=1 (24 ms) +sim v2 k4096 lb16 r1 w8 (o_proj width) rc=0 worst_rel=1.878e-08 bad=0 identical_to_v1=1 (50 ms) +sim v2 k768 lb8 r1 w8 (down width) rc=0 worst_rel=2.677e-08 bad=0 identical_to_v1=1 (11 ms) +sim v2 k768 lb8 r4 w8 rc=0 worst_rel=3.253e-08 bad=0 identical_to_v1=1 (10 ms) +sim v2 k768 w7: partial staging round rc=0 worst_rel=3.262e-08 bad=0 identical_to_v1=1 (23 ms) +sim v2 4 experts shared x (gate_up) rc=0 worst_rel=2.472e-08 bad=0 identical_to_v1=1 (103 ms) +sim v2 4 experts shared x (gate_up) mutant 1: caught (rc=0 bad=1022 worst_rel=2.155e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.745e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.980e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.875e-08 bad=0 identical_to_v1=1 (82 ms) +sim v2 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2048 worst_rel=3.773e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=5.105e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=1.327e+00, identity check differs=1) +sim v2 2 groups per-group x, r8 k256 rc=0 worst_rel=5.595e-08 bad=0 identical_to_v1=1 (4 ms) +sim v2 k512 w3 (odd warps, tail row groups) rc=0 worst_rel=4.233e-08 bad=0 identical_to_v1=1 (7 ms) +sim v2 battery: 10/10 points bit-identical to variant 1 +gpu_fp8_api_test: 70 checks, 0 failed: PASS +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=17.1us (1.9 GB/s) call_med=23.1us (1.4 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=24.8us (7.9 GB/s) call_med=34.1us (5.8 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=18.8us (41.9 GB/s) call_med=34.2us (23.0 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.9ms chip_med=21.3us (74.0 GB/s) call_med=37.1us (42.4 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.6ms chip_med=34.7us (90.6 GB/s) call_med=51.5us (61.1 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=46.1us (34.1 GB/s) call_med=58.8us (26.7 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=61.2us (137.1 GB/s) call_med=67.3us (124.6 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=19.7us (53.3 GB/s) call_med=35.8us (29.3 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=66.4us (126.4 GB/s) call_med=71.7us (117.1 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.6ms chip_med=80.4us (130.5 GB/s) call_med=86.9us (120.7 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.6ms chip_med=145.9us (172.5 GB/s) call_med=155.2us (162.2 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.6ms chip_med=90.0us (139.8 GB/s) call_med=102.3us (123.1 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.2ms chip_med=149.5us (168.3 GB/s) call_med=157.9us (159.4 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.8ms chip_med=186.9us (179.6 GB/s) call_med=198.0us (169.5 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +v1 exit 0 (baseline) +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=2 rc=OK bad=0 worst_rel=3.713e-08 grid=8x1 lb=8 rows=1 warps=16 depth=1 bytes=32776 upload=0.1ms chip_med=14.7us (2.2 GB/s) call_med=15.7us (2.1 GB/s) reps=50 +chip k768 n256 variant=2 rc=OK bad=0 worst_rel=2.681e-08 grid=16x1 lb=8 rows=1 warps=16 depth=3 bytes=196656 upload=0.3ms chip_med=17.2us (11.5 GB/s) call_med=18.4us (10.7 GB/s) reps=50 +chip k2048 n384 variant=2 rc=OK bad=0 worst_rel=2.689e-08 grid=24x1 lb=16 rows=1 warps=16 depth=4 bytes=786624 upload=0.5ms chip_med=22.1us (35.5 GB/s) call_med=24.2us (32.6 GB/s) reps=50 +chip gate 768x2048 variant=2 rc=OK bad=0 worst_rel=3.011e-08 grid=48x1 lb=16 rows=1 warps=16 depth=4 bytes=1573248 upload=0.9ms chip_med=31.6us (49.7 GB/s) call_med=34.0us (46.3 GB/s) reps=50 +chip gate+up 1536x2048 variant=2 rc=OK bad=0 worst_rel=2.434e-08 grid=96x1 lb=16 rows=1 warps=16 depth=4 bytes=3146496 upload=1.6ms chip_med=38.3us (82.1 GB/s) call_med=42.4us (74.3 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=2 rc=OK bad=0 worst_rel=4.271e-08 grid=128x1 lb=8 rows=1 warps=16 depth=3 bytes=1573248 upload=0.8ms chip_med=43.9us (35.8 GB/s) call_med=49.3us (31.9 GB/s) reps=50 +chip q_proj 4096x2048 variant=2 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=16 depth=4 bytes=8390656 upload=3.8ms chip_med=83.1us (101.0 GB/s) call_med=88.8us (94.5 GB/s) reps=50 +chip k_proj 512x2048 variant=2 rc=OK bad=0 worst_rel=2.309e-08 grid=32x1 lb=16 rows=1 warps=16 depth=4 bytes=1048832 upload=0.6ms chip_med=23.0us (45.7 GB/s) call_med=25.5us (41.2 GB/s) reps=50 +chip o_proj 2048x4096 variant=2 rc=OK bad=0 worst_rel=2.168e-08 grid=128x1 lb=16 rows=1 warps=16 depth=8 bytes=8390656 upload=3.7ms chip_med=69.9us (120.1 GB/s) call_med=74.6us (112.4 GB/s) reps=50 +chip qkv fused 5120x2048 variant=2 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=16 depth=4 bytes=10488320 upload=4.7ms chip_med=90.9us (115.3 GB/s) call_med=97.6us (107.4 GB/s) reps=50 +chip 8 experts gate+up shared x variant=2 rc=OK bad=0 worst_rel=3.010e-08 grid=12x8 lb=16 rows=1 warps=16 depth=4 bytes=25171968 upload=11.3ms chip_med=180.7us (139.3 GB/s) call_med=189.8us (132.6 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=2 rc=OK bad=0 worst_rel=4.885e-08 grid=12x8 lb=8 rows=1 warps=16 depth=3 bytes=12585984 upload=5.6ms chip_med=121.5us (103.6 GB/s) call_med=134.1us (93.9 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=2 rc=OK bad=0 worst_rel=3.255e-08 grid=12x8 lb=16 rows=1 warps=16 depth=4 bytes=25171968 upload=22.2ms chip_med=175.4us (143.5 GB/s) call_med=184.3us (136.6 GB/s) reps=50 +chip large 16384x2048 variant=2 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=16 depth=4 bytes=33562624 upload=14.9ms chip_med=238.1us (141.0 GB/s) call_med=250.3us (134.1 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 4044.7 us <= chip 4074.8 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 31.3 us qkv x2 136.0 us attn x2 144.4 us o_proj x2 121.7 us res_add x2 10.0 us router x2 56.3 us gate_up x2 339.5 us swiglu x2 36.0 us down x2 197.8 us combine_norm x2 68.8 us lm_head x1 2887.0 us argmax x2 16.2 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5070.4 us | C one list 22 launches 3973.7 us (chip 3970.2 us, record 2.7 us) | B per-launch submits 22 launches 5333.9 us (chip sum 5323.8 us) +chip: 13 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 4088.2 us <= chip 4192.7 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 11.7 us qkv x2 181.9 us attn x2 144.6 us o_proj x2 127.8 us res_add x2 10.2 us router x2 49.3 us gate_up x2 332.5 us swiglu x2 6.3 us down x2 246.6 us combine_norm x2 19.2 us lm_head x1 2943.2 us argmax x2 14.7 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5211.4 us | C one list 22 launches 4154.6 us (chip 4148.0 us, record 5.0 us) | B per-launch submits 22 launches 5605.1 us (chip sum 5594.0 us) +chip: 13 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3922.8 us <= chip 3961.0 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 15.8 us qkv x2 151.0 us attn x2 146.6 us o_proj x2 118.0 us res_add x2 9.7 us router x2 48.2 us gate_up x2 295.0 us swiglu x2 7.0 us down x2 176.1 us combine_norm x2 19.2 us lm_head x1 2920.5 us argmax x2 15.7 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5005.0 us | C one list 22 launches 3978.6 us (chip 3973.9 us, record 2.6 us) | B per-launch submits 22 launches 5336.2 us (chip sum 5326.1 us) +chip: 13 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 4375.6 us <= chip 4393.2 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 9.3 us qkv x2 217.8 us attn x2 228.7 us o_proj x2 159.0 us res_add x2 14.5 us router x2 90.7 us gate_up x2 420.9 us swiglu x2 8.3 us down x2 260.5 us combine_norm x2 25.1 us lm_head x1 2925.3 us argmax x2 15.5 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5296.1 us | C one list 22 launches 4076.2 us (chip 4073.0 us, record 3.1 us) | B per-launch submits 22 launches 5643.5 us (chip sum 5633.6 us) +chip: 13 checks, 0 failed: PASS +logits hashes across the 4 graph runs: 1 distinct (must be 1) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 31.3 us qkv x2 136.0 us attn x2 144.4 us o_proj x2 121.7 us res_add x2 10.0 us router x2 56.3 us gate_up x2 339.5 us swiglu x2 36.0 us down x2 197.8 us combine_norm x2 68.8 us lm_head x1 2887.0 us argmax x2 16.2 us +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 15.8 us qkv x2 151.0 us attn x2 146.6 us o_proj x2 118.0 us res_add x2 9.7 us router x2 48.2 us gate_up x2 295.0 us swiglu x2 7.0 us down x2 176.1 us combine_norm x2 19.2 us lm_head x1 2920.5 us argmax x2 15.7 us +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 11.7 us qkv x2 181.9 us attn x2 144.6 us o_proj x2 127.8 us res_add x2 10.2 us router x2 49.3 us gate_up x2 332.5 us swiglu x2 6.3 us down x2 246.6 us combine_norm x2 19.2 us lm_head x1 2943.2 us argmax x2 14.7 us +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 9.3 us qkv x2 217.8 us attn x2 228.7 us o_proj x2 159.0 us res_add x2 14.5 us router x2 90.7 us gate_up x2 420.9 us swiglu x2 8.3 us down x2 260.5 us combine_norm x2 25.1 us lm_head x1 2925.3 us argmax x2 15.5 us +GPU_FP8_V2_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/SHA256SUMS new file mode 100644 index 000000000..f2a94ff31 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/SHA256SUMS @@ -0,0 +1,18 @@ +004c172b840b736c43d427d650401eec724182aaa4cf9cbde794dc8dd1ef65af receipt-graph-v1-r1.json +2b8549de244cdd53157aee537838cbc95921102041b70df74a888dbb9c1edd95 receipt-graph-v1-r2.json +82ed77b500afd40639ca6512c8f4a3ce58879e39b9e82f2d78fd4b12fe89ac81 receipt-graph-v2-r1.json +91c00ac9300ead58eb272f22604244ae0bb633161324f34771d6f0bc4cd90768 receipt-graph-v2-r2.json +c8ac5922924982067f28537030a66983f5a484b9cf5c7d91d058af62fad710e3 receipt-v1.json +cf427f3b80dbb52c65b93e1d54ce3f3a72183370e845d35ed1c1634e30873b1c receipt-v2.json +9ee95d0ed0948aada09e5749bfb59cf60f55e36517932092dc5b2e8fe0e004b8 build.log +a02d0c1e858c6eb88a54b9749a3bb934ee79d1913346fb3763691838aaeb792d graph-v1-r1.log +6da7ed95ed3c91e889876a198d42ff5c30ff09303e91d64c11677dd7e618cfc7 graph-v1-r2.log +472a6f1e1e1d083b9db92d46eec0c2a65275406d379fe61918f28d126ae17890 graph-v2-r1.log +4a8bea9db228ced98b08091cf2cecec31b1dd59165cb85f35268ddc282006cc7 graph-v2-r2.log +396d89d9f81bff880b47cd36aad3e3d9d6a2849b957bebcd5aae0b56e4e4d689 host-only.log +1545db107f628379407816ad749e07ce02076637a886e3765581f80d3051b555 sim.log +c6792b51331507c6670bc3a64c8433cb84f5239f2a4c5c3fec938e841867db28 v1.log +0ddedee822b1becfc017e2f39a47cab912aa4c37da487b24135ff3dc60844904 v2.log +b1fff112c5495f7dd095e3d5433bf7ff84b600661fa2c4d951f7115fe0eec215 device.txt +4746a8e5fdaacbd10938290d240344cab5b29bb97b060546c6b1c99dccad6d9b hash.txt +6ae902c0914343264c9092557c0baf74a76650676ba4aecb2a186ca51927066d timelines.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/build.log new file mode 100644 index 000000000..4e33460b3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/build.log @@ -0,0 +1 @@ +make: 'build/gpu_decode_graph_test' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/device.txt new file mode 100644 index 000000000..4625babf8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/device.txt @@ -0,0 +1,7 @@ +start 2026-10-15T00:55:58Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 72 2 37 105 + 19:55:58 up 8 days, 13:24, 20 users, load average: 1.37, 2.58, 2.54 +end 2026-10-15T00:56:12Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v1-r1.log new file mode 100644 index 000000000..cf43d2c6f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v1-r1.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 4044.7 us <= chip 4074.8 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 31.3 us qkv x2 136.0 us attn x2 144.4 us o_proj x2 121.7 us res_add x2 10.0 us router x2 56.3 us gate_up x2 339.5 us swiglu x2 36.0 us down x2 197.8 us combine_norm x2 68.8 us lm_head x1 2887.0 us argmax x2 16.2 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5070.4 us | C one list 22 launches 3973.7 us (chip 3970.2 us, record 2.7 us) | B per-launch submits 22 launches 5333.9 us (chip sum 5323.8 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v1-r2.log new file mode 100644 index 000000000..7e5135e9e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v1-r2.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3922.8 us <= chip 3961.0 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 15.8 us qkv x2 151.0 us attn x2 146.6 us o_proj x2 118.0 us res_add x2 9.7 us router x2 48.2 us gate_up x2 295.0 us swiglu x2 7.0 us down x2 176.1 us combine_norm x2 19.2 us lm_head x1 2920.5 us argmax x2 15.7 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5005.0 us | C one list 22 launches 3978.6 us (chip 3973.9 us, record 2.6 us) | B per-launch submits 22 launches 5336.2 us (chip sum 5326.1 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v2-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v2-r1.log new file mode 100644 index 000000000..b4199fa9e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v2-r1.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 4088.2 us <= chip 4192.7 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 11.7 us qkv x2 181.9 us attn x2 144.6 us o_proj x2 127.8 us res_add x2 10.2 us router x2 49.3 us gate_up x2 332.5 us swiglu x2 6.3 us down x2 246.6 us combine_norm x2 19.2 us lm_head x1 2943.2 us argmax x2 14.7 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5211.4 us | C one list 22 launches 4154.6 us (chip 4148.0 us, record 5.0 us) | B per-launch submits 22 launches 5605.1 us (chip sum 5594.0 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v2-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v2-r2.log new file mode 100644 index 000000000..8d87c1c02 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/graph-v2-r2.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 5 reps ran +ok: A deterministic over 5 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 5 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 5 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 5 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 4375.6 us <= chip 4393.2 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 9.3 us qkv x2 217.8 us attn x2 228.7 us o_proj x2 159.0 us res_add x2 14.5 us router x2 90.7 us gate_up x2 420.9 us swiglu x2 8.3 us down x2 260.5 us combine_norm x2 25.1 us lm_head x1 2925.3 us argmax x2 15.5 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 5, 2 layers): A host-glue 13 launches 5296.1 us | C one list 22 launches 4076.2 us (chip 4073.0 us, record 3.1 us) | B per-launch submits 22 launches 5643.5 us (chip sum 5633.6 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/hash.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/hash.txt new file mode 100644 index 000000000..a33d6b30e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/hash.txt @@ -0,0 +1 @@ +logits hashes across the 4 graph runs: 1 distinct (must be 1) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/host-only.log new file mode 100644 index 000000000..94295c11f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/host-only.log @@ -0,0 +1,17 @@ +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 180 kernels built, largest 884 IR instructions, peak 88 GPRs +nvdisasm k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_2443996.sass) +nvdisasm k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_2443996.sass) +nvdisasm k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_2443996.sass) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +nvdisasm v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_2443996.sass) +gpu_fp8_api_test: 1482 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v1-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v1-r1.json new file mode 100644 index 000000000..0902364fd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v1-r1.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":5,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":4044736,"chip_ns":4074788,"per_kind_ns":{"norm":[1,31264],"qkv":[2,135968],"attn":[2,144448],"o_proj":[2,121664],"res_add":[2,9984],"router":[2,56256],"gate_up":[2,339488],"swiglu":[2,35968],"down":[2,197760],"combine_norm":[2,68768],"lm_head":[1,2887008],"argmax":[2,16160]}},"median_ns":{"A_total":5070368,"C_total":3973698,"C_chip":3970194,"C_record":2656,"B_total":5333860,"B_chip":5323780},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v1-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v1-r2.json new file mode 100644 index 000000000..de495149f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v1-r2.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":5,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3922816,"chip_ns":3960962,"per_kind_ns":{"norm":[1,15840],"qkv":[2,150976],"attn":[2,146624],"o_proj":[2,117952],"res_add":[2,9728],"router":[2,48192],"gate_up":[2,295040],"swiglu":[2,7008],"down":[2,176064],"combine_norm":[2,19168],"lm_head":[1,2920480],"argmax":[2,15744]}},"median_ns":{"A_total":5004959,"C_total":3978578,"C_chip":3973891,"C_record":2608,"B_total":5336196,"B_chip":5326132},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v2-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v2-r1.json new file mode 100644 index 000000000..9521867fe --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v2-r1.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":5,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":4088224,"chip_ns":4192661,"per_kind_ns":{"norm":[1,11712],"qkv":[2,181920],"attn":[2,144608],"o_proj":[2,127840],"res_add":[2,10240],"router":[2,49344],"gate_up":[2,332544],"swiglu":[2,6304],"down":[2,246592],"combine_norm":[2,19168],"lm_head":[1,2943232],"argmax":[2,14720]}},"median_ns":{"A_total":5211442,"C_total":4154580,"C_chip":4148037,"C_record":4993,"B_total":5605112,"B_chip":5593960},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v2-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v2-r2.json new file mode 100644 index 000000000..d030adea1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-graph-v2-r2.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":5,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":4375616,"chip_ns":4393239,"per_kind_ns":{"norm":[1,9280],"qkv":[2,217824],"attn":[2,228704],"o_proj":[2,159008],"res_add":[2,14496],"router":[2,90720],"gate_up":[2,420864],"swiglu":[2,8256],"down":[2,260512],"combine_norm":[2,25120],"lm_head":[1,2925312],"argmax":[2,15520]}},"median_ns":{"A_total":5296051,"C_total":4076244,"C_chip":4073044,"C_record":3120,"B_total":5643543,"B_chip":5633559},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-v1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-v1.json new file mode 100644 index 000000000..5bfe759c7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-v1.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":1,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":1,"bytes":32776,"upload_ms":0.10,"chip_median_ns":17120,"gbps_chip":1.91,"call_median_ns":23089,"gbps_call":1.42,"reps":50,"marker":1145324612,"evict":1},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":1,"grid_x":32,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":196656,"upload_ms":0.34,"chip_median_ns":24832,"gbps_chip":7.92,"call_median_ns":34129,"gbps_call":5.76,"reps":50,"marker":1145324612,"evict":1},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":1,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":786624,"upload_ms":0.53,"chip_median_ns":18784,"gbps_chip":41.88,"call_median_ns":34176,"gbps_call":23.02,"reps":50,"marker":1145324612,"evict":1},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":1,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1573248,"upload_ms":0.86,"chip_median_ns":21265,"gbps_chip":73.98,"call_median_ns":37073,"gbps_call":42.44,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":3146496,"upload_ms":1.57,"chip_median_ns":34737,"gbps_chip":90.58,"call_median_ns":51457,"gbps_call":61.15,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":1573248,"upload_ms":0.78,"chip_median_ns":46129,"gbps_chip":34.11,"call_median_ns":58849,"gbps_call":26.73,"reps":50,"marker":1145324612,"evict":1},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.72,"chip_median_ns":61185,"gbps_chip":137.14,"call_median_ns":67328,"gbps_call":124.62,"reps":50,"marker":1145324612,"evict":1},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":1,"grid_x":64,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1048832,"upload_ms":0.63,"chip_median_ns":19696,"gbps_chip":53.25,"call_median_ns":35776,"gbps_call":29.32,"reps":50,"marker":1145324612,"evict":1},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.69,"chip_median_ns":66385,"gbps_chip":126.39,"call_median_ns":71681,"gbps_call":117.06,"reps":50,"marker":1145324612,"evict":1},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":10488320,"upload_ms":4.60,"chip_median_ns":80369,"gbps_chip":130.50,"call_median_ns":86929,"gbps_call":120.65,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":11.56,"chip_median_ns":145890,"gbps_chip":172.54,"call_median_ns":155153,"gbps_call":162.24,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":12585984,"upload_ms":5.56,"chip_median_ns":90001,"gbps_chip":139.84,"call_median_ns":102274,"gbps_call":123.06,"reps":50,"marker":1145324612,"evict":1},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":22.18,"chip_median_ns":149522,"gbps_chip":168.35,"call_median_ns":157922,"gbps_call":159.39,"reps":50,"marker":1145324612,"evict":1},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":33562624,"upload_ms":14.80,"chip_median_ns":186898,"gbps_chip":179.58,"call_median_ns":198002,"gbps_call":169.51,"reps":50,"marker":1145324612,"evict":1}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-v2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-v2.json new file mode 100644 index 000000000..da8be0a2b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/receipt-v2.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":2,"grid_x":8,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":16,"depth":1,"bytes":32776,"upload_ms":0.10,"chip_median_ns":14720,"gbps_chip":2.23,"call_median_ns":15728,"gbps_call":2.08,"reps":50,"marker":1145324612,"evict":1},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":2,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":16,"depth":3,"bytes":196656,"upload_ms":0.34,"chip_median_ns":17168,"gbps_chip":11.45,"call_median_ns":18416,"gbps_call":10.68,"reps":50,"marker":1145324612,"evict":1},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":2,"grid_x":24,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":786624,"upload_ms":0.53,"chip_median_ns":22144,"gbps_chip":35.52,"call_median_ns":24160,"gbps_call":32.56,"reps":50,"marker":1145324612,"evict":1},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":2,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":1573248,"upload_ms":0.87,"chip_median_ns":31633,"gbps_chip":49.73,"call_median_ns":33952,"gbps_call":46.34,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":2,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":3146496,"upload_ms":1.61,"chip_median_ns":38336,"gbps_chip":82.08,"call_median_ns":42368,"gbps_call":74.27,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":2,"grid_x":128,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":16,"depth":3,"bytes":1573248,"upload_ms":0.81,"chip_median_ns":43937,"gbps_chip":35.81,"call_median_ns":49297,"gbps_call":31.91,"reps":50,"marker":1145324612,"evict":1},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":2,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":8390656,"upload_ms":3.78,"chip_median_ns":83089,"gbps_chip":100.98,"call_median_ns":88801,"gbps_call":94.49,"reps":50,"marker":1145324612,"evict":1},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":2,"grid_x":32,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":1048832,"upload_ms":0.64,"chip_median_ns":22961,"gbps_chip":45.68,"call_median_ns":25456,"gbps_call":41.20,"reps":50,"marker":1145324612,"evict":1},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":2,"grid_x":128,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":8,"bytes":8390656,"upload_ms":3.70,"chip_median_ns":69857,"gbps_chip":120.11,"call_median_ns":74625,"gbps_call":112.44,"reps":50,"marker":1145324612,"evict":1},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":2,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":10488320,"upload_ms":4.67,"chip_median_ns":90946,"gbps_chip":115.32,"call_median_ns":97634,"gbps_call":107.42,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":2,"grid_x":12,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":25171968,"upload_ms":11.28,"chip_median_ns":180690,"gbps_chip":139.31,"call_median_ns":189794,"gbps_call":132.63,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":2,"grid_x":12,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":16,"depth":3,"bytes":12585984,"upload_ms":5.56,"chip_median_ns":121537,"gbps_chip":103.56,"call_median_ns":134066,"gbps_call":93.88,"reps":50,"marker":1145324612,"evict":1},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":2,"grid_x":12,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":25171968,"upload_ms":22.24,"chip_median_ns":175394,"gbps_chip":143.52,"call_median_ns":184290,"gbps_call":136.59,"reps":50,"marker":1145324612,"evict":1},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":2,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":16,"depth":4,"bytes":33562624,"upload_ms":14.87,"chip_median_ns":238115,"gbps_chip":140.95,"call_median_ns":250339,"gbps_call":134.07,"reps":50,"marker":1145324612,"evict":1}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/sim.log new file mode 100644 index 000000000..3fc08bff7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/sim.log @@ -0,0 +1,62 @@ +sim one-hot conversion: 256/256 rows exact +sim k256 lb8 r1 w1 rc=0 worst_rel=4.868e-08 bad=0 (5 ms) +sim k256 lb8 r1 w1 deep rc=0 worst_rel=4.868e-08 bad=0 (5 ms) +sim k256 lb8 r2 w2 rc=0 worst_rel=3.955e-08 bad=0 (7 ms) +sim k256 lb8 r2 w2 mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 deep rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 deep mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 deep mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k768 lb8 r4 w8 (down shape width) rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r4 w8 (down shape width) deep rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r8 rc=0 worst_rel=3.023e-08 bad=0 (9 ms) +sim k2048 lb16 r8 w8 (gate shape width) rc=0 worst_rel=2.818e-08 bad=0 (33 ms) +sim k2048 lb16 r8 w8 (gate shape width) mutant 1: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 2: caught (rc=0 bad=383 worst_rel=1.578e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 4: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r1 rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k2048 lb16 r1 deep rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) deep rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim 4 experts shared x (gate+up) rc=0 worst_rel=2.646e-08 bad=0 (88 ms) +sim 4 experts shared x (gate+up) mutant 1: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 4 experts shared x (gate+up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.503e-01) +sim 4 experts shared x (gate+up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.976e-01) +sim 4 experts shared x (gate+up) mutant 4: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep rc=0 worst_rel=4.441e-08 bad=0 (76 ms) +sim 8 groups per-group x, repeated ids (down) deep mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 2 groups per-group x rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim 2 groups per-group x deep rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim k768 w7: partial staging round (deep) rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim k768 w7: partial staging round (deep) deep rc=0 worst_rel=2.724e-08 bad=0 (22 ms) +sim battery: worst relative error 7.101e-08 over 11 points, 12579824 warp issues +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) rc=0 worst_rel=2.463e-08 bad=0 identical_to_v1=1 (26 ms) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 1: caught (rc=0 bad=256 worst_rel=2.218e-01, identity check differs=1) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 2: caught (rc=0 bad=256 worst_rel=1.690e-01, identity check differs=1) +sim v2 k2048 lb16 r2 w8 (128 B per lane) rc=0 worst_rel=2.578e-08 bad=0 identical_to_v1=1 (24 ms) +sim v2 k4096 lb16 r1 w8 (o_proj width) rc=0 worst_rel=1.878e-08 bad=0 identical_to_v1=1 (50 ms) +sim v2 k768 lb8 r1 w8 (down width) rc=0 worst_rel=2.677e-08 bad=0 identical_to_v1=1 (11 ms) +sim v2 k768 lb8 r4 w8 rc=0 worst_rel=3.253e-08 bad=0 identical_to_v1=1 (10 ms) +sim v2 k768 w7: partial staging round rc=0 worst_rel=3.262e-08 bad=0 identical_to_v1=1 (23 ms) +sim v2 4 experts shared x (gate_up) rc=0 worst_rel=2.472e-08 bad=0 identical_to_v1=1 (103 ms) +sim v2 4 experts shared x (gate_up) mutant 1: caught (rc=0 bad=1022 worst_rel=2.155e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.745e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.980e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.875e-08 bad=0 identical_to_v1=1 (82 ms) +sim v2 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2048 worst_rel=3.773e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=5.105e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=1.327e+00, identity check differs=1) +sim v2 2 groups per-group x, r8 k256 rc=0 worst_rel=5.595e-08 bad=0 identical_to_v1=1 (4 ms) +sim v2 k512 w3 (odd warps, tail row groups) rc=0 worst_rel=4.233e-08 bad=0 identical_to_v1=1 (7 ms) +sim v2 battery: 10/10 points bit-identical to variant 1 +gpu_fp8_api_test: 70 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/timelines.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/timelines.txt new file mode 100644 index 000000000..ab45fe9ac --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/timelines.txt @@ -0,0 +1,8 @@ +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 31.3 us qkv x2 136.0 us attn x2 144.4 us o_proj x2 121.7 us res_add x2 10.0 us router x2 56.3 us gate_up x2 339.5 us swiglu x2 36.0 us down x2 197.8 us combine_norm x2 68.8 us lm_head x1 2887.0 us argmax x2 16.2 us +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 15.8 us qkv x2 151.0 us attn x2 146.6 us o_proj x2 118.0 us res_add x2 9.7 us router x2 48.2 us gate_up x2 295.0 us swiglu x2 7.0 us down x2 176.1 us combine_norm x2 19.2 us lm_head x1 2920.5 us argmax x2 15.7 us +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 11.7 us qkv x2 181.9 us attn x2 144.6 us o_proj x2 127.8 us res_add x2 10.2 us router x2 49.3 us gate_up x2 332.5 us swiglu x2 6.3 us down x2 246.6 us combine_norm x2 19.2 us lm_head x1 2943.2 us argmax x2 14.7 us +fp8 knobs: variant 2 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +TIMELINE (2 layers, pos 300): norm x1 9.3 us qkv x2 217.8 us attn x2 228.7 us o_proj x2 159.0 us res_add x2 14.5 us router x2 90.7 us gate_up x2 420.9 us swiglu x2 8.3 us down x2 260.5 us combine_norm x2 25.1 us lm_head x1 2925.3 us argmax x2 15.5 us diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/v1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/v1.log new file mode 100644 index 000000000..68cafb700 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/v1.log @@ -0,0 +1,24 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=17.1us (1.9 GB/s) call_med=23.1us (1.4 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=24.8us (7.9 GB/s) call_med=34.1us (5.8 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=18.8us (41.9 GB/s) call_med=34.2us (23.0 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.9ms chip_med=21.3us (74.0 GB/s) call_med=37.1us (42.4 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.6ms chip_med=34.7us (90.6 GB/s) call_med=51.5us (61.1 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=46.1us (34.1 GB/s) call_med=58.8us (26.7 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=61.2us (137.1 GB/s) call_med=67.3us (124.6 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=19.7us (53.3 GB/s) call_med=35.8us (29.3 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=66.4us (126.4 GB/s) call_med=71.7us (117.1 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.6ms chip_med=80.4us (130.5 GB/s) call_med=86.9us (120.7 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.6ms chip_med=145.9us (172.5 GB/s) call_med=155.2us (162.2 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.6ms chip_med=90.0us (139.8 GB/s) call_med=102.3us (123.1 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=22.2ms chip_med=149.5us (168.3 GB/s) call_med=157.9us (159.4 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.8ms chip_med=186.9us (179.6 GB/s) call_med=198.0us (169.5 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +v1 exit 0 (baseline) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/v2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/v2.log new file mode 100644 index 000000000..04c07ce49 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8_v2/v2.log @@ -0,0 +1,23 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=2 rc=OK bad=0 worst_rel=3.713e-08 grid=8x1 lb=8 rows=1 warps=16 depth=1 bytes=32776 upload=0.1ms chip_med=14.7us (2.2 GB/s) call_med=15.7us (2.1 GB/s) reps=50 +chip k768 n256 variant=2 rc=OK bad=0 worst_rel=2.681e-08 grid=16x1 lb=8 rows=1 warps=16 depth=3 bytes=196656 upload=0.3ms chip_med=17.2us (11.5 GB/s) call_med=18.4us (10.7 GB/s) reps=50 +chip k2048 n384 variant=2 rc=OK bad=0 worst_rel=2.689e-08 grid=24x1 lb=16 rows=1 warps=16 depth=4 bytes=786624 upload=0.5ms chip_med=22.1us (35.5 GB/s) call_med=24.2us (32.6 GB/s) reps=50 +chip gate 768x2048 variant=2 rc=OK bad=0 worst_rel=3.011e-08 grid=48x1 lb=16 rows=1 warps=16 depth=4 bytes=1573248 upload=0.9ms chip_med=31.6us (49.7 GB/s) call_med=34.0us (46.3 GB/s) reps=50 +chip gate+up 1536x2048 variant=2 rc=OK bad=0 worst_rel=2.434e-08 grid=96x1 lb=16 rows=1 warps=16 depth=4 bytes=3146496 upload=1.6ms chip_med=38.3us (82.1 GB/s) call_med=42.4us (74.3 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=2 rc=OK bad=0 worst_rel=4.271e-08 grid=128x1 lb=8 rows=1 warps=16 depth=3 bytes=1573248 upload=0.8ms chip_med=43.9us (35.8 GB/s) call_med=49.3us (31.9 GB/s) reps=50 +chip q_proj 4096x2048 variant=2 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=16 depth=4 bytes=8390656 upload=3.8ms chip_med=83.1us (101.0 GB/s) call_med=88.8us (94.5 GB/s) reps=50 +chip k_proj 512x2048 variant=2 rc=OK bad=0 worst_rel=2.309e-08 grid=32x1 lb=16 rows=1 warps=16 depth=4 bytes=1048832 upload=0.6ms chip_med=23.0us (45.7 GB/s) call_med=25.5us (41.2 GB/s) reps=50 +chip o_proj 2048x4096 variant=2 rc=OK bad=0 worst_rel=2.168e-08 grid=128x1 lb=16 rows=1 warps=16 depth=8 bytes=8390656 upload=3.7ms chip_med=69.9us (120.1 GB/s) call_med=74.6us (112.4 GB/s) reps=50 +chip qkv fused 5120x2048 variant=2 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=16 depth=4 bytes=10488320 upload=4.7ms chip_med=90.9us (115.3 GB/s) call_med=97.6us (107.4 GB/s) reps=50 +chip 8 experts gate+up shared x variant=2 rc=OK bad=0 worst_rel=3.010e-08 grid=12x8 lb=16 rows=1 warps=16 depth=4 bytes=25171968 upload=11.3ms chip_med=180.7us (139.3 GB/s) call_med=189.8us (132.6 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=2 rc=OK bad=0 worst_rel=4.885e-08 grid=12x8 lb=8 rows=1 warps=16 depth=3 bytes=12585984 upload=5.6ms chip_med=121.5us (103.6 GB/s) call_med=134.1us (93.9 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=2 rc=OK bad=0 worst_rel=3.255e-08 grid=12x8 lb=16 rows=1 warps=16 depth=4 bytes=25171968 upload=22.2ms chip_med=175.4us (143.5 GB/s) call_med=184.3us (136.6 GB/s) reps=50 +chip large 16384x2048 variant=2 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=16 depth=4 bytes=33562624 upload=14.9ms chip_med=238.1us (141.0 GB/s) call_med=250.3us (134.1 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm.out new file mode 100644 index 000000000..fa81646b4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm.out @@ -0,0 +1,169 @@ +host-only: emulation, permutation, budgets +emulation vs oracle: worst relative error 2.00e-08 of the term scale +codegen k 2048 lane 16 mt 8 warps 16: 797 instructions, 107 registers (declared 112, register file 57344 of 65536), shared 16384 B +codegen k 4096 lane 16 mt 8 warps 16: 797 instructions, 107 registers (declared 112, register file 57344 of 65536), shared 16384 B +codegen k 1024 lane 16 mt 8 warps 16: 788 instructions, 104 registers (declared 112, register file 57344 of 65536), shared 16384 B +codegen k 768 lane 8 mt 8 warps 16: 683 instructions, 103 registers (declared 104, register file 53248 of 65536), shared 8192 B +codegen k 768 lane 8 mt 8 warps 8: 731 instructions, 103 registers (declared 104, register file 26624 of 65536), shared 8192 B +codegen k 2048 lane 8 mt 8 warps 16: 541 instructions, 103 registers (declared 104, register file 53248 of 65536), shared 8192 B +codegen k 2048 lane 16 mt 4 warps 16: 509 instructions, 99 registers (declared 104, register file 53248 of 65536), shared 8192 B +codegen k 2048 lane 16 mt 8 warps 32: 765 instructions, 107 registers (declared 112, register file 114688 of 65536) DOES NOT FIT, shared 16384 B +codegen k 2048 lane 16 mt 8 warps 8: 861 instructions, 107 registers (declared 112, register file 28672 of 65536), shared 16384 B +codegen k 2048 lane 16 mt 4 warps 8: 541 instructions, 99 registers (declared 104, register file 26624 of 65536), shared 8192 B +codegen k 4096 lane 16 mt 4 warps 8: 541 instructions, 99 registers (declared 104, register file 26624 of 65536), shared 8192 B +gpu_fp8gemm_test: 53 checks, 0 failed: PASS +sim k 2048 n 40 lane 16 mt 8 warps 16 grid 2: ok 0 of 600 outputs differ from the emulation (bit-identical) +sim k 4096 n 20 lane 16 mt 8 warps 16 grid 1: ok 0 of 220 outputs differ from the emulation (bit-identical) +sim k 1024 n 33 lane 16 mt 8 warps 16 grid 2: ok 0 of 99 outputs differ from the emulation (bit-identical) +sim k 768 n 130 lane 8 mt 8 warps 16 grid 2: ok 0 of 2730 outputs differ from the emulation (bit-identical) +sim k 768 n 24 lane 8 mt 8 warps 8 grid 1: ok 0 of 264 outputs differ from the emulation (bit-identical) +sim k 2048 n 16 lane 16 mt 4 warps 16 grid 1: ok 0 of 160 outputs differ from the emulation (bit-identical) +sim mutant 1: caught 600 of 600 outputs differ from the emulation +sim mutant 2: caught 600 of 600 outputs differ from the emulation +sim mutant 3: caught 600 of 600 outputs differ from the emulation +sim: 3444454 warp issues in total +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 301 ms +parity vs per-row GEMV (512 calls, 28 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 15, evict 1): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 4063.8 us, call 4732.8 us; streams 563 MB (distinct experts 396 MB) = 138.6 GB/s on streamed, 97.5 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 9417.1 us, call 10015.4 us => GEMM is 2.32x faster (chip), 2.12x (call) +per token: GEMM chip 63.5 us/token, call 73.9 us/token +== down: 128 experts, n 2048, k 768, 64 tokens x top-8 +upload 201 MB: rc=OK 84 ms +parity vs per-row GEMV (512 calls, 27 ms): 0 of 1048576 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.23e-08 +second call: bit-identical +chip mutant 1: caught (1048576 of 1048576 outputs differ) +chip mutant 2: caught (1048576 of 1048576 outputs differ) +chip mutant 3: caught (1048576 of 1048576 outputs differ) +GEMM (medians of 15, evict 1): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 1320.8 us, call 2174.9 us; streams 272 MB (distinct experts 198 MB) = 206.0 GB/s on streamed, 150.0 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 5816.0 us, call 6613.2 us => GEMM is 4.40x faster (chip), 3.04x (call) +per token: GEMM chip 20.6 us/token, call 34.0 us/token +== qkv: 1 experts, n 5120, k 2048, 64 tokens x top-1 +upload 10 MB: rc=OK 4 ms +parity vs per-row GEMV (64 calls, 7 ms): 0 of 327680 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 8.42e-09 +second call: bit-identical +chip mutant 1: caught (327680 of 327680 outputs differ) +chip mutant 2: caught (327680 of 327680 outputs differ) +chip mutant 3: caught (327680 of 327680 outputs differ) +GEMM (medians of 15, evict 1): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1817.3 us, call 2100.4 us; streams 84 MB (distinct experts 10 MB) = 46.2 GB/s on streamed, 5.8 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 5167.9 us, call 5535.0 us => GEMM is 2.84x faster (chip), 2.64x (call) +per token: GEMM chip 28.4 us/token, call 32.8 us/token +== o: 1 experts, n 2048, k 4096, 64 tokens x top-1 +upload 8 MB: rc=OK 4 ms +parity vs per-row GEMV (64 calls, 6 ms): 0 of 131072 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 4.26e-09 +second call: bit-identical +chip mutant 1: caught (131072 of 131072 outputs differ) +chip mutant 2: caught (131072 of 131072 outputs differ) +chip mutant 3: caught (131072 of 131072 outputs differ) +GEMM (medians of 15, evict 1): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1463.3 us, call 1701.3 us; streams 67 MB (distinct experts 8 MB) = 45.9 GB/s on streamed, 5.7 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 4418.2 us, call 4667.0 us => GEMM is 3.02x faster (chip), 2.74x (call) +per token: GEMM chip 22.9 us/token, call 26.6 us/token +gpu_fp8gemm_test: 36 checks, 0 failed: PASS +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 302 ms +parity vs per-row GEMV (512 calls, 27 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 9, evict 0): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 3639.6 us, call 4267.8 us; streams 563 MB (distinct experts 396 MB) = 154.7 GB/s on streamed, 108.9 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9440.8 us, call 10104.4 us => GEMM is 2.59x faster (chip), 2.37x (call) +per token: GEMM chip 56.9 us/token, call 66.7 us/token +== down: 128 experts, n 2048, k 768, 64 tokens x top-8 +upload 201 MB: rc=OK 84 ms +parity vs per-row GEMV (512 calls, 28 ms): 0 of 1048576 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.23e-08 +second call: bit-identical +chip mutant 1: caught (1048576 of 1048576 outputs differ) +chip mutant 2: caught (1048576 of 1048576 outputs differ) +chip mutant 3: caught (1048576 of 1048576 outputs differ) +GEMM (medians of 9, evict 0): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 1308.6 us, call 2108.2 us; streams 272 MB (distinct experts 198 MB) = 207.9 GB/s on streamed, 151.4 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 5763.3 us, call 6621.4 us => GEMM is 4.40x faster (chip), 3.14x (call) +per token: GEMM chip 20.4 us/token, call 32.9 us/token +== qkv: 1 experts, n 5120, k 2048, 64 tokens x top-1 +upload 10 MB: rc=OK 4 ms +parity vs per-row GEMV (64 calls, 5 ms): 0 of 327680 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 8.42e-09 +second call: bit-identical +chip mutant 1: caught (327680 of 327680 outputs differ) +chip mutant 2: caught (327680 of 327680 outputs differ) +chip mutant 3: caught (327680 of 327680 outputs differ) +GEMM (medians of 9, evict 0): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1843.7 us, call 2097.9 us; streams 84 MB (distinct experts 10 MB) = 45.5 GB/s on streamed, 5.7 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 4119.1 us, call 4575.6 us => GEMM is 2.23x faster (chip), 2.18x (call) +per token: GEMM chip 28.8 us/token, call 32.8 us/token +== o: 1 experts, n 2048, k 4096, 64 tokens x top-1 +upload 8 MB: rc=OK 3 ms +parity vs per-row GEMV (64 calls, 6 ms): 0 of 131072 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 4.26e-09 +second call: bit-identical +chip mutant 1: caught (131072 of 131072 outputs differ) +chip mutant 2: caught (131072 of 131072 outputs differ) +chip mutant 3: caught (131072 of 131072 outputs differ) +GEMM (medians of 9, evict 0): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1459.7 us, call 1609.7 us; streams 67 MB (distinct experts 8 MB) = 46.0 GB/s on streamed, 5.7 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 4463.0 us, call 4734.7 us => GEMM is 3.06x faster (chip), 2.94x (call) +per token: GEMM chip 22.8 us/token, call 25.2 us/token +gpu_fp8gemm_test: 36 checks, 0 failed: PASS +--no-evict exit 0 (informational) +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 308 ms +parity vs per-row GEMV (512 calls, 26 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 9, evict 1): mt 8 warps 16 ctas 2 x 126 segments, 512 rows, up to 2 passes: chip 5701.4 us, call 6367.5 us; streams 409 MB (distinct experts 396 MB) = 71.7 GB/s on streamed, 69.5 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9467.8 us, call 10048.1 us => GEMM is 1.66x faster (chip), 1.58x (call) +per token: GEMM chip 89.1 us/token, call 99.5 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape gateup --mt 8 exit 0 (informational) +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 305 ms +parity vs per-row GEMV (512 calls, 31 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 9, evict 1): mt 2 warps 16 ctas 2 x 126 segments, 512 rows, up to 5 passes: chip 4048.2 us, call 4703.0 us; streams 928 MB (distinct experts 396 MB) = 229.2 GB/s on streamed, 97.9 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9657.4 us, call 10508.9 us => GEMM is 2.39x faster (chip), 2.23x (call) +per token: GEMM chip 63.3 us/token, call 73.5 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape gateup --mt 2 exit 0 (informational) +== gateup: 128 experts, n 1536, k 2048, 128 tokens x top-8 +upload 403 MB: rc=OK 302 ms +parity vs per-row GEMV (1024 calls, 54 ms): 0 of 1572864 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 7.66e-09 +second call: bit-identical +chip mutant 1: caught (1572864 of 1572864 outputs differ) +chip mutant 2: caught (1572864 of 1572864 outputs differ) +chip mutant 3: caught (1572864 of 1572864 outputs differ) +GEMM (medians of 9, evict 1): mt 4 warps 16 ctas 2 x 128 segments, 1024 rows, up to 4 passes: chip 6399.5 us, call 7896.5 us; streams 966 MB (distinct experts 403 MB) = 150.9 GB/s on streamed, 62.9 GB/s on distinct +per-token grouped GEMV baseline (128 tokens, medians of 9): chip 19015.3 us, call 20429.1 us => GEMM is 2.97x faster (chip), 2.59x (call) +per token: GEMM chip 50.0 us/token, call 61.7 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape gateup --tokens 128 exit 0 (informational) +== down: 128 experts, n 2048, k 768, 128 tokens x top-8 +upload 201 MB: rc=OK 223 ms +parity vs per-row GEMV (1024 calls, 62 ms): 0 of 2097152 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 3.32e-08 +second call: bit-identical +chip mutant 1: caught (2097152 of 2097152 outputs differ) +chip mutant 2: caught (2097151 of 2097152 outputs differ) +chip mutant 3: caught (2097152 of 2097152 outputs differ) +GEMM (medians of 9, evict 1): mt 4 warps 16 ctas 2 x 128 segments, 1024 rows, up to 4 passes: chip 2416.2 us, call 4183.8 us; streams 481 MB (distinct experts 201 MB) = 199.2 GB/s on streamed, 83.3 GB/s on distinct +per-token grouped GEMV baseline (128 tokens, medians of 9): chip 12100.0 us, call 13741.2 us => GEMM is 5.01x faster (chip), 3.28x (call) +per token: GEMM chip 18.9 us/token, call 32.7 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape down --tokens 128 exit 0 (informational) +GPU_FP8GEMM_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/SHA256SUMS new file mode 100644 index 000000000..7334032f7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/SHA256SUMS @@ -0,0 +1,16 @@ +1231c051bad14dacaffc496083b5b8ccd9b8b5a048ae3ce8b103a7725592c394 receipt-down-m1024.json +9f4da9726e0c32b00cc5077d01b2dd0edf4f3178d6b26f094cd0d053c61e671c receipt-gateup-m1024.json +98553636bf0e7f7cd1ff4589171ddda13c237108b0dd057fdb7009286f8105ba receipt-gateup-mt2.json +4931d3e69266737398d8e529cbe36168ce460aa3d0513226fd77e69034684e95 receipt-gateup-mt8.json +6af717e36e2107df93e97386da8909ebbb649bf3e7217cb61c837c0834e14d36 receipt-main.json +eaadc0008b4fb643902bf4d27165701eee15bf97760481dcfa430fc4859c620e receipt-noevict.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +5c1ef87c82804e9d08cd68e3a04e2022cf523b7921d913a2b4793e1651d5d43d down-m1024.log +fa341fd4513bb90dbd11b5f7673b7087c0c942aba8646e875c562149287facf3 gateup-m1024.log +8c6779b5a3a37bc24e36463ccc7b6cbf7a6ea1a0e6d6b248f22b551ad9aa8bd8 gateup-mt2.log +86fcc11c5baf1fb776ffcacb99190550d6adcac7b4f008f59260b48ade26aca1 gateup-mt8.log +353ac9fbed7a53a7aee6343335bae690bc7c918b87d9233bf6bbed4119776884 host-only.log +04ae3cfc7e8a5848991c45933bee38cc989217030301960106d6437745a02ad8 main.log +45b0949647882c06f74d8b832a1417b78ce9e45df4bde4ce141cdbaf28da0403 noevict.log +bc47fe63eed6d5bf7195a461df9e4f8bb583f44c6bf80e19f1eb862f28dc7348 sim.log +fb325b8b97532710dc83a79f7a5464ccd1035721b02c73ce1882166c0e0cf472 device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/device.txt new file mode 100644 index 000000000..0a4f9b199 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:56:12Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 72 2 37 105 +end 2026-10-15T00:56:26Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/down-m1024.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/down-m1024.log new file mode 100644 index 000000000..8c1355bda --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/down-m1024.log @@ -0,0 +1,13 @@ +== down: 128 experts, n 2048, k 768, 128 tokens x top-8 +upload 201 MB: rc=OK 223 ms +parity vs per-row GEMV (1024 calls, 62 ms): 0 of 2097152 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 3.32e-08 +second call: bit-identical +chip mutant 1: caught (2097152 of 2097152 outputs differ) +chip mutant 2: caught (2097151 of 2097152 outputs differ) +chip mutant 3: caught (2097152 of 2097152 outputs differ) +GEMM (medians of 9, evict 1): mt 4 warps 16 ctas 2 x 128 segments, 1024 rows, up to 4 passes: chip 2416.2 us, call 4183.8 us; streams 481 MB (distinct experts 201 MB) = 199.2 GB/s on streamed, 83.3 GB/s on distinct +per-token grouped GEMV baseline (128 tokens, medians of 9): chip 12100.0 us, call 13741.2 us => GEMM is 5.01x faster (chip), 3.28x (call) +per token: GEMM chip 18.9 us/token, call 32.7 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape down --tokens 128 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-m1024.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-m1024.log new file mode 100644 index 000000000..1cab605b0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-m1024.log @@ -0,0 +1,13 @@ +== gateup: 128 experts, n 1536, k 2048, 128 tokens x top-8 +upload 403 MB: rc=OK 302 ms +parity vs per-row GEMV (1024 calls, 54 ms): 0 of 1572864 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 7.66e-09 +second call: bit-identical +chip mutant 1: caught (1572864 of 1572864 outputs differ) +chip mutant 2: caught (1572864 of 1572864 outputs differ) +chip mutant 3: caught (1572864 of 1572864 outputs differ) +GEMM (medians of 9, evict 1): mt 4 warps 16 ctas 2 x 128 segments, 1024 rows, up to 4 passes: chip 6399.5 us, call 7896.5 us; streams 966 MB (distinct experts 403 MB) = 150.9 GB/s on streamed, 62.9 GB/s on distinct +per-token grouped GEMV baseline (128 tokens, medians of 9): chip 19015.3 us, call 20429.1 us => GEMM is 2.97x faster (chip), 2.59x (call) +per token: GEMM chip 50.0 us/token, call 61.7 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape gateup --tokens 128 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-mt2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-mt2.log new file mode 100644 index 000000000..9b7c9361a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-mt2.log @@ -0,0 +1,13 @@ +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 305 ms +parity vs per-row GEMV (512 calls, 31 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 9, evict 1): mt 2 warps 16 ctas 2 x 126 segments, 512 rows, up to 5 passes: chip 4048.2 us, call 4703.0 us; streams 928 MB (distinct experts 396 MB) = 229.2 GB/s on streamed, 97.9 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9657.4 us, call 10508.9 us => GEMM is 2.39x faster (chip), 2.23x (call) +per token: GEMM chip 63.3 us/token, call 73.5 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape gateup --mt 2 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-mt8.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-mt8.log new file mode 100644 index 000000000..6649336bf --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/gateup-mt8.log @@ -0,0 +1,13 @@ +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 308 ms +parity vs per-row GEMV (512 calls, 26 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 9, evict 1): mt 8 warps 16 ctas 2 x 126 segments, 512 rows, up to 2 passes: chip 5701.4 us, call 6367.5 us; streams 409 MB (distinct experts 396 MB) = 71.7 GB/s on streamed, 69.5 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9467.8 us, call 10048.1 us => GEMM is 1.66x faster (chip), 1.58x (call) +per token: GEMM chip 89.1 us/token, call 99.5 us/token +gpu_fp8gemm_test: 9 checks, 0 failed: PASS +--shape gateup --mt 8 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/host-only.log new file mode 100644 index 000000000..dc7311ed2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/host-only.log @@ -0,0 +1,14 @@ +host-only: emulation, permutation, budgets +emulation vs oracle: worst relative error 2.00e-08 of the term scale +codegen k 2048 lane 16 mt 8 warps 16: 797 instructions, 107 registers (declared 112, register file 57344 of 65536), shared 16384 B +codegen k 4096 lane 16 mt 8 warps 16: 797 instructions, 107 registers (declared 112, register file 57344 of 65536), shared 16384 B +codegen k 1024 lane 16 mt 8 warps 16: 788 instructions, 104 registers (declared 112, register file 57344 of 65536), shared 16384 B +codegen k 768 lane 8 mt 8 warps 16: 683 instructions, 103 registers (declared 104, register file 53248 of 65536), shared 8192 B +codegen k 768 lane 8 mt 8 warps 8: 731 instructions, 103 registers (declared 104, register file 26624 of 65536), shared 8192 B +codegen k 2048 lane 8 mt 8 warps 16: 541 instructions, 103 registers (declared 104, register file 53248 of 65536), shared 8192 B +codegen k 2048 lane 16 mt 4 warps 16: 509 instructions, 99 registers (declared 104, register file 53248 of 65536), shared 8192 B +codegen k 2048 lane 16 mt 8 warps 32: 765 instructions, 107 registers (declared 112, register file 114688 of 65536) DOES NOT FIT, shared 16384 B +codegen k 2048 lane 16 mt 8 warps 8: 861 instructions, 107 registers (declared 112, register file 28672 of 65536), shared 16384 B +codegen k 2048 lane 16 mt 4 warps 8: 541 instructions, 99 registers (declared 104, register file 26624 of 65536), shared 8192 B +codegen k 4096 lane 16 mt 4 warps 8: 541 instructions, 99 registers (declared 104, register file 26624 of 65536), shared 8192 B +gpu_fp8gemm_test: 53 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/main.log new file mode 100644 index 000000000..7f799ae78 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/main.log @@ -0,0 +1,45 @@ +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 301 ms +parity vs per-row GEMV (512 calls, 28 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 15, evict 1): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 4063.8 us, call 4732.8 us; streams 563 MB (distinct experts 396 MB) = 138.6 GB/s on streamed, 97.5 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 9417.1 us, call 10015.4 us => GEMM is 2.32x faster (chip), 2.12x (call) +per token: GEMM chip 63.5 us/token, call 73.9 us/token +== down: 128 experts, n 2048, k 768, 64 tokens x top-8 +upload 201 MB: rc=OK 84 ms +parity vs per-row GEMV (512 calls, 27 ms): 0 of 1048576 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.23e-08 +second call: bit-identical +chip mutant 1: caught (1048576 of 1048576 outputs differ) +chip mutant 2: caught (1048576 of 1048576 outputs differ) +chip mutant 3: caught (1048576 of 1048576 outputs differ) +GEMM (medians of 15, evict 1): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 1320.8 us, call 2174.9 us; streams 272 MB (distinct experts 198 MB) = 206.0 GB/s on streamed, 150.0 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 5816.0 us, call 6613.2 us => GEMM is 4.40x faster (chip), 3.04x (call) +per token: GEMM chip 20.6 us/token, call 34.0 us/token +== qkv: 1 experts, n 5120, k 2048, 64 tokens x top-1 +upload 10 MB: rc=OK 4 ms +parity vs per-row GEMV (64 calls, 7 ms): 0 of 327680 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 8.42e-09 +second call: bit-identical +chip mutant 1: caught (327680 of 327680 outputs differ) +chip mutant 2: caught (327680 of 327680 outputs differ) +chip mutant 3: caught (327680 of 327680 outputs differ) +GEMM (medians of 15, evict 1): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1817.3 us, call 2100.4 us; streams 84 MB (distinct experts 10 MB) = 46.2 GB/s on streamed, 5.8 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 5167.9 us, call 5535.0 us => GEMM is 2.84x faster (chip), 2.64x (call) +per token: GEMM chip 28.4 us/token, call 32.8 us/token +== o: 1 experts, n 2048, k 4096, 64 tokens x top-1 +upload 8 MB: rc=OK 4 ms +parity vs per-row GEMV (64 calls, 6 ms): 0 of 131072 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 4.26e-09 +second call: bit-identical +chip mutant 1: caught (131072 of 131072 outputs differ) +chip mutant 2: caught (131072 of 131072 outputs differ) +chip mutant 3: caught (131072 of 131072 outputs differ) +GEMM (medians of 15, evict 1): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1463.3 us, call 1701.3 us; streams 67 MB (distinct experts 8 MB) = 45.9 GB/s on streamed, 5.7 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 15): chip 4418.2 us, call 4667.0 us => GEMM is 3.02x faster (chip), 2.74x (call) +per token: GEMM chip 22.9 us/token, call 26.6 us/token +gpu_fp8gemm_test: 36 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/noevict.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/noevict.log new file mode 100644 index 000000000..4676bb544 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/noevict.log @@ -0,0 +1,46 @@ +== gateup: 128 experts, n 1536, k 2048, 64 tokens x top-8 +upload 403 MB: rc=OK 302 ms +parity vs per-row GEMV (512 calls, 27 ms): 0 of 786432 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.62e-08 +second call: bit-identical +chip mutant 1: caught (786432 of 786432 outputs differ) +chip mutant 2: caught (786432 of 786432 outputs differ) +chip mutant 3: caught (784896 of 786432 outputs differ) +GEMM (medians of 9, evict 0): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 3639.6 us, call 4267.8 us; streams 563 MB (distinct experts 396 MB) = 154.7 GB/s on streamed, 108.9 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 9440.8 us, call 10104.4 us => GEMM is 2.59x faster (chip), 2.37x (call) +per token: GEMM chip 56.9 us/token, call 66.7 us/token +== down: 128 experts, n 2048, k 768, 64 tokens x top-8 +upload 201 MB: rc=OK 84 ms +parity vs per-row GEMV (512 calls, 28 ms): 0 of 1048576 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 1.23e-08 +second call: bit-identical +chip mutant 1: caught (1048576 of 1048576 outputs differ) +chip mutant 2: caught (1048576 of 1048576 outputs differ) +chip mutant 3: caught (1048576 of 1048576 outputs differ) +GEMM (medians of 9, evict 0): mt 4 warps 16 ctas 2 x 126 segments, 512 rows, up to 3 passes: chip 1308.6 us, call 2108.2 us; streams 272 MB (distinct experts 198 MB) = 207.9 GB/s on streamed, 151.4 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 5763.3 us, call 6621.4 us => GEMM is 4.40x faster (chip), 3.14x (call) +per token: GEMM chip 20.4 us/token, call 32.9 us/token +== qkv: 1 experts, n 5120, k 2048, 64 tokens x top-1 +upload 10 MB: rc=OK 4 ms +parity vs per-row GEMV (64 calls, 5 ms): 0 of 327680 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 8.42e-09 +second call: bit-identical +chip mutant 1: caught (327680 of 327680 outputs differ) +chip mutant 2: caught (327680 of 327680 outputs differ) +chip mutant 3: caught (327680 of 327680 outputs differ) +GEMM (medians of 9, evict 0): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1843.7 us, call 2097.9 us; streams 84 MB (distinct experts 10 MB) = 45.5 GB/s on streamed, 5.7 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 4119.1 us, call 4575.6 us => GEMM is 2.23x faster (chip), 2.18x (call) +per token: GEMM chip 28.8 us/token, call 32.8 us/token +== o: 1 experts, n 2048, k 4096, 64 tokens x top-1 +upload 8 MB: rc=OK 3 ms +parity vs per-row GEMV (64 calls, 6 ms): 0 of 131072 outputs differ (bit-identical) +4 sampled outputs: 0 differ from the host emulation, worst relative error vs the double oracle 4.26e-09 +second call: bit-identical +chip mutant 1: caught (131072 of 131072 outputs differ) +chip mutant 2: caught (131072 of 131072 outputs differ) +chip mutant 3: caught (131072 of 131072 outputs differ) +GEMM (medians of 9, evict 0): mt 8 warps 16 ctas 96 x 1 segments, 64 rows, up to 8 passes: chip 1459.7 us, call 1609.7 us; streams 67 MB (distinct experts 8 MB) = 46.0 GB/s on streamed, 5.7 GB/s on distinct +per-token grouped GEMV baseline (64 tokens, medians of 9): chip 4463.0 us, call 4734.7 us => GEMM is 3.06x faster (chip), 2.94x (call) +per token: GEMM chip 22.8 us/token, call 25.2 us/token +gpu_fp8gemm_test: 36 checks, 0 failed: PASS +--no-evict exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-down-m1024.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-down-m1024.json new file mode 100644 index 000000000..172f94c8c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-down-m1024.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_FP8GEMM_V1","reps":9,"evict":1,"tokens":128,"spin_us":2000,"points":[{"point":"down mutant 1","caught":1},{"point":"down mutant 2","caught":1},{"point":"down mutant 3","caught":1},{"point":"down timing","rows":1024,"segments":128,"mt":4,"warps":16,"ctas":2,"passes_max":4,"reps":9,"chip_median_ns":2416174,"call_median_ns":4183813,"streamed_bytes":481296384,"distinct_bytes":201326592,"gbps_streamed":199.20,"baseline_chip_median_ns":12100043,"baseline_call_median_ns":13741228,"parity_bad":0}],"checks":9,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-m1024.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-m1024.json new file mode 100644 index 000000000..69cc82d07 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-m1024.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_FP8GEMM_V1","reps":9,"evict":1,"tokens":128,"spin_us":2000,"points":[{"point":"gateup mutant 1","caught":1},{"point":"gateup mutant 2","caught":1},{"point":"gateup mutant 3","caught":1},{"point":"gateup timing","rows":1024,"segments":128,"mt":4,"warps":16,"ctas":2,"passes_max":4,"reps":9,"chip_median_ns":6399457,"call_median_ns":7896531,"streamed_bytes":965738496,"distinct_bytes":402653184,"gbps_streamed":150.91,"baseline_chip_median_ns":19015279,"baseline_call_median_ns":20429057,"parity_bad":0}],"checks":9,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-mt2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-mt2.json new file mode 100644 index 000000000..727e15b3a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-mt2.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_FP8GEMM_V1","reps":9,"evict":1,"tokens":64,"spin_us":2000,"points":[{"point":"gateup mutant 1","caught":1},{"point":"gateup mutant 2","caught":1},{"point":"gateup mutant 3","caught":1},{"point":"gateup timing","rows":512,"segments":126,"mt":2,"warps":16,"ctas":2,"passes_max":5,"reps":9,"chip_median_ns":4048195,"call_median_ns":4703003,"streamed_bytes":927989760,"distinct_bytes":396361728,"gbps_streamed":229.24,"baseline_chip_median_ns":9657392,"baseline_call_median_ns":10508852,"parity_bad":0}],"checks":9,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-mt8.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-mt8.json new file mode 100644 index 000000000..e8c26408f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-gateup-mt8.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_FP8GEMM_V1","reps":9,"evict":1,"tokens":64,"spin_us":2000,"points":[{"point":"gateup mutant 1","caught":1},{"point":"gateup mutant 2","caught":1},{"point":"gateup mutant 3","caught":1},{"point":"gateup timing","rows":512,"segments":126,"mt":8,"warps":16,"ctas":2,"passes_max":2,"reps":9,"chip_median_ns":5701448,"call_median_ns":6367488,"streamed_bytes":408944640,"distinct_bytes":396361728,"gbps_streamed":71.73,"baseline_chip_median_ns":9467794,"baseline_call_median_ns":10048094,"parity_bad":0}],"checks":9,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-main.json new file mode 100644 index 000000000..7e12988f6 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-main.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_FP8GEMM_V1","reps":15,"evict":1,"tokens":64,"spin_us":2000,"points":[{"point":"gateup mutant 1","caught":1},{"point":"gateup mutant 2","caught":1},{"point":"gateup mutant 3","caught":1},{"point":"gateup timing","rows":512,"segments":126,"mt":4,"warps":16,"ctas":2,"passes_max":3,"reps":15,"chip_median_ns":4063811,"call_median_ns":4732795,"streamed_bytes":563085312,"distinct_bytes":396361728,"gbps_streamed":138.56,"baseline_chip_median_ns":9417092,"baseline_call_median_ns":10015423,"parity_bad":0},{"point":"down mutant 1","caught":1},{"point":"down mutant 2","caught":1},{"point":"down mutant 3","caught":1},{"point":"down timing","rows":512,"segments":126,"mt":4,"warps":16,"ctas":2,"passes_max":3,"reps":15,"chip_median_ns":1320785,"call_median_ns":2174907,"streamed_bytes":272105472,"distinct_bytes":198180864,"gbps_streamed":206.02,"baseline_chip_median_ns":5815977,"baseline_call_median_ns":6613236,"parity_bad":0},{"point":"qkv mutant 1","caught":1},{"point":"qkv mutant 2","caught":1},{"point":"qkv mutant 3","caught":1},{"point":"qkv timing","rows":64,"segments":1,"mt":8,"warps":16,"ctas":96,"passes_max":8,"reps":15,"chip_median_ns":1817255,"call_median_ns":2100427,"streamed_bytes":83886080,"distinct_bytes":10485760,"gbps_streamed":46.16,"baseline_chip_median_ns":5167938,"baseline_call_median_ns":5534982,"parity_bad":0},{"point":"o mutant 1","caught":1},{"point":"o mutant 2","caught":1},{"point":"o mutant 3","caught":1},{"point":"o timing","rows":64,"segments":1,"mt":8,"warps":16,"ctas":96,"passes_max":8,"reps":15,"chip_median_ns":1463267,"call_median_ns":1701253,"streamed_bytes":67108864,"distinct_bytes":8388608,"gbps_streamed":45.86,"baseline_chip_median_ns":4418201,"baseline_call_median_ns":4667019,"parity_bad":0}],"checks":36,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-noevict.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-noevict.json new file mode 100644 index 000000000..771b60142 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/receipt-noevict.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_FP8GEMM_V1","reps":9,"evict":0,"tokens":64,"spin_us":2000,"points":[{"point":"gateup mutant 1","caught":1},{"point":"gateup mutant 2","caught":1},{"point":"gateup mutant 3","caught":1},{"point":"gateup timing","rows":512,"segments":126,"mt":4,"warps":16,"ctas":2,"passes_max":3,"reps":9,"chip_median_ns":3639598,"call_median_ns":4267797,"streamed_bytes":563085312,"distinct_bytes":396361728,"gbps_streamed":154.71,"baseline_chip_median_ns":9440847,"baseline_call_median_ns":10104367,"parity_bad":0},{"point":"down mutant 1","caught":1},{"point":"down mutant 2","caught":1},{"point":"down mutant 3","caught":1},{"point":"down timing","rows":512,"segments":126,"mt":4,"warps":16,"ctas":2,"passes_max":3,"reps":9,"chip_median_ns":1308560,"call_median_ns":2108170,"streamed_bytes":272105472,"distinct_bytes":198180864,"gbps_streamed":207.94,"baseline_chip_median_ns":5763257,"baseline_call_median_ns":6621444,"parity_bad":0},{"point":"qkv mutant 1","caught":1},{"point":"qkv mutant 2","caught":1},{"point":"qkv mutant 3","caught":1},{"point":"qkv timing","rows":64,"segments":1,"mt":8,"warps":16,"ctas":96,"passes_max":8,"reps":9,"chip_median_ns":1843671,"call_median_ns":2097931,"streamed_bytes":83886080,"distinct_bytes":10485760,"gbps_streamed":45.50,"baseline_chip_median_ns":4119076,"baseline_call_median_ns":4575609,"parity_bad":0},{"point":"o mutant 1","caught":1},{"point":"o mutant 2","caught":1},{"point":"o mutant 3","caught":1},{"point":"o timing","rows":64,"segments":1,"mt":8,"warps":16,"ctas":96,"passes_max":8,"reps":9,"chip_median_ns":1459746,"call_median_ns":1609716,"streamed_bytes":67108864,"distinct_bytes":8388608,"gbps_streamed":45.97,"baseline_chip_median_ns":4462968,"baseline_call_median_ns":4734747,"parity_bad":0}],"checks":36,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/sim.log new file mode 100644 index 000000000..91c7eee4e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/fp8gemm/sim.log @@ -0,0 +1,11 @@ +sim k 2048 n 40 lane 16 mt 8 warps 16 grid 2: ok 0 of 600 outputs differ from the emulation (bit-identical) +sim k 4096 n 20 lane 16 mt 8 warps 16 grid 1: ok 0 of 220 outputs differ from the emulation (bit-identical) +sim k 1024 n 33 lane 16 mt 8 warps 16 grid 2: ok 0 of 99 outputs differ from the emulation (bit-identical) +sim k 768 n 130 lane 8 mt 8 warps 16 grid 2: ok 0 of 2730 outputs differ from the emulation (bit-identical) +sim k 768 n 24 lane 8 mt 8 warps 8 grid 1: ok 0 of 264 outputs differ from the emulation (bit-identical) +sim k 2048 n 16 lane 16 mt 4 warps 16 grid 1: ok 0 of 160 outputs differ from the emulation (bit-identical) +sim mutant 1: caught 600 of 600 outputs differ from the emulation +sim mutant 2: caught 600 of 600 outputs differ from the emulation +sim mutant 3: caught 600 of 600 outputs differ from the emulation +sim: 3444454 warp issues in total +gpu_fp8gemm_test: 9 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g.out new file mode 100644 index 000000000..876634ec1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g.out @@ -0,0 +1,8 @@ +qmma-probe: GPU_QMMA_PROBE: PASS +qmma-probe-seed2: GPU_QMMA_PROBE: PASS +pfgemm-chip: GPU_PFGEMM: FAIL +qgemm-chip: GPU_QGEMM: PASS +qgemm-cached: GPU_QGEMM: PASS +qgemm-cached-wait0-gateup: GPU_QGEMM: PASS +qgemm-cached-wait0-down: GPU_QGEMM: PASS +L1G_CHIP: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/SHA256SUMS new file mode 100644 index 000000000..c79bb7efc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/SHA256SUMS @@ -0,0 +1,11 @@ +4ffde9cf1c27c72186b92636e962fee3aaaad95027398b150f58250a92921906 build.log +78393d7e835d3f5778d2a859015b08b5506cf0242e465e320ce77ff98a546110 device.txt +5d9cf1f5aa7ac5e9180c328e1bae85033115033fc7c93e9244286fb688b7af6a exits.txt +d8e2f16db8805683e9fefc49b2eb34d4709beb55106aeb39f1809005529db25c pfgemm-chip.log +7e42d8304959861612ac853cf0daaddf9324580be731580a7461463e3f26b7fe qgemm-cached.log +e73f9fd4723365f4343f074649bde62cb2f6a6ed28e9d7cce5b977b8aafc234e qgemm-cached-wait0-down.log +a17c022a78ec8e88be271dbf194702197998cb7267a2250457ab260a6f5afb7b qgemm-cached-wait0-gateup.log +c6b16119bd1006947901f6a7c2c18696277656423c8f73ba4f58952d80ebba37 qgemm-chip.log +570d057c1b815c7d734122f8e6ac535674630881f0f715ab514ddefcec66efa2 qmma-probe.log +fe7a86cf6dd0027ad341f2a45404f3458e0b9ba6e9aec36625e57c260d9c90ba qmma-probe-seed2.log +1fb3fbbfc8012461e337d9e4784af7d268dc66318c9f6b045dcea54df348a41d qmma-words.bin diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/build.log new file mode 100644 index 000000000..cb293cab6 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/build.log @@ -0,0 +1,81 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/sha256.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/sha256.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_canonical.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_canonical.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_validate.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_validate.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_core.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_core.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_codec.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_codec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_encoder.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/aarch64_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_decoder.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/aarch64_decoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_exec.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_exec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_self_host.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_self_host.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_verify.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_verify.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_program.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_synthesis.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_synthesis.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_library.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_library.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_discovery.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_discovery.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_machine.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_machine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize_synth.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_realize_synth.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_matvec.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_matvec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_accelerator.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator_world.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_accelerator_world.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vector.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_vector.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_encoder.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_qmd.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_qmd.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_realize.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_submit.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_submit.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_engine.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_matmul.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_matmul.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_session.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_session.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_platform.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform_linux.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_platform_linux.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fmt.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fmt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_matmul_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_matmul_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_elementwise_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_elementwise_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_attention_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_attention_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_serving.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_serving.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_wait.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_wait.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_evidence.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_evidence.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/m16/m16_native.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/m16_native.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/nvrm/nvrm.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/nvrm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_moe_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_moe_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_moe.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_pack.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fp8_pack.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fp8_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe2.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_moe2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_attn.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_attn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_attn_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_decode_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_hostmath.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_hostmath.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_router.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_router.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_router_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_router_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_cmdlist.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_cmdlist.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_dec.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_dec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_mem_cached.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_mem_cached.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_graph.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_decode_graph.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_bf16.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_bf16.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_bf16_gemv_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_bf16_gemv_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_gemm.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_gemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8gemm_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fp8gemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_tc.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_tcgemm_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_tcgemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pattn.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_pattn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill_attn_api.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_prefill_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pf.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_pf.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_prefill.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc2.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_tc2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfgemm.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_pfgemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qmma.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_qmma.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qg.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_qg.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pfhost.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfhost.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program_ir.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_program_ir.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vc_bridge.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_vc_bridge.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_resolve.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_resolve.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_receipt.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_receipt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blake3.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blake3.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vcstore.c -o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_vcstore.o +ar rcs /home/drakestapleton/workspace/requal-0c63/l1g-build/libomega_gpu.a /home/drakestapleton/workspace/requal-0c63/l1g-build/sha256.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_canonical.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_validate.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_core.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_codec.o /home/drakestapleton/workspace/requal-0c63/l1g-build/aarch64_encoder.o /home/drakestapleton/workspace/requal-0c63/l1g-build/aarch64_decoder.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_realize.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_exec.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_self_host.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_verify.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_program.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_synthesis.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_library.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_discovery.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_machine.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_realize_synth.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_matvec.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_accelerator.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_accelerator_world.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_vector.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_encoder.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_qmd.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_realize.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_submit.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_engine.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_engine.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_matmul.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_session.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_platform.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_platform_linux.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fmt.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_matmul_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_elementwise_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_attention_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_serving.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_wait.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_evidence.o /home/drakestapleton/workspace/requal-0c63/l1g-build/m16_native.o /home/drakestapleton/workspace/requal-0c63/l1g-build/nvrm.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_moe_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_moe.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fp8_pack.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fp8_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_moe2.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_attn.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_decode_attn_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_hostmath.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_router.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_router_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_cmdlist.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_dec.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_mem_cached.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_decode_graph.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_bf16.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_bf16_gemv_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_gemm.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_fp8gemm_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_tc.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_tcgemm_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_pattn.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_prefill_attn_api.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_pf.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_prefill.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_tc2.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_pfgemm.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_qmma.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_qg.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blackwell_codegen_pfhost.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_gpu_pfhost.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_program_ir.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_vc_bridge.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_resolve.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_receipt.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_blake3.o /home/drakestapleton/workspace/requal-0c63/l1g-build/omega_vcstore.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qmma_probe_test tests/gpu_qmma_probe_test.c /home/drakestapleton/workspace/requal-0c63/l1g-build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_pfgemm_test tests/gpu_pfgemm_test.c /home/drakestapleton/workspace/requal-0c63/l1g-build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=1024 -Itests -o /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qgemm_test tests/gpu_qgemm_test.c /home/drakestapleton/workspace/requal-0c63/l1g-build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/device.txt new file mode 100644 index 000000000..1302806ce --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T01:05:43Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf what=qmma pfgemm qgemm +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 14 70 2 40 106 +end 2026-10-15T01:12:53Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/exits.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/exits.txt new file mode 100644 index 000000000..bbd300d07 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/exits.txt @@ -0,0 +1,7 @@ +qmma-probe exit 0: /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qmma_probe_test --save /home/drakestapleton/workspace/requal-0c63/omega-gates/l1g/qmma-words.bin +qmma-probe-seed2 exit 0: /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qmma_probe_test --no-peak +pfgemm-chip exit 1: /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_pfgemm_test --shape-knob 4 16 1 --chip --tokens 3600 --reps 7 +qgemm-chip exit 0: /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qgemm_test --chip --tokens 3600 --reps 7 +qgemm-cached exit 0: /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qgemm_test --chip --cached --tokens 3600 --reps 7 +qgemm-cached-wait0-gateup exit 0: /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qgemm_test --chip --cached --shape gateup --wait 0 --tokens 3600 --reps 7 +qgemm-cached-wait0-down exit 0: /home/drakestapleton/workspace/requal-0c63/l1g-build/gpu_qgemm_test --chip --cached --shape down --wait 0 --tokens 3600 --reps 7 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/pfgemm-chip.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/pfgemm-chip.log new file mode 100644 index 000000000..7ee72d290 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/pfgemm-chip.log @@ -0,0 +1,29 @@ +gateup second launch identical: yes +gateup bit-identity on 48 sampled rows: 101 differ (beyond 1 bf16 ulp; 1 within 1 ulp of 36864) +TCGEMM2 gateup tokens 3600 M 28800 n 1536 k 2048 tiles 509: median 3.216 ms (min 3.212), 56.3 TFLOPS, weights 403 MB -> 125 GB/s of distinct weights +gateup mutant 1: caught +gateup mutant 2: caught +gateup mutant 3: caught +gateup mutant 4: caught +down second launch identical: yes +down bit-identity on 48 sampled rows: 0 differ +TCGEMM2 down tokens 3600 M 28800 n 2048 k 768 tiles 508: median 2.666 ms (min 2.654), 34.0 TFLOPS, weights 201 MB -> 76 GB/s of distinct weights +down mutant 1: caught +down mutant 2: caught +down mutant 3: caught +down mutant 4: caught +qkv second launch identical: yes +qkv bit-identity on 48 sampled rows: 0 differ +TCGEMM2 qkv tokens 3600 M 3600 n 5120 k 2048 tiles 57: median 1.250 ms (min 1.222), 60.4 TFLOPS, weights 10 MB -> 8 GB/s of distinct weights +qkv mutant 1: caught +qkv mutant 2: caught +qkv mutant 3: caught +qkv mutant 4: caught +o second launch identical: yes +o bit-identity on 48 sampled rows: 0 differ +TCGEMM2 o tokens 3600 M 3600 n 2048 k 4096 tiles 57: median 0.973 ms (min 0.954), 62.1 TFLOPS, weights 8 MB -> 9 GB/s of distinct weights +o mutant 1: caught +o mutant 2: caught +o mutant 3: caught +o mutant 4: caught +GPU_PFGEMM: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached-wait0-down.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached-wait0-down.log new file mode 100644 index 000000000..78da56050 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached-wait0-down.log @@ -0,0 +1,8 @@ +down second launch identical: yes +down bit-identity on 64 sampled rows: 0 differ +QGEMM-cached down tokens 3600 M 28800 n 2048 k 768 tiles 517: median 2.211 ms (min 2.199), 41.0 TFLOPS, weights 201 MB -> 91 GB/s of distinct weights +down mutant 1: caught +down mutant 2: caught +down mutant 3: caught +down mutant 4: caught +GPU_QGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached-wait0-gateup.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached-wait0-gateup.log new file mode 100644 index 000000000..d6ee7c22f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached-wait0-gateup.log @@ -0,0 +1,8 @@ +gateup second launch identical: yes +gateup bit-identity on 64 sampled rows: 0 differ (beyond 1 bf16 ulp; 0 within 1 ulp of 49152) +QGEMM-cached gateup tokens 3600 M 28800 n 1536 k 2048 tiles 509: median 2.559 ms (min 2.552), 70.8 TFLOPS, weights 403 MB -> 157 GB/s of distinct weights +gateup mutant 1: caught +gateup mutant 2: caught +gateup mutant 3: caught +gateup mutant 4: caught +GPU_QGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached.log new file mode 100644 index 000000000..e21abaa9d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-cached.log @@ -0,0 +1,33 @@ +QUANT chip k 2048 f32 rows 3600: 0 differ from the reference; median 0.155 ms (240 GB/s moved) +QUANT chip k 2048 mutant 1: caught +QUANT chip k 768 bf16 rows 28800: 0 differ from the reference; median 0.284 ms (236 GB/s moved) +QUANT chip k 768 mutant 1: caught +gateup second launch identical: yes +gateup bit-identity on 64 sampled rows: 0 differ (beyond 1 bf16 ulp; 0 within 1 ulp of 49152) +QGEMM-cached gateup tokens 3600 M 28800 n 1536 k 2048 tiles 512: median 2.655 ms (min 2.653), 68.3 TFLOPS, weights 403 MB -> 152 GB/s of distinct weights +gateup mutant 1: caught +gateup mutant 2: caught +gateup mutant 3: caught +gateup mutant 4: caught +down second launch identical: yes +down bit-identity on 64 sampled rows: 0 differ +QGEMM-cached down tokens 3600 M 28800 n 2048 k 768 tiles 512: median 2.239 ms (min 2.223), 40.5 TFLOPS, weights 201 MB -> 90 GB/s of distinct weights +down mutant 1: caught +down mutant 2: caught +down mutant 3: caught +down mutant 4: caught +qkv second launch identical: yes +qkv bit-identity on 64 sampled rows: 0 differ +QGEMM-cached qkv tokens 3600 M 3600 n 5120 k 2048 tiles 57: median 0.829 ms (min 0.826), 91.0 TFLOPS, weights 10 MB -> 13 GB/s of distinct weights +qkv mutant 1: caught +qkv mutant 2: caught +qkv mutant 3: caught +qkv mutant 4: caught +o second launch identical: yes +o bit-identity on 64 sampled rows: 0 differ +QGEMM-cached o tokens 3600 M 3600 n 2048 k 4096 tiles 57: median 0.691 ms (min 0.687), 87.4 TFLOPS, weights 8 MB -> 12 GB/s of distinct weights +o mutant 1: caught +o mutant 2: caught +o mutant 3: caught +o mutant 4: caught +GPU_QGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-chip.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-chip.log new file mode 100644 index 000000000..97085454f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qgemm-chip.log @@ -0,0 +1,33 @@ +QUANT chip k 2048 f32 rows 3600: 0 differ from the reference; median 0.152 ms (244 GB/s moved) +QUANT chip k 2048 mutant 1: caught +QUANT chip k 768 bf16 rows 28800: 0 differ from the reference; median 0.278 ms (241 GB/s moved) +QUANT chip k 768 mutant 1: caught +gateup second launch identical: yes +gateup bit-identity on 64 sampled rows: 0 differ (beyond 1 bf16 ulp; 0 within 1 ulp of 49152) +QGEMM-inplace gateup tokens 3600 M 28800 n 1536 k 2048 tiles 512: median 7.564 ms (min 7.512), 24.0 TFLOPS, weights 403 MB -> 53 GB/s of distinct weights +gateup mutant 1: caught +gateup mutant 2: caught +gateup mutant 3: caught +gateup mutant 4: caught +down second launch identical: yes +down bit-identity on 64 sampled rows: 0 differ +QGEMM-inplace down tokens 3600 M 28800 n 2048 k 768 tiles 512: median 4.879 ms (min 4.804), 18.6 TFLOPS, weights 201 MB -> 41 GB/s of distinct weights +down mutant 1: caught +down mutant 2: caught +down mutant 3: caught +down mutant 4: caught +qkv second launch identical: yes +qkv bit-identity on 64 sampled rows: 0 differ +QGEMM-inplace qkv tokens 3600 M 3600 n 5120 k 2048 tiles 57: median 3.187 ms (min 3.174), 23.7 TFLOPS, weights 10 MB -> 3 GB/s of distinct weights +qkv mutant 1: caught +qkv mutant 2: caught +qkv mutant 3: caught +qkv mutant 4: caught +o second launch identical: yes +o bit-identity on 64 sampled rows: 0 differ +QGEMM-inplace o tokens 3600 M 3600 n 2048 k 4096 tiles 57: median 2.464 ms (min 2.439), 24.5 TFLOPS, weights 8 MB -> 3 GB/s of distinct weights +o mutant 1: caught +o mutant 2: caught +o mutant 3: caught +o mutant 4: caught +GPU_QGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-probe-seed2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-probe-seed2.log new file mode 100644 index 000000000..44b31d0c2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-probe-seed2.log @@ -0,0 +1,57 @@ +QMMA patch self-test: PASS (QMMA.16832.F32.E4M3.E4M3 and F2FP.SATFINITE.E4M3.F32.PACK_AB_MERGE_C match the oracle bits, HMMA untouched) +host-only checks: PASS (0 failures) +chip probe mutant 0 nops 8: declared 64, 222034 ns +chip probe mutant 1 nops 8: declared 64, 107249 ns +chip probe mutant 0 nops 2: declared 64, 107601 ns +plausibility: 0 poison, 0 of 262144 outputs farther than 1e-2 of the term magnitude from the exact sum +layout check (class exact, every sum representable): 0 of 37376 differ from the exact sum (layout confirmed) +wait check: 2-NOP run vs 8-NOP run: 0 of 262144 words differ +negative control (C dropped): 187900 of 187900 outputs with significant C differ (caught) +model group 32 keep 25 RZ nominal 2 csep 0: 249881 of 262144 (misses: narrow 0 wide 8951 mixed+cancel 0 bigC 3312 subnormal 0 medium 0 exact 0) +model group 32 keep 25 RZ nominal 2 csep 1: 252457 of 262144 (misses: narrow 0 wide 8850 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 0 csep 0: 258503 of 262144 (misses: narrow 0 wide 3641 mixed+cancel 0 bigC 0 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 0 csep 1: 257428 of 262144 (misses: narrow 0 wide 3879 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 1 csep 0: 253193 of 262144 (misses: narrow 0 wide 8951 mixed+cancel 0 bigC 0 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 1 csep 1: 252457 of 262144 (misses: narrow 0 wide 8850 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 2 csep 0: 262144 of 262144 (misses: narrow 0 wide 0 mixed+cancel 0 bigC 0 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 2 csep 1: 260882 of 262144 (misses: narrow 0 wide 425 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 0 csep 0: 258741 of 262144 (misses: narrow 0 wide 2648 mixed+cancel 0 bigC 755 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 0 csep 1: 258470 of 262144 (misses: narrow 0 wide 2837 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 1 csep 0: 261389 of 262144 (misses: narrow 0 wide 0 mixed+cancel 0 bigC 755 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 1 csep 1: 260882 of 262144 (misses: narrow 0 wide 425 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 2 csep 0: 256973 of 262144 (misses: narrow 0 wide 4416 mixed+cancel 0 bigC 755 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 2 csep 1: 256831 of 262144 (misses: narrow 0 wide 4476 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 0 csep 0: 256153 of 262144 (misses: narrow 0 wide 5154 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 0 csep 1: 256119 of 262144 (misses: narrow 0 wide 5188 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 1 csep 0: 256891 of 262144 (misses: narrow 0 wide 4416 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 1 csep 1: 256831 of 262144 (misses: narrow 0 wide 4476 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 2 csep 0: 255679 of 262144 (misses: narrow 0 wide 5628 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 2 csep 1: 255662 of 262144 (misses: narrow 0 wide 5645 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 0 csep 0: 255424 of 262144 (misses: narrow 0 wide 5883 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 0 csep 1: 255418 of 262144 (misses: narrow 0 wide 5889 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 1 csep 0: 255679 of 262144 (misses: narrow 0 wide 5628 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 1 csep 1: 255662 of 262144 (misses: narrow 0 wide 5645 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 2 csep 0: 255245 of 262144 (misses: narrow 0 wide 6062 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 2 csep 1: 255243 of 262144 (misses: narrow 0 wide 6064 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 0 csep 0: 255166 of 262144 (misses: narrow 0 wide 6141 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 0 csep 1: 255164 of 262144 (misses: narrow 0 wide 6143 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 1 csep 0: 255245 of 262144 (misses: narrow 0 wide 6062 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 1 csep 1: 255243 of 262144 (misses: narrow 0 wide 6064 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 2 csep 0: 255101 of 262144 (misses: narrow 0 wide 6206 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 2 csep 1: 255101 of 262144 (misses: narrow 0 wide 6206 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 0 csep 0: 255086 of 262144 (misses: narrow 0 wide 6221 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 0 csep 1: 255086 of 262144 (misses: narrow 0 wide 6221 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 1 csep 0: 255101 of 262144 (misses: narrow 0 wide 6206 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 1 csep 1: 255101 of 262144 (misses: narrow 0 wide 6206 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 2 csep 0: 255064 of 262144 (misses: narrow 0 wide 6243 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 2 csep 1: 255064 of 262144 (misses: narrow 0 wide 6243 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 0 csep 0: 255056 of 262144 (misses: narrow 0 wide 6251 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 0 csep 1: 255056 of 262144 (misses: narrow 0 wide 6251 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 1 csep 0: 255064 of 262144 (misses: narrow 0 wide 6243 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 1 csep 1: 255064 of 262144 (misses: narrow 0 wide 6243 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 2 csep 0: 255055 of 262144 (misses: narrow 0 wide 6252 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 2 csep 1: 255055 of 262144 (misses: narrow 0 wide 6252 mixed+cancel 0 bigC 837 subnormal 0 medium 0 exact 0) +QMMA_PROBE: model=group 32 keep 26 RZ nominal 2 csep 0 exact 262144/262144 +cvt probe: 1048576 pairs; Ra->high byte matches 1048576, Ra->low byte matches 30754; upper 16 bits nonzero 0; ties 524288 of 524288 exact +CVT_PROBE: e4m3(Ra) << 8 | e4m3(Rb), RNE satfinite, exact on every pair +GPU_QMMA_PROBE: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-probe.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-probe.log new file mode 100644 index 000000000..2faf90f39 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-probe.log @@ -0,0 +1,67 @@ +QMMA patch self-test: PASS (QMMA.16832.F32.E4M3.E4M3 and F2FP.SATFINITE.E4M3.F32.PACK_AB_MERGE_C match the oracle bits, HMMA untouched) +host-only checks: PASS (0 failures) +chip probe mutant 0 nops 8: declared 64, 321860 ns +chip probe mutant 1 nops 8: declared 64, 107378 ns +chip probe mutant 0 nops 2: declared 64, 107425 ns +plausibility: 0 poison, 0 of 262144 outputs farther than 1e-2 of the term magnitude from the exact sum +layout check (class exact, every sum representable): 0 of 37376 differ from the exact sum (layout confirmed) +wait check: 2-NOP run vs 8-NOP run: 0 of 262144 words differ +negative control (C dropped): 188372 of 188372 outputs with significant C differ (caught) +model group 32 keep 25 RZ nominal 2 csep 0: 249845 of 262144 (misses: narrow 0 wide 8962 mixed+cancel 0 bigC 3337 subnormal 0 medium 0 exact 0) +model group 32 keep 25 RZ nominal 2 csep 1: 252404 of 262144 (misses: narrow 0 wide 8917 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 0 csep 0: 258552 of 262144 (misses: narrow 0 wide 3592 mixed+cancel 0 bigC 0 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 0 csep 1: 257479 of 262144 (misses: narrow 0 wide 3842 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 1 csep 0: 253182 of 262144 (misses: narrow 0 wide 8962 mixed+cancel 0 bigC 0 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 1 csep 1: 252404 of 262144 (misses: narrow 0 wide 8917 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 2 csep 0: 262144 of 262144 (misses: narrow 0 wide 0 mixed+cancel 0 bigC 0 subnormal 0 medium 0 exact 0) +model group 32 keep 26 RZ nominal 2 csep 1: 260898 of 262144 (misses: narrow 0 wide 423 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 0 csep 0: 258688 of 262144 (misses: narrow 0 wide 2709 mixed+cancel 0 bigC 747 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 0 csep 1: 258438 of 262144 (misses: narrow 0 wide 2883 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 1 csep 0: 261397 of 262144 (misses: narrow 0 wide 0 mixed+cancel 0 bigC 747 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 1 csep 1: 260898 of 262144 (misses: narrow 0 wide 423 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 2 csep 0: 256919 of 262144 (misses: narrow 0 wide 4478 mixed+cancel 0 bigC 747 subnormal 0 medium 0 exact 0) +model group 32 keep 27 RZ nominal 2 csep 1: 256786 of 262144 (misses: narrow 0 wide 4535 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 0 csep 0: 256075 of 262144 (misses: narrow 0 wide 5246 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 0 csep 1: 256048 of 262144 (misses: narrow 0 wide 5273 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 1 csep 0: 256843 of 262144 (misses: narrow 0 wide 4478 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 1 csep 1: 256786 of 262144 (misses: narrow 0 wide 4535 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 2 csep 0: 255570 of 262144 (misses: narrow 0 wide 5751 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 28 RZ nominal 2 csep 1: 255559 of 262144 (misses: narrow 0 wide 5762 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 0 csep 0: 255323 of 262144 (misses: narrow 0 wide 5998 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 0 csep 1: 255318 of 262144 (misses: narrow 0 wide 6003 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 1 csep 0: 255570 of 262144 (misses: narrow 0 wide 5751 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 1 csep 1: 255559 of 262144 (misses: narrow 0 wide 5762 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 2 csep 0: 255144 of 262144 (misses: narrow 0 wide 6177 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 29 RZ nominal 2 csep 1: 255143 of 262144 (misses: narrow 0 wide 6178 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 0 csep 0: 255060 of 262144 (misses: narrow 0 wide 6261 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 0 csep 1: 255060 of 262144 (misses: narrow 0 wide 6261 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 1 csep 0: 255144 of 262144 (misses: narrow 0 wide 6177 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 1 csep 1: 255143 of 262144 (misses: narrow 0 wide 6178 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 2 csep 0: 255001 of 262144 (misses: narrow 0 wide 6320 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 30 RZ nominal 2 csep 1: 255001 of 262144 (misses: narrow 0 wide 6320 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 0 csep 0: 254982 of 262144 (misses: narrow 0 wide 6339 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 0 csep 1: 254982 of 262144 (misses: narrow 0 wide 6339 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 1 csep 0: 255001 of 262144 (misses: narrow 0 wide 6320 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 1 csep 1: 255001 of 262144 (misses: narrow 0 wide 6320 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 2 csep 0: 254969 of 262144 (misses: narrow 0 wide 6352 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 31 RZ nominal 2 csep 1: 254969 of 262144 (misses: narrow 0 wide 6352 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 0 csep 0: 254962 of 262144 (misses: narrow 0 wide 6359 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 0 csep 1: 254962 of 262144 (misses: narrow 0 wide 6359 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 1 csep 0: 254969 of 262144 (misses: narrow 0 wide 6352 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 1 csep 1: 254969 of 262144 (misses: narrow 0 wide 6352 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 2 csep 0: 254957 of 262144 (misses: narrow 0 wide 6364 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +model group 32 keep 32 RZ nominal 2 csep 1: 254957 of 262144 (misses: narrow 0 wide 6364 mixed+cancel 0 bigC 823 subnormal 0 medium 0 exact 0) +QMMA_PROBE: model=group 32 keep 26 RZ nominal 2 csep 0 exact 262144/262144 +QMMA peak stall 8 chains 16 threads 128 ctas 192 (declared 88): median 1848.5 us, 223.05 TFLOPS, 0 wrong values +QMMA peak stall 4 chains 16 threads 128 ctas 192 (declared 88): median 2542.6 us, 162.17 TFLOPS, 0 wrong values +QMMA peak stall 2 chains 16 threads 128 ctas 192 (declared 88): median 2495.5 us, 165.22 TFLOPS, 0 wrong values +QMMA peak stall 1 chains 16 threads 128 ctas 192 (declared 88): median 2037.3 us, 202.38 TFLOPS, 0 wrong values +QMMA peak stall 2 chains 8 threads 128 ctas 192 (declared 56): median 1017.7 us, 202.58 TFLOPS, 0 wrong values +QMMA peak stall 2 chains 4 threads 128 ctas 192 (declared 40): median 509.0 us, 202.53 TFLOPS, 0 wrong values +QMMA peak stall 2 chains 16 threads 256 ctas 192 (declared 88): median 3569.7 us, 231.01 TFLOPS, 0 wrong values +QMMA peak stall 2 chains 16 threads 256 ctas 384 (declared 88): median 6818.2 us, 241.89 TFLOPS, 0 wrong values +QMMA peak stall 1 chains 16 threads 512 ctas 96 (declared 88): median 3993.9 us, 206.47 TFLOPS, 0 wrong values +QMMA peak stall 4 chains 8 threads 256 ctas 384 (declared 56): median 3528.9 us, 233.68 TFLOPS, 0 wrong values +cvt probe: 1048576 pairs; Ra->high byte matches 1048576, Ra->low byte matches 30295; upper 16 bits nonzero 0; ties 524288 of 524288 exact +CVT_PROBE: e4m3(Ra) << 8 | e4m3(Rb), RNE satfinite, exact on every pair +GPU_QMMA_PROBE: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-words.bin b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-words.bin new file mode 100644 index 000000000..a1383deca Binary files /dev/null and b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l1g/qmma-words.bin differ diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier.out new file mode 100644 index 000000000..6ffbcd60a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier.out @@ -0,0 +1,43 @@ +COST m=1 barrier=wfi+inval_all span_us=152.9 per_launch_us=157.7 first_launch_us=152.9 elapsed_us=157.7 GB/s=212.8 fixed_per_extra_launch_us=0.00 +COST m=2 barrier=wfi+inval_all span_us=181.1 per_launch_us=93.0 first_launch_us=80.5 elapsed_us=186.1 GB/s=180.3 fixed_per_extra_launch_us=28.35 +COST m=4 barrier=wfi+inval_all span_us=222.3 per_launch_us=56.8 first_launch_us=55.3 elapsed_us=227.3 GB/s=147.7 fixed_per_extra_launch_us=23.18 +COST m=8 barrier=wfi+inval_all span_us=326.8 per_launch_us=41.5 first_launch_us=39.0 elapsed_us=331.8 GB/s=101.2 fixed_per_extra_launch_us=24.86 +COST m=16 barrier=wfi+inval_all span_us=538.9 per_launch_us=34.0 first_launch_us=31.4 elapsed_us=543.9 GB/s=61.7 fixed_per_extra_launch_us=25.75 +COST m=1 barrier=wfi_only span_us=150.7 per_launch_us=155.7 first_launch_us=150.7 elapsed_us=155.7 GB/s=215.6 fixed_per_extra_launch_us=0.00 +COST m=2 barrier=wfi_only span_us=172.4 per_launch_us=88.7 first_launch_us=79.3 elapsed_us=177.4 GB/s=189.2 fixed_per_extra_launch_us=21.68 +COST m=4 barrier=wfi_only span_us=215.6 per_launch_us=55.2 first_launch_us=51.2 elapsed_us=220.6 GB/s=152.1 fixed_per_extra_launch_us=21.64 +COST m=8 barrier=wfi_only span_us=325.7 per_launch_us=41.3 first_launch_us=38.2 elapsed_us=330.8 GB/s=101.5 fixed_per_extra_launch_us=25.01 +COST m=16 barrier=wfi_only span_us=537.0 per_launch_us=33.8 first_launch_us=32.4 elapsed_us=541.0 GB/s=62.0 fixed_per_extra_launch_us=25.69 +COST m=1 barrier=wfi+inval_data span_us=156.1 per_launch_us=160.9 first_launch_us=156.1 elapsed_us=160.9 GB/s=208.6 fixed_per_extra_launch_us=0.00 +COST m=2 barrier=wfi+inval_data span_us=175.4 per_launch_us=90.1 first_launch_us=83.4 elapsed_us=180.2 GB/s=186.2 fixed_per_extra_launch_us=19.34 +COST m=4 barrier=wfi+inval_data span_us=213.8 per_launch_us=54.7 first_launch_us=50.8 elapsed_us=218.7 GB/s=153.5 fixed_per_extra_launch_us=19.26 +COST m=8 barrier=wfi+inval_data span_us=321.0 per_launch_us=40.7 first_launch_us=37.4 elapsed_us=326.0 GB/s=103.0 fixed_per_extra_launch_us=23.58 +COST m=16 barrier=wfi+inval_data span_us=539.2 per_launch_us=34.0 first_launch_us=31.2 elapsed_us=544.1 GB/s=61.7 fixed_per_extra_launch_us=25.55 +COST m=1 barrier=flush_data span_us=148.0 per_launch_us=153.0 first_launch_us=148.0 elapsed_us=153.0 GB/s=219.4 fixed_per_extra_launch_us=0.00 +COST m=2 barrier=flush_data span_us=179.1 per_launch_us=92.0 first_launch_us=85.4 elapsed_us=184.0 GB/s=182.4 fixed_per_extra_launch_us=31.04 +COST m=4 barrier=flush_data span_us=216.9 per_launch_us=55.5 first_launch_us=54.8 elapsed_us=221.8 GB/s=151.3 fixed_per_extra_launch_us=22.95 +COST m=8 barrier=flush_data span_us=317.8 per_launch_us=40.3 first_launch_us=38.0 elapsed_us=322.7 GB/s=104.0 fixed_per_extra_launch_us=24.25 +COST m=16 barrier=flush_data span_us=538.5 per_launch_us=34.0 first_launch_us=31.8 elapsed_us=543.4 GB/s=61.8 fixed_per_extra_launch_us=26.03 +COST m=1 barrier=none span_us=0.0 per_launch_us=157.2 first_launch_us=0.0 elapsed_us=157.2 GB/s=213.5 fixed_per_extra_launch_us=0.00 +COST m=2 barrier=none span_us=0.0 per_launch_us=78.2 first_launch_us=0.0 elapsed_us=156.3 GB/s=214.7 fixed_per_extra_launch_us=-0.88 +COST m=4 barrier=none span_us=0.0 per_launch_us=42.7 first_launch_us=0.0 elapsed_us=170.8 GB/s=196.5 fixed_per_extra_launch_us=4.53 +COST m=8 barrier=none span_us=0.0 per_launch_us=23.4 first_launch_us=0.0 elapsed_us=187.2 GB/s=179.3 fixed_per_extra_launch_us=4.28 +COST m=16 barrier=none span_us=0.0 per_launch_us=11.6 first_launch_us=0.0 elapsed_us=185.4 GB/s=181.0 fixed_per_extra_launch_us=1.88 +COST m=1 barrier=wfi+inval_all span_us=149.2 per_launch_us=154.1 first_launch_us=149.2 elapsed_us=154.1 GB/s=217.8 fixed_per_extra_launch_us=0.00 +COST m=2 barrier=wfi+inval_all span_us=180.3 per_launch_us=92.6 first_launch_us=84.2 elapsed_us=185.2 GB/s=181.2 fixed_per_extra_launch_us=31.12 +COST m=4 barrier=wfi+inval_all span_us=214.5 per_launch_us=54.9 first_launch_us=49.4 elapsed_us=219.5 GB/s=152.9 fixed_per_extra_launch_us=21.79 +COST m=8 barrier=wfi+inval_all span_us=326.9 per_launch_us=41.5 first_launch_us=39.5 elapsed_us=331.9 GB/s=101.1 fixed_per_extra_launch_us=25.40 +COST m=16 barrier=wfi+inval_all span_us=569.1 per_launch_us=35.9 first_launch_us=33.9 elapsed_us=574.0 GB/s=58.5 fixed_per_extra_launch_us=27.99 +gpu_launch_cost_test: 31 checks, 0 failed: PASS +graph 1 barrier 0: fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 TIMELINE (2 layers, pos 300): norm x1 11.9 us qkv x2 166.9 us attn x2 158.5 us o_proj x2 125.1 us res_add x2 9.6 us router x2 61.5 us gate_up x2 334.4 us swiglu x2 6.5 us down x2 245.3 us combine_norm x2 19.8 us lm_head x1 2919.4 us argmax x2 15.6 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5003.6 us | C one list 22 launches 4060.7 us (chip 4057.6 us, record 2.3 us) | B per-launch submits 22 launches 5336.8 us (chip sum 5326.4 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +graph 2 barrier 2: fp8 knobs: variant 1 barrier 2 (wfi_only) cta_budget 0 shape 0/0/0 cached 0 TIMELINE (2 layers, pos 300): norm x1 13.8 us qkv x2 155.7 us attn x2 145.2 us o_proj x2 122.2 us res_add x2 10.1 us router x2 48.7 us gate_up x2 297.8 us swiglu x2 6.2 us down x2 175.1 us combine_norm x2 18.5 us lm_head x1 2894.3 us argmax x2 15.6 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4995.2 us | C one list 22 launches 3986.3 us (chip 3982.9 us, record 2.5 us) | B per-launch submits 22 launches 5336.9 us (chip sum 5326.9 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +graph 3 barrier 3: fp8 knobs: variant 1 barrier 3 (wfi+inval_data) cta_budget 0 shape 0/0/0 cached 0 TIMELINE (2 layers, pos 300): norm x1 5.9 us qkv x2 146.8 us attn x2 143.9 us o_proj x2 119.9 us res_add x2 10.1 us router x2 47.8 us gate_up x2 281.9 us swiglu x2 7.2 us down x2 178.4 us combine_norm x2 19.8 us lm_head x1 2917.3 us argmax x2 15.1 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5004.9 us | C one list 22 launches 4080.1 us (chip 4076.7 us, record 2.5 us) | B per-launch submits 22 launches 5337.1 us (chip sum 5327.1 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +graph 4 barrier 4: fp8 knobs: variant 1 barrier 4 (flush_data) cta_budget 0 shape 0/0/0 cached 0 TIMELINE (2 layers, pos 300): norm x1 7.1 us qkv x2 131.7 us attn x2 145.1 us o_proj x2 122.1 us res_add x2 10.3 us router x2 49.5 us gate_up x2 306.2 us swiglu x2 6.0 us down x2 175.8 us combine_norm x2 19.2 us lm_head x1 2902.9 us argmax x2 14.6 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4996.5 us | C one list 22 launches 3976.8 us (chip 3973.6 us, record 2.4 us) | B per-launch submits 22 launches 5525.5 us (chip sum 5515.7 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +graph 5 barrier 0: fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 TIMELINE (2 layers, pos 300): norm x1 15.5 us qkv x2 155.9 us attn x2 142.0 us o_proj x2 125.4 us res_add x2 10.0 us router x2 50.4 us gate_up x2 293.0 us swiglu x2 6.1 us down x2 178.9 us combine_norm x2 20.1 us lm_head x1 2905.9 us argmax x2 16.2 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4996.2 us | C one list 22 launches 3977.2 us (chip 3974.1 us, record 2.4 us) | B per-launch submits 22 launches 5340.3 us (chip sum 5329.8 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +negative control barrier none: exit 1 (chip: 13 checks, 6 failed: FAIL) +GPU_L2D_BARRIER_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/SHA256SUMS new file mode 100644 index 000000000..57a78ae90 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/SHA256SUMS @@ -0,0 +1,17 @@ +d860f7e16d5b4c13d38f82ee846345cc77478470bb6769bda6f33e8884a75cc4 ./binaries.sha256 +75b23aafeeeede3d40f7bf67ecc675bc4e10d6a5d92224450dfb4d75acf6d222 ./build.log +191a794454a70554e32fafcb4d28bb62c91e6e55a92dafab2f187d845c23db78 ./cost.log +8ff77278694c6b3931f658ced4320b51a1c83bfda799d4f25c1e3f83dcce337c ./device.txt +08e21af1b8814ed0677e7a0e8a6600098fbf663dee2e094990856f7279bc1f6b ./graph-1-b0.log +dbcb2890de38d0cb0f6ad0e30c272ee05832407d634251ef86950139da8f059f ./graph-2-b2.log +e959618f72f269822226e5b0e789d6778869da505f57f87c37cb618e7840bc0d ./graph-3-b3.log +d3e446cbedb5263c5d6dea51a7b3726629fadb3822c93a8d736bae8108ea5582 ./graph-4-b4.log +1ee22d6feb56c231c1dbf80a354be8ee6c9e50c53189831cd39d7068649ec762 ./graph-5-b0.log +b76d0410b82ff3351bb76dc4601c457a7ed539e2c28028362879503d3446d928 ./graph-red-b1.log +8699e7cfb4de9b82ab7fc50f68bbdf25e8f01750f350ffb094413b621d96557e ./receipt-cost.json +92dde923028625ef03bdfebeb31bb4bc84df2039b5884971f4cff6fd7d8cc7d2 ./receipt-graph-1-b0.json +d8706bba63999016ae64b2ccc8263ed502fff4e5067f1ce531628b7421b623de ./receipt-graph-2-b2.json +2c2a1278803953f0af23d3f9047460b4d727d42f340dafa549a9b09773ee19c2 ./receipt-graph-3-b3.json +2a3f4bf7a7bc3d0ca11a1b0569113cba1e127a3911b272367131bdb445ae2e7c ./receipt-graph-4-b4.json +d1d3dc28c1b4883f924d9fb1b3ef58befeaaddee690840dad399247b7a45864b ./receipt-graph-5-b0.json +72012fbe2482a918802d0b9a0a6dfa386a2dffea527d3e0027aa35424a83694f ./receipt-graph-red-b1.json diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/binaries.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/binaries.sha256 new file mode 100644 index 000000000..7e49488de --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/binaries.sha256 @@ -0,0 +1,3 @@ +4a8a7aa373b9c04ae3f4343a2f45738a57662ad79609f6af99b64f8173028eec ./build/gpu_decode_graph_test +45aedc44184e3933137b05677b74f24688efa12729f2a11f048cb096ef74fb72 ./build/gpu_launch_cost_test +6a6cb4df479ddbcc5cd4ef0fda1aea968832b2b70be2ff3312051c3e9921aad5 build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/build.log new file mode 100644 index 000000000..985fccb47 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/build.log @@ -0,0 +1 @@ +make: 'build/gpu_launch_cost_test' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/cost.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/cost.log new file mode 100644 index 000000000..2b02a079d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/cost.log @@ -0,0 +1,62 @@ +ok: m=1 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=1 barrier=wfi+inval_all span_us=152.9 per_launch_us=157.7 first_launch_us=152.9 elapsed_us=157.7 GB/s=212.8 fixed_per_extra_launch_us=0.00 +ok: m=2 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=2 barrier=wfi+inval_all span_us=181.1 per_launch_us=93.0 first_launch_us=80.5 elapsed_us=186.1 GB/s=180.3 fixed_per_extra_launch_us=28.35 +ok: m=4 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=4 barrier=wfi+inval_all span_us=222.3 per_launch_us=56.8 first_launch_us=55.3 elapsed_us=227.3 GB/s=147.7 fixed_per_extra_launch_us=23.18 +ok: m=8 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=8 barrier=wfi+inval_all span_us=326.8 per_launch_us=41.5 first_launch_us=39.0 elapsed_us=331.8 GB/s=101.2 fixed_per_extra_launch_us=24.86 +ok: m=16 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=16 barrier=wfi+inval_all span_us=538.9 per_launch_us=34.0 first_launch_us=31.4 elapsed_us=543.9 GB/s=61.7 fixed_per_extra_launch_us=25.75 +ok: m=1 barrier=wfi_only: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=1 barrier=wfi_only span_us=150.7 per_launch_us=155.7 first_launch_us=150.7 elapsed_us=155.7 GB/s=215.6 fixed_per_extra_launch_us=0.00 +ok: m=2 barrier=wfi_only: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=2 barrier=wfi_only span_us=172.4 per_launch_us=88.7 first_launch_us=79.3 elapsed_us=177.4 GB/s=189.2 fixed_per_extra_launch_us=21.68 +ok: m=4 barrier=wfi_only: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=4 barrier=wfi_only span_us=215.6 per_launch_us=55.2 first_launch_us=51.2 elapsed_us=220.6 GB/s=152.1 fixed_per_extra_launch_us=21.64 +ok: m=8 barrier=wfi_only: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=8 barrier=wfi_only span_us=325.7 per_launch_us=41.3 first_launch_us=38.2 elapsed_us=330.8 GB/s=101.5 fixed_per_extra_launch_us=25.01 +ok: m=16 barrier=wfi_only: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=16 barrier=wfi_only span_us=537.0 per_launch_us=33.8 first_launch_us=32.4 elapsed_us=541.0 GB/s=62.0 fixed_per_extra_launch_us=25.69 +ok: m=1 barrier=wfi+inval_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=1 barrier=wfi+inval_data span_us=156.1 per_launch_us=160.9 first_launch_us=156.1 elapsed_us=160.9 GB/s=208.6 fixed_per_extra_launch_us=0.00 +ok: m=2 barrier=wfi+inval_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=2 barrier=wfi+inval_data span_us=175.4 per_launch_us=90.1 first_launch_us=83.4 elapsed_us=180.2 GB/s=186.2 fixed_per_extra_launch_us=19.34 +ok: m=4 barrier=wfi+inval_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=4 barrier=wfi+inval_data span_us=213.8 per_launch_us=54.7 first_launch_us=50.8 elapsed_us=218.7 GB/s=153.5 fixed_per_extra_launch_us=19.26 +ok: m=8 barrier=wfi+inval_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=8 barrier=wfi+inval_data span_us=321.0 per_launch_us=40.7 first_launch_us=37.4 elapsed_us=326.0 GB/s=103.0 fixed_per_extra_launch_us=23.58 +ok: m=16 barrier=wfi+inval_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=16 barrier=wfi+inval_data span_us=539.2 per_launch_us=34.0 first_launch_us=31.2 elapsed_us=544.1 GB/s=61.7 fixed_per_extra_launch_us=25.55 +ok: m=1 barrier=flush_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=1 barrier=flush_data span_us=148.0 per_launch_us=153.0 first_launch_us=148.0 elapsed_us=153.0 GB/s=219.4 fixed_per_extra_launch_us=0.00 +ok: m=2 barrier=flush_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=2 barrier=flush_data span_us=179.1 per_launch_us=92.0 first_launch_us=85.4 elapsed_us=184.0 GB/s=182.4 fixed_per_extra_launch_us=31.04 +ok: m=4 barrier=flush_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=4 barrier=flush_data span_us=216.9 per_launch_us=55.5 first_launch_us=54.8 elapsed_us=221.8 GB/s=151.3 fixed_per_extra_launch_us=22.95 +ok: m=8 barrier=flush_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=8 barrier=flush_data span_us=317.8 per_launch_us=40.3 first_launch_us=38.0 elapsed_us=322.7 GB/s=104.0 fixed_per_extra_launch_us=24.25 +ok: m=16 barrier=flush_data: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=16 barrier=flush_data span_us=538.5 per_launch_us=34.0 first_launch_us=31.8 elapsed_us=543.4 GB/s=61.8 fixed_per_extra_launch_us=26.03 +ok: m=1 barrier=none: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=1 barrier=none span_us=0.0 per_launch_us=157.2 first_launch_us=0.0 elapsed_us=157.2 GB/s=213.5 fixed_per_extra_launch_us=0.00 +ok: m=2 barrier=none: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=2 barrier=none span_us=0.0 per_launch_us=78.2 first_launch_us=0.0 elapsed_us=156.3 GB/s=214.7 fixed_per_extra_launch_us=-0.88 +ok: m=4 barrier=none: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=4 barrier=none span_us=0.0 per_launch_us=42.7 first_launch_us=0.0 elapsed_us=170.8 GB/s=196.5 fixed_per_extra_launch_us=4.53 +ok: m=8 barrier=none: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=8 barrier=none span_us=0.0 per_launch_us=23.4 first_launch_us=0.0 elapsed_us=187.2 GB/s=179.3 fixed_per_extra_launch_us=4.28 +ok: m=16 barrier=none: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=16 barrier=none span_us=0.0 per_launch_us=11.6 first_launch_us=0.0 elapsed_us=185.4 GB/s=181.0 fixed_per_extra_launch_us=1.88 +ok: m=1 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=1 barrier=wfi+inval_all span_us=149.2 per_launch_us=154.1 first_launch_us=149.2 elapsed_us=154.1 GB/s=217.8 fixed_per_extra_launch_us=0.00 +ok: m=2 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=2 barrier=wfi+inval_all span_us=180.3 per_launch_us=92.6 first_launch_us=84.2 elapsed_us=185.2 GB/s=181.2 fixed_per_extra_launch_us=31.12 +ok: m=4 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=4 barrier=wfi+inval_all span_us=214.5 per_launch_us=54.9 first_launch_us=49.4 elapsed_us=219.5 GB/s=152.9 fixed_per_extra_launch_us=21.79 +ok: m=8 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=8 barrier=wfi+inval_all span_us=326.9 per_launch_us=41.5 first_launch_us=39.5 elapsed_us=331.9 GB/s=101.1 fixed_per_extra_launch_us=25.40 +ok: m=16 barrier=wfi+inval_all: 20 reps ran, y bit-identical to the one-launch-at-a-time reference on every rep +COST m=16 barrier=wfi+inval_all span_us=569.1 per_launch_us=35.9 first_launch_us=33.9 elapsed_us=574.0 GB/s=58.5 fixed_per_extra_launch_us=27.99 +ok: negative control: dropped launch 1 named by submit (rc -1, first_missing 1) +gpu_launch_cost_test: 31 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/device.txt new file mode 100644 index 000000000..2eed6711d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/device.txt @@ -0,0 +1,7 @@ +start 2026-10-15T00:56:26Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 16 71 2 37 105 + 19:56:26 up 8 days, 13:24, 20 users, load average: 1.32, 2.47, 2.51 +end 2026-10-15T00:56:37Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-1-b0.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-1-b0.log new file mode 100644 index 000000000..a173e1f6b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-1-b0.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 4074.5 us <= chip 4176.7 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 11.9 us qkv x2 166.9 us attn x2 158.5 us o_proj x2 125.1 us res_add x2 9.6 us router x2 61.5 us gate_up x2 334.4 us swiglu x2 6.5 us down x2 245.3 us combine_norm x2 19.8 us lm_head x1 2919.4 us argmax x2 15.6 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5003.6 us | C one list 22 launches 4060.7 us (chip 4057.6 us, record 2.3 us) | B per-launch submits 22 launches 5336.8 us (chip sum 5326.4 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-2-b2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-2-b2.log new file mode 100644 index 000000000..5a37a3463 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-2-b2.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 2 (wfi_only) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3903.3 us <= chip 3930.5 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 13.8 us qkv x2 155.7 us attn x2 145.2 us o_proj x2 122.2 us res_add x2 10.1 us router x2 48.7 us gate_up x2 297.8 us swiglu x2 6.2 us down x2 175.1 us combine_norm x2 18.5 us lm_head x1 2894.3 us argmax x2 15.6 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4995.2 us | C one list 22 launches 3986.3 us (chip 3982.9 us, record 2.5 us) | B per-launch submits 22 launches 5336.9 us (chip sum 5326.9 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-3-b3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-3-b3.log new file mode 100644 index 000000000..5519e22a1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-3-b3.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 3 (wfi+inval_data) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3894.2 us <= chip 3970.5 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 5.9 us qkv x2 146.8 us attn x2 143.9 us o_proj x2 119.9 us res_add x2 10.1 us router x2 47.8 us gate_up x2 281.9 us swiglu x2 7.2 us down x2 178.4 us combine_norm x2 19.8 us lm_head x1 2917.3 us argmax x2 15.1 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5004.9 us | C one list 22 launches 4080.1 us (chip 4076.7 us, record 2.5 us) | B per-launch submits 22 launches 5337.1 us (chip sum 5327.1 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-4-b4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-4-b4.log new file mode 100644 index 000000000..cb72234c0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-4-b4.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 4 (flush_data) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3890.5 us <= chip 3970.8 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 7.1 us qkv x2 131.7 us attn x2 145.1 us o_proj x2 122.1 us res_add x2 10.3 us router x2 49.5 us gate_up x2 306.2 us swiglu x2 6.0 us down x2 175.8 us combine_norm x2 19.2 us lm_head x1 2902.9 us argmax x2 14.6 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4996.5 us | C one list 22 launches 3976.8 us (chip 3973.6 us, record 2.4 us) | B per-launch submits 22 launches 5525.5 us (chip sum 5515.7 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-5-b0.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-5-b0.log new file mode 100644 index 000000000..15efaa1b4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-5-b0.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3919.4 us <= chip 3971.4 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 15.5 us qkv x2 155.9 us attn x2 142.0 us o_proj x2 125.4 us res_add x2 10.0 us router x2 50.4 us gate_up x2 293.0 us swiglu x2 6.1 us down x2 178.9 us combine_norm x2 20.1 us lm_head x1 2905.9 us argmax x2 16.2 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4996.2 us | C one list 22 launches 3977.2 us (chip 3974.1 us, record 2.4 us) | B per-launch submits 22 launches 5340.3 us (chip sum 5329.8 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-red-b1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-red-b1.log new file mode 100644 index 000000000..9e1b23e65 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/graph-red-b1.log @@ -0,0 +1,22 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 1 (none) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.3 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 3 reps ran +ok: A deterministic over 3 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 3 reps ran: 22 launches in 1 submission(s) +FAIL: C deterministic over 3 reps (token 79696) +A vs C: token 62700 vs 79696, logits max |d| 6.03 (scale 6.03, rel 1, tol 1e-04), x max rel 0.596, hidden max rel 0.529 +FAIL: argmax token identical: A 62700, C 79696 +FAIL: logits A vs C within 1e-04 of max|logit| (max |d| 6.03, scale 6.03) +ok: B (one launch per submission) 3 reps ran: 22 launches in 22 submissions +FAIL: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.22 = 0.202 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 107672 vs 62700, max |d| 1.21 = 0.201 of scale) +FAIL: C after the mutants bit-identical to the first C +graph token rc -4: cmdlist stamps: a slot was not written (stamps off, or the launch did not run) +FAIL: timeline: rc -4, -1 stamps for 22 launches, monotonic 1, span 0.0 us <= chip 3663.6 us, token and logits unchanged +TIMELINE (2 layers, pos 300): +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 3, 2 layers): A host-glue 13 launches 4989.5 us | C one list 22 launches 3668.9 us (chip 3661.4 us, record 3.0 us) | B per-launch submits 22 launches 5331.3 us (chip sum 5321.2 us) +chip: 13 checks, 6 failed: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-cost.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-cost.json new file mode 100644 index 000000000..e401027bc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-cost.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_LAUNCH_COST","n":16384,"k":2048,"bytes":33562624,"reps":20,"points":[{"m":1,"barrier":"wfi+inval_all","span_ns":152864,"first_launch_ns":152864,"elapsed_ns":157746,"gbps":212.76,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi+inval_all","span_ns":181056,"first_launch_ns":80480,"elapsed_ns":186098,"gbps":180.35,"fixed_per_extra_launch_us":28.35,"identical":1},{"m":4,"barrier":"wfi+inval_all","span_ns":222304,"first_launch_ns":55264,"elapsed_ns":227283,"gbps":147.67,"fixed_per_extra_launch_us":23.18,"identical":1},{"m":8,"barrier":"wfi+inval_all","span_ns":326848,"first_launch_ns":39040,"elapsed_ns":331781,"gbps":101.16,"fixed_per_extra_launch_us":24.86,"identical":1},{"m":16,"barrier":"wfi+inval_all","span_ns":538912,"first_launch_ns":31424,"elapsed_ns":543927,"gbps":61.70,"fixed_per_extra_launch_us":25.75,"identical":1},{"m":1,"barrier":"wfi_only","span_ns":150720,"first_launch_ns":150720,"elapsed_ns":155698,"gbps":215.56,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi_only","span_ns":172448,"first_launch_ns":79328,"elapsed_ns":177379,"gbps":189.21,"fixed_per_extra_launch_us":21.68,"identical":1},{"m":4,"barrier":"wfi_only","span_ns":215648,"first_launch_ns":51200,"elapsed_ns":220611,"gbps":152.13,"fixed_per_extra_launch_us":21.64,"identical":1},{"m":8,"barrier":"wfi_only","span_ns":325728,"first_launch_ns":38240,"elapsed_ns":330756,"gbps":101.47,"fixed_per_extra_launch_us":25.01,"identical":1},{"m":16,"barrier":"wfi_only","span_ns":536992,"first_launch_ns":32352,"elapsed_ns":541015,"gbps":62.04,"fixed_per_extra_launch_us":25.69,"identical":1},{"m":1,"barrier":"wfi+inval_data","span_ns":156096,"first_launch_ns":156096,"elapsed_ns":160866,"gbps":208.64,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi+inval_data","span_ns":175360,"first_launch_ns":83424,"elapsed_ns":180210,"gbps":186.24,"fixed_per_extra_launch_us":19.34,"identical":1},{"m":4,"barrier":"wfi+inval_data","span_ns":213792,"first_launch_ns":50848,"elapsed_ns":218659,"gbps":153.49,"fixed_per_extra_launch_us":19.26,"identical":1},{"m":8,"barrier":"wfi+inval_data","span_ns":321024,"first_launch_ns":37440,"elapsed_ns":325957,"gbps":102.97,"fixed_per_extra_launch_us":23.58,"identical":1},{"m":16,"barrier":"wfi+inval_data","span_ns":539232,"first_launch_ns":31232,"elapsed_ns":544135,"gbps":61.68,"fixed_per_extra_launch_us":25.55,"identical":1},{"m":1,"barrier":"flush_data","span_ns":148000,"first_launch_ns":148000,"elapsed_ns":152962,"gbps":219.42,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"flush_data","span_ns":179136,"first_launch_ns":85408,"elapsed_ns":184002,"gbps":182.40,"fixed_per_extra_launch_us":31.04,"identical":1},{"m":4,"barrier":"flush_data","span_ns":216896,"first_launch_ns":54752,"elapsed_ns":221826,"gbps":151.30,"fixed_per_extra_launch_us":22.95,"identical":1},{"m":8,"barrier":"flush_data","span_ns":317792,"first_launch_ns":38048,"elapsed_ns":322740,"gbps":103.99,"fixed_per_extra_launch_us":24.25,"identical":1},{"m":16,"barrier":"flush_data","span_ns":538464,"first_launch_ns":31840,"elapsed_ns":543351,"gbps":61.77,"fixed_per_extra_launch_us":26.03,"identical":1},{"m":1,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":157218,"gbps":213.48,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":156338,"gbps":214.68,"fixed_per_extra_launch_us":-0.88,"identical":1},{"m":4,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":170803,"gbps":196.50,"fixed_per_extra_launch_us":4.53,"identical":1},{"m":8,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":187202,"gbps":179.29,"fixed_per_extra_launch_us":4.28,"identical":1},{"m":16,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":185378,"gbps":181.05,"fixed_per_extra_launch_us":1.88,"identical":1},{"m":1,"barrier":"wfi+inval_all","span_ns":149216,"first_launch_ns":149216,"elapsed_ns":154114,"gbps":217.78,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi+inval_all","span_ns":180256,"first_launch_ns":84224,"elapsed_ns":185234,"gbps":181.19,"fixed_per_extra_launch_us":31.12,"identical":1},{"m":4,"barrier":"wfi+inval_all","span_ns":214496,"first_launch_ns":49440,"elapsed_ns":219475,"gbps":152.92,"fixed_per_extra_launch_us":21.79,"identical":1},{"m":8,"barrier":"wfi+inval_all","span_ns":326912,"first_launch_ns":39520,"elapsed_ns":331892,"gbps":101.13,"fixed_per_extra_launch_us":25.40,"identical":1},{"m":16,"barrier":"wfi+inval_all","span_ns":569088,"first_launch_ns":33888,"elapsed_ns":573959,"gbps":58.48,"fixed_per_extra_launch_us":27.99,"identical":1}],"checks":31,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-1-b0.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-1-b0.json new file mode 100644 index 000000000..4295bdd74 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-1-b0.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":4074464,"chip_ns":4176724,"per_kind_ns":{"norm":[1,11936],"qkv":[2,166944],"attn":[2,158496],"o_proj":[2,125056],"res_add":[2,9600],"router":[2,61504],"gate_up":[2,334368],"swiglu":[2,6464],"down":[2,245344],"combine_norm":[2,19840],"lm_head":[1,2919360],"argmax":[2,15552]}},"median_ns":{"A_total":5003599,"C_total":4060658,"C_chip":4057554,"C_record":2336,"B_total":5336802,"B_chip":5326354},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-2-b2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-2-b2.json new file mode 100644 index 000000000..2376e23ba --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-2-b2.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3903296,"chip_ns":3930545,"per_kind_ns":{"norm":[1,13792],"qkv":[2,155680],"attn":[2,145248],"o_proj":[2,122208],"res_add":[2,10080],"router":[2,48672],"gate_up":[2,297792],"swiglu":[2,6208],"down":[2,175136],"combine_norm":[2,18528],"lm_head":[1,2894304],"argmax":[2,15648]}},"median_ns":{"A_total":4995183,"C_total":3986306,"C_chip":3982914,"C_record":2512,"B_total":5336899,"B_chip":5326946},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-3-b3.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-3-b3.json new file mode 100644 index 000000000..24c1aee4d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-3-b3.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3894176,"chip_ns":3970545,"per_kind_ns":{"norm":[1,5888],"qkv":[2,146848],"attn":[2,143904],"o_proj":[2,119904],"res_add":[2,10080],"router":[2,47776],"gate_up":[2,281920],"swiglu":[2,7232],"down":[2,178400],"combine_norm":[2,19808],"lm_head":[1,2917312],"argmax":[2,15104]}},"median_ns":{"A_total":5004863,"C_total":4080099,"C_chip":4076739,"C_record":2512,"B_total":5337139,"B_chip":5327091},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-4-b4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-4-b4.json new file mode 100644 index 000000000..171ca184f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-4-b4.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3890496,"chip_ns":3970850,"per_kind_ns":{"norm":[1,7072],"qkv":[2,131680],"attn":[2,145088],"o_proj":[2,122144],"res_add":[2,10336],"router":[2,49504],"gate_up":[2,306208],"swiglu":[2,5984],"down":[2,175808],"combine_norm":[2,19200],"lm_head":[1,2902880],"argmax":[2,14592]}},"median_ns":{"A_total":4996463,"C_total":3976785,"C_chip":3973585,"C_record":2385,"B_total":5525540,"B_chip":5515652},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-5-b0.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-5-b0.json new file mode 100644 index 000000000..c7caa48e1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-5-b0.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3919424,"chip_ns":3971426,"per_kind_ns":{"norm":[1,15488],"qkv":[2,155904],"attn":[2,141984],"o_proj":[2,125376],"res_add":[2,10048],"router":[2,50368],"gate_up":[2,293024],"swiglu":[2,6144],"down":[2,178912],"combine_norm":[2,20064],"lm_head":[1,2905920],"argmax":[2,16192]}},"median_ns":{"A_total":4996175,"C_total":3977202,"C_chip":3974130,"C_record":2400,"B_total":5340323,"B_chip":5329763},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-red-b1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-red-b1.json new file mode 100644 index 000000000..38b23eff0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_barrier/receipt-graph-red-b1.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":3,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":79696,"launches":22,"submits":1},"A_vs_C":{"tok_same":0,"logit_max_abs":6.03418,"logit_scale":6.03418,"x_max_rel":0.595806,"hidden_max_rel":0.529118,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.22061,"caught":1},"mutant2":{"rc":0,"token":107672,"logit_max_abs":1.21263,"caught":1},"C0_token":79696,"C0_logits_fnv":"d791b36139eed747","timeline":{"launches":-1,"span_ns":0,"chip_ns":3663646,"per_kind_ns":{}},"median_ns":{"A_total":4989455,"C_total":3668925,"C_chip":3661437,"C_record":3024,"B_total":5331314,"B_chip":5321235},"B":{"launches":22,"submits":22,"identical":0},"checks":13,"failed":6,"verdict":"FAIL"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch.out new file mode 100644 index 000000000..c10d9b0e5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch.out @@ -0,0 +1,13 @@ +1-cached-base (--cached-weights): TIMELINE (2 layers, pos 300): norm x1 26.2 us qkv x2 137.7 us attn x2 145.6 us o_proj x2 116.8 us res_add x2 9.8 us router x2 51.0 us gate_up x2 286.3 us swiglu x2 7.1 us down x2 171.3 us combine_norm x2 19.1 us lm_head x1 2912.4 us argmax x2 13.5 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5004.4 us | C one list 22 launches 3954.9 us (chip 3942.8 us, record 4.6 us) | B per-launch submits 22 launches 5413.8 us (chip sum 5398.7 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +2-cached-prefetch (--cached-weights --prefetch): TIMELINE (2 layers, pos 300): norm x1 15.3 us qkv x2 149.3 us attn x4 257.7 us o_proj x2 105.2 us res_add x2 12.1 us router x2 77.8 us gate_up x2 293.5 us swiglu x2 24.5 us down x2 194.3 us combine_norm x2 21.1 us lm_head x1 3020.4 us argmax x2 14.7 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4997.2 us | C one list 24 launches 4055.2 us (chip 4050.1 us, record 3.0 us) | B per-launch submits 24 launches 5579.1 us (chip sum 5552.4 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +3-cached-base (--cached-weights): TIMELINE (2 layers, pos 300): norm x1 15.4 us qkv x2 142.7 us attn x2 145.2 us o_proj x2 117.7 us res_add x2 8.6 us router x2 48.8 us gate_up x2 293.7 us swiglu x2 6.7 us down x2 177.6 us combine_norm x2 19.6 us lm_head x1 2944.7 us argmax x2 19.4 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5008.4 us | C one list 22 launches 3979.7 us (chip 3976.6 us, record 2.5 us) | B per-launch submits 22 launches 5462.4 us (chip sum 5433.3 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +4-cached-prefetch (--cached-weights --prefetch): TIMELINE (2 layers, pos 300): norm x1 6.0 us qkv x2 134.0 us attn x4 231.0 us o_proj x2 87.9 us res_add x2 10.5 us router x2 49.1 us gate_up x2 292.8 us swiglu x2 6.7 us down x2 176.7 us combine_norm x2 19.1 us lm_head x1 2926.4 us argmax x2 16.4 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5018.3 us | C one list 24 launches 4075.9 us (chip 4072.9 us, record 2.7 us) | B per-launch submits 24 launches 5542.4 us (chip sum 5531.2 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +5-uncached-prefetch (--prefetch): TIMELINE (2 layers, pos 300): norm x1 13.4 us qkv x2 141.1 us attn x4 231.8 us o_proj x2 108.5 us res_add x2 10.5 us router x2 50.1 us gate_up x2 298.6 us swiglu x2 7.2 us down x2 181.3 us combine_norm x2 19.1 us lm_head x1 2909.6 us argmax x2 14.9 us PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4997.2 us | C one list 24 launches 4100.2 us (chip 4095.2 us, record 4.1 us) | B per-launch submits 24 launches 5629.2 us (chip sum 5612.1 us) chip: 13 checks, 0 failed: PASS +"C0_logits_fnv":"77e35a29071d8fa7" +red (prefetch-red): exit 1 (chip: 13 checks, 6 failed: FAIL) +cmdlist: chip: 31 checks, 0 failed: PASS +GPU_L2D_PREFETCH_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/1-cached-base.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/1-cached-base.log new file mode 100644 index 000000000..c7cef9aa2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/1-cached-base.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3897.0 us <= chip 3947.4 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 26.2 us qkv x2 137.7 us attn x2 145.6 us o_proj x2 116.8 us res_add x2 9.8 us router x2 51.0 us gate_up x2 286.3 us swiglu x2 7.1 us down x2 171.3 us combine_norm x2 19.1 us lm_head x1 2912.4 us argmax x2 13.5 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5004.4 us | C one list 22 launches 3954.9 us (chip 3942.8 us, record 4.6 us) | B per-launch submits 22 launches 5413.8 us (chip sum 5398.7 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/2-cached-prefetch.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/2-cached-prefetch.log new file mode 100644 index 000000000..c53422997 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/2-cached-prefetch.log @@ -0,0 +1,21 @@ +dgraph prefetch 1 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 24 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 24 launches in 24 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 24 stamps for 24 launches, monotonic 1, span 4185.9 us <= chip 4228.3 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 15.3 us qkv x2 149.3 us attn x4 257.7 us o_proj x2 105.2 us res_add x2 12.1 us router x2 77.8 us gate_up x2 293.5 us swiglu x2 24.5 us down x2 194.3 us combine_norm x2 21.1 us lm_head x1 3020.4 us argmax x2 14.7 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4997.2 us | C one list 24 launches 4055.2 us (chip 4050.1 us, record 3.0 us) | B per-launch submits 24 launches 5579.1 us (chip sum 5552.4 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/3-cached-base.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/3-cached-base.log new file mode 100644 index 000000000..471c6fff4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/3-cached-base.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3940.2 us <= chip 4044.8 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 15.4 us qkv x2 142.7 us attn x2 145.2 us o_proj x2 117.7 us res_add x2 8.6 us router x2 48.8 us gate_up x2 293.7 us swiglu x2 6.7 us down x2 177.6 us combine_norm x2 19.6 us lm_head x1 2944.7 us argmax x2 19.4 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5008.4 us | C one list 22 launches 3979.7 us (chip 3976.6 us, record 2.5 us) | B per-launch submits 22 launches 5462.4 us (chip sum 5433.3 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/4-cached-prefetch.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/4-cached-prefetch.log new file mode 100644 index 000000000..e8fe10b3e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/4-cached-prefetch.log @@ -0,0 +1,21 @@ +dgraph prefetch 1 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 24 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 24 launches in 24 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 24 stamps for 24 launches, monotonic 1, span 3956.6 us <= chip 3972.8 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 6.0 us qkv x2 134.0 us attn x4 231.0 us o_proj x2 87.9 us res_add x2 10.5 us router x2 49.1 us gate_up x2 292.8 us swiglu x2 6.7 us down x2 176.7 us combine_norm x2 19.1 us lm_head x1 2926.4 us argmax x2 16.4 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 5018.3 us | C one list 24 launches 4075.9 us (chip 4072.9 us, record 2.7 us) | B per-launch submits 24 launches 5542.4 us (chip sum 5531.2 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/5-uncached-prefetch.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/5-uncached-prefetch.log new file mode 100644 index 000000000..add94317b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/5-uncached-prefetch.log @@ -0,0 +1,21 @@ +dgraph prefetch 1 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 10 reps ran +ok: A deterministic over 10 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 10 reps ran: 24 launches in 1 submission(s) +ok: C deterministic over 10 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 10 reps ran: 24 launches in 24 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 24 stamps for 24 launches, monotonic 1, span 3986.1 us <= chip 4007.7 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 13.4 us qkv x2 141.1 us attn x4 231.8 us o_proj x2 108.5 us res_add x2 10.5 us router x2 50.1 us gate_up x2 298.6 us swiglu x2 7.2 us down x2 181.3 us combine_norm x2 19.1 us lm_head x1 2909.6 us argmax x2 14.9 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 10, 2 layers): A host-glue 13 launches 4997.2 us | C one list 24 launches 4100.2 us (chip 4095.2 us, record 4.1 us) | B per-launch submits 24 launches 5629.2 us (chip sum 5612.1 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/SHA256SUMS new file mode 100644 index 000000000..cee09da06 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/SHA256SUMS @@ -0,0 +1,16 @@ +594eed3776d3890dc99e212aeae3d88625ceb11e2e835f57d02ab28627618b95 ./1-cached-base.log +1e6666b676a0ea76c021c3ec7b692fa7dc67b05f722d063f8748f573d1dabd84 ./2-cached-prefetch.log +e91708c996cb4463141a6fb4c8f5e57a7eca64f1e5a2ebd93239e8a1bd04dc57 ./3-cached-base.log +8f98894cdedddb44db6773397950932dd45a91a0b50f78e9325c968ee744f768 ./4-cached-prefetch.log +82e083af84537df6b59fcbf44db33876731911054cdb8b664f980017568b9765 ./5-uncached-prefetch.log +f2a258fa4edff328a3a58e12dff945133e9bbcae77fbfd5d7dc6550323599d75 ./binaries.sha256 +5cfd0e771de1af1722bb0b909d14b6c1d1d516d75b91e6293411a6b94e047c78 ./build.log +195d3d41e482308ce37aea9823e71dffb56324791d42a73056a13dd1cdf8f5f4 ./cmdlist.log +14b6b06bc7fd620433d7a5ac2f8cfcaa7411bd73afc02463aa8b69a36b662e67 ./device.txt +e85fefdb75fdadda6416109526cd95768210af2f9dde8b6e2f8d32c010d5f921 ./receipt-1-cached-base.json +bb82fe0a021901a25966f4af3e771b8179379909d82e724fc1b69c7b3520d3c9 ./receipt-2-cached-prefetch.json +c7ec6d3f847973f6592df9900b82e8fb60bbca78ef3a76474c1d119fedc0247a ./receipt-3-cached-base.json +d1cb40c6aab5f09f18f70d04cfd0faacea59cf0366c761f6c84ad1d93d9af686 ./receipt-4-cached-prefetch.json +cc66ab5da4ace1bceca658bc90ad87081e6280e6ba93a61a9eb3e74c321f2b40 ./receipt-5-uncached-prefetch.json +b6ab6345b69f3aa76c444d9e7f170f41b0445e3fb64e626178f85f898086bfe1 ./receipt-red.json +6ba0afd5c1daabecdb28a848b0901abae1903c4e72ad0e9cfb9b2df176e84264 ./red.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/binaries.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/binaries.sha256 new file mode 100644 index 000000000..4f16f1f0e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/binaries.sha256 @@ -0,0 +1,3 @@ +4a8a7aa373b9c04ae3f4343a2f45738a57662ad79609f6af99b64f8173028eec ./build/gpu_decode_graph_test +76c398d4d26800d7d059795bdfe2f4d2f425a20bf9d8eec0c93b1817c5986558 build/gpu_cmdlist_test +6a6cb4df479ddbcc5cd4ef0fda1aea968832b2b70be2ff3312051c3e9921aad5 build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/build.log new file mode 100644 index 000000000..7b7d615c8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/build.log @@ -0,0 +1 @@ +make: 'build/gpu_cmdlist_test' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/cmdlist.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/cmdlist.log new file mode 100644 index 000000000..ae5be15e4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/cmdlist.log @@ -0,0 +1,11 @@ +L=64: baseline 103.1 us/launch (chip 103.1 us, wall 103.5 us per launch); PCAS ok 3.19 us/launch (wall 3.20, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 101.9 us/launch (chip 101.9 us, wall 102.3 us per launch); PCAS ok 3.02 us/launch (wall 3.02, 1 submits); INLINE ok 3.89 us/launch (4 submits) +L=1024: baseline 104.3 us/launch (chip 104.3 us, wall 104.8 us per launch); PCAS ok 2.72 us/launch (wall 2.73, 1 submits); INLINE ok 3.97 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1384.8 us; BARRIER_NONE rc 0 18080 differ 1348.6 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 113.8 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 106.8 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/device.txt new file mode 100644 index 000000000..855325d8b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/device.txt @@ -0,0 +1,7 @@ +start 2026-10-15T00:56:37Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 16 71 2 37 104 + 19:56:37 up 8 days, 13:25, 20 users, load average: 1.33, 2.42, 2.49 +end 2026-10-15T00:56:51Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-1-cached-base.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-1-cached-base.json new file mode 100644 index 000000000..186c36d3b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-1-cached-base.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":1,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3897024,"chip_ns":3947441,"per_kind_ns":{"norm":[1,26240],"qkv":[2,137664],"attn":[2,145632],"o_proj":[2,116768],"res_add":[2,9824],"router":[2,51040],"gate_up":[2,286304],"swiglu":[2,7136],"down":[2,171328],"combine_norm":[2,19104],"lm_head":[1,2912448],"argmax":[2,13536]}},"median_ns":{"A_total":5004366,"C_total":3954866,"C_chip":3942817,"C_record":4624,"B_total":5413763,"B_chip":5398723},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-2-cached-prefetch.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-2-cached-prefetch.json new file mode 100644 index 000000000..f521fb40e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-2-cached-prefetch.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":1,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":24,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":24,"span_ns":4185888,"chip_ns":4228325,"per_kind_ns":{"norm":[1,15264],"qkv":[2,149344],"attn":[4,257696],"o_proj":[2,105184],"res_add":[2,12128],"router":[2,77760],"gate_up":[2,293536],"swiglu":[2,24480],"down":[2,194336],"combine_norm":[2,21088],"lm_head":[1,3020416],"argmax":[2,14656]}},"median_ns":{"A_total":4997230,"C_total":4055234,"C_chip":4050098,"C_record":2976,"B_total":5579077,"B_chip":5552405},"B":{"launches":24,"submits":24,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-3-cached-base.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-3-cached-base.json new file mode 100644 index 000000000..837663d69 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-3-cached-base.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":1,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3940160,"chip_ns":4044787,"per_kind_ns":{"norm":[1,15424],"qkv":[2,142656],"attn":[2,145184],"o_proj":[2,117696],"res_add":[2,8608],"router":[2,48800],"gate_up":[2,293728],"swiglu":[2,6720],"down":[2,177568],"combine_norm":[2,19648],"lm_head":[1,2944704],"argmax":[2,19424]}},"median_ns":{"A_total":5008430,"C_total":3979665,"C_chip":3976642,"C_record":2512,"B_total":5462388,"B_chip":5433284},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-4-cached-prefetch.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-4-cached-prefetch.json new file mode 100644 index 000000000..99e486936 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-4-cached-prefetch.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":1,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":24,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":24,"span_ns":3956640,"chip_ns":3972850,"per_kind_ns":{"norm":[1,6016],"qkv":[2,133984],"attn":[4,231008],"o_proj":[2,87904],"res_add":[2,10528],"router":[2,49088],"gate_up":[2,292832],"swiglu":[2,6656],"down":[2,176672],"combine_norm":[2,19136],"lm_head":[1,2926400],"argmax":[2,16416]}},"median_ns":{"A_total":5018319,"C_total":4075907,"C_chip":4072931,"C_record":2657,"B_total":5542421,"B_chip":5531221},"B":{"launches":24,"submits":24,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-5-uncached-prefetch.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-5-uncached-prefetch.json new file mode 100644 index 000000000..9eb7061d4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-5-uncached-prefetch.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":10,"red":0,"cached_weights":0,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":24,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":24,"span_ns":3986144,"chip_ns":4007697,"per_kind_ns":{"norm":[1,13408],"qkv":[2,141056],"attn":[4,231808],"o_proj":[2,108512],"res_add":[2,10528],"router":[2,50144],"gate_up":[2,298624],"swiglu":[2,7168],"down":[2,181280],"combine_norm":[2,19072],"lm_head":[1,2909600],"argmax":[2,14944]}},"median_ns":{"A_total":4997198,"C_total":4100226,"C_chip":4095234,"C_record":4144,"B_total":5629190,"B_chip":5612150},"B":{"launches":24,"submits":24,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-red.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-red.json new file mode 100644 index 000000000..17f67f453 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/receipt-red.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":3,"red":0,"cached_weights":1,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":70886,"launches":24,"submits":1},"A_vs_C":{"tok_same":0,"logit_max_abs":1.50374,"logit_scale":6.03418,"x_max_rel":0.328828,"hidden_max_rel":0.300067,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.37171,"caught":1},"mutant2":{"rc":0,"token":31346,"logit_max_abs":0.367044,"caught":1},"C0_token":70886,"C0_logits_fnv":"9900c48fa66abf85","timeline":{"launches":24,"span_ns":3894432,"chip_ns":3946449,"per_kind_ns":{"norm":[1,16448],"qkv":[2,139296],"attn":[4,2016],"o_proj":[2,273824],"res_add":[2,9792],"router":[2,49184],"gate_up":[2,293920],"swiglu":[2,6944],"down":[2,173568],"combine_norm":[2,19168],"lm_head":[1,2895200],"argmax":[2,15072]}},"median_ns":{"A_total":5018302,"C_total":3980465,"C_chip":3976401,"C_record":3344,"B_total":5537429,"B_chip":5526341},"B":{"launches":24,"submits":24,"identical":0},"checks":13,"failed":6,"verdict":"FAIL"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/red.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/red.log new file mode 100644 index 000000000..38e88042a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/red.log @@ -0,0 +1,21 @@ +dgraph prefetch 1 (red 1) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 3 reps ran +ok: A deterministic over 3 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 3 reps ran: 24 launches in 1 submission(s) +FAIL: C deterministic over 3 reps (token 70886) +A vs C: token 62700 vs 70886, logits max |d| 1.5 (scale 6.03, rel 0.249, tol 1e-04), x max rel 0.329, hidden max rel 0.3 +FAIL: argmax token identical: A 62700, C 70886 +FAIL: logits A vs C within 1e-04 of max|logit| (max |d| 1.5, scale 6.03) +ok: B (one launch per submission) 3 reps ran: 24 launches in 24 submissions +FAIL: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.37 = 0.227 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 31346 vs 62700, max |d| 0.367 = 0.0608 of scale) +FAIL: C after the mutants bit-identical to the first C +FAIL: timeline: rc 0, 24 stamps for 24 launches, monotonic 1, span 3894.4 us <= chip 3946.4 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 16.4 us qkv x2 139.3 us attn x4 2.0 us o_proj x2 273.8 us res_add x2 9.8 us router x2 49.2 us gate_up x2 293.9 us swiglu x2 6.9 us down x2 173.6 us combine_norm x2 19.2 us lm_head x1 2895.2 us argmax x2 15.1 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 3, 2 layers): A host-glue 13 launches 5018.3 us | C one list 24 launches 3980.5 us (chip 3976.4 us, record 3.3 us) | B per-launch submits 24 launches 5537.4 us (chip sum 5526.3 us) +chip: 13 checks, 6 failed: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api.out new file mode 100644 index 000000000..aab93a777 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api.out @@ -0,0 +1,38 @@ +PASS 16x16x16 rc=OK chip_ns=217410 call_ms=134.578 wall_ms=134.6 max_abs=2.08616e-07 max_rel=4.51833e-08 mismatches=0 e2e_rel=4.51833e-08 e2e_bad=0 grid=2x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 32x32x32 rc=OK chip_ns=103169 call_ms=0.431 wall_ms=0.4 max_abs=4.47035e-07 max_rel=5.60462e-08 mismatches=0 e2e_rel=5.60462e-08 e2e_bad=0 grid=1x1 calls=1 rows_per_call=32 cache_hit2=1 err="" +PASS 64x64x64 rc=OK chip_ns=103249 call_ms=1.778 wall_ms=1.8 max_abs=1.00583e-06 max_rel=6.11591e-08 mismatches=0 e2e_rel=6.11591e-08 e2e_bad=0 grid=2x1 calls=1 rows_per_call=64 cache_hit2=1 err="" +PASS 128x128x128 rc=OK chip_ns=104913 call_ms=10.715 wall_ms=10.9 max_abs=2.89083e-06 max_rel=9.41787e-08 mismatches=0 e2e_rel=9.41787e-08 e2e_bad=0 grid=4x2 calls=1 rows_per_call=128 cache_hit2=1 err="" +PASS 256x256x256 rc=OK chip_ns=107474 call_ms=82.851 wall_ms=83.5 max_abs=8.43406e-06 max_rel=1.30669e-07 mismatches=0 e2e_rel=1.30669e-07 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 512x512x512 rc=OK chip_ns=185891 call_ms=655.720 wall_ms=658.7 max_abs=2.39611e-05 max_rel=1.82928e-07 mismatches=0 e2e_rel=1.82928e-07 e2e_bad=0 grid=8x8 calls=1 rows_per_call=512 cache_hit2=1 err="" +PASS 1x1024x1024 rc=OK chip_ns=112609 call_ms=6.585 wall_ms=12.4 max_abs=3.67463e-05 max_rel=1.48922e-07 mismatches=0 e2e_rel=1.48922e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x256x1024 rc=OK chip_ns=107954 call_ms=1.827 wall_ms=3.1 max_abs=4.94719e-06 max_rel=7.52664e-08 mismatches=0 e2e_rel=7.52664e-08 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 16x1024x256 rc=OK chip_ns=106561 call_ms=21.030 wall_ms=22.4 max_abs=3.72902e-05 max_rel=1.45806e-07 mismatches=0 e2e_rel=1.45806e-07 e2e_bad=0 grid=32x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 8x1024x8 rc=OK chip_ns=106497 call_ms=0.660 wall_ms=0.7 max_abs=3.00165e-05 max_rel=1.18908e-07 mismatches=0 e2e_rel=1.18908e-07 e2e_bad=0 grid=1x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1024x16x128 rc=OK chip_ns=103793 call_ms=10.922 wall_ms=11.0 max_abs=4.39584e-07 max_rel=9.37062e-08 mismatches=0 e2e_rel=9.37062e-08 e2e_bad=0 grid=4x16 calls=1 rows_per_call=1024 cache_hit2=1 err="" +PASS 192x16x192 rc=OK chip_ns=105010 call_ms=3.302 wall_ms=3.3 max_abs=4.61936e-07 max_rel=1.0078e-07 mismatches=0 e2e_rel=1.0078e-07 e2e_bad=0 grid=6x3 calls=1 rows_per_call=192 cache_hit2=1 err="" +PASS 512x16x64 rc=OK chip_ns=103825 call_ms=2.982 wall_ms=3.0 max_abs=4.32134e-07 max_rel=7.64946e-08 mismatches=0 e2e_rel=7.64946e-08 e2e_bad=0 grid=2x8 calls=1 rows_per_call=512 cache_hit2=1 err="" +PASS 256x16x256 rc=OK chip_ns=104546 call_ms=5.618 wall_ms=5.7 max_abs=4.47035e-07 max_rel=9.74134e-08 mismatches=0 e2e_rel=9.74134e-08 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 128x16x512 rc=OK chip_ns=105505 call_ms=5.624 wall_ms=5.7 max_abs=4.47035e-07 max_rel=8.99603e-08 mismatches=0 e2e_rel=8.99603e-08 e2e_bad=0 grid=16x2 calls=1 rows_per_call=128 cache_hit2=1 err="" +PASS 1x2048x8192 rc=OK chip_ns=422374 call_ms=106.980 wall_ms=198.4 max_abs=0.000129104 max_rel=2.62102e-07 mismatches=0 e2e_rel=2.62102e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x8192x2048 rc=OK chip_ns=932268 call_ms=110.102 wall_ms=201.7 max_abs=0.00123078 max_rel=5.96705e-07 mismatches=0 e2e_rel=5.96705e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x2048x128256 rc=OK chip_ns=4503943 call_ms=1467.560 wall_ms=2902.8 max_abs=0.000163585 max_rel=3.1728e-07 mismatches=0 e2e_rel=3.1728e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 25 checks, 0 failed +KILLED 16x32x16 rc=PARITY_FAIL chip_ns=217218 call_ms=136.240 wall_ms=136.3 max_abs=4.00935 max_rel=0.491416 mismatches=256 e2e_rel=0.491416 e2e_bad=256 grid=2x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +KILLED 1x2048x8192 rc=PARITY_FAIL chip_ns=415429 call_ms=105.539 wall_ms=198.3 max_abs=10.7282 max_rel=0.0209995 mismatches=8181 e2e_rel=0.0209995 e2e_bad=8181 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +KILLED 64x64x64 rc=PARITY_FAIL chip_ns=111153 call_ms=1.764 wall_ms=1.8 max_abs=6.04851 max_rel=0.334215 mismatches=4096 e2e_rel=0.334215 e2e_bad=4096 grid=2x1 calls=1 rows_per_call=64 cache_hit2=1 err="" +KILLED 1x1024x1024 rc=PARITY_FAIL chip_ns=109138 call_ms=6.349 wall_ms=11.6 max_abs=6.63406 max_rel=0.0276205 mismatches=1023 e2e_rel=0.0276205 e2e_bad=1023 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 4 checks, 0 failed (mutant killed) +PASS timing 1x2048x8192 upload_ms=240.0 ok_calls=100 median_ms=0.412 p90_ms=0.413 min_ms=0.366 max_ms=0.935 chip_ns_mean=410928 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.3 ok_calls=100 median_ms=0.412 p90_ms=0.692 min_ms=0.371 max_ms=1.269 chip_ns_mean=478907 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +PASS 256x256x256 rc=OK chip_ns=220483 call_ms=217.248 wall_ms=218.4 max_abs=8.43406e-06 max_rel=1.30669e-07 mismatches=0 e2e_rel=1.30669e-07 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 1x2048x8192 rc=OK chip_ns=426485 call_ms=106.527 wall_ms=198.9 max_abs=0.000129104 max_rel=2.62102e-07 mismatches=0 e2e_rel=2.62102e-07 e2e_bad=0 grid=128x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x2048x128256 rc=OK chip_ns=3653405 call_ms=1458.993 wall_ms=2891.7 max_abs=0.000163585 max_rel=3.1728e-07 mismatches=0 e2e_rel=3.1728e-07 e2e_bad=0 grid=128x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 10 checks, 0 failed +cta budget 128 exit 0 (informational) +PASS 256x256x256 rc=OK chip_ns=218402 call_ms=217.278 wall_ms=218.0 max_abs=8.43406e-06 max_rel=1.30669e-07 mismatches=0 e2e_rel=1.30669e-07 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 1x2048x8192 rc=OK chip_ns=322388 call_ms=106.610 wall_ms=198.4 max_abs=0.000129104 max_rel=2.62102e-07 mismatches=0 e2e_rel=2.62102e-07 e2e_bad=0 grid=256x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x2048x128256 rc=OK chip_ns=3240327 call_ms=1457.624 wall_ms=2897.6 max_abs=0.000163585 max_rel=3.1728e-07 mismatches=0 e2e_rel=3.1728e-07 e2e_bad=0 grid=256x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 10 checks, 0 failed +cta budget 256 exit 0 (informational) +GPU_MATMUL_API_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/SHA256SUMS new file mode 100644 index 000000000..4b0795b63 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/SHA256SUMS @@ -0,0 +1,12 @@ +bd6a824457d4694171914f2369ab28d1c98abd34768faaddcec0f970cdea54b7 receipt-cta128.json +752efb3b5947453397284154dbf6191f4c6ecaae1141d3ae6f64b891d8472d9a receipt-cta256.json +858663d6c8f59adb5a968922e33479d0d4529fb86a9a6de86416546897cb8f38 receipt-mutant.json +a106f0feb2aed0370416d13e9009af950f34a855e941973c47715e96a8c3d144 receipt-sweep.json +2968d008e781d0aaabea19b06de778d62c7d6a9f4dccae5f1bbf3dbdd1daf86c receipt-timing.json +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +f819e53b0d103b26355eb6de103693043e432731d82927ca0e3d37d5082432e8 cta128.log +a92620e6189356f090c1eb4e68a3d67c8848068c944a24ccc650ceb09cc50453 cta256.log +5673f8f255acf508a6263d690faec954435c21a41c484df80738bf58e9dcd9e0 mutant.log +438314dd331cb4fc090d78c07e87e91dc7adfc3966ce6f788f616be6c462ed43 sweep.log +2248f9131630a7004572aaec8e004c1b2e76f1e480c6ff53bdeb9f92cf0bae17 timing.log +2f5393fdd9d84ff57a5254943396b2f0b9d07b6ff049c4f640eb30892807b05c device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/cta128.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/cta128.log new file mode 100644 index 000000000..03d830f0e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/cta128.log @@ -0,0 +1,5 @@ +PASS 256x256x256 rc=OK chip_ns=220483 call_ms=217.248 wall_ms=218.4 max_abs=8.43406e-06 max_rel=1.30669e-07 mismatches=0 e2e_rel=1.30669e-07 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 1x2048x8192 rc=OK chip_ns=426485 call_ms=106.527 wall_ms=198.9 max_abs=0.000129104 max_rel=2.62102e-07 mismatches=0 e2e_rel=2.62102e-07 e2e_bad=0 grid=128x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x2048x128256 rc=OK chip_ns=3653405 call_ms=1458.993 wall_ms=2891.7 max_abs=0.000163585 max_rel=3.1728e-07 mismatches=0 e2e_rel=3.1728e-07 e2e_bad=0 grid=128x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 10 checks, 0 failed +cta budget 128 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/cta256.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/cta256.log new file mode 100644 index 000000000..3dd81b7db --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/cta256.log @@ -0,0 +1,5 @@ +PASS 256x256x256 rc=OK chip_ns=218402 call_ms=217.278 wall_ms=218.0 max_abs=8.43406e-06 max_rel=1.30669e-07 mismatches=0 e2e_rel=1.30669e-07 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 1x2048x8192 rc=OK chip_ns=322388 call_ms=106.610 wall_ms=198.4 max_abs=0.000129104 max_rel=2.62102e-07 mismatches=0 e2e_rel=2.62102e-07 e2e_bad=0 grid=256x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x2048x128256 rc=OK chip_ns=3240327 call_ms=1457.624 wall_ms=2897.6 max_abs=0.000163585 max_rel=3.1728e-07 mismatches=0 e2e_rel=3.1728e-07 e2e_bad=0 grid=256x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 10 checks, 0 failed +cta budget 256 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/device.txt new file mode 100644 index 000000000..63ff61a30 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/device.txt @@ -0,0 +1,4 @@ +start 2026-10-15T00:56:51Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 +end 2026-10-15T00:57:29Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/mutant.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/mutant.log new file mode 100644 index 000000000..9da741389 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/mutant.log @@ -0,0 +1,5 @@ +KILLED 16x32x16 rc=PARITY_FAIL chip_ns=217218 call_ms=136.240 wall_ms=136.3 max_abs=4.00935 max_rel=0.491416 mismatches=256 e2e_rel=0.491416 e2e_bad=256 grid=2x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +KILLED 1x2048x8192 rc=PARITY_FAIL chip_ns=415429 call_ms=105.539 wall_ms=198.3 max_abs=10.7282 max_rel=0.0209995 mismatches=8181 e2e_rel=0.0209995 e2e_bad=8181 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +KILLED 64x64x64 rc=PARITY_FAIL chip_ns=111153 call_ms=1.764 wall_ms=1.8 max_abs=6.04851 max_rel=0.334215 mismatches=4096 e2e_rel=0.334215 e2e_bad=4096 grid=2x1 calls=1 rows_per_call=64 cache_hit2=1 err="" +KILLED 1x1024x1024 rc=PARITY_FAIL chip_ns=109138 call_ms=6.349 wall_ms=11.6 max_abs=6.63406 max_rel=0.0276205 mismatches=1023 e2e_rel=0.0276205 e2e_bad=1023 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 4 checks, 0 failed (mutant killed) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-cta128.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-cta128.json new file mode 100644 index 000000000..88d890ba3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-cta128.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_SWEEP_V2","mutant":false,"cta_budget":128,"shapes":[{"m":256,"k":256,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":220483,"call_ms":217.248,"wall_ms":218.381,"max_abs_err":8.43406e-06,"max_rel_err":1.30669e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.30669e-07,"e2e_bad":0,"grid_x":8,"grid_y":4,"chip_calls":1,"rows_per_call":256,"padded_m":256,"padded_k":256,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":8192,"rc":"OK","pass":true,"chip_elapsed_ns":426485,"call_ms":106.527,"wall_ms":198.897,"max_abs_err":0.000129104,"max_rel_err":2.62102e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":2.62102e-07,"e2e_bad":0,"grid_x":128,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":8192,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":128256,"rc":"OK","pass":true,"chip_elapsed_ns":3653405,"call_ms":1458.993,"wall_ms":2891.656,"max_abs_err":0.000163585,"max_rel_err":3.1728e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":3.1728e-07,"e2e_bad":0,"grid_x":128,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":128256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121}],"blocked":false,"checks":3,"failed":0,"verdict":"OMEGA_GPU_MATMUL_API_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-cta256.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-cta256.json new file mode 100644 index 000000000..bacf32bf5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-cta256.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_SWEEP_V2","mutant":false,"cta_budget":256,"shapes":[{"m":256,"k":256,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":218402,"call_ms":217.278,"wall_ms":218.025,"max_abs_err":8.43406e-06,"max_rel_err":1.30669e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.30669e-07,"e2e_bad":0,"grid_x":8,"grid_y":4,"chip_calls":1,"rows_per_call":256,"padded_m":256,"padded_k":256,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":8192,"rc":"OK","pass":true,"chip_elapsed_ns":322388,"call_ms":106.610,"wall_ms":198.393,"max_abs_err":0.000129104,"max_rel_err":2.62102e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":2.62102e-07,"e2e_bad":0,"grid_x":256,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":8192,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":128256,"rc":"OK","pass":true,"chip_elapsed_ns":3240327,"call_ms":1457.624,"wall_ms":2897.649,"max_abs_err":0.000163585,"max_rel_err":3.1728e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":3.1728e-07,"e2e_bad":0,"grid_x":256,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":128256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121}],"blocked":false,"checks":3,"failed":0,"verdict":"OMEGA_GPU_MATMUL_API_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-mutant.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-mutant.json new file mode 100644 index 000000000..2d6d65667 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-mutant.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_SWEEP_V2","mutant":true,"cta_budget":64,"shapes":[{"m":16,"k":32,"n":16,"rc":"PARITY_FAIL","pass":true,"chip_elapsed_ns":217218,"call_ms":136.240,"wall_ms":136.250,"max_abs_err":4.00935,"max_rel_err":0.491416,"mismatch_count":256,"parity_verified":false,"completion_marker":1145324612,"repeat_rc":"PARITY_FAIL","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":0.491416,"e2e_bad":256,"grid_x":2,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":32,"padded_n":16,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":8192,"rc":"PARITY_FAIL","pass":true,"chip_elapsed_ns":415429,"call_ms":105.539,"wall_ms":198.283,"max_abs_err":10.7282,"max_rel_err":0.0209995,"mismatch_count":8181,"parity_verified":false,"completion_marker":1145324612,"repeat_rc":"PARITY_FAIL","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":0.0209995,"e2e_bad":8181,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":8192,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":64,"k":64,"n":64,"rc":"PARITY_FAIL","pass":true,"chip_elapsed_ns":111153,"call_ms":1.764,"wall_ms":1.805,"max_abs_err":6.04851,"max_rel_err":0.334215,"mismatch_count":4096,"parity_verified":false,"completion_marker":1145324612,"repeat_rc":"PARITY_FAIL","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":0.334215,"e2e_bad":4096,"grid_x":2,"grid_y":1,"chip_calls":1,"rows_per_call":64,"padded_m":64,"padded_k":64,"padded_n":64,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":1024,"n":1024,"rc":"PARITY_FAIL","pass":true,"chip_elapsed_ns":109138,"call_ms":6.349,"wall_ms":11.560,"max_abs_err":6.63406,"max_rel_err":0.0276205,"mismatch_count":1023,"parity_verified":false,"completion_marker":1145324612,"repeat_rc":"PARITY_FAIL","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":0.0276205,"e2e_bad":1023,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":1024,"padded_n":1024,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_MUTANT_KILLED"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-sweep.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-sweep.json new file mode 100644 index 000000000..08290fdab --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-sweep.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_SWEEP_V2","mutant":false,"cta_budget":64,"shapes":[{"m":16,"k":16,"n":16,"rc":"OK","pass":true,"chip_elapsed_ns":217410,"call_ms":134.578,"wall_ms":134.587,"max_abs_err":2.08616e-07,"max_rel_err":4.51833e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":4.51833e-08,"e2e_bad":0,"grid_x":2,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":16,"padded_n":16,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":32,"k":32,"n":32,"rc":"OK","pass":true,"chip_elapsed_ns":103169,"call_ms":0.431,"wall_ms":0.441,"max_abs_err":4.47035e-07,"max_rel_err":5.60462e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":5.60462e-08,"e2e_bad":0,"grid_x":1,"grid_y":1,"chip_calls":1,"rows_per_call":32,"padded_m":32,"padded_k":32,"padded_n":32,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":64,"k":64,"n":64,"rc":"OK","pass":true,"chip_elapsed_ns":103249,"call_ms":1.778,"wall_ms":1.824,"max_abs_err":1.00583e-06,"max_rel_err":6.11591e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":6.11591e-08,"e2e_bad":0,"grid_x":2,"grid_y":1,"chip_calls":1,"rows_per_call":64,"padded_m":64,"padded_k":64,"padded_n":64,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":128,"k":128,"n":128,"rc":"OK","pass":true,"chip_elapsed_ns":104913,"call_ms":10.715,"wall_ms":10.892,"max_abs_err":2.89083e-06,"max_rel_err":9.41787e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":9.41787e-08,"e2e_bad":0,"grid_x":4,"grid_y":2,"chip_calls":1,"rows_per_call":128,"padded_m":128,"padded_k":128,"padded_n":128,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":256,"k":256,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":107474,"call_ms":82.851,"wall_ms":83.533,"max_abs_err":8.43406e-06,"max_rel_err":1.30669e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.30669e-07,"e2e_bad":0,"grid_x":8,"grid_y":4,"chip_calls":1,"rows_per_call":256,"padded_m":256,"padded_k":256,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":512,"k":512,"n":512,"rc":"OK","pass":true,"chip_elapsed_ns":185891,"call_ms":655.720,"wall_ms":658.663,"max_abs_err":2.39611e-05,"max_rel_err":1.82928e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.82928e-07,"e2e_bad":0,"grid_x":8,"grid_y":8,"chip_calls":1,"rows_per_call":512,"padded_m":512,"padded_k":512,"padded_n":512,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":1024,"n":1024,"rc":"OK","pass":true,"chip_elapsed_ns":112609,"call_ms":6.585,"wall_ms":12.378,"max_abs_err":3.67463e-05,"max_rel_err":1.48922e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.48922e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":1024,"padded_n":1024,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":256,"n":1024,"rc":"OK","pass":true,"chip_elapsed_ns":107954,"call_ms":1.827,"wall_ms":3.145,"max_abs_err":4.94719e-06,"max_rel_err":7.52664e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":7.52664e-08,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":256,"padded_n":1024,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":16,"k":1024,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":106561,"call_ms":21.030,"wall_ms":22.415,"max_abs_err":3.72902e-05,"max_rel_err":1.45806e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.45806e-07,"e2e_bad":0,"grid_x":32,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":1024,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":8,"k":1024,"n":8,"rc":"OK","pass":true,"chip_elapsed_ns":106497,"call_ms":0.660,"wall_ms":0.741,"max_abs_err":3.00165e-05,"max_rel_err":1.18908e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.18908e-07,"e2e_bad":0,"grid_x":1,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":1024,"padded_n":8,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1024,"k":16,"n":128,"rc":"OK","pass":true,"chip_elapsed_ns":103793,"call_ms":10.922,"wall_ms":11.015,"max_abs_err":4.39584e-07,"max_rel_err":9.37062e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":9.37062e-08,"e2e_bad":0,"grid_x":4,"grid_y":16,"chip_calls":1,"rows_per_call":1024,"padded_m":1024,"padded_k":16,"padded_n":128,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":192,"k":16,"n":192,"rc":"OK","pass":true,"chip_elapsed_ns":105010,"call_ms":3.302,"wall_ms":3.332,"max_abs_err":4.61936e-07,"max_rel_err":1.0078e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":1.0078e-07,"e2e_bad":0,"grid_x":6,"grid_y":3,"chip_calls":1,"rows_per_call":192,"padded_m":192,"padded_k":16,"padded_n":192,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":512,"k":16,"n":64,"rc":"OK","pass":true,"chip_elapsed_ns":103825,"call_ms":2.982,"wall_ms":3.028,"max_abs_err":4.32134e-07,"max_rel_err":7.64946e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":7.64946e-08,"e2e_bad":0,"grid_x":2,"grid_y":8,"chip_calls":1,"rows_per_call":512,"padded_m":512,"padded_k":16,"padded_n":64,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":256,"k":16,"n":256,"rc":"OK","pass":true,"chip_elapsed_ns":104546,"call_ms":5.618,"wall_ms":5.659,"max_abs_err":4.47035e-07,"max_rel_err":9.74134e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":9.74134e-08,"e2e_bad":0,"grid_x":8,"grid_y":4,"chip_calls":1,"rows_per_call":256,"padded_m":256,"padded_k":16,"padded_n":256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":128,"k":16,"n":512,"rc":"OK","pass":true,"chip_elapsed_ns":105505,"call_ms":5.624,"wall_ms":5.675,"max_abs_err":4.47035e-07,"max_rel_err":8.99603e-08,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":8.99603e-08,"e2e_bad":0,"grid_x":16,"grid_y":2,"chip_calls":1,"rows_per_call":128,"padded_m":128,"padded_k":16,"padded_n":512,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":8192,"rc":"OK","pass":true,"chip_elapsed_ns":422374,"call_ms":106.980,"wall_ms":198.445,"max_abs_err":0.000129104,"max_rel_err":2.62102e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":2.62102e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":8192,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":8192,"n":2048,"rc":"OK","pass":true,"chip_elapsed_ns":932268,"call_ms":110.102,"wall_ms":201.699,"max_abs_err":0.00123078,"max_rel_err":5.96705e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":5.96705e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":8192,"padded_n":2048,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121},{"m":1,"k":2048,"n":128256,"rc":"OK","pass":true,"chip_elapsed_ns":4503943,"call_ms":1467.560,"wall_ms":2902.760,"max_abs_err":0.000163585,"max_rel_err":3.1728e-07,"mismatch_count":0,"parity_verified":true,"completion_marker":1145324612,"repeat_rc":"OK","repeat_cache_hit":true,"repeat_mismatch":0,"e2e_max_rel":3.1728e-07,"e2e_bad":0,"grid_x":64,"grid_y":1,"chip_calls":1,"rows_per_call":16,"padded_m":16,"padded_k":2048,"padded_n":128256,"target_chip":"NVIDIA DGX Spark (Grace Blackwell GB10)","sm_architecture":121}],"blocked":false,"checks":18,"failed":0,"verdict":"OMEGA_GPU_MATMUL_API_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-timing.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-timing.json new file mode 100644 index 000000000..49ccf1e30 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/receipt-timing.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_TIMING_V1","cta_budget":64,"spin_us":0,"calls":100,"shapes":[{"m":1,"k":2048,"n":8192,"pass":true,"upload_ms":240.003,"ok_calls":100,"median_ms":0.4116,"p90_ms":0.4129,"min_ms":0.3661,"max_ms":0.9347,"chip_ns_mean":410928,"grid_x":64,"grid_y":1,"e2e_first":2.36603e-07,"e2e_last":2.36603e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0},{"m":1,"k":8192,"n":2048,"pass":true,"upload_ms":105.334,"ok_calls":100,"median_ms":0.4117,"p90_ms":0.6922,"min_ms":0.3714,"max_ms":1.2690,"chip_ns_mean":478907,"grid_x":64,"grid_y":1,"e2e_first":5.21488e-07,"e2e_last":5.21488e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/sweep.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/sweep.log new file mode 100644 index 000000000..957374ada --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/sweep.log @@ -0,0 +1,19 @@ +PASS 16x16x16 rc=OK chip_ns=217410 call_ms=134.578 wall_ms=134.6 max_abs=2.08616e-07 max_rel=4.51833e-08 mismatches=0 e2e_rel=4.51833e-08 e2e_bad=0 grid=2x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 32x32x32 rc=OK chip_ns=103169 call_ms=0.431 wall_ms=0.4 max_abs=4.47035e-07 max_rel=5.60462e-08 mismatches=0 e2e_rel=5.60462e-08 e2e_bad=0 grid=1x1 calls=1 rows_per_call=32 cache_hit2=1 err="" +PASS 64x64x64 rc=OK chip_ns=103249 call_ms=1.778 wall_ms=1.8 max_abs=1.00583e-06 max_rel=6.11591e-08 mismatches=0 e2e_rel=6.11591e-08 e2e_bad=0 grid=2x1 calls=1 rows_per_call=64 cache_hit2=1 err="" +PASS 128x128x128 rc=OK chip_ns=104913 call_ms=10.715 wall_ms=10.9 max_abs=2.89083e-06 max_rel=9.41787e-08 mismatches=0 e2e_rel=9.41787e-08 e2e_bad=0 grid=4x2 calls=1 rows_per_call=128 cache_hit2=1 err="" +PASS 256x256x256 rc=OK chip_ns=107474 call_ms=82.851 wall_ms=83.5 max_abs=8.43406e-06 max_rel=1.30669e-07 mismatches=0 e2e_rel=1.30669e-07 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 512x512x512 rc=OK chip_ns=185891 call_ms=655.720 wall_ms=658.7 max_abs=2.39611e-05 max_rel=1.82928e-07 mismatches=0 e2e_rel=1.82928e-07 e2e_bad=0 grid=8x8 calls=1 rows_per_call=512 cache_hit2=1 err="" +PASS 1x1024x1024 rc=OK chip_ns=112609 call_ms=6.585 wall_ms=12.4 max_abs=3.67463e-05 max_rel=1.48922e-07 mismatches=0 e2e_rel=1.48922e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x256x1024 rc=OK chip_ns=107954 call_ms=1.827 wall_ms=3.1 max_abs=4.94719e-06 max_rel=7.52664e-08 mismatches=0 e2e_rel=7.52664e-08 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 16x1024x256 rc=OK chip_ns=106561 call_ms=21.030 wall_ms=22.4 max_abs=3.72902e-05 max_rel=1.45806e-07 mismatches=0 e2e_rel=1.45806e-07 e2e_bad=0 grid=32x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 8x1024x8 rc=OK chip_ns=106497 call_ms=0.660 wall_ms=0.7 max_abs=3.00165e-05 max_rel=1.18908e-07 mismatches=0 e2e_rel=1.18908e-07 e2e_bad=0 grid=1x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1024x16x128 rc=OK chip_ns=103793 call_ms=10.922 wall_ms=11.0 max_abs=4.39584e-07 max_rel=9.37062e-08 mismatches=0 e2e_rel=9.37062e-08 e2e_bad=0 grid=4x16 calls=1 rows_per_call=1024 cache_hit2=1 err="" +PASS 192x16x192 rc=OK chip_ns=105010 call_ms=3.302 wall_ms=3.3 max_abs=4.61936e-07 max_rel=1.0078e-07 mismatches=0 e2e_rel=1.0078e-07 e2e_bad=0 grid=6x3 calls=1 rows_per_call=192 cache_hit2=1 err="" +PASS 512x16x64 rc=OK chip_ns=103825 call_ms=2.982 wall_ms=3.0 max_abs=4.32134e-07 max_rel=7.64946e-08 mismatches=0 e2e_rel=7.64946e-08 e2e_bad=0 grid=2x8 calls=1 rows_per_call=512 cache_hit2=1 err="" +PASS 256x16x256 rc=OK chip_ns=104546 call_ms=5.618 wall_ms=5.7 max_abs=4.47035e-07 max_rel=9.74134e-08 mismatches=0 e2e_rel=9.74134e-08 e2e_bad=0 grid=8x4 calls=1 rows_per_call=256 cache_hit2=1 err="" +PASS 128x16x512 rc=OK chip_ns=105505 call_ms=5.624 wall_ms=5.7 max_abs=4.47035e-07 max_rel=8.99603e-08 mismatches=0 e2e_rel=8.99603e-08 e2e_bad=0 grid=16x2 calls=1 rows_per_call=128 cache_hit2=1 err="" +PASS 1x2048x8192 rc=OK chip_ns=422374 call_ms=106.980 wall_ms=198.4 max_abs=0.000129104 max_rel=2.62102e-07 mismatches=0 e2e_rel=2.62102e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x8192x2048 rc=OK chip_ns=932268 call_ms=110.102 wall_ms=201.7 max_abs=0.00123078 max_rel=5.96705e-07 mismatches=0 e2e_rel=5.96705e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS 1x2048x128256 rc=OK chip_ns=4503943 call_ms=1467.560 wall_ms=2902.8 max_abs=0.000163585 max_rel=3.1728e-07 mismatches=0 e2e_rel=3.1728e-07 e2e_bad=0 grid=64x1 calls=1 rows_per_call=16 cache_hit2=1 err="" +PASS: 25 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/timing.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/timing.log new file mode 100644 index 000000000..cb97834d9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/matmul_api/timing.log @@ -0,0 +1,3 @@ +PASS timing 1x2048x8192 upload_ms=240.0 ok_calls=100 median_ms=0.412 p90_ms=0.413 min_ms=0.366 max_ms=0.935 chip_ns_mean=410928 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=105.3 ok_calls=100 median_ms=0.412 p90_ms=0.692 min_ms=0.371 max_ms=1.269 chip_ns_mean=478907 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn.out new file mode 100644 index 000000000..49695cd9a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn.out @@ -0,0 +1,270 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +gpu_prefill_attn_test: 69 checks, 0 failed: PASS +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +sim one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 5 tokens from 0 (partial CTA) W=8: ok bad=0 worst=0.257 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.112 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, sharp q (x4) W=8: ok bad=0 worst=0.107 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 64 tokens from 100 (full chunk) W=8: ok bad=0 worst=0.067 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 70 tokens from 0 (two chunks) W=8: ok bad=0 worst=0.291 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 33 tokens from 200, warps 4 W=4: ok bad=0 worst=0.051 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 5 tokens from 0 W=8: ok bad=0 worst=0.255 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.108 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 70 tokens from 0 W=8: ok bad=0 worst=0.276 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.117 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 5 tokens from 0 W=8: ok bad=0 worst=0.227 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.095 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.126 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 45 tokens from 300 W=8: ok bad=0 worst=0.042 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim fused mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim fused mutant 2 at 24 tokens from 40: caught (bad=65059 worst=33.577 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim fused mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim fused mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim split mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim split mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim mirror mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim mirror mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim: 10233092 warp issues in total +gpu_prefill_attn_test: 97 checks, 0 failed: PASS +cache alloc (1 layer, 32768 positions): rc=OK 340.0 ms () +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.0ms chip_med=80.4us (26.1 GB/s) call_med=82.7us reps=3 +gpu_decode_attn_test: 4 checks, 0 failed: PASS +baseline exit 0 (recorded) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x256 thr; chip 0.218 ms call 11.067 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.106 ms call 0.345 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 3x4 x256 thr; chip 0.282 ms call 4.127 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.939 ms call 2.023 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.210 ms call 1.836 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.207 0.207 0.208 0.207 0.208 0.208 0.208 0.207 + slowest rep, per launch ms (2 launches): 0.105 0.103 + timing prefill pos0 0 m 64: chip median 0.208 ms (min 0.207) call median 0.397 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.669 ms call 6.822 ms + speed: prefill 0.208 ms vs decode loop 6.669 ms chip time: 32.1x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 9x4 x256 thr; chip 0.285 ms call 1.774 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.246 ms call 7.402 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.281 ms call 0.908 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.694 ms call 6.832 ms +chip pos0 0 m 512: parity bad=0 worst=0.237; rows vs emulation k 2 (max 1 ulp) v 0; chunks 2 grid 64x4 x256 thr; chip 0.518 ms call 8.223 ms + reps chip ms (in order, 0 untimed warm calls first): 0.422 0.415 0.413 0.515 0.414 0.416 0.415 0.415 0.414 + slowest rep, per launch ms (2 launches): 0.106 0.409 + timing prefill pos0 0 m 512: chip median 0.415 ms (min 0.413) call median 2.153 ms; 5.18 useful TFLOPS on chip time + gate 2 vs 512 decode steps: rows k 0 v 0 differ; outputs worst 0.237 of tol; decode loop chip 53.000 ms call 56.179 ms + speed: prefill 0.415 ms vs decode loop 53.000 ms chip time: 127.7x +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.553 ms call 5.543 ms + reps chip ms (in order, 0 untimed warm calls first): 0.414 0.413 0.411 0.413 0.411 0.413 0.412 0.410 0.412 + slowest rep, per launch ms (2 launches): 0.106 0.307 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.410) call median 0.603 ms; 10.35 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.011 of tol; decode loop chip 13.249 ms call 13.473 ms + speed: prefill 0.412 ms vs decode loop 13.249 ms chip time: 32.2x +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.146 ms call 26.040 ms + reps chip ms (in order, 0 untimed warm calls first): 2.157 2.152 2.152 2.055 4.501 2.052 2.151 2.150 2.154 + slowest rep, per launch ms (4 launches): 0.309 2.858 0.107 1.226 + timing prefill pos0 0 m 2048: chip median 2.152 ms (min 2.052) call median 9.752 ms; 15.98 useful TFLOPS on chip time +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 9x4; chip 0.279 ms call 0.796 ms +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.959 ms call 3.507 ms + dev reps chip ms: 2.015 1.946 1.940 1.943 1.941 1.937 2.040 1.936 2.041 + timing dev pos0 0 m 2048: chip median 1.943 ms (min 1.936) call median 1.944 ms; 17.69 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 4.030 ms call 6.987 ms + dev reps chip ms: 3.584 3.471 3.453 3.530 3.566 3.774 3.669 3.466 3.465 + timing dev pos0 4096 m 1500: chip median 3.530 ms (min 3.453) call median 3.531 ms; 33.74 useful TFLOPS on chip time +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 164 checks, 0 failed: PASS +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 4, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x128 thr; chip 0.224 ms call 11.464 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.104 ms call 0.311 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 5x4 x128 thr; chip 0.282 ms call 4.073 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.970 ms call 2.058 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.211 ms call 1.649 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.208 0.208 0.208 0.208 0.208 0.208 0.208 0.207 + slowest rep, per launch ms (2 launches): 0.106 0.103 + timing prefill pos0 0 m 64: chip median 0.208 ms (min 0.207) call median 0.391 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.877 ms call 7.056 ms + speed: prefill 0.208 ms vs decode loop 6.877 ms chip time: 33.1x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 18x4 x128 thr; chip 0.303 ms call 1.982 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.219 ms call 7.419 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.278 ms call 0.982 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.618 ms call 6.788 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 18x4; chip 0.272 ms call 0.699 ms +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 0 failed: PASS +warps 4 exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 1x4 x256 thr; chip 0.217 ms call 0.535 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.105 ms call 0.316 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 3x4 x256 thr; chip 0.108 ms call 0.457 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.962 ms call 2.047 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.208 ms call 0.952 ms + reps chip ms (in order, 0 untimed warm calls first): 0.105 0.104 0.104 0.205 0.103 0.103 0.104 0.104 0.104 + slowest rep, per launch ms (1 launches): 0.205 + timing prefill pos0 0 m 64: chip median 0.104 ms (min 0.103) call median 0.303 ms; 0.33 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.570 ms call 6.872 ms + speed: prefill 0.104 ms vs decode loop 6.570 ms chip time: 63.4x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.315 ms call 0.726 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.195 ms call 7.541 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.226 ms call 0.622 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.664 ms call 7.052 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.313 ms call 0.314 ms +FAIL: continuation: mirror view valid 0 (want 369) stride 0 +FAIL: negative control: a foreign rewrite without invalidate must show (stale mirror), 0 outputs differ +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 0; outputs differ mirror vs none: 0; stale control 0 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 2 failed: FAIL +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 6.957 ms call 20.776 ms + reps chip ms (in order, 0 untimed warm calls first): 7.766 7.197 7.536 7.279 7.011 7.355 7.538 6.964 7.277 7.166 7.230 7.367 7.205 7.548 7.055 + slowest rep, per launch ms (32 launches): 0.209 0.106 0.107 0.106 0.208 0.208 0.208 0.209 0.207 0.207 0.208 0.207 0.209 0.207 0.208 0.208 0.208 0.208 0.207 0.309 0.309 0.310 0.309 0.310 0.358 0.316 0.313 0.323 0.313 0.321 0.319 0.310 + timing prefill pos0 0 m 2048: chip median 7.277 ms (min 6.964) call median 14.414 ms; 4.72 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.178 ms call 7.195 ms + dev reps chip ms: 6.889 7.838 6.962 7.017 7.006 7.007 6.952 6.979 6.963 7.083 7.752 6.965 7.365 7.166 6.839 + timing dev pos0 0 m 2048: chip median 7.006 ms (min 6.839) call median 7.026 ms; 4.91 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 14.689 ms call 14.703 ms + dev reps chip ms: 12.370 13.311 14.082 12.337 12.812 12.550 12.522 12.942 13.190 12.401 12.763 12.293 12.668 12.397 12.569 + timing dev pos0 4096 m 1500: chip median 12.569 ms (min 12.293) call median 12.588 ms; 9.48 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.526 ms call 1.013 ms + reps chip ms (in order, 0 untimed warm calls first): 0.516 0.515 0.412 0.410 0.411 0.410 0.411 0.411 0.409 0.437 0.410 0.511 0.410 0.409 0.410 + slowest rep, per launch ms (1 launches): 0.516 + timing prefill pos0 4032 m 64: chip median 0.411 ms (min 0.409) call median 0.610 ms; 10.37 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.421 ms call 0.422 ms + dev reps chip ms: 0.524 0.411 0.410 0.412 0.410 0.411 0.412 0.410 0.411 0.410 0.410 0.412 0.409 0.410 0.409 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.409) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-cold exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 7.532 ms call 22.385 ms + reps chip ms (in order, 5 untimed warm calls first): 7.430 7.029 6.833 6.905 7.627 6.941 6.912 7.019 6.730 6.907 6.919 6.910 7.025 7.027 7.032 + slowest rep, per launch ms (32 launches): 0.105 0.104 0.104 0.104 0.210 0.206 0.206 0.205 0.208 0.205 0.206 0.206 0.205 0.206 0.205 0.208 0.209 0.207 0.310 0.308 0.208 0.307 0.411 0.304 0.308 0.309 0.308 0.308 0.308 0.311 0.307 0.309 + timing prefill pos0 0 m 2048: chip median 6.941 ms (min 6.730) call median 13.932 ms; 4.95 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.518 ms call 7.535 ms + dev reps chip ms: 7.078 6.968 7.067 7.071 7.681 7.169 7.060 7.163 7.170 6.966 7.170 7.173 7.069 6.873 7.168 + timing dev pos0 0 m 2048: chip median 7.078 ms (min 6.873) call median 7.093 ms; 4.86 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 13.552 ms call 13.565 ms + dev reps chip ms: 12.359 12.351 13.268 12.450 13.233 12.352 12.247 12.457 12.560 12.349 12.408 12.312 12.422 12.556 12.350 + timing dev pos0 4096 m 1500: chip median 12.408 ms (min 12.247) call median 12.419 ms; 9.60 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.629 ms call 1.094 ms + reps chip ms (in order, 5 untimed warm calls first): 0.500 0.417 0.404 0.514 0.409 0.412 0.511 0.410 0.411 0.511 0.410 0.411 0.410 0.513 0.411 + slowest rep, per launch ms (1 launches): 0.514 + timing prefill pos0 4032 m 64: chip median 0.411 ms (min 0.404) call median 0.604 ms; 10.36 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.519 ms call 0.520 ms + dev reps chip ms: 0.408 0.411 0.408 0.410 0.409 0.512 0.413 0.409 0.411 0.510 0.410 0.409 0.511 0.411 0.408 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.408) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-warm5 exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.119 ms call 30.957 ms + reps chip ms (in order, 0 untimed warm calls first): 2.162 2.159 2.154 2.052 2.156 2.149 2.156 2.156 2.227 2.251 2.156 2.152 2.254 2.152 2.147 + slowest rep, per launch ms (4 launches): 0.105 0.818 0.208 1.123 + timing prefill pos0 0 m 2048: chip median 2.156 ms (min 2.052) call median 9.495 ms; 15.95 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.952 ms call 3.313 ms + dev reps chip ms: 1.965 1.940 2.043 1.938 2.042 1.937 1.937 1.937 2.039 2.039 2.039 2.040 2.037 2.208 2.036 + timing dev pos0 0 m 2048: chip median 2.037 ms (min 1.937) call median 2.038 ms; 16.87 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.723 ms call 6.165 ms + dev reps chip ms: 3.790 3.467 3.669 3.848 3.466 3.440 3.465 3.466 3.467 3.565 3.872 3.567 3.566 3.537 3.466 + timing dev pos0 4096 m 1500: chip median 3.537 ms (min 3.440) call median 3.538 ms; 33.67 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.693 ms call 5.651 ms + reps chip ms (in order, 0 untimed warm calls first): 0.414 0.413 0.412 0.413 0.412 0.411 0.412 0.411 0.412 0.413 0.411 0.412 0.411 0.412 0.411 + slowest rep, per launch ms (2 launches): 0.106 0.307 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.411) call median 0.597 ms; 10.35 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.562 ms call 2.938 ms + dev reps chip ms: 0.416 0.413 0.411 0.411 0.411 0.411 0.411 0.410 0.411 0.410 0.411 0.410 0.410 0.411 0.411 + timing dev pos0 4096 m 64: chip median 0.411 ms (min 0.410) call median 0.412 ms; 10.54 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-cold exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.086 ms call 30.896 ms + reps chip ms (in order, 5 untimed warm calls first): 2.202 2.340 2.254 2.049 2.156 2.154 2.154 2.152 2.152 2.145 2.251 2.046 3.061 2.045 2.247 + slowest rep, per launch ms (4 launches): 0.207 1.528 0.104 1.222 + timing prefill pos0 0 m 2048: chip median 2.154 ms (min 2.045) call median 9.347 ms; 15.96 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.952 ms call 3.646 ms + dev reps chip ms: 2.051 1.937 1.951 1.943 1.945 1.942 2.042 2.041 1.940 2.041 2.246 2.041 2.144 2.042 2.041 + timing dev pos0 0 m 2048: chip median 2.041 ms (min 1.937) call median 2.042 ms; 16.84 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 4.717 ms call 7.168 ms + dev reps chip ms: 3.635 3.863 3.486 3.501 3.493 3.505 3.699 3.589 3.507 3.464 3.460 3.562 3.772 3.565 3.466 + timing dev pos0 4096 m 1500: chip median 3.507 ms (min 3.460) call median 3.508 ms; 33.96 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 1.478 ms call 6.668 ms + reps chip ms (in order, 5 untimed warm calls first): 0.411 0.411 0.412 0.412 0.413 0.413 0.413 0.417 0.412 0.412 0.411 0.413 0.413 0.530 0.424 + slowest rep, per launch ms (2 launches): 0.105 0.425 + timing prefill pos0 4032 m 64: chip median 0.413 ms (min 0.411) call median 0.604 ms; 10.32 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.561 ms call 3.271 ms + dev reps chip ms: 0.411 0.412 0.412 0.422 0.411 0.410 0.410 0.412 0.420 0.384 0.409 0.383 0.409 0.409 0.383 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.383) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-warm5 exit 0 (informational) +GPU_PREFILL_ATTN_CHIP: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/SHA256SUMS new file mode 100644 index 000000000..98a13aa66 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/SHA256SUMS @@ -0,0 +1,18 @@ +0b9d444d1d56dac0483c55bc89d2d860cab936f0f38ec5a06e0f3f8da0795977 receipt-baseline-decode.json +da745b20ab15643ba026b9cf624033e290abbc99041f43b76bdea8e41155756d receipt-main-fused.json +18aa67afc44be3cbd7054a7924335d44e22e87c16db43cec7c2b6880e9178cb6 receipt-main.json +39d01e4501bc65c791b0b068716406ed9eb883a1322f02710d9f7f471567d3d7 receipt-warps4.json +757d8fd58371a2b3cf43c598b76010bbc287248c3bb14fae27ccda963abf16ff baseline-decode.log +5fa6159991119365de67dbae5eacef99e1a4d24b2300a9dbe4492ca7b311c291 build.log +ce142f06e62b3f9c6d0db635a95537911cea4cb4ec6511e6785e24200ae0405c host-only.log +16787952bfd024b4d38bab1bf6be291db7473cc6043879a1ee3bc8834167d542 main-fused.log +209f5cdfde4901a886efc5870153a4f9b5c4efcd074906d1c3417108fbb763c9 main.log +a560e622fbe2abfd582d2e47d3c9faac3f1e747d69af861c369529c51d2ee2e3 sim.log +07bc1a954f7181d5a229efd9a74e0a460d07ebe526a861a4e363b87d9ff8a615 spread-fused-cold.log +281917f5ba5ceb8c3cb9279c4f14fe37d4915582b9b815ad6daa6c732fb4f228 spread-fused-warm5.log +9adc34403f4929b299aff54d7ee3a92110ea7d4151875958b29f6ee6b76ab71d spread-split-cold.log +3c9561dee6b6ab8d2f70c39c0e3fad2bdfc9359b61e809184bc81da9706abc8b spread-split-warm5.log +9a9dddf56e48e8bc09d44f565ab266d339d1d70d72be626b314da21a615e682d warps4.log +e20566d150d869610e61f1c06a31aab869c069b7c585f3f74982ccd714363a3e clocks.csv +7f7a8078354420c25dbb72637f0a4ab823a0d236e627026a1a3a936c22e6de93 device.txt +ca39426760351b9ab66533f59d277f0b60b9626a552a1ba68dd8341a237a2696 spread-marks.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/baseline-decode.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/baseline-decode.log new file mode 100644 index 000000000..1c3554bb5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/baseline-decode.log @@ -0,0 +1,4 @@ +cache alloc (1 layer, 32768 positions): rc=OK 340.0 ms () +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.0ms chip_med=80.4us (26.1 GB/s) call_med=82.7us reps=3 +gpu_decode_attn_test: 4 checks, 0 failed: PASS +baseline exit 0 (recorded) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/build.log new file mode 100644 index 000000000..a955fa250 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/build.log @@ -0,0 +1 @@ +make: 'build/gpu_decode_attn_test' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/clocks.csv b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/clocks.csv new file mode 100644 index 000000000..a817cb9fe --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/clocks.csv @@ -0,0 +1,499 @@ +timestamp, clocks.current.sm [MHz], clocks.current.memory [MHz], utilization.gpu [%], power.draw [W], pstate +2026/10/14 19:57:55.370, 468 MHz, [N/A], 7 %, 6.53 W, P0 +2026/10/14 19:57:55.485, 468 MHz, [N/A], 7 %, 6.53 W, P0 +2026/10/14 19:57:55.586, 468 MHz, [N/A], 7 %, 6.53 W, P0 +2026/10/14 19:57:55.687, 468 MHz, [N/A], 7 %, 6.53 W, P0 +2026/10/14 19:57:55.787, 468 MHz, [N/A], 7 %, 6.53 W, P0 +2026/10/14 19:57:55.887, 468 MHz, [N/A], 7 %, 6.53 W, P0 +2026/10/14 19:57:55.988, 208 MHz, [N/A], 7 %, 6.10 W, P0 +2026/10/14 19:57:56.088, 208 MHz, [N/A], 7 %, 6.10 W, P0 +2026/10/14 19:57:56.188, 208 MHz, [N/A], 7 %, 6.10 W, P0 +2026/10/14 19:57:56.289, 208 MHz, [N/A], 7 %, 6.10 W, P0 +2026/10/14 19:57:56.389, 208 MHz, [N/A], 7 %, 6.10 W, P0 +2026/10/14 19:57:56.489, 208 MHz, [N/A], 0 %, 5.43 W, P8 +2026/10/14 19:57:56.589, 208 MHz, [N/A], 0 %, 5.43 W, P8 +2026/10/14 19:57:56.689, 208 MHz, [N/A], 0 %, 5.43 W, P8 +2026/10/14 19:57:56.789, 208 MHz, [N/A], 0 %, 5.43 W, P8 +2026/10/14 19:57:56.889, 208 MHz, [N/A], 0 %, 5.43 W, P8 +2026/10/14 19:57:56.990, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.090, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.191, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.291, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.391, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.492, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.592, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.692, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.793, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.893, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:57.993, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:58.094, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:58.194, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:58.295, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:58.395, 208 MHz, [N/A], 0 %, 5.11 W, P8 +2026/10/14 19:57:58.496, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:58.596, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:58.697, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:58.797, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:58.898, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:58.998, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:59.099, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:59.200, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:59.301, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:59.402, 208 MHz, [N/A], 0 %, 4.87 W, P8 +2026/10/14 19:57:59.502, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:57:59.603, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:57:59.703, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:57:59.803, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:57:59.903, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:00.003, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:00.103, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:00.204, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:00.305, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:00.405, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:00.506, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:00.606, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:00.706, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:00.806, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:00.907, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:01.007, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:01.107, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:01.207, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:01.307, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:01.407, 208 MHz, [N/A], 0 %, 4.76 W, P8 +2026/10/14 19:58:01.507, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:01.607, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:01.708, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:01.808, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:01.908, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:02.008, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:02.109, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:02.209, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:02.309, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:02.409, 208 MHz, [N/A], 0 %, 4.88 W, P8 +2026/10/14 19:58:02.510, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:02.611, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:02.711, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:02.811, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:02.912, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:03.012, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:03.113, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:03.214, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:03.315, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:03.416, 208 MHz, [N/A], 0 %, 4.92 W, P8 +2026/10/14 19:58:03.516, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:03.617, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:03.717, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:03.817, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:03.918, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:04.018, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:04.119, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:04.219, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:04.319, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:04.420, 208 MHz, [N/A], 0 %, 4.86 W, P8 +2026/10/14 19:58:04.520, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:04.621, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:04.722, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:04.822, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:04.922, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:05.023, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:05.123, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:05.223, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:05.323, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:05.424, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:05.524, 208 MHz, [N/A], 0 %, 4.82 W, P8 +2026/10/14 19:58:05.625, 208 MHz, [N/A], 0 %, 4.82 W, P8 +2026/10/14 19:58:05.726, 208 MHz, [N/A], 0 %, 4.82 W, P8 +2026/10/14 19:58:05.826, 208 MHz, [N/A], 0 %, 4.82 W, P8 +2026/10/14 19:58:05.926, 208 MHz, [N/A], 0 %, 4.82 W, P8 +2026/10/14 19:58:06.026, 1124 MHz, [N/A], 0 %, 6.59 W, P8 +2026/10/14 19:58:06.126, 1124 MHz, [N/A], 0 %, 6.59 W, P8 +2026/10/14 19:58:06.226, 1124 MHz, [N/A], 0 %, 6.59 W, P8 +2026/10/14 19:58:06.326, 1124 MHz, [N/A], 0 %, 6.59 W, P8 +2026/10/14 19:58:06.426, 1124 MHz, [N/A], 0 %, 6.59 W, P8 +2026/10/14 19:58:06.527, 1482 MHz, [N/A], 2 %, 13.00 W, P0 +2026/10/14 19:58:06.627, 1482 MHz, [N/A], 2 %, 13.00 W, P0 +2026/10/14 19:58:06.727, 1482 MHz, [N/A], 2 %, 13.00 W, P0 +2026/10/14 19:58:06.828, 1482 MHz, [N/A], 2 %, 13.00 W, P0 +2026/10/14 19:58:06.928, 1482 MHz, [N/A], 2 %, 13.00 W, P0 +2026/10/14 19:58:07.028, 604 MHz, [N/A], 2 %, 16.70 W, P0 +2026/10/14 19:58:07.129, 604 MHz, [N/A], 2 %, 16.70 W, P0 +2026/10/14 19:58:07.230, 604 MHz, [N/A], 2 %, 16.70 W, P0 +2026/10/14 19:58:07.330, 604 MHz, [N/A], 2 %, 16.70 W, P0 +2026/10/14 19:58:07.430, 604 MHz, [N/A], 2 %, 16.70 W, P0 +2026/10/14 19:58:07.531, 591 MHz, [N/A], 0 %, 10.90 W, P0 +2026/10/14 19:58:07.632, 591 MHz, [N/A], 0 %, 10.90 W, P0 +2026/10/14 19:58:07.733, 591 MHz, [N/A], 0 %, 10.90 W, P0 +2026/10/14 19:58:07.833, 591 MHz, [N/A], 0 %, 10.90 W, P0 +2026/10/14 19:58:07.934, 591 MHz, [N/A], 0 %, 10.90 W, P0 +2026/10/14 19:58:08.034, 591 MHz, [N/A], 0 %, 5.59 W, P0 +2026/10/14 19:58:08.134, 591 MHz, [N/A], 0 %, 5.59 W, P0 +2026/10/14 19:58:08.234, 591 MHz, [N/A], 0 %, 5.59 W, P0 +2026/10/14 19:58:08.334, 591 MHz, [N/A], 0 %, 5.59 W, P0 +2026/10/14 19:58:08.435, 591 MHz, [N/A], 0 %, 5.59 W, P0 +2026/10/14 19:58:08.535, 591 MHz, [N/A], 5 %, 6.29 W, P0 +2026/10/14 19:58:08.635, 591 MHz, [N/A], 5 %, 6.29 W, P0 +2026/10/14 19:58:08.736, 591 MHz, [N/A], 5 %, 6.29 W, P0 +2026/10/14 19:58:08.837, 591 MHz, [N/A], 5 %, 6.29 W, P0 +2026/10/14 19:58:08.937, 591 MHz, [N/A], 5 %, 6.29 W, P0 +2026/10/14 19:58:09.038, 208 MHz, [N/A], 5 %, 6.24 W, P0 +2026/10/14 19:58:09.138, 208 MHz, [N/A], 5 %, 6.24 W, P0 +2026/10/14 19:58:09.238, 208 MHz, [N/A], 5 %, 6.24 W, P0 +2026/10/14 19:58:09.339, 208 MHz, [N/A], 5 %, 6.24 W, P0 +2026/10/14 19:58:09.439, 208 MHz, [N/A], 5 %, 6.24 W, P0 +2026/10/14 19:58:09.540, 208 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 19:58:09.640, 208 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 19:58:09.741, 208 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 19:58:09.841, 208 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 19:58:09.941, 208 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 19:58:10.042, 208 MHz, [N/A], 0 %, 5.28 W, P0 +2026/10/14 19:58:10.142, 208 MHz, [N/A], 0 %, 5.28 W, P0 +2026/10/14 19:58:10.243, 208 MHz, [N/A], 0 %, 5.28 W, P0 +2026/10/14 19:58:10.343, 208 MHz, [N/A], 0 %, 5.28 W, P0 +2026/10/14 19:58:10.444, 208 MHz, [N/A], 0 %, 5.28 W, P0 +2026/10/14 19:58:10.544, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:10.645, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:10.745, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:10.845, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:10.945, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:11.045, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:11.146, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:11.246, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:11.346, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:11.446, 208 MHz, [N/A], 0 %, 5.27 W, P8 +2026/10/14 19:58:11.546, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:11.647, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:11.747, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:11.848, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:11.948, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:12.049, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:12.149, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:12.250, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:12.350, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:12.451, 208 MHz, [N/A], 0 %, 4.95 W, P8 +2026/10/14 19:58:12.551, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:12.652, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:12.752, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:12.853, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:12.953, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:13.054, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:13.154, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:13.255, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:13.355, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:13.455, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:13.556, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:13.656, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:13.756, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:13.856, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:13.957, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:14.057, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:14.157, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:14.258, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:14.358, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:14.458, 208 MHz, [N/A], 0 %, 4.90 W, P8 +2026/10/14 19:58:14.559, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:14.660, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:14.760, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:14.860, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:14.960, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.061, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.161, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.261, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.362, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.463, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.563, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.663, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.763, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.863, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:15.963, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:16.063, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:16.164, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:16.264, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:16.364, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:16.464, 208 MHz, [N/A], 0 %, 4.94 W, P8 +2026/10/14 19:58:16.564, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:16.665, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:16.765, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:16.866, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:16.967, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:17.067, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:17.168, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:17.269, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:17.369, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:17.470, 208 MHz, [N/A], 0 %, 4.97 W, P8 +2026/10/14 19:58:17.570, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:17.671, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:17.772, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:17.872, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:17.972, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:18.073, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:18.173, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:18.274, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:18.375, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:18.475, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:18.576, 864 MHz, [N/A], 39 %, 7.01 W, P0 +2026/10/14 19:58:18.676, 864 MHz, [N/A], 39 %, 7.01 W, P0 +2026/10/14 19:58:18.777, 864 MHz, [N/A], 39 %, 7.01 W, P0 +2026/10/14 19:58:18.877, 864 MHz, [N/A], 39 %, 7.01 W, P0 +2026/10/14 19:58:18.978, 864 MHz, [N/A], 39 %, 7.01 W, P0 +2026/10/14 19:58:19.079, 1969 MHz, [N/A], 39 %, 10.52 W, P0 +2026/10/14 19:58:19.179, 1969 MHz, [N/A], 39 %, 10.52 W, P0 +2026/10/14 19:58:19.280, 1969 MHz, [N/A], 39 %, 10.52 W, P0 +2026/10/14 19:58:19.380, 1969 MHz, [N/A], 39 %, 10.52 W, P0 +2026/10/14 19:58:19.480, 1969 MHz, [N/A], 39 %, 10.52 W, P0 +2026/10/14 19:58:19.581, 1963 MHz, [N/A], 19 %, 21.20 W, P0 +2026/10/14 19:58:19.681, 1963 MHz, [N/A], 19 %, 21.20 W, P0 +2026/10/14 19:58:19.782, 1963 MHz, [N/A], 19 %, 21.20 W, P0 +2026/10/14 19:58:19.882, 1963 MHz, [N/A], 19 %, 21.20 W, P0 +2026/10/14 19:58:19.982, 1963 MHz, [N/A], 19 %, 21.20 W, P0 +2026/10/14 19:58:20.083, 591 MHz, [N/A], 19 %, 14.88 W, P0 +2026/10/14 19:58:20.183, 591 MHz, [N/A], 19 %, 14.88 W, P0 +2026/10/14 19:58:20.284, 591 MHz, [N/A], 19 %, 14.88 W, P0 +2026/10/14 19:58:20.384, 591 MHz, [N/A], 19 %, 14.88 W, P0 +2026/10/14 19:58:20.484, 591 MHz, [N/A], 19 %, 14.88 W, P0 +2026/10/14 19:58:20.584, 591 MHz, [N/A], 0 %, 5.44 W, P0 +2026/10/14 19:58:20.684, 591 MHz, [N/A], 0 %, 5.44 W, P0 +2026/10/14 19:58:20.784, 591 MHz, [N/A], 0 %, 5.44 W, P0 +2026/10/14 19:58:20.885, 591 MHz, [N/A], 0 %, 5.44 W, P0 +2026/10/14 19:58:20.985, 591 MHz, [N/A], 0 %, 5.44 W, P0 +2026/10/14 19:58:21.085, 689 MHz, [N/A], 0 %, 6.23 W, P0 +2026/10/14 19:58:21.185, 689 MHz, [N/A], 0 %, 6.23 W, P0 +2026/10/14 19:58:21.286, 689 MHz, [N/A], 0 %, 6.23 W, P0 +2026/10/14 19:58:21.386, 689 MHz, [N/A], 0 %, 6.23 W, P0 +2026/10/14 19:58:21.486, 689 MHz, [N/A], 0 %, 6.23 W, P0 +2026/10/14 19:58:21.586, 286 MHz, [N/A], 0 %, 6.29 W, P0 +2026/10/14 19:58:21.687, 286 MHz, [N/A], 0 %, 6.29 W, P0 +2026/10/14 19:58:21.787, 286 MHz, [N/A], 0 %, 6.29 W, P0 +2026/10/14 19:58:21.887, 286 MHz, [N/A], 0 %, 6.29 W, P0 +2026/10/14 19:58:21.988, 286 MHz, [N/A], 0 %, 6.29 W, P0 +2026/10/14 19:58:22.088, 208 MHz, [N/A], 0 %, 5.35 W, P0 +2026/10/14 19:58:22.188, 208 MHz, [N/A], 0 %, 5.35 W, P0 +2026/10/14 19:58:22.289, 208 MHz, [N/A], 0 %, 5.35 W, P0 +2026/10/14 19:58:22.389, 208 MHz, [N/A], 0 %, 5.35 W, P0 +2026/10/14 19:58:22.489, 208 MHz, [N/A], 0 %, 5.35 W, P0 +2026/10/14 19:58:22.590, 208 MHz, [N/A], 0 %, 5.16 W, P0 +2026/10/14 19:58:22.690, 208 MHz, [N/A], 0 %, 5.16 W, P0 +2026/10/14 19:58:22.790, 208 MHz, [N/A], 0 %, 5.16 W, P0 +2026/10/14 19:58:22.891, 208 MHz, [N/A], 0 %, 5.16 W, P0 +2026/10/14 19:58:22.991, 208 MHz, [N/A], 0 %, 5.16 W, P0 +2026/10/14 19:58:23.091, 208 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 19:58:23.192, 208 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 19:58:23.292, 208 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 19:58:23.392, 208 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 19:58:23.492, 208 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 19:58:23.592, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:23.693, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:23.793, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:23.893, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:23.993, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:24.094, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:24.194, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:24.294, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:24.395, 208 MHz, [N/A], 0 %, 5.14 W, P8 +2026/10/14 19:58:24.495, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:24.595, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:24.696, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:24.796, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:24.896, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:24.996, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:25.096, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:25.196, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:25.297, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:25.397, 208 MHz, [N/A], 0 %, 4.80 W, P8 +2026/10/14 19:58:25.497, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:25.597, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:25.697, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:25.797, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:25.897, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:25.997, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:26.098, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:26.198, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:26.298, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:26.398, 208 MHz, [N/A], 0 %, 4.79 W, P8 +2026/10/14 19:58:26.499, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:26.599, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:26.699, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:26.799, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:26.899, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:26.999, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:27.100, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:27.200, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:27.300, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:27.401, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:27.501, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:27.601, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:27.701, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:27.802, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:27.902, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.002, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.102, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.202, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.303, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.403, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.503, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.603, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.704, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.804, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:28.904, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.004, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.105, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.205, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.305, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.405, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.505, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.606, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.706, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.806, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:29.907, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:30.007, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:30.107, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:30.207, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:30.307, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:30.407, 208 MHz, [N/A], 0 %, 4.78 W, P8 +2026/10/14 19:58:30.507, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:30.608, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:30.708, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:30.808, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:30.908, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:31.009, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:31.109, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:31.209, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:31.309, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:31.410, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:31.510, 708 MHz, [N/A], 16 %, 9.65 W, P0 +2026/10/14 19:58:31.610, 708 MHz, [N/A], 16 %, 9.65 W, P0 +2026/10/14 19:58:31.711, 708 MHz, [N/A], 16 %, 9.65 W, P0 +2026/10/14 19:58:31.811, 708 MHz, [N/A], 16 %, 9.65 W, P0 +2026/10/14 19:58:31.911, 708 MHz, [N/A], 16 %, 9.65 W, P0 +2026/10/14 19:58:32.012, 442 MHz, [N/A], 16 %, 10.66 W, P0 +2026/10/14 19:58:32.112, 442 MHz, [N/A], 16 %, 10.66 W, P0 +2026/10/14 19:58:32.212, 442 MHz, [N/A], 16 %, 10.66 W, P0 +2026/10/14 19:58:32.313, 442 MHz, [N/A], 16 %, 10.66 W, P0 +2026/10/14 19:58:32.413, 442 MHz, [N/A], 16 %, 10.66 W, P0 +2026/10/14 19:58:32.513, 208 MHz, [N/A], 0 %, 9.00 W, P0 +2026/10/14 19:58:32.614, 208 MHz, [N/A], 0 %, 9.00 W, P0 +2026/10/14 19:58:32.714, 208 MHz, [N/A], 0 %, 9.00 W, P0 +2026/10/14 19:58:32.814, 208 MHz, [N/A], 0 %, 9.00 W, P0 +2026/10/14 19:58:32.914, 208 MHz, [N/A], 0 %, 9.00 W, P0 +2026/10/14 19:58:33.014, 299 MHz, [N/A], 0 %, 5.66 W, P0 +2026/10/14 19:58:33.115, 299 MHz, [N/A], 0 %, 5.66 W, P0 +2026/10/14 19:58:33.215, 299 MHz, [N/A], 0 %, 5.66 W, P0 +2026/10/14 19:58:33.315, 299 MHz, [N/A], 0 %, 5.66 W, P0 +2026/10/14 19:58:33.415, 299 MHz, [N/A], 0 %, 5.66 W, P0 +2026/10/14 19:58:33.516, 240 MHz, [N/A], 0 %, 5.80 W, P8 +2026/10/14 19:58:33.616, 240 MHz, [N/A], 0 %, 5.80 W, P8 +2026/10/14 19:58:33.716, 240 MHz, [N/A], 0 %, 5.80 W, P8 +2026/10/14 19:58:33.817, 240 MHz, [N/A], 0 %, 5.80 W, P8 +2026/10/14 19:58:33.917, 240 MHz, [N/A], 0 %, 5.80 W, P8 +2026/10/14 19:58:34.017, 208 MHz, [N/A], 0 %, 5.13 W, P8 +2026/10/14 19:58:34.117, 208 MHz, [N/A], 0 %, 5.13 W, P8 +2026/10/14 19:58:34.218, 208 MHz, [N/A], 0 %, 5.13 W, P8 +2026/10/14 19:58:34.318, 208 MHz, [N/A], 0 %, 5.13 W, P8 +2026/10/14 19:58:34.418, 208 MHz, [N/A], 0 %, 5.13 W, P8 +2026/10/14 19:58:34.519, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:34.619, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:34.719, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:34.819, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:34.920, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:35.020, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:35.120, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:35.220, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:35.320, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:35.420, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 19:58:35.520, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:35.620, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:35.721, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:35.821, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:35.922, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:36.022, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:36.122, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:36.222, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:36.323, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:36.423, 208 MHz, [N/A], 0 %, 4.81 W, P8 +2026/10/14 19:58:36.523, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:36.624, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:36.724, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:36.824, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:36.924, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:37.025, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:37.125, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:37.225, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:37.325, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:37.426, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:37.526, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:37.626, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:37.727, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:37.827, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:37.927, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:38.027, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:38.128, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:38.228, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:38.328, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:38.428, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:38.528, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:38.629, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:38.729, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:38.829, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:38.930, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:39.030, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:39.131, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:39.231, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:39.331, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:39.431, 208 MHz, [N/A], 0 %, 4.70 W, P8 +2026/10/14 19:58:39.531, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:39.632, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:39.732, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:39.832, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:39.932, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:40.032, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:40.133, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:40.233, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:40.333, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:40.433, 208 MHz, [N/A], 0 %, 4.71 W, P8 +2026/10/14 19:58:40.533, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:40.633, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:40.734, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:40.835, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:40.935, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:41.035, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:41.136, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:41.236, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:41.336, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:41.437, 208 MHz, [N/A], 0 %, 4.77 W, P8 +2026/10/14 19:58:41.537, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:41.637, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:41.738, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:41.838, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:41.938, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:42.039, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:42.139, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:42.240, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:42.340, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:42.441, 208 MHz, [N/A], 0 %, 4.83 W, P8 +2026/10/14 19:58:42.541, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:42.642, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:42.742, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:42.842, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:42.942, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:43.043, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:43.143, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:43.243, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:43.343, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:43.444, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 19:58:43.544, 851 MHz, [N/A], 5 %, 7.36 W, P0 +2026/10/14 19:58:43.644, 851 MHz, [N/A], 5 %, 7.36 W, P0 +2026/10/14 19:58:43.744, 851 MHz, [N/A], 5 %, 7.36 W, P0 +2026/10/14 19:58:43.844, 851 MHz, [N/A], 5 %, 7.36 W, P0 +2026/10/14 19:58:43.944, 851 MHz, [N/A], 5 %, 7.36 W, P0 +2026/10/14 19:58:44.045, 1215 MHz, [N/A], 5 %, 12.14 W, P0 +2026/10/14 19:58:44.145, 1215 MHz, [N/A], 5 %, 12.14 W, P0 +2026/10/14 19:58:44.245, 1215 MHz, [N/A], 5 %, 12.14 W, P0 +2026/10/14 19:58:44.345, 1215 MHz, [N/A], 5 %, 12.14 W, P0 +2026/10/14 19:58:44.446, 1215 MHz, [N/A], 5 %, 12.14 W, P0 +2026/10/14 19:58:44.546, 208 MHz, [N/A], 0 %, 13.92 W, P0 +2026/10/14 19:58:44.646, 208 MHz, [N/A], 0 %, 13.92 W, P0 +2026/10/14 19:58:44.746, 208 MHz, [N/A], 0 %, 13.92 W, P0 +2026/10/14 19:58:44.846, 208 MHz, [N/A], 0 %, 13.92 W, P0 +2026/10/14 19:58:44.946, 208 MHz, [N/A], 0 %, 13.92 W, P0 +2026/10/14 19:58:45.046, 208 MHz, [N/A], 0 %, 5.24 W, P0 +2026/10/14 19:58:45.147, 208 MHz, [N/A], 0 %, 5.24 W, P0 +2026/10/14 19:58:45.247, 208 MHz, [N/A], 0 %, 5.24 W, P0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/device.txt new file mode 100644 index 000000000..d2b99ae25 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:57:29Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 72 2 37 106 +end 2026-10-15T00:58:45Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/host-only.log new file mode 100644 index 000000000..33442c005 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/host-only.log @@ -0,0 +1,8 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +gpu_prefill_attn_test: 69 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/main-fused.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/main-fused.log new file mode 100644 index 000000000..a3b0f84ce --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/main-fused.log @@ -0,0 +1,31 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 1x4 x256 thr; chip 0.217 ms call 0.535 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.105 ms call 0.316 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 3x4 x256 thr; chip 0.108 ms call 0.457 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.962 ms call 2.047 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.208 ms call 0.952 ms + reps chip ms (in order, 0 untimed warm calls first): 0.105 0.104 0.104 0.205 0.103 0.103 0.104 0.104 0.104 + slowest rep, per launch ms (1 launches): 0.205 + timing prefill pos0 0 m 64: chip median 0.104 ms (min 0.103) call median 0.303 ms; 0.33 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.570 ms call 6.872 ms + speed: prefill 0.104 ms vs decode loop 6.570 ms chip time: 63.4x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.315 ms call 0.726 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.195 ms call 7.541 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.226 ms call 0.622 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.664 ms call 7.052 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.313 ms call 0.314 ms +FAIL: continuation: mirror view valid 0 (want 369) stride 0 +FAIL: negative control: a foreign rewrite without invalidate must show (stale mirror), 0 outputs differ +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 0; outputs differ mirror vs none: 0; stale control 0 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 2 failed: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/main.log new file mode 100644 index 000000000..355b4e4ef --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/main.log @@ -0,0 +1,51 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x256 thr; chip 0.218 ms call 11.067 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.106 ms call 0.345 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 3x4 x256 thr; chip 0.282 ms call 4.127 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.939 ms call 2.023 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.210 ms call 1.836 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.207 0.207 0.208 0.207 0.208 0.208 0.208 0.207 + slowest rep, per launch ms (2 launches): 0.105 0.103 + timing prefill pos0 0 m 64: chip median 0.208 ms (min 0.207) call median 0.397 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.669 ms call 6.822 ms + speed: prefill 0.208 ms vs decode loop 6.669 ms chip time: 32.1x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 9x4 x256 thr; chip 0.285 ms call 1.774 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.246 ms call 7.402 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.281 ms call 0.908 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.694 ms call 6.832 ms +chip pos0 0 m 512: parity bad=0 worst=0.237; rows vs emulation k 2 (max 1 ulp) v 0; chunks 2 grid 64x4 x256 thr; chip 0.518 ms call 8.223 ms + reps chip ms (in order, 0 untimed warm calls first): 0.422 0.415 0.413 0.515 0.414 0.416 0.415 0.415 0.414 + slowest rep, per launch ms (2 launches): 0.106 0.409 + timing prefill pos0 0 m 512: chip median 0.415 ms (min 0.413) call median 2.153 ms; 5.18 useful TFLOPS on chip time + gate 2 vs 512 decode steps: rows k 0 v 0 differ; outputs worst 0.237 of tol; decode loop chip 53.000 ms call 56.179 ms + speed: prefill 0.415 ms vs decode loop 53.000 ms chip time: 127.7x +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.553 ms call 5.543 ms + reps chip ms (in order, 0 untimed warm calls first): 0.414 0.413 0.411 0.413 0.411 0.413 0.412 0.410 0.412 + slowest rep, per launch ms (2 launches): 0.106 0.307 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.410) call median 0.603 ms; 10.35 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.011 of tol; decode loop chip 13.249 ms call 13.473 ms + speed: prefill 0.412 ms vs decode loop 13.249 ms chip time: 32.2x +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.146 ms call 26.040 ms + reps chip ms (in order, 0 untimed warm calls first): 2.157 2.152 2.152 2.055 4.501 2.052 2.151 2.150 2.154 + slowest rep, per launch ms (4 launches): 0.309 2.858 0.107 1.226 + timing prefill pos0 0 m 2048: chip median 2.152 ms (min 2.052) call median 9.752 ms; 15.98 useful TFLOPS on chip time +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 9x4; chip 0.279 ms call 0.796 ms +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.959 ms call 3.507 ms + dev reps chip ms: 2.015 1.946 1.940 1.943 1.941 1.937 2.040 1.936 2.041 + timing dev pos0 0 m 2048: chip median 1.943 ms (min 1.936) call median 1.944 ms; 17.69 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 4.030 ms call 6.987 ms + dev reps chip ms: 3.584 3.471 3.453 3.530 3.566 3.774 3.669 3.466 3.465 + timing dev pos0 4096 m 1500: chip median 3.530 ms (min 3.453) call median 3.531 ms; 33.74 useful TFLOPS on chip time +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 164 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-baseline-decode.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-baseline-decode.json new file mode 100644 index 000000000..9a044adaa --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-baseline-decode.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_DECODE_ATTN_V1","reps":3,"evict":1,"points":[{"name":"context 1024","pos":1023,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":4,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":2097152,"fill_ms":0.0,"chip_median_ns":80369,"gb_per_s":26.1,"call_median_ns":82737,"reps":3}],"checks":4,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_DECODE_ATTN_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-main-fused.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-main-fused.json new file mode 100644 index 000000000..5d2af1fab --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-main-fused.json @@ -0,0 +1,9 @@ +{"test": "gpu_prefill_attn", "points": [ + {"pos0": 0, "m": 1, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0000, "decode_loop_chip_ms": 0.1050, "decode_loop_call_ms": 0.3162}, + {"pos0": 37, "m": 19, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.1339, "decode_loop_chip_ms": 1.9616, "decode_loop_call_ms": 2.0470}, + {"pos0": 0, "m": 64, "prefill_chip_ms_median": 0.1037, "prefill_call_ms_median": 0.3029, "useful_tflops": 0.329}, + {"pos0": 0, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2307, "decode_loop_chip_ms": 6.5699, "decode_loop_call_ms": 6.8716}, + {"pos0": 100, "m": 70, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0862, "decode_loop_chip_ms": 7.1953, "decode_loop_call_ms": 7.5409}, + {"pos0": 200, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0613, "decode_loop_chip_ms": 6.6644, "decode_loop_call_ms": 7.0520}, + {} +], "checks": 127, "failed": 2} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-main.json new file mode 100644 index 000000000..92bec5a49 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-main.json @@ -0,0 +1,16 @@ +{"test": "gpu_prefill_attn", "points": [ + {"pos0": 0, "m": 1, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0000, "decode_loop_chip_ms": 0.1061, "decode_loop_call_ms": 0.3451}, + {"pos0": 37, "m": 19, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.1339, "decode_loop_chip_ms": 1.9390, "decode_loop_call_ms": 2.0234}, + {"pos0": 0, "m": 64, "prefill_chip_ms_median": 0.2077, "prefill_call_ms_median": 0.3968, "useful_tflops": 0.164}, + {"pos0": 0, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2307, "decode_loop_chip_ms": 6.6691, "decode_loop_call_ms": 6.8220}, + {"pos0": 100, "m": 70, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0862, "decode_loop_chip_ms": 7.2462, "decode_loop_call_ms": 7.4017}, + {"pos0": 200, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0613, "decode_loop_chip_ms": 6.6940, "decode_loop_call_ms": 6.8322}, + {"pos0": 0, "m": 512, "prefill_chip_ms_median": 0.4152, "prefill_call_ms_median": 2.1528, "useful_tflops": 5.183}, + {"pos0": 0, "m": 512, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2374, "decode_loop_chip_ms": 52.9995, "decode_loop_call_ms": 56.1794}, + {"pos0": 4032, "m": 64, "prefill_chip_ms_median": 0.4118, "prefill_call_ms_median": 0.6026, "useful_tflops": 10.348}, + {"pos0": 4032, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0109, "decode_loop_chip_ms": 13.2487, "decode_loop_call_ms": 13.4726}, + {"pos0": 0, "m": 2048, "prefill_chip_ms_median": 2.1517, "prefill_call_ms_median": 9.7517, "useful_tflops": 15.976}, + {"dev": 1, "pos0": 0, "m": 2048, "chip_ms_median": 1.9430, "chip_ms_min": 1.9358, "call_ms_median": 1.9440, "out_diff": 0, "rows_diff": 0}, + {"dev": 1, "pos0": 4096, "m": 1500, "chip_ms_median": 3.5298, "chip_ms_min": 3.4530, "call_ms_median": 3.5307, "out_diff": 0, "rows_diff": 0}, + {} +], "checks": 164, "failed": 0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-warps4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-warps4.json new file mode 100644 index 000000000..7ec4306e5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/receipt-warps4.json @@ -0,0 +1,9 @@ +{"test": "gpu_prefill_attn", "points": [ + {"pos0": 0, "m": 1, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0000, "decode_loop_chip_ms": 0.1042, "decode_loop_call_ms": 0.3105}, + {"pos0": 37, "m": 19, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.1339, "decode_loop_chip_ms": 1.9701, "decode_loop_call_ms": 2.0582}, + {"pos0": 0, "m": 64, "prefill_chip_ms_median": 0.2079, "prefill_call_ms_median": 0.3914, "useful_tflops": 0.164}, + {"pos0": 0, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2307, "decode_loop_chip_ms": 6.8770, "decode_loop_call_ms": 7.0560}, + {"pos0": 100, "m": 70, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0862, "decode_loop_chip_ms": 7.2191, "decode_loop_call_ms": 7.4192}, + {"pos0": 200, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0613, "decode_loop_chip_ms": 6.6176, "decode_loop_call_ms": 6.7878}, + {} +], "checks": 127, "failed": 0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/sim.log new file mode 100644 index 000000000..e2bed939f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/sim.log @@ -0,0 +1,37 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +sim one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 5 tokens from 0 (partial CTA) W=8: ok bad=0 worst=0.257 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.112 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, sharp q (x4) W=8: ok bad=0 worst=0.107 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 64 tokens from 100 (full chunk) W=8: ok bad=0 worst=0.067 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 70 tokens from 0 (two chunks) W=8: ok bad=0 worst=0.291 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 33 tokens from 200, warps 4 W=4: ok bad=0 worst=0.051 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 5 tokens from 0 W=8: ok bad=0 worst=0.255 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.108 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 70 tokens from 0 W=8: ok bad=0 worst=0.276 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.117 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 5 tokens from 0 W=8: ok bad=0 worst=0.227 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.095 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.126 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 45 tokens from 300 W=8: ok bad=0 worst=0.042 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim fused mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim fused mutant 2 at 24 tokens from 40: caught (bad=65059 worst=33.577 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim fused mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim fused mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim split mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim split mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim mirror mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim mirror mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim: 10233092 warp issues in total +gpu_prefill_attn_test: 97 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-fused-cold.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-fused-cold.log new file mode 100644 index 000000000..29059817e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-fused-cold.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 6.957 ms call 20.776 ms + reps chip ms (in order, 0 untimed warm calls first): 7.766 7.197 7.536 7.279 7.011 7.355 7.538 6.964 7.277 7.166 7.230 7.367 7.205 7.548 7.055 + slowest rep, per launch ms (32 launches): 0.209 0.106 0.107 0.106 0.208 0.208 0.208 0.209 0.207 0.207 0.208 0.207 0.209 0.207 0.208 0.208 0.208 0.208 0.207 0.309 0.309 0.310 0.309 0.310 0.358 0.316 0.313 0.323 0.313 0.321 0.319 0.310 + timing prefill pos0 0 m 2048: chip median 7.277 ms (min 6.964) call median 14.414 ms; 4.72 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.178 ms call 7.195 ms + dev reps chip ms: 6.889 7.838 6.962 7.017 7.006 7.007 6.952 6.979 6.963 7.083 7.752 6.965 7.365 7.166 6.839 + timing dev pos0 0 m 2048: chip median 7.006 ms (min 6.839) call median 7.026 ms; 4.91 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 14.689 ms call 14.703 ms + dev reps chip ms: 12.370 13.311 14.082 12.337 12.812 12.550 12.522 12.942 13.190 12.401 12.763 12.293 12.668 12.397 12.569 + timing dev pos0 4096 m 1500: chip median 12.569 ms (min 12.293) call median 12.588 ms; 9.48 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.526 ms call 1.013 ms + reps chip ms (in order, 0 untimed warm calls first): 0.516 0.515 0.412 0.410 0.411 0.410 0.411 0.411 0.409 0.437 0.410 0.511 0.410 0.409 0.410 + slowest rep, per launch ms (1 launches): 0.516 + timing prefill pos0 4032 m 64: chip median 0.411 ms (min 0.409) call median 0.610 ms; 10.37 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.421 ms call 0.422 ms + dev reps chip ms: 0.524 0.411 0.410 0.412 0.410 0.411 0.412 0.410 0.411 0.410 0.410 0.412 0.409 0.410 0.409 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.409) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-cold exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-fused-warm5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-fused-warm5.log new file mode 100644 index 000000000..5f49dd184 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-fused-warm5.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 7.532 ms call 22.385 ms + reps chip ms (in order, 5 untimed warm calls first): 7.430 7.029 6.833 6.905 7.627 6.941 6.912 7.019 6.730 6.907 6.919 6.910 7.025 7.027 7.032 + slowest rep, per launch ms (32 launches): 0.105 0.104 0.104 0.104 0.210 0.206 0.206 0.205 0.208 0.205 0.206 0.206 0.205 0.206 0.205 0.208 0.209 0.207 0.310 0.308 0.208 0.307 0.411 0.304 0.308 0.309 0.308 0.308 0.308 0.311 0.307 0.309 + timing prefill pos0 0 m 2048: chip median 6.941 ms (min 6.730) call median 13.932 ms; 4.95 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.518 ms call 7.535 ms + dev reps chip ms: 7.078 6.968 7.067 7.071 7.681 7.169 7.060 7.163 7.170 6.966 7.170 7.173 7.069 6.873 7.168 + timing dev pos0 0 m 2048: chip median 7.078 ms (min 6.873) call median 7.093 ms; 4.86 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 13.552 ms call 13.565 ms + dev reps chip ms: 12.359 12.351 13.268 12.450 13.233 12.352 12.247 12.457 12.560 12.349 12.408 12.312 12.422 12.556 12.350 + timing dev pos0 4096 m 1500: chip median 12.408 ms (min 12.247) call median 12.419 ms; 9.60 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.629 ms call 1.094 ms + reps chip ms (in order, 5 untimed warm calls first): 0.500 0.417 0.404 0.514 0.409 0.412 0.511 0.410 0.411 0.511 0.410 0.411 0.410 0.513 0.411 + slowest rep, per launch ms (1 launches): 0.514 + timing prefill pos0 4032 m 64: chip median 0.411 ms (min 0.404) call median 0.604 ms; 10.36 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.519 ms call 0.520 ms + dev reps chip ms: 0.408 0.411 0.408 0.410 0.409 0.512 0.413 0.409 0.411 0.510 0.410 0.409 0.511 0.411 0.408 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.408) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-warm5 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-marks.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-marks.txt new file mode 100644 index 000000000..c3d465a11 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-marks.txt @@ -0,0 +1,8 @@ +variant fused-cold start 2026-10-15T00:57:55.355Z +variant fused-cold end 2026-10-15T00:58:08.147Z +variant fused-warm5 start 2026-10-15T00:58:08.148Z +variant fused-warm5 end 2026-10-15T00:58:20.847Z +variant split-cold start 2026-10-15T00:58:20.848Z +variant split-cold end 2026-10-15T00:58:33.018Z +variant split-warm5 start 2026-10-15T00:58:33.019Z +variant split-warm5 end 2026-10-15T00:58:45.341Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-split-cold.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-split-cold.log new file mode 100644 index 000000000..1f75601bc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-split-cold.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.119 ms call 30.957 ms + reps chip ms (in order, 0 untimed warm calls first): 2.162 2.159 2.154 2.052 2.156 2.149 2.156 2.156 2.227 2.251 2.156 2.152 2.254 2.152 2.147 + slowest rep, per launch ms (4 launches): 0.105 0.818 0.208 1.123 + timing prefill pos0 0 m 2048: chip median 2.156 ms (min 2.052) call median 9.495 ms; 15.95 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.952 ms call 3.313 ms + dev reps chip ms: 1.965 1.940 2.043 1.938 2.042 1.937 1.937 1.937 2.039 2.039 2.039 2.040 2.037 2.208 2.036 + timing dev pos0 0 m 2048: chip median 2.037 ms (min 1.937) call median 2.038 ms; 16.87 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.723 ms call 6.165 ms + dev reps chip ms: 3.790 3.467 3.669 3.848 3.466 3.440 3.465 3.466 3.467 3.565 3.872 3.567 3.566 3.537 3.466 + timing dev pos0 4096 m 1500: chip median 3.537 ms (min 3.440) call median 3.538 ms; 33.67 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.693 ms call 5.651 ms + reps chip ms (in order, 0 untimed warm calls first): 0.414 0.413 0.412 0.413 0.412 0.411 0.412 0.411 0.412 0.413 0.411 0.412 0.411 0.412 0.411 + slowest rep, per launch ms (2 launches): 0.106 0.307 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.411) call median 0.597 ms; 10.35 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.562 ms call 2.938 ms + dev reps chip ms: 0.416 0.413 0.411 0.411 0.411 0.411 0.411 0.410 0.411 0.410 0.411 0.410 0.410 0.411 0.411 + timing dev pos0 4096 m 64: chip median 0.411 ms (min 0.410) call median 0.412 ms; 10.54 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-cold exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-split-warm5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-split-warm5.log new file mode 100644 index 000000000..d1b56f917 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/spread-split-warm5.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.086 ms call 30.896 ms + reps chip ms (in order, 5 untimed warm calls first): 2.202 2.340 2.254 2.049 2.156 2.154 2.154 2.152 2.152 2.145 2.251 2.046 3.061 2.045 2.247 + slowest rep, per launch ms (4 launches): 0.207 1.528 0.104 1.222 + timing prefill pos0 0 m 2048: chip median 2.154 ms (min 2.045) call median 9.347 ms; 15.96 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.952 ms call 3.646 ms + dev reps chip ms: 2.051 1.937 1.951 1.943 1.945 1.942 2.042 2.041 1.940 2.041 2.246 2.041 2.144 2.042 2.041 + timing dev pos0 0 m 2048: chip median 2.041 ms (min 1.937) call median 2.042 ms; 16.84 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 4.717 ms call 7.168 ms + dev reps chip ms: 3.635 3.863 3.486 3.501 3.493 3.505 3.699 3.589 3.507 3.464 3.460 3.562 3.772 3.565 3.466 + timing dev pos0 4096 m 1500: chip median 3.507 ms (min 3.460) call median 3.508 ms; 33.96 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 1.478 ms call 6.668 ms + reps chip ms (in order, 5 untimed warm calls first): 0.411 0.411 0.412 0.412 0.413 0.413 0.413 0.417 0.412 0.412 0.411 0.413 0.413 0.530 0.424 + slowest rep, per launch ms (2 launches): 0.105 0.425 + timing prefill pos0 4032 m 64: chip median 0.413 ms (min 0.411) call median 0.604 ms; 10.32 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.561 ms call 3.271 ms + dev reps chip ms: 0.411 0.412 0.412 0.422 0.411 0.410 0.410 0.412 0.420 0.384 0.409 0.383 0.409 0.409 0.383 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.383) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-warm5 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/warps4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/warps4.log new file mode 100644 index 000000000..8674f9eff --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/prefill_attn/warps4.log @@ -0,0 +1,30 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 4, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x128 thr; chip 0.224 ms call 11.464 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.104 ms call 0.311 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 5x4 x128 thr; chip 0.282 ms call 4.073 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.970 ms call 2.058 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.211 ms call 1.649 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.208 0.208 0.208 0.208 0.208 0.208 0.208 0.207 + slowest rep, per launch ms (2 launches): 0.106 0.103 + timing prefill pos0 0 m 64: chip median 0.208 ms (min 0.207) call median 0.391 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.877 ms call 7.056 ms + speed: prefill 0.208 ms vs decode loop 6.877 ms chip time: 33.1x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 18x4 x128 thr; chip 0.303 ms call 1.982 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.219 ms call 7.419 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.278 ms call 0.982 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.618 ms call 6.788 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 18x4; chip 0.272 ms call 0.699 ms +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 0 failed: PASS +warps 4 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv-sh.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv-sh.out new file mode 100644 index 000000000..8021bf5de --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv-sh.out @@ -0,0 +1,2 @@ +PASS: 235 checks, 0 failed +GPU-RECONV chip gate rc=0 receipt=/home/drakestapleton/workspace/requal-0c63/omega-gates/reconv/GPU-RECONV-710d438c/receipt.json diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv.out new file mode 100644 index 000000000..c37bf7114 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv.out @@ -0,0 +1 @@ +env: ‘tools/run_gpu_reconv_chip.sh’: Permission denied diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/SHA256SUMS new file mode 100644 index 000000000..d312ca5f8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/SHA256SUMS @@ -0,0 +1,10 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build.log +17ae9fb608fd213926fa5a438da447cca4633dad7200a6a239c19cbd47516eac bw_warp_sim.h +17e0ddd412a27b212f08c04b39b228e32f1e2cea52e3cdffcebd662eb680cf2c device.txt +38532161581eef2dcd0197e9123044609b976dd7984494cfc9eb4a5ff0d0a1aa gpu_reconv_test.c +efc00956abbfd021f97b5e38881e886341e2bdebfaf3edcd02c16ff731658b0d omega_blackwell_codegen.c +0da10397dd4ee813633afa425192d126d056684fdd998585fea666995a7c50ea omega_bw_reconv.h +7366eb0f8bbeb012f680bacc7c28b2b4bb6489726df08c6dc80dae640c0ba71c omega_gpu_elementwise_api.c +5d62a2ea6209fc5a0133f866b60469a74d3ef2a32da67a30312e4daacc96b97f omega_gpu_elementwise_api.h +005981df1d37536671c79f842eefe5bfe6e4100af5fb50c479172239edd247ea receipt.json +18970f49646b00001332911e0034144c534df94f7069a5ba286c74363fbe159a run.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/bw_warp_sim.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/bw_warp_sim.h new file mode 100644 index 000000000..3e98e8545 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/bw_warp_sim.h @@ -0,0 +1,318 @@ +/* bw_warp_sim.h: host SIMT simulator for the Blackwell IR (omega #308). + * + * Models what the earlier per-thread simulators could not: a warp of 32 lanes with an + * active mask, divergence at predicated branches, structured reconvergence through the + * barrier registers (BSSY arms Bn for the lanes executing it and names the join; BSYNC + * parks arriving lanes until every armed lane that has not exited is there, then the + * warp continues as one), nested regions, and lane participation in SHFL and BAR.SYNC. + * + * A warp is a set of fragments (pc, lane mask). A predicated branch whose lanes disagree + * splits the fragment; the scheduler then runs one fragment at a time in a chosen order + * (lowest pc first or highest pc first; tests run both), which is the freedom the chip's + * scheduler also has. Fragments only merge at a BSYNC. Errors (all fatal, first one wins): + * WS_E_SHFL_SPLIT a SHFL reached by a fragment that is not the whole live warp + * (the chip reads inactive lanes: undefined; attention 2026-10-04) + * WS_E_SHFL_EXITED a SHFL on a warp some of whose lanes already exited (undefined too) + * WS_E_BAR_SPLIT (defined, never raised) a BAR.SYNC reached by a split warp is allowed: + * since Volta the CTA barrier counts arriving threads, not warps (CUDA + * programming guide, independent thread scheduling; INFERRED for sm_121, + * not chip-verified by us). The simulator parks each fragment, releases + * them together, counts the event in bar_split_arrivals, and leaves the + * fragments split: a barrier is not a reconvergence point, so a SHFL after + * it still fails with SHFL_SPLIT unless a BSYNC rejoined the warp. + * WS_E_BSYNC_UNARMED BSYNC on a barrier no BSSY armed + * WS_E_BSSY_REARM BSSY on a barrier still armed (lanes may still be heading to its join) + * WS_E_JOIN_MISMATCH BSYNC at an address other than the one the BSSY named minus one + * WS_E_NONMEMBER a lane reached BSYNC Bn without having executed its BSSY + * WS_E_STUCK lanes parked at a BSYNC that can never complete (a join was dropped, + * an exit jumped past it, or a target was corrupted) + * WS_E_NEVER_JOINED the warp finished with a barrier still armed + * WS_E_SELF_BRANCH, WS_E_PC, WS_E_OP, WS_E_SHIFT, WS_E_MEM, WS_E_SMEM, WS_E_FRAGS + * Every error names the pc. Memory: global addresses are host pointers (optionally range + * checked); shared memory is a per-CTA buffer poisoned at CTA start so a read of a word + * nobody wrote shows up in the oracle comparison. + * + * Per-lane ALU semantics are those of the two earlier simulators (tests/gpu_attention_test.c, + * bench/prime_race/tests/gb10_sieve_host_test.c). EX2 and RCP are exact here; the chip's + * are approximate. LDCU64 (memory descriptor) is not modelled. */ +#ifndef BW_WARP_SIM_H +#define BW_WARP_SIM_H + +#include "omega_blackwell_codegen.h" +#include +#include +#include +#include +#include + +#define WS_WARP 32 +#define WS_MAX_THREADS 256 +#define WS_MAX_WARPS (WS_MAX_THREADS / WS_WARP) +#define WS_MAX_FRAGS 64 +#define WS_NBAR BW_RECONV_MAX_BAR +#define WS_MAX_RANGES 8 + +enum { + WS_OK = 0, WS_E_SHFL_SPLIT, WS_E_SHFL_EXITED, WS_E_BAR_SPLIT, WS_E_BSYNC_UNARMED, WS_E_BSSY_REARM, + WS_E_JOIN_MISMATCH, WS_E_NONMEMBER, WS_E_STUCK, WS_E_NEVER_JOINED, WS_E_SELF_BRANCH, WS_E_PC, + WS_E_OP, WS_E_SHIFT, WS_E_MEM, WS_E_SMEM, WS_E_FRAGS, WS_E_BAR_TIMEOUT, WS_E_STEPS +}; +static const char *ws_err_name(int e) { + static const char *const n[] = { "OK", "SHFL_SPLIT", "SHFL_EXITED", "BAR_SPLIT", "BSYNC_UNARMED", "BSSY_REARM", + "JOIN_MISMATCH", "NONMEMBER", "STUCK", "NEVER_JOINED", "SELF_BRANCH", "PC", "OP", "SHIFT", "MEM", "SMEM", + "FRAGS", "BAR_TIMEOUT", "STEPS" }; + return (e >= 0 && e < (int)(sizeof n / sizeof n[0])) ? n[e] : "?"; +} + +typedef struct { uint32_t r[256]; uint8_t p0; } WsLane; +typedef struct { int pc; uint32_t mask; int parked; /* waiting at a BAR.SYNC */ } WsFrag; +typedef struct { int valid; int target; uint32_t members, arrived; } WsBar; +typedef struct { + WsLane lane[WS_WARP]; + WsFrag frag[WS_MAX_FRAGS]; + int nfrag; + WsBar bar[WS_NBAR]; + uint32_t exited; +} WsWarp; +typedef struct { uintptr_t lo, hi; } WsRange; + +typedef struct { + const BlackwellIRProgram *p; + uint32_t cbank[256]; /* constant bank 0 words (byte offset / 4) */ + uint32_t threads; /* per CTA, a multiple of 32, <= WS_MAX_THREADS */ + uint8_t *smem; /* per-CTA shared memory buffer (poisoned at CTA start) */ + uint32_t smem_bytes; + WsRange ranges[WS_MAX_RANGES]; int nranges; /* when > 0, every global access must fall in one */ + int order; /* 0 = lowest pc first, 1 = highest pc first */ + int trace; /* print every issue of warp 0 of CTA (0,0) */ + /* results */ + int err; int err_pc; char msg[200]; + uint64_t warp_issues; /* fragment-instruction issues (the chip's cost unit for divergence) */ + uint64_t lane_issues; /* lanes active over those issues */ + uint64_t splits; /* branches that split a fragment */ + uint64_t bar_split_arrivals; /* BAR.SYNC reached by a fragment that is not the whole live warp */ + int max_frags, peak_bars; +} WsSim; + +static void ws_fail(WsSim *s, int err, int pc, const char *what) { + if (s->err) return; + s->err = err; s->err_pc = pc; + snprintf(s->msg, sizeof s->msg, "%s at pc %d: %s", ws_err_name(err), pc, what ? what : ""); +} + +static uint32_t ws_rd(const WsLane *l, int v, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v]; return ph < 0 ? 0 : l->r[ph & 0xff]; } +static uint64_t ws_rd64(const WsLane *l, int v, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v] & 0xff; return (uint64_t)l->r[ph] | ((uint64_t)l->r[(ph + 1) & 0xff] << 32); } +static void ws_wr(WsLane *l, int v, uint32_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v]; if (ph >= 0) l->r[ph & 0xff] = x; } +static void ws_wr64(WsLane *l, int v, uint64_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v] & 0xff; l->r[ph] = (uint32_t)x; l->r[(ph + 1) & 0xff] = (uint32_t)(x >> 32); } +/* sub-register operands (quad/pair lanes, BlackwellIRInsn.*_subreg) */ +static uint32_t ws_rds(const WsLane *l, int v, unsigned sub, const BlackwellIRProgram *p) { if (v < 0) return 0; int ph = p->regalloc.vreg_to_phys[v]; return ph < 0 ? 0 : l->r[(ph + sub) & 0xff]; } +static void ws_wrs(WsLane *l, int v, unsigned sub, uint32_t x, const BlackwellIRProgram *p) { if (v < 0) return; int ph = p->regalloc.vreg_to_phys[v]; if (ph >= 0) l->r[(ph + sub) & 0xff] = x; } +static float ws_u2f(uint32_t u) { float f; memcpy(&f, &u, 4); return f; } +static uint32_t ws_f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static uint32_t ws_lut3(uint32_t lut, uint32_t a, uint32_t b, uint32_t c) { + uint32_t r = 0; + for (int i = 0; i < 8; i++) if (lut >> i & 1) r |= ((i & 4) ? a : ~a) & ((i & 2) ? b : ~b) & ((i & 1) ? c : ~c); + return r; +} +static int ws_mem_ok(WsSim *s, uint64_t a, unsigned bytes, int pc) { + if (s->nranges == 0) return 1; + for (int i = 0; i < s->nranges; i++) if (a >= s->ranges[i].lo && a + bytes <= s->ranges[i].hi) return 1; + ws_fail(s, WS_E_MEM, pc, "global access outside the declared buffers"); return 0; +} +static uint32_t *ws_smem(WsSim *s, uint32_t a, int pc) { + if ((a & 3) || a + 4 > s->smem_bytes) { ws_fail(s, WS_E_SMEM, pc, "shared access past the declared size"); return NULL; } + return (uint32_t *)(s->smem + a); +} +static int ws_popc(uint32_t m) { return __builtin_popcount(m); } + +/* One lane, one non-control instruction. */ +static void ws_lane_exec(WsSim *s, WsLane *l, const BlackwellIRInsn *in, int pc, uint32_t tid, uint32_t cx, uint32_t cy) { + const BlackwellIRProgram *p = s->p; + uint32_t a = ws_rds(l, in->src1_vreg, in->src1_subreg, p), b = ws_rds(l, in->src2_vreg, in->src2_subreg, p), c = ws_rds(l, in->src3_vreg, in->src3_subreg, p); + switch (in->op) { + case BW_IR_NOP: break; + case BW_IR_S2R: ws_wrs(l, in->dst_vreg, in->dst_subreg, in->imm == BW_SR_TID_X ? tid : in->imm == BW_SR_CTAID_X ? cx : in->imm == BW_SR_CTAID_Y ? cy : 0, p); break; + case BW_IR_LDC: ws_wrs(l, in->dst_vreg, in->dst_subreg, s->cbank[(in->imm / 4) & 0xff], p); break; + case BW_IR_LDC64: ws_wr64(l, in->dst_vreg, (uint64_t)s->cbank[(in->imm / 4) & 0xff] | ((uint64_t)s->cbank[(in->imm / 4 + 1) & 0xff] << 32), p); break; + case BW_IR_LDCU64: case BW_IR_LDCU: break; /* memory descriptor: not modelled */ + case BW_IR_MOV_IMM: ws_wrs(l, in->dst_vreg, in->dst_subreg, in->imm, p); break; + case BW_IR_MOV_RZ: ws_wrs(l, in->dst_vreg, in->dst_subreg, 0, p); break; + case BW_IR_IMAD: ws_wrs(l, in->dst_vreg, in->dst_subreg, in->src2_vreg >= 0 ? a * b + c : a * in->imm + c, p); break; + case BW_IR_IMAD_WIDE: ws_wr64(l, in->dst_vreg, (uint64_t)a * in->imm + ws_rd64(l, in->src3_vreg, p), p); break; + case BW_IR_IMAD_HI_U32: ws_wrs(l, in->dst_vreg, in->dst_subreg, (uint32_t)(((uint64_t)a * b) >> 32) + c, p); break; + case BW_IR_IADD3: ws_wrs(l, in->dst_vreg, in->dst_subreg, a + b, p); break; /* the encoder's IADD3 has Rc = RZ */ + case BW_IR_SHF_R: ws_wrs(l, in->dst_vreg, in->dst_subreg, a >> (in->imm & 31), p); break; + case BW_IR_SHF_L_U32: if (b >= 32) { ws_fail(s, WS_E_SHIFT, pc, "SHF.L.U32 amount >= 32 (not chip-verified)"); return; } ws_wrs(l, in->dst_vreg, in->dst_subreg, a << b, p); break; + case BW_IR_LOP3_AND: ws_wrs(l, in->dst_vreg, in->dst_subreg, a & in->imm, p); break; + case BW_IR_LOP3_XOR: ws_wrs(l, in->dst_vreg, in->dst_subreg, a ^ b, p); break; + case BW_IR_LOP3_LUT: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_lut3(in->imm & 0xff, a, b, c), p); break; + case BW_IR_ISETP_GE_U32: l->p0 = a >= b; break; + case BW_IR_LDG_E: { uint64_t ad = ws_rd64(l, in->src1_vreg, p); if (!ws_mem_ok(s, ad, 4, pc)) return; uint32_t x; memcpy(&x, (const void *)(uintptr_t)ad, 4); ws_wrs(l, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_LDG_E_U16: { uint64_t ad = ws_rd64(l, in->src1_vreg, p); if (!ws_mem_ok(s, ad, 2, pc)) return; uint16_t x; memcpy(&x, (const void *)(uintptr_t)ad, 2); ws_wrs(l, in->dst_vreg, in->dst_subreg, x, p); break; } + case BW_IR_STG_E: { uint64_t ad = ws_rd64(l, in->src1_vreg, p); if (!ws_mem_ok(s, ad, 4, pc)) return; memcpy((void *)(uintptr_t)ad, &b, 4); break; } + case BW_IR_LDG_E_64: case BW_IR_LDG_E_128: { unsigned n = in->op == BW_IR_LDG_E_64 ? 8u : 16u; uint64_t ad = ws_rd64(l, in->src1_vreg, p) + (uint64_t)(int64_t)(int32_t)in->imm; if (!ws_mem_ok(s, ad, n, pc)) return; if (ad & (n - 1)) { ws_fail(s, WS_E_MEM, pc, "wide global load not naturally aligned"); return; } uint32_t x[4]; memcpy(x, (const void *)(uintptr_t)ad, n); for (unsigned i = 0; i < n / 4; i++) ws_wrs(l, in->dst_vreg, i, x[i], p); break; } + case BW_IR_LDS128: { uint32_t ad = a + in->imm; if (ad & 15u) { ws_fail(s, WS_E_SMEM, pc, "LDS.128 address not 16-byte aligned"); return; } for (unsigned i = 0; i < 4; i++) { uint32_t *m = ws_smem(s, ad + 4u * i, pc); if (!m) return; ws_wrs(l, in->dst_vreg, i, *m, p); } break; } + case BW_IR_LDS32: { uint32_t *m = ws_smem(s, a, pc); if (!m) return; ws_wrs(l, in->dst_vreg, in->dst_subreg, *m, p); break; } + case BW_IR_STS32: { uint32_t *m = ws_smem(s, a, pc); if (!m) return; *m = b; break; } + case BW_IR_FADD: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(ws_u2f(a) + ws_u2f(b)), p); break; + case BW_IR_FSUB: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(ws_u2f(a) - ws_u2f(b)), p); break; + case BW_IR_FMUL: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(ws_u2f(a) * ws_u2f(b)), p); break; + case BW_IR_FFMA: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(fmaf(ws_u2f(a), ws_u2f(b), ws_u2f(c))), p); break; + case BW_IR_FMNMX_MAX: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(fmaxf(ws_u2f(a), ws_u2f(b))), p); break; + case BW_IR_FMNMX_MIN: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(fminf(ws_u2f(a), ws_u2f(b))), p); break; + case BW_IR_MUFU_EX2: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(exp2f(ws_u2f(a))), p); break; + case BW_IR_MUFU_RCP: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(1.0f / ws_u2f(a)), p); break; + case BW_IR_MUFU_RSQ: ws_wrs(l, in->dst_vreg, in->dst_subreg, ws_f2u(1.0f / sqrtf(ws_u2f(a))), p); break; + default: ws_fail(s, WS_E_OP, pc, "opcode not modelled"); return; + } +} + +static int ws_pick(const WsSim *s, const WsWarp *w) { + int best = -1; + for (int i = 0; i < w->nfrag; i++) { + if (w->frag[i].mask == 0 || w->frag[i].parked) continue; + if (best < 0) { best = i; continue; } + if (s->order == 0 ? w->frag[i].pc < w->frag[best].pc : w->frag[i].pc > w->frag[best].pc) best = i; + } + return best; +} +static void ws_drop_frag(WsWarp *w, int i) { w->frag[i] = w->frag[--w->nfrag]; } +static int ws_add_frag(WsSim *s, WsWarp *w, int pc, uint32_t mask) { + if (mask == 0) return 0; + if (w->nfrag >= WS_MAX_FRAGS) { ws_fail(s, WS_E_FRAGS, pc, "too many fragments"); return -1; } + w->frag[w->nfrag].pc = pc; w->frag[w->nfrag].mask = mask; w->frag[w->nfrag].parked = 0; w->nfrag++; + if (w->nfrag > s->max_frags) s->max_frags = w->nfrag; + return 0; +} + +/* Runs one warp until it has no runnable fragment (finished, parked at BAR.SYNC, or stuck). + * Returns 1 when parked at BAR.SYNC, 0 when finished, -1 on error. */ +static int ws_run_warp(WsSim *s, WsWarp *w, uint32_t warp, uint32_t cx, uint32_t cy, int trace) { + const BlackwellIRProgram *p = s->p; + const uint32_t live_all = 0xffffffffu; + for (uint64_t guard = 0;; guard++) { + if (s->err) return -1; + if (guard > 2000000000ull) { ws_fail(s, WS_E_STEPS, -1, "step budget"); return -1; } + int fi = ws_pick(s, w); + if (fi < 0) { + /* nothing runnable: parked at the CTA barrier, finished, or lanes waiting at a BSYNC + * that can never complete */ + for (int i = 0; i < w->nfrag; i++) if (w->frag[i].parked) return 1; + for (int b = 0; b < WS_NBAR; b++) if (w->bar[b].valid) { + if (w->bar[b].arrived) { ws_fail(s, WS_E_STUCK, w->bar[b].target - 1, "lanes parked at BSYNC, the rest never arrive"); return -1; } + ws_fail(s, WS_E_NEVER_JOINED, w->bar[b].target - 1, "warp finished with a barrier still armed"); return -1; + } + return 0; + } + WsFrag *f = &w->frag[fi]; + int pc = f->pc; + if (pc < 0 || (size_t)pc >= p->count) { ws_fail(s, WS_E_PC, pc, "pc outside the program"); return -1; } + const BlackwellIRInsn *in = &p->insns[pc]; + uint32_t mask = f->mask; + s->warp_issues++; s->lane_issues += (uint64_t)ws_popc(mask); + if (trace) printf("W%u pc=%d op=%d mask=%08x frags=%d\n", warp, pc, (int)in->op, mask, w->nfrag); + uint32_t live = live_all & ~w->exited; + uint32_t pmask = 0; + for (int L = 0; L < WS_WARP; L++) if ((mask >> L & 1) && w->lane[L].p0) pmask |= 1u << L; + uint32_t cond = in->predicate_p0 ? (in->predicate_not ? (mask & ~pmask) : (mask & pmask)) : mask; + switch (in->op) { + case BW_IR_EXIT: { + w->exited |= cond; + f->mask = mask & ~cond; + if (f->mask == 0) ws_drop_frag(w, fi); else f->pc = pc + 1; + break; + } + case BW_IR_BRA: { + int32_t delta = (int32_t)in->imm; + uint32_t taken = cond, fall = mask & ~cond; + if (taken && delta == 0) { ws_fail(s, WS_E_SELF_BRANCH, pc, "branch to itself"); return -1; } + if (taken && fall) s->splits++; + if (taken == 0) { f->pc = pc + 1; break; } + if (fall == 0) { f->pc = pc + delta; break; } + f->mask = fall; f->pc = pc + 1; + if (ws_add_frag(s, w, pc + delta, taken) < 0) return -1; + break; + } + case BW_IR_BSSY: { + WsBar *b = &w->bar[in->bar_reg & (WS_NBAR - 1)]; + if (in->bar_reg >= WS_NBAR) { ws_fail(s, WS_E_OP, pc, "barrier id"); return -1; } + if (b->valid) { ws_fail(s, WS_E_BSSY_REARM, pc, "BSSY on an armed barrier"); return -1; } + b->valid = 1; b->target = pc + (int32_t)in->imm; b->members = cond; b->arrived = 0; + int armed = 0; for (int k = 0; k < WS_NBAR; k++) armed += w->bar[k].valid; + if (armed > s->peak_bars) s->peak_bars = armed; + f->pc = pc + 1; + break; + } + case BW_IR_BSYNC: { + if (in->bar_reg >= WS_NBAR) { ws_fail(s, WS_E_OP, pc, "barrier id"); return -1; } + WsBar *b = &w->bar[in->bar_reg]; + if (!b->valid) { ws_fail(s, WS_E_BSYNC_UNARMED, pc, "BSYNC without a BSSY"); return -1; } + if (cond & ~b->members) { ws_fail(s, WS_E_NONMEMBER, pc, "a lane at BSYNC did not execute the BSSY"); return -1; } + b->arrived |= cond; + uint32_t rest = mask & ~cond; /* a predicated-off lane walks on */ + if (rest) { f->mask = rest; f->pc = pc + 1; } else ws_drop_frag(w, fi); + if (b->arrived == (b->members & ~w->exited)) { + if (b->target != pc + 1) { ws_fail(s, WS_E_JOIN_MISMATCH, pc, "BSSY named a different join point"); return -1; } + uint32_t joined = b->arrived; b->valid = 0; b->arrived = 0; b->members = 0; + if (ws_add_frag(s, w, pc + 1, joined) < 0) return -1; + } + break; + } + case BW_IR_SHFL_DOWN: { + if (w->exited) { ws_fail(s, WS_E_SHFL_EXITED, pc, "SHFL on a warp with exited lanes"); return -1; } + if (mask != live) { ws_fail(s, WS_E_SHFL_SPLIT, pc, "SHFL on a split warp"); return -1; } + uint32_t src[WS_WARP]; + for (int L = 0; L < WS_WARP; L++) src[L] = ws_rd(&w->lane[L], in->src1_vreg, p); + for (int L = 0; L < WS_WARP; L++) { int from = L + (int)(in->imm & 31); ws_wr(&w->lane[L], in->dst_vreg, from < WS_WARP ? src[from] : src[L], p); } + f->pc = pc + 1; + break; + } + case BW_IR_BAR_SYNC: { + if (mask != live) s->bar_split_arrivals++; + f->parked = 1; /* released by ws_run when every live lane of the CTA has arrived */ + break; + } + default: { + for (int L = 0; L < WS_WARP; L++) if (mask >> L & 1) { + ws_lane_exec(s, &w->lane[L], in, pc, warp * WS_WARP + (uint32_t)L, cx, cy); + if (s->err) return -1; + } + f->pc = pc + 1; + break; + } + } + } +} + +/* Runs every CTA of the grid. Returns s->err (0 = clean). */ +static int ws_run(WsSim *s, uint32_t grid_x, uint32_t grid_y) { + s->err = 0; s->msg[0] = 0; s->warp_issues = s->lane_issues = s->splits = s->bar_split_arrivals = 0; s->max_frags = 0; s->peak_bars = 0; + if (!s->p || s->threads == 0 || s->threads % WS_WARP || s->threads > WS_MAX_THREADS) { ws_fail(s, WS_E_OP, -1, "bad simulator configuration"); return s->err; } + static WsWarp warps[WS_MAX_WARPS]; + uint32_t nw = s->threads / WS_WARP; + for (uint32_t cy = 0; cy < grid_y && !s->err; cy++) for (uint32_t cx = 0; cx < grid_x && !s->err; cx++) { + memset(warps, 0, sizeof(WsWarp) * nw); + if (s->smem && s->smem_bytes) for (uint32_t i = 0; i + 4 <= s->smem_bytes; i += 4) { uint32_t poison = 0xfeedfaceu; memcpy(s->smem + i, &poison, 4); } + for (uint32_t w = 0; w < nw; w++) { warps[w].nfrag = 1; warps[w].frag[0].pc = 0; warps[w].frag[0].mask = 0xffffffffu; warps[w].frag[0].parked = 0; } + int trace = s->trace && cx == 0 && cy == 0; + /* Barrier phases: every warp runs until all of its fragments are parked at BAR.SYNC or it + * has finished (exited lanes do not hold the barrier up: INFERRED, see WS_E_BAR_SPLIT). + * Then every parked fragment is released and the next phase starts. */ + for (int phase = 0; ; phase++) { + int parked = 0; + for (uint32_t w = 0; w < nw && !s->err; w++) { + if (warps[w].nfrag == 0) continue; + int r = ws_run_warp(s, &warps[w], w, cx, cy, trace && w == 0); + if (r < 0) break; + if (r == 1) parked++; + } + if (s->err || parked == 0) break; /* error, or every warp finished */ + for (uint32_t w = 0; w < nw; w++) for (int i = 0; i < warps[w].nfrag; i++) + if (warps[w].frag[i].parked) { warps[w].frag[i].parked = 0; warps[w].frag[i].pc++; } + if (phase > 100000) { ws_fail(s, WS_E_BAR_TIMEOUT, -1, "barrier phases"); break; } + } + } + return s->err; +} + +#endif /* BW_WARP_SIM_H */ diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/device.txt new file mode 100644 index 000000000..882d1f44b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/device.txt @@ -0,0 +1,5 @@ +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 +omega 710d438cac6c1159b4ca2b39af49812ce08f554b (0 uncommitted paths) +physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +2026-10-15T01:13:00Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/gpu_reconv_test.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/gpu_reconv_test.c new file mode 100644 index 000000000..1711e60c5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/gpu_reconv_test.c @@ -0,0 +1,472 @@ +/* gpu_reconv_test: structured warp reconvergence (omega #308) on Omega's own Blackwell codegen. + * + * ./gpu_reconv_test --host-only encoder golden words, region bookkeeping, codegen refusals, + * nvdisasm listing (when /usr/local/cuda/bin/nvdisasm exists), + * every probe kernel through the SIMT warp simulator against + * the host oracle under both fragment orders, the mutation + * controls, scoreboard and control-edge walks. No device. + * ./gpu_reconv_test --out receipt.json chip gate: host part first (a kernel the simulator rejects + * never gets chip time), then every probe on the chip against + * the oracle, bit-exact, then each math mutant must be caught. + * --observe-dropped-join chip only, optional: also launch the dropped-BSYNC mutant of + * one probe and record what the chip did (an observation, not + * a gate; the simulator rejects that kernel first). + * + * Probes (src/omega_gpu_elementwise_api.c, gen_rc_*): R3 diamond, R4 loop break, R5 nested, + * R6 lanes past the end with STS/BAR/LDS + SHFL, and the 16-deep barrier-register bound. + * Oracle: rc_oracle below; every comparison is exact (u32). Launcher chunking (64 CTAs x 128 + * threads per launch, P0 = words in the chunk) is part of the oracle, so a clamp to the wrong + * chunk end shows up. */ +#include "omega_gpu_elementwise_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_bw_reconv.h" +#include "omega_gpu_session.h" +#include "bw_warp_sim.h" +#include +#include +#include +#include +#include + +static int g_checks, g_failed; +#define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0) + +static uint32_t lcg(uint32_t *s) { *s = *s * 1664525u + 1013904223u; return *s; } + +typedef struct { OmegaGpuEwOp op; const char *name; const char *reg; } Probe; +static const Probe PROBES[] = { + { OMEGA_GPU_EW_RC_DIAMOND, "rc_diamond", "R3" }, + { OMEGA_GPU_EW_RC_LOOPBREAK, "rc_loopbreak", "R4" }, + { OMEGA_GPU_EW_RC_NESTED, "rc_nested", "R5" }, + { OMEGA_GPU_EW_RC_EXIT_BAR, "rc_exit_bar", "R6" }, + { OMEGA_GPU_EW_RC_DEPTH16, "rc_depth16", "B0..B15" }, +}; +#define NPROBES (sizeof PROBES / sizeof PROBES[0]) +/* 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) + +/* ----------------------------------------------------------------- oracle */ +static uint32_t count_loop(uint32_t x, uint32_t y, int math, uint32_t *v_out) { + uint32_t v = x & 255u, st = (y & 15u) + 1u, cnt = 0, bound = math ? 255u : 256u; + while (v < bound) { v += st; cnt++; } + *v_out = v; return cnt; +} +static uint32_t rc_r(OmegaGpuEwOp op, int math, uint32_t x, uint32_t y, uint32_t partner_x) { + uint32_t v, cnt; + switch (op) { + case OMEGA_GPU_EW_RC_DIAMOND: + if (x >= y) { uint32_t t = 3u * x + y, u = t ^ x, r = 5u * u + 1u; r += r >> 3; return math ? r + 1u : r; } + return x + 1u; + case OMEGA_GPU_EW_RC_LOOPBREAK: cnt = count_loop(x, y, math, &v); return cnt * 256u + v; + case OMEGA_GPU_EW_RC_NESTED: if (x & 1u) return 7u; cnt = count_loop(x, y, math, &v); return cnt * 256u + v + 100u; + case OMEGA_GPU_EW_RC_EXIT_BAR: return 3u * x + (partner_x | 1u); + case OMEGA_GPU_EW_RC_DEPTH16: return x + (x < y ? (uint32_t)BW_RECONV_MAX_BAR : 0u); + default: return 0xdeadbeefu; + } +} +static void rc_oracle(OmegaGpuEwOp op, int math, uint32_t n, const uint32_t *a, const uint32_t *b, uint32_t *out) { + for (uint32_t i0 = 0; i0 < n; i0 += CHUNK) { + uint32_t ni = n - i0 < CHUNK ? n - i0 : CHUNK; + uint32_t threads = ((ni + OMEGA_GPU_EW_THREADS - 1) / OMEGA_GPU_EW_THREADS) * OMEGA_GPU_EW_THREADS; + uint32_t *r = malloc((size_t)threads * 4); + for (uint32_t t = 0; t < threads; t++) { + uint32_t idx = t < ni ? t : ni - 1, pt = t ^ 1u, pidx = pt < ni ? pt : ni - 1; + r[t] = rc_r(op, math, a[i0 + idx], b[i0 + idx], a[i0 + pidx]); + } + for (uint32_t i = 0; i < ni; i++) { uint32_t nb = (i & 31u) == 31u ? i : i + 1u; out[i0 + i] = r[i] + 4099u * r[nb]; } + free(r); + } +} +/* An LCG's low bits cycle quickly (bit 0 has period 2), and the probes key on low bits + * (x & 255, y & 15, x & 1), so each draw goes through a mixing step. */ +static uint32_t mix(uint32_t r) { r ^= r >> 16; r *= 0x45d9f3bu; r ^= r >> 16; r *= 0x45d9f3bu; r ^= r >> 16; return r; } +static void fill(uint32_t *a, uint32_t *b, uint32_t n, uint32_t seed) { + for (uint32_t i = 0; i < n; i++) { a[i] = mix(lcg(&seed)); b[i] = mix(lcg(&seed)); } +} +static size_t diff_count(const uint32_t *got, const uint32_t *want, uint32_t n, uint32_t *first) { + size_t bad = 0; *first = n; + for (uint32_t i = 0; i < n; i++) if (got[i] != want[i]) { if (!bad) *first = i; bad++; } + return bad; +} + +/* --------------------------------------------------------- simulator driver */ +static uint8_t g_smem[1024]; +/* Mirrors run_1d: 64 CTAs x 128 threads per launch, P0 = words in the chunk. Returns the + * simulator's error code (0 clean); the output words are written to out. */ +static int ws_probe(const BlackwellIRProgram *p, uint32_t n, const uint32_t *a, const uint32_t *b, uint32_t *out, int order, WsSim *stats) { + for (uint32_t i = 0; i < n; i++) out[i] = 0xffbadbadu; + uint64_t wi = 0, li = 0, sp = 0; int mf = 0, pb = 0; + for (uint32_t i0 = 0; i0 < n; i0 += CHUNK) { + uint32_t ni = n - i0 < CHUNK ? n - i0 : CHUNK; + WsSim s; memset(&s, 0, sizeof s); + s.p = p; s.threads = OMEGA_GPU_EW_THREADS; s.smem = g_smem; s.smem_bytes = sizeof g_smem; s.order = order; + uint64_t aa = (uintptr_t)(a + i0), ba = (uintptr_t)(b + i0), ca = (uintptr_t)(out + i0); + s.cbank[0x380 / 4] = (uint32_t)aa; s.cbank[0x380 / 4 + 1] = (uint32_t)(aa >> 32); + s.cbank[0x388 / 4] = (uint32_t)ba; s.cbank[0x388 / 4 + 1] = (uint32_t)(ba >> 32); + s.cbank[0x390 / 4] = (uint32_t)ca; s.cbank[0x390 / 4 + 1] = (uint32_t)(ca >> 32); + s.cbank[0x398 / 4] = ni; + s.ranges[0] = (WsRange){ (uintptr_t)aa, (uintptr_t)aa + (size_t)ni * 4 }; + s.ranges[1] = (WsRange){ (uintptr_t)ba, (uintptr_t)ba + (size_t)ni * 4 }; + s.ranges[2] = (WsRange){ (uintptr_t)ca, (uintptr_t)ca + (size_t)ni * 4 }; + s.nranges = 3; + int err = ws_run(&s, (ni + OMEGA_GPU_EW_THREADS - 1) / OMEGA_GPU_EW_THREADS, 1); + wi += s.warp_issues; li += s.lane_issues; sp += s.splits; + if (s.max_frags > mf) mf = s.max_frags; + if (s.peak_bars > pb) pb = s.peak_bars; + if (err) { if (stats) *stats = s; return err; } + } + if (stats) { memset(stats, 0, sizeof *stats); stats->warp_issues = wi; stats->lane_issues = li; stats->splits = sp; stats->max_frags = mf; stats->peak_bars = pb; } + return 0; +} +static int codegen(OmegaGpuEwOp op, int mutant, BlackwellIRProgram *p, OmegaBlackwellKernel *k) { + memset(k, 0, sizeof *k); + return omega_gpu_elementwise_codegen_ir(op, mutant, p, k); +} +static int is_reconv_err(int e) { + return e == WS_E_SHFL_SPLIT || e == WS_E_BAR_SPLIT || e == WS_E_STUCK || e == WS_E_NEVER_JOINED || e == WS_E_JOIN_MISMATCH || + e == WS_E_BSYNC_UNARMED || e == WS_E_BSSY_REARM || e == WS_E_NONMEMBER || e == WS_E_SHFL_EXITED; +} + +/* --------------------------------------------------------- static walks */ +/* Scoreboard walk (as bench/prime_race/tests/gb10_sieve_host_test.c sb_hazards): a destination + * written under write scoreboard 0 is in flight until a wait mask that includes it. */ +static int sb_hazards(const BlackwellIRProgram *p) { + int inflight[64], n = 0, bad = 0; + for (size_t i = 0; i < p->count; i++) { + const BlackwellIRInsn *in = &p->insns[i]; + uint32_t c = in->control; + if ((c >> 20) & 1u) n = 0; + const int src[3] = { in->src1_vreg, in->src2_vreg, in->src3_vreg }; + for (int s = 0; s < 3; s++) for (int k = 0; src[s] >= 0 && k < n; k++) if (inflight[k] == src[s]) bad++; + if (c != 0 && ((c >> 14) & 7u) == 0 && in->dst_vreg >= 0 && n < 64) inflight[n++] = in->dst_vreg; + } + return bad; +} +/* Control-edge walk: the straight-line scoreboard reasoning above holds only if nothing is in + * flight across a branch, barrier op or exit. Every BRA / EXIT / BSSY / BSYNC must wait on every + * scoreboard set since the last wait. Returns the number of control ops that do not. */ +static int edge_waits(const BlackwellIRProgram *p) { + uint32_t pending = 0; int bad = 0; + for (size_t i = 0; i < p->count; i++) { + const BlackwellIRInsn *in = &p->insns[i]; + uint32_t c = in->control, wait = (c >> 20) & 63u, wb = (c >> 14) & 7u, rb = (c >> 17) & 7u; + pending &= ~wait; + if (in->op == BW_IR_BRA || in->op == BW_IR_EXIT || in->op == BW_IR_BSSY || in->op == BW_IR_BSYNC) { if (pending) bad++; } + if (wb != 7u) pending |= 1u << wb; + if (rb != 7u) pending |= 1u << rb; + } + return bad; +} +static int count_op(const BlackwellIRProgram *p, BlackwellIROpcode op, int bar) { + int n = 0; + for (size_t i = 0; i < p->count; i++) if (p->insns[i].op == op && (bar < 0 || p->insns[i].bar_reg == bar)) n++; + return n; +} +static int find_op(const BlackwellIRProgram *p, BlackwellIROpcode op, int nth) { + for (size_t i = 0; i < p->count; i++) if (p->insns[i].op == op && nth-- == 0) return (int)i; + return -1; +} + +/* --------------------------------------------------------- nvdisasm listing */ +static int nvdisasm_bytes(const uint8_t *code, size_t bytes, const char *name, const char *const *must, int n_must) { + const char *nv = "/usr/local/cuda/bin/nvdisasm"; + if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } + char bin[96], lst[96], cmd[320]; + snprintf(bin, sizeof bin, "/tmp/omega_rc_%s_%d.bin", name, (int)getpid()); + snprintf(lst, sizeof lst, "/tmp/omega_rc_%s_%d.sass", name, (int)getpid()); + FILE *f = fopen(bin, "wb"); if (!f) return -1; + fwrite(code, 1, bytes, f); fclose(f); + snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); + int rc = system(cmd); + FILE *l = fopen(lst, "r"); if (!l) return -1; + char line[512]; int seen[16] = {0}, bad = 0, insns = 0; + while (fgets(line, sizeof line, l)) { + if (!strstr(line, "/*0")) continue; + insns++; + if (strstr(line, "?") || strstr(line, "error")) bad++; + for (int i = 0; i < n_must && i < 16; i++) if (strstr(line, must[i])) seen[i] = 1; + } + fclose(l); + int miss = 0; + for (int i = 0; i < n_must && i < 16; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } + printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); + unlink(bin); + return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; +} +static int nvdisasm_kernel(OmegaGpuEwOp op, int mutant, const char *name, const char *const *must, int n_must) { + BlackwellIRProgram *p = calloc(1, sizeof *p); OmegaBlackwellKernel k; + if (!p || codegen(op, mutant, p, &k) != OMEGA_GPU_EW_OK) { free(p); return -1; } + int rc = nvdisasm_bytes(k.code, k.code_size, name, must, n_must); + free(k.code); free(p); + return rc; +} + +/* --------------------------------------------------------- host part */ +typedef struct { const char *name; uint64_t warp_issues, lane_issues, splits; int max_frags, peak_bars; } Model; +static Model g_model[NPROBES * 2]; static int g_nmodel; + +static int host_part(void) { + int before = g_failed; + /* 1. encoder golden words (nvcc 13.0.88 -arch=sm_121 oracle, docs/gpu-reconvergence-308.md) */ + int fx = omega_blackwell_verify_codegen_fixtures_reconv(); + CHECK(fx == 0, "encoder golden words BSSY / BSYNC and refusals (rc %d)", fx); + + /* 2. region bookkeeping on a hand-built program */ + { + BlackwellIRProgram *p = calloc(1, sizeof *p); BwRegions r; memset(&r, 0, sizeof r); + omega_bw_ir_init(p); + BlackwellIRInsn in; memset(&in, 0, sizeof in); in.dst_vreg = in.src1_vreg = in.src2_vreg = in.src3_vreg = -1; + in.op = BW_IR_BSSY; in.bar_reg = 0; in.imm = 2; omega_bw_ir_append(p, &in); /* 0 */ + CHECK(bw_regions_next_bar(&r) == 0 && bw_regions_begin(&r, 0) == 0, "region begin returns B0"); + in.op = BW_IR_BRA; in.imm = 1; in.predicate_p0 = true; omega_bw_ir_append(p, &in); /* 1 */ + CHECK(bw_regions_exit(&r, 1) == 0, "region exit recorded"); + in.op = BW_IR_NOP; in.predicate_p0 = false; omega_bw_ir_append(p, &in); /* 2 */ + in.op = BW_IR_BSYNC; in.bar_reg = 0; omega_bw_ir_append(p, &in); /* 3 */ + CHECK(bw_regions_join(&r, p, 3) == 0, "region join returns B0"); + CHECK(p->insns[0].imm == 4 && p->insns[1].imm == 2, "join patched BSSY to the insn after BSYNC (%u) and the exit to the BSYNC (%u)", p->insns[0].imm, p->insns[1].imm); + CHECK(bw_regions_join(&r, p, 3) == -1, "join with no open region refused"); + CHECK(bw_regions_exit(&r, 1) == -1, "exit with no open region refused"); + /* exits table full */ + memset(&r, 0, sizeof r); bw_regions_begin(&r, 0); + int ok = 1; for (int i = 0; i < BW_RECONV_MAX_EXITS; i++) ok &= bw_regions_exit(&r, 1) == 0; + CHECK(ok && bw_regions_exit(&r, 1) == -1, "exit table bound (%d) fails closed", BW_RECONV_MAX_EXITS); + /* join index inconsistent: BSYNC before BSSY, wrong barrier */ + memset(&r, 0, sizeof r); bw_regions_begin(&r, 3); + CHECK(bw_regions_join(&r, p, 0) == -1, "join with BSSY after BSYNC refused"); + memset(&r, 0, sizeof r); bw_regions_begin(&r, 0); p->insns[3].bar_reg = 1; + CHECK(bw_regions_join(&r, p, 3) == -1, "join with the wrong barrier register refused"); + p->insns[3].bar_reg = 0; + /* depth bound */ + memset(&r, 0, sizeof r); ok = 1; + for (int d = 0; d < BW_RECONV_MAX_DEPTH; d++) ok &= bw_regions_next_bar(&r) == d && bw_regions_begin(&r, d) == d; + CHECK(ok && bw_regions_next_bar(&r) == -1 && bw_regions_begin(&r, 99) == -1, "nesting bound %d: the next begin fails closed", BW_RECONV_MAX_DEPTH); + free(p); + } + + /* 3. codegen: production probes build, refusals refuse, mutants differ */ + static const struct { OmegaGpuEwOp op; const char *name; } refuse[] = { + { OMEGA_GPU_EW_RC_REFUSE_DEPTH17, "17 nested regions" }, { OMEGA_GPU_EW_RC_REFUSE_EXIT_SHFL, "EXIT then BAR/SHFL" }, + { OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION, "EXIT inside a region" }, { OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION, "BAR.SYNC inside a region" }, + { OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION, "SHFL inside a region" }, { OMEGA_GPU_EW_RC_REFUSE_UNCLOSED, "region never joined" }, + { OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY, "BSYNC with no BSSY" }, + }; + for (size_t i = 0; i < sizeof refuse / sizeof refuse[0]; i++) { + BlackwellIRProgram *p = calloc(1, sizeof *p); OmegaBlackwellKernel k; + int rc = codegen(refuse[i].op, 0, p, &k); + CHECK(rc == OMEGA_GPU_EW_CODEGEN_FAIL, "%s refused at codegen (rc %s)", refuse[i].name, omega_gpu_elementwise_rc_name(rc)); + if (rc == OMEGA_GPU_EW_OK) free(k.code); + free(p); + } + for (size_t i = 0; i < NPROBES; i++) { + BlackwellIRProgram *p = calloc(1, sizeof *p); OmegaBlackwellKernel k; + int rc = codegen(PROBES[i].op, 0, p, &k); + CHECK(rc == OMEGA_GPU_EW_OK && k.gpr_count <= 64, "%s builds (rc %s, %zu insns, %u gprs)", PROBES[i].name, omega_gpu_elementwise_rc_name(rc), k.insn_count, k.gpr_count); + if (rc != OMEGA_GPU_EW_OK) { free(p); continue; } + int nb = count_op(p, BW_IR_BSSY, -1), ns = count_op(p, BW_IR_BSYNC, -1); + int want = PROBES[i].op == OMEGA_GPU_EW_RC_NESTED ? 2 : PROBES[i].op == OMEGA_GPU_EW_RC_DEPTH16 ? BW_RECONV_MAX_BAR : 1; + CHECK(nb == want && ns == want, "%s has %d BSSY and %d BSYNC (want %d)", PROBES[i].name, nb, ns, want); + if (PROBES[i].op == OMEGA_GPU_EW_RC_DEPTH16) { + int each = 1; for (int b = 0; b < BW_RECONV_MAX_BAR; b++) each &= count_op(p, BW_IR_BSSY, b) == 1 && count_op(p, BW_IR_BSYNC, b) == 1; + CHECK(each, "depth16 uses every barrier register B0..B15 exactly once"); + } + CHECK(sb_hazards(p) == 0, "%s scoreboard walk clean", PROBES[i].name); + CHECK(edge_waits(p) == 0, "%s every control op waits on everything in flight", PROBES[i].name); + printf("codegen %s: %zu insns, %u gprs, %d regions\n", PROBES[i].name, p->count, k.gpr_count, nb); + uint8_t d0[32]; memcpy(d0, k.code_digest, 32); free(k.code); + for (int m = 1; m <= 3; m++) { + BlackwellIRProgram *mp = calloc(1, sizeof *mp); OmegaBlackwellKernel mk; + int mrc = codegen(PROBES[i].op, m, mp, &mk); + int same_ok = m == 1 && PROBES[i].op == OMEGA_GPU_EW_RC_DEPTH16; /* depth16 has no math mutant */ + CHECK(mrc == OMEGA_GPU_EW_OK && ((memcmp(d0, mk.code_digest, 32) != 0) != same_ok), "%s mutant %d builds and %s (rc %s)", PROBES[i].name, m, same_ok ? "equals production" : "differs", omega_gpu_elementwise_rc_name(mrc)); + if (mrc == OMEGA_GPU_EW_OK) { + if (m == 2) CHECK(count_op(mp, BW_IR_BSYNC, -1) == 0 && count_op(mp, BW_IR_BSSY, -1) == nb, "%s mutant 2 has no BSYNC", PROBES[i].name); + if (m == 3) CHECK(count_op(mp, BW_IR_BSYNC, -1) == ns, "%s mutant 3 keeps its BSYNCs", PROBES[i].name); + free(mk.code); + } + free(mp); + } + free(p); + } + /* the four regioned sieves build too (their sweep runs in gb10_sieve_host_test) */ + for (int op = OMEGA_GPU_EW_PRIME_SIEVE_DIV1; op <= OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2; op++) { + BlackwellIRProgram *p = calloc(1, sizeof *p); OmegaBlackwellKernel k; + int rc = codegen((OmegaGpuEwOp)op, 0, p, &k); + int staged = op == OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV1 || op == OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2; + int nb = rc == OMEGA_GPU_EW_OK ? count_op(p, BW_IR_BSSY, -1) : -1, want = (op >= OMEGA_GPU_EW_PRIME_SIEVE_DIV2 ? 2 : 1) + staged; + CHECK(rc == OMEGA_GPU_EW_OK && k.gpr_count <= 64 && nb == want && edge_waits(p) == 0, "sieve op %d builds with %d regions (rc %s, %u gprs)", op, nb, omega_gpu_elementwise_rc_name(rc), k.gpr_count); + if (rc == OMEGA_GPU_EW_OK) free(k.code); + free(p); + } + + /* 4. nvdisasm: the words decode as BSSY/BSYNC on the real barrier registers, and the predicated + * and B15 forms the encoder can produce decode too (built by hand: encode_one) */ + { + static const char *const m0[] = { "BSSY", "BSYNC", "B0", "SHFL.DOWN", "@P0 BRA" }; + CHECK(nvdisasm_kernel(OMEGA_GPU_EW_RC_DIAMOND, 0, "diamond", m0, 5) == 0, "diamond listing decodes with BSSY/BSYNC B0"); + static const char *const m1[] = { "BSSY", "BSYNC", "B15", "B7" }; + CHECK(nvdisasm_kernel(OMEGA_GPU_EW_RC_DEPTH16, 0, "depth16", m1, 4) == 0, "depth16 listing decodes with B15"); + static const char *const m2[] = { "BSSY", "B1", "BSYNC" }; + CHECK(nvdisasm_kernel(OMEGA_GPU_EW_PRIME_SIEVE_DIV2, 0, "sieve_div2", m2, 3) == 0, "nested sieve listing decodes with B1"); + uint8_t code[64]; uint32_t w[4]; BlackwellIRInsn in; memset(&in, 0, sizeof in); in.dst_vreg = in.src1_vreg = in.src2_vreg = in.src3_vreg = -1; + in.op = BW_IR_BSSY; in.bar_reg = 3; in.imm = 2; in.predicate_p0 = true; omega_blackwell_encode_one(&in, w); memcpy(code, w, 16); + in.op = BW_IR_BSYNC; in.bar_reg = 3; in.predicate_p0 = true; in.predicate_not = true; omega_blackwell_encode_one(&in, w); memcpy(code + 16, w, 16); + in.op = BW_IR_BSYNC; in.bar_reg = 15; in.predicate_p0 = false; in.predicate_not = false; omega_blackwell_encode_one(&in, w); memcpy(code + 32, w, 16); + in.op = BW_IR_EXIT; omega_blackwell_encode_one(&in, w); memcpy(code + 48, w, 16); + static const char *const m3[] = { "@P0 BSSY", "B3", "@!P0 BSYNC", "BSYNC.RECONVERGENT B15" }; + CHECK(nvdisasm_bytes(code, 64, "forms", m3, 4) == 0, "predicated BSSY/BSYNC and B15 decode"); + } + + /* 5. simulator: every probe, every n, both fragment orders, exact against the oracle */ + 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; } + int fails = 0; uint64_t cases = 0; + for (size_t j = 0; j < NNS; j++) for (int order = 0; order < 2; order++) { + uint32_t n = NS[j]; fill(a, b, n, 0x308u + n * 7u + (uint32_t)order); + rc_oracle(PROBES[i].op, 0, n, a, b, want); + WsSim st; int err = ws_probe(p, n, a, b, got, order, &st); + uint32_t first; size_t bad = diff_count(got, want, n, &first); + cases++; + if (err || bad) { fails++; printf(" %s n=%u order=%d: sim %s, %zu words differ (first %u: got %08x want %08x)\n", PROBES[i].name, n, order, err ? st.msg : "clean", bad, first, first < n ? got[first] : 0, first < n ? want[first] : 0); } + if (n == 4096) { Model *m = &g_model[g_nmodel++]; m->name = PROBES[i].name; m->warp_issues = st.warp_issues; m->lane_issues = st.lane_issues; m->splits = st.splits; m->max_frags = st.max_frags; m->peak_bars = st.peak_bars; } + } + CHECK(fails == 0, "%s simulator vs oracle: %d of %" PRIu64 " cases differ", PROBES[i].name, fails, cases); + /* math mutant: simulator clean, result wrong (the oracle sees it) */ + BlackwellIRProgram *mp = calloc(1, sizeof *mp); OmegaBlackwellKernel mk; + if (codegen(PROBES[i].op, 1, mp, &mk) == OMEGA_GPU_EW_OK) { + uint32_t n = 1000; fill(a, b, n, 0x1001u); rc_oracle(PROBES[i].op, 0, n, a, b, want); + WsSim st; int err = ws_probe(mp, n, a, b, got, 0, &st); uint32_t first; size_t bad = diff_count(got, want, n, &first); + if (PROBES[i].op == OMEGA_GPU_EW_RC_EXIT_BAR) CHECK(err == WS_E_SHFL_EXITED || err == WS_E_BAR_SPLIT, "R6 early-exit kernel: simulator reports SHFL_EXITED (got %s)", st.msg); + else if (PROBES[i].op == OMEGA_GPU_EW_RC_DEPTH16) CHECK(err == 0 && bad == 0, "depth16 'mutant 1' is the production kernel: clean and exact (err %d bad %zu)", err, bad); + else CHECK(err == 0 && bad > 0, "%s math mutant: simulator clean, %zu words differ (err %d)", PROBES[i].name, bad, err); + free(mk.code); + } + free(mp); + /* dropped join and corrupted target: the simulator must reject both, in both orders */ + for (int m = 2; m <= 3; m++) for (int order = 0; order < 2; order++) { + BlackwellIRProgram *xp = calloc(1, sizeof *xp); OmegaBlackwellKernel xk; + if (codegen(PROBES[i].op, m, xp, &xk) == OMEGA_GPU_EW_OK) { + uint32_t n = 1000; fill(a, b, n, 0x2002u + (uint32_t)m); + WsSim st; int err = ws_probe(xp, n, a, b, got, order, &st); + CHECK(is_reconv_err(err), "%s mutant %d (%s) order %d rejected by the simulator: %s", PROBES[i].name, m, m == 2 ? "BSYNC dropped" : "BSSY target corrupted", order, err ? st.msg : "NOT CAUGHT"); + if (m == 3) CHECK(err == WS_E_JOIN_MISMATCH || err == WS_E_STUCK, "%s corrupted target shows as JOIN_MISMATCH or STUCK (%s)", PROBES[i].name, ws_err_name(err)); + free(xk.code); + } + free(xp); + } + free(k.code); free(p); + } + /* 6. hand mutations of the production diamond (controls on the simulator itself, independent of + * the emitter's mutant hooks): exit jumping past the BSYNC, BSYNC on the wrong barrier, a BSSY + * on an armed barrier. And the unmodified program as the positive control. */ + { + BlackwellIRProgram *p = calloc(1, sizeof *p), *q = calloc(1, sizeof *q); OmegaBlackwellKernel k; + if (codegen(OMEGA_GPU_EW_RC_DIAMOND, 0, p, &k) == OMEGA_GPU_EW_OK) { + uint32_t n = 500; fill(a, b, n, 0x3003u); WsSim st; + int bssy = find_op(p, BW_IR_BSSY, 0), bsync = find_op(p, BW_IR_BSYNC, 0), ex = -1; + for (int i = bssy + 1; i < bsync; i++) if (p->insns[i].op == BW_IR_BRA && !p->insns[i].predicate_p0) ex = i; + CHECK(bssy >= 0 && bsync > bssy && ex > bssy, "diamond shape: BSSY %d, exit %d, BSYNC %d", bssy, ex, bsync); + CHECK(ws_probe(p, n, a, b, got, 0, &st) == 0, "positive control: untouched diamond runs clean"); + *q = *p; q->insns[ex].imm += 1; /* exit lands after the BSYNC */ + int e1 = ws_probe(q, n, a, b, got, 0, &st); CHECK(is_reconv_err(e1), "exit past the BSYNC rejected: %s", st.msg); + *q = *p; q->insns[bsync].bar_reg = 1; /* BSYNC on a barrier nobody armed */ + int e2 = ws_probe(q, n, a, b, got, 0, &st); CHECK(e2 == WS_E_BSYNC_UNARMED, "BSYNC on an unarmed barrier rejected: %s", st.msg); + *q = *p; q->insns[bsync].op = BW_IR_NOP; /* join dropped by hand */ + int e3 = ws_probe(q, n, a, b, got, 0, &st); CHECK(is_reconv_err(e3), "join replaced by NOP rejected: %s", st.msg); + *q = *p; q->insns[bssy].imm += 1; /* names the wrong join */ + int e4 = ws_probe(q, n, a, b, got, 0, &st); CHECK(e4 == WS_E_JOIN_MISMATCH, "wrong join target rejected: %s", st.msg); + *q = *p; q->insns[bssy + 1] = p->insns[bssy]; /* second BSSY on the armed barrier (overwrites the ISETP) */ + int e5 = ws_probe(q, n, a, b, got, 0, &st); CHECK(e5 == WS_E_BSSY_REARM, "BSSY on an armed barrier rejected: %s", st.msg); + free(k.code); + } + free(p); free(q); + } + free(a); free(b); free(got); free(want); + for (int i = 0; i < g_nmodel; i++) printf("model %s n=4096: warp_issues=%" PRIu64 " lane_util=%.3f splits=%" PRIu64 " max_frags=%d peak_bars=%d\n", g_model[i].name, g_model[i].warp_issues, g_model[i].warp_issues ? (double)g_model[i].lane_issues / (32.0 * (double)g_model[i].warp_issues) : 0.0, g_model[i].splits, g_model[i].max_frags, g_model[i].peak_bars); + return g_failed == before ? 0 : -1; +} + +/* --------------------------------------------------------- chip part */ +static int chip(const char *out_path, int observe) { + FILE *out = out_path ? fopen(out_path, "w") : NULL; + 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(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); + rc_oracle(PROBES[i].op, 0, n, a, b, want); + OmegaGpuEwInfo info; memset(&info, 0, sizeof info); + int rc = omega_gpu_reconv_probe_u32(PROBES[i].op, n, a, b, got, &info); + uint32_t fi; size_t bad = rc == OMEGA_GPU_EW_OK ? diff_count(got, want, n, &fi) : n; + int pass = rc == OMEGA_GPU_EW_OK && bad == 0; + CHECK(pass, "%s n=%u chip rc=%s violations=%zu err=\"%s\"", PROBES[i].name, n, omega_gpu_elementwise_rc_name(rc), bad, omega_gpu_elementwise_last_error()); + if (out) fprintf(out, "%s{\"op\":\"%s\",\"regression\":\"%s\",\"n\":%u,\"rc\":\"%s\",\"violations\":%zu,\"pass\":%s,\"chip_elapsed_ns\":%" PRIu64 ",\"chip_calls\":%u,\"unwritten_words\":%u,\"cache_hit\":%s}", + first ? "" : ",", PROBES[i].name, PROBES[i].reg, n, omega_gpu_elementwise_rc_name(rc), bad, pass ? "true" : "false", info.elapsed_ns, info.chip_calls, info.unwritten_words, info.kernel_cache_hit ? "true" : "false"); + first = 0; + if (!pass) { printf("STOP: %s failed on the chip at n=%u; no further launches of this probe\n", PROBES[i].name, n); break; } + } + } + if (out) fprintf(out, "],\"mutants\":["); + first = 1; + for (size_t i = 0; i < NPROBES; i++) { + if (PROBES[i].op == OMEGA_GPU_EW_RC_DEPTH16) continue; /* no math mutant */ + uint32_t n = 1000; fill(a, b, n, 0x6060u); rc_oracle(PROBES[i].op, 0, n, a, b, want); + omega_gpu_elementwise_test_set_mutant((int)PROBES[i].op); + /* R6's math mutant is the early-exit kernel: the emitter refuses it on the launch path + * (the bypass exists only for codegen_ir), so the catch is CODEGEN_FAIL: no undefined + * SHFL ever reaches the chip. */ + OmegaGpuEwInfo info; memset(&info, 0, sizeof info); + int rc = omega_gpu_reconv_probe_u32(PROBES[i].op, n, a, b, got, &info); + uint32_t fi; size_t bad = rc == OMEGA_GPU_EW_OK ? diff_count(got, want, n, &fi) : n; + int caught = rc != OMEGA_GPU_EW_OK || bad > 0; + omega_gpu_elementwise_test_set_mutant(0); + CHECK(caught, "%s math mutant caught (rc %s, violations %zu)", PROBES[i].name, omega_gpu_elementwise_rc_name(rc), bad); + if (PROBES[i].op == OMEGA_GPU_EW_RC_EXIT_BAR) CHECK(rc == OMEGA_GPU_EW_CODEGEN_FAIL, "R6 early-exit form refused at codegen on the launch path (rc %s)", omega_gpu_elementwise_rc_name(rc)); + if (out) fprintf(out, "%s{\"op\":\"%s\",\"mutant\":1,\"rc\":\"%s\",\"violations\":%zu,\"caught\":%s}", first ? "" : ",", PROBES[i].name, omega_gpu_elementwise_rc_name(rc), bad, caught ? "true" : "false"); + first = 0; + } + if (out) fprintf(out, "],\"observations\":["); + if (observe) { + /* The dropped-join kernel (rejected by the simulator above) on the chip once, small n: + * recorded as an observation of what the hardware does without the BSYNC. Not a gate. */ + uint32_t n = 1000; fill(a, b, n, 0x7070u); rc_oracle(OMEGA_GPU_EW_RC_DIAMOND, 0, n, a, b, want); + omega_gpu_elementwise_test_set_mutant_level(OMEGA_GPU_EW_RC_DIAMOND, 2); + OmegaGpuEwInfo info; memset(&info, 0, sizeof info); + int rc = omega_gpu_reconv_probe_u32(OMEGA_GPU_EW_RC_DIAMOND, n, a, b, got, &info); + uint32_t fi; size_t bad = rc == OMEGA_GPU_EW_OK ? diff_count(got, want, n, &fi) : n; + omega_gpu_elementwise_test_set_mutant(0); + printf("observation: diamond with the BSYNC dropped, n=%u: rc=%s, %zu of %u words differ from the oracle (first %u)\n", n, omega_gpu_elementwise_rc_name(rc), bad, n, fi); + if (out) fprintf(out, "{\"op\":\"rc_diamond\",\"mutant\":2,\"what\":\"BSYNC dropped\",\"n\":%u,\"rc\":\"%s\",\"violations\":%zu,\"first_bad\":%u,\"gate\":false}", n, omega_gpu_elementwise_rc_name(rc), bad, fi); + } + CHECK(omega_gpu_session_open_count() == 1, "device opened once for the battery (opens=%u)", omega_gpu_session_open_count()); + if (out) { + fprintf(out, "],\"sim_model_n4096\":["); + for (int i = 0; i < g_nmodel; i++) fprintf(out, "%s{\"op\":\"%s\",\"order\":%d,\"warp_issues\":%" PRIu64 ",\"lane_issues\":%" PRIu64 ",\"splits\":%" PRIu64 ",\"max_frags\":%d,\"peak_bars\":%d}", i ? "," : "", g_model[i].name, i & 1, g_model[i].warp_issues, g_model[i].lane_issues, g_model[i].splits, g_model[i].max_frags, g_model[i].peak_bars); + fprintf(out, "],\"device_opens\":%u,\"checks\":%d,\"failed\":%d,\"verdict\":\"%s\"}\n", omega_gpu_session_open_count(), g_checks, g_failed, g_failed == 0 ? "OMEGA_GPU_RECONV_PASS" : "OMEGA_GPU_RECONV_FAIL"); + fclose(out); + } + free(a); free(b); free(got); free(want); + return 0; +} + +int main(int argc, char **argv) { + const char *out_path = NULL; int host = 0, observe = 0; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--host-only") == 0) host = 1; + else if (strcmp(argv[i], "--observe-dropped-join") == 0) observe = 1; + else if (strcmp(argv[i], "--out") == 0 && i + 1 < argc) out_path = argv[++i]; + } + int hrc = host_part(); + if (!host) { + if (hrc != 0) { printf("host part failed: no chip launches\nFAIL: %d checks, %d failed\n", g_checks, g_failed); return 1; } + if (chip(out_path, observe) != 0) return 2; + } + printf("%s: %d checks, %d failed\n", g_failed ? "FAIL" : "PASS", g_checks, g_failed); + return g_failed ? 1 : 0; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_blackwell_codegen.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_blackwell_codegen.c new file mode 100644 index 000000000..1cb4657e4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_blackwell_codegen.c @@ -0,0 +1,2528 @@ +#include "omega_blackwell_codegen.h" +#include "omega_blackwell_submit.h" +#include "sha256.h" +#include +/* native v1 P07 cut A.2 (aienos#286, docs/numeric/OMEGA_GPU_NATIVE_BOUNDARY.md): with OMEGA_GPU_NO_POSIX this file + * builds -ffreestanding. Code generation then runs only through the allocation-free entry points + * (omega_blackwell_kernel_encode_into: the caller supplies the code buffer and its capacity); the allocating + * generators, their diagnostics and the printing variation self-test exist only in the hosted build. */ +#ifndef OMEGA_GPU_NO_POSIX +#include +#include +#define BW_DIAG(...) fprintf(stderr, __VA_ARGS__) +#else +#define BW_DIAG(...) ((void)0) +#endif + +void omega_bw_ir_init(BlackwellIRProgram *prog) { + if (!prog) return; + memset(prog, 0, sizeof(*prog)); +} + +int omega_bw_ir_alloc_vreg(BlackwellIRProgram *prog) { + if (!prog || prog->regalloc.num_vregs >= BW_MAX_VREGS) return -1; + int v = prog->regalloc.num_vregs++; + prog->regalloc.intervals[v].vreg = v; + prog->regalloc.intervals[v].first_def = -1; + prog->regalloc.intervals[v].last_use = -1; + prog->regalloc.intervals[v].phys_reg = -1; + prog->regalloc.intervals[v].bundle_size = 1; + prog->regalloc.intervals[v].is_pair = false; + prog->regalloc.intervals[v].is_quad = false; + prog->regalloc.intervals[v].active = false; + prog->regalloc.vreg_to_phys[v] = -1; + return v; +} + +int omega_bw_ir_alloc_vreg64(BlackwellIRProgram *prog) { + if (!prog || prog->regalloc.num_vregs >= BW_MAX_VREGS) return -1; + int v = prog->regalloc.num_vregs++; + prog->regalloc.intervals[v].vreg = v; + prog->regalloc.intervals[v].first_def = -1; + prog->regalloc.intervals[v].last_use = -1; + prog->regalloc.intervals[v].phys_reg = -1; + prog->regalloc.intervals[v].bundle_size = 2; + prog->regalloc.intervals[v].is_pair = true; + prog->regalloc.intervals[v].is_quad = false; + prog->regalloc.intervals[v].active = false; + prog->regalloc.vreg_to_phys[v] = -1; + return v; +} + +int omega_bw_ir_alloc_vreg128(BlackwellIRProgram *prog) { + if (!prog || prog->regalloc.num_vregs >= BW_MAX_VREGS) return -1; + int v = prog->regalloc.num_vregs++; + prog->regalloc.intervals[v].vreg = v; + prog->regalloc.intervals[v].first_def = -1; + prog->regalloc.intervals[v].last_use = -1; + prog->regalloc.intervals[v].phys_reg = -1; + prog->regalloc.intervals[v].bundle_size = 4; + prog->regalloc.intervals[v].is_pair = false; + prog->regalloc.intervals[v].is_quad = true; + prog->regalloc.intervals[v].active = false; + prog->regalloc.vreg_to_phys[v] = -1; + return v; +} + +int omega_bw_ir_alloc_uvreg(BlackwellIRProgram *prog) { + if (!prog || prog->regalloc.num_uvregs >= BW_MAX_UVREGS) return -1; + int uv = prog->regalloc.num_uvregs++; + prog->regalloc.uintervals[uv].vreg = uv; + prog->regalloc.uintervals[uv].first_def = -1; + prog->regalloc.uintervals[uv].last_use = -1; + prog->regalloc.uintervals[uv].phys_reg = -1; + prog->regalloc.uintervals[uv].is_pair = false; + prog->regalloc.uintervals[uv].active = false; + prog->regalloc.uvreg_to_phys[uv] = -1; + return uv; +} + +int omega_bw_ir_alloc_uvreg64(BlackwellIRProgram *prog) { + if (!prog || prog->regalloc.num_uvregs >= BW_MAX_UVREGS) return -1; + int uv = prog->regalloc.num_uvregs++; + prog->regalloc.uintervals[uv].vreg = uv; + prog->regalloc.uintervals[uv].first_def = -1; + prog->regalloc.uintervals[uv].last_use = -1; + prog->regalloc.uintervals[uv].phys_reg = -1; + prog->regalloc.uintervals[uv].is_pair = true; + prog->regalloc.uintervals[uv].active = false; + prog->regalloc.uvreg_to_phys[uv] = -1; + return uv; +} + +int omega_bw_ir_append(BlackwellIRProgram *prog, const BlackwellIRInsn *insn) { + if (!prog || !insn || prog->count >= BW_MAX_IR_INSNS) return -1; + int idx = (int)prog->count++; + prog->insns[idx] = *insn; + + /* Update live-interval def/use tracking */ + if (insn->dst_vreg >= 0 && insn->dst_vreg < prog->regalloc.num_vregs) { + if (!insn->is_uniform) { + OmegaLiveInterval *iv = &prog->regalloc.intervals[insn->dst_vreg]; + if (iv->first_def < 0) iv->first_def = idx; + if (idx > iv->last_use) iv->last_use = idx; + } + } + if (insn->src1_vreg >= 0 && insn->src1_vreg < prog->regalloc.num_vregs) { + OmegaLiveInterval *iv = &prog->regalloc.intervals[insn->src1_vreg]; + if (iv->first_def < 0) iv->first_def = idx; + if (idx > iv->last_use) iv->last_use = idx; + } + if (insn->src2_vreg >= 0 && insn->src2_vreg < prog->regalloc.num_vregs) { + OmegaLiveInterval *iv = &prog->regalloc.intervals[insn->src2_vreg]; + if (iv->first_def < 0) iv->first_def = idx; + if (idx > iv->last_use) iv->last_use = idx; + } + if (insn->src3_vreg >= 0 && insn->src3_vreg < prog->regalloc.num_vregs) { + OmegaLiveInterval *iv = &prog->regalloc.intervals[insn->src3_vreg]; + if (iv->first_def < 0) iv->first_def = idx; + if (idx > iv->last_use) iv->last_use = idx; + } + + /* Uniform register def/use tracking */ + if (insn->is_uniform && insn->dst_vreg >= 0 && insn->dst_vreg < prog->regalloc.num_uvregs) { + OmegaLiveInterval *uiv = &prog->regalloc.uintervals[insn->dst_vreg]; + if (uiv->first_def < 0) uiv->first_def = idx; + if (idx > uiv->last_use) uiv->last_use = idx; + } + if (insn->ureg >= 0 && insn->ureg < prog->regalloc.num_uvregs) { + OmegaLiveInterval *uiv = &prog->regalloc.uintervals[insn->ureg]; + if (uiv->first_def < 0) uiv->first_def = idx; + if (idx > uiv->last_use) uiv->last_use = idx; + } + + return idx; +} + +int omega_bw_regalloc_solve(BlackwellIRProgram *prog) { + if (!prog) return -1; + OmegaRegAlloc *ra = &prog->regalloc; + + /* + * Bounded deterministic linear-scan register allocator. + * Computes genuine live intervals across virtual registers and assigns + * available physical GPRs (R2..R127) and UGPRs (UR4..UR31). + * Enforces even-alignment and dual-register reservation for 64-bit pairs. + */ + bool gpr_busy[BW_PHYS_GPR_MAX]; + memset(gpr_busy, 0, sizeof(gpr_busy)); + + int max_phys_used = BW_PHYS_GPR_START; + + /* Sort virtual register indices chronologically by first_def (Poletto & Sarkar Linear Scan) */ + int order[BW_MAX_VREGS]; + int count = 0; + for (int v = 0; v < ra->num_vregs; v++) { + if (ra->intervals[v].first_def >= 0) { + order[count++] = v; + } else { + ra->intervals[v].phys_reg = BW_PHYS_GPR_START; + ra->vreg_to_phys[v] = ra->intervals[v].phys_reg; + } + } + for (int i = 0; i < count - 1; i++) { + for (int j = i + 1; j < count; j++) { + if (ra->intervals[order[i]].first_def > ra->intervals[order[j]].first_def) { + int tmp = order[i]; + order[i] = order[j]; + order[j] = tmp; + } + } + } + + for (int idx = 0; idx < count; idx++) { + int v = order[idx]; + OmegaLiveInterval *iv = &ra->intervals[v]; + + /* Free physical registers whose virtual live intervals have ended */ + for (int p = 0; p < ra->num_vregs; p++) { + if (ra->intervals[p].active && ra->intervals[p].last_use < iv->first_def) { + int freed = ra->intervals[p].phys_reg; + if (freed >= 0 && freed < BW_PHYS_GPR_MAX) { + uint32_t bsize = ra->intervals[p].bundle_size ? ra->intervals[p].bundle_size : (ra->intervals[p].is_pair ? 2 : (ra->intervals[p].is_quad ? 4 : 1)); + for (uint32_t k = 0; k < bsize && (freed + (int)k) < BW_PHYS_GPR_MAX; k++) { + gpr_busy[freed + k] = false; + } + } + ra->intervals[p].active = false; + } + } + + /* Find lowest available physical register */ + int assigned = -1; + uint32_t bsize = iv->bundle_size ? iv->bundle_size : (iv->is_pair ? 2 : (iv->is_quad ? 4 : 1)); + if (bsize == 4) { + /* 128-bit quad requires 4-alignment and 4 contiguous free registers */ + int start = (BW_PHYS_GPR_START + 3) & ~3; + for (int p = start; p <= BW_PHYS_GPR_MAX - 4; p += 4) { + if (!gpr_busy[p] && !gpr_busy[p + 1] && !gpr_busy[p + 2] && !gpr_busy[p + 3]) { + assigned = p; + for (int k = 0; k < 4; k++) gpr_busy[p + k] = true; + break; + } + } + } else if (bsize == 2) { + /* 64-bit pair requires even alignment and contiguous free registers */ + int start = (BW_PHYS_GPR_START + 1) & ~1; + for (int p = start; p <= BW_PHYS_GPR_MAX - 2; p += 2) { + if (!gpr_busy[p] && !gpr_busy[p + 1]) { + assigned = p; + gpr_busy[p] = true; + gpr_busy[p + 1] = true; + break; + } + } + } else { + for (int p = BW_PHYS_GPR_START; p < BW_PHYS_GPR_MAX; p++) { + if (!gpr_busy[p]) { + assigned = p; + gpr_busy[p] = true; + break; + } + } + } + + if (assigned < 0) { + /* Hardware register capacity exceeded: fail closed loudly */ + return -1; + } + + iv->phys_reg = assigned; + iv->active = true; + ra->vreg_to_phys[v] = assigned; + + int top = assigned + (int)bsize - 1; + if (top > max_phys_used) { + max_phys_used = top; + } + } + ra->peak_gpr_usage = (uint32_t)(max_phys_used + 1); + + /* Allocate uniform registers */ + int cur_u = BW_PHYS_UGPR_START; + for (int uv = 0; uv < ra->num_uvregs; uv++) { + OmegaLiveInterval *uiv = &ra->uintervals[uv]; + if (uiv->is_pair) { + if (cur_u % 2 != 0) cur_u++; + if (cur_u + 1 >= BW_PHYS_UGPR_MAX) return -1; + uiv->phys_reg = cur_u; + ra->uvreg_to_phys[uv] = cur_u; + cur_u += 2; + } else { + if (cur_u >= BW_PHYS_UGPR_MAX) return -1; + uiv->phys_reg = cur_u; + ra->uvreg_to_phys[uv] = cur_u++; + } + } + ra->peak_ugpr_usage = (uint32_t)cur_u; + + return 0; +} + +static int encode_single_insn(const BlackwellIRInsn *insn, const OmegaRegAlloc *ra, uint32_t w[4]) { + memset(w, 0, 16); + + int dst = (insn->dst_vreg >= 0) ? (ra->vreg_to_phys[insn->dst_vreg] + insn->dst_subreg) : 0; + int src1 = (insn->src1_vreg >= 0) ? (ra->vreg_to_phys[insn->src1_vreg] + insn->src1_subreg) : 0; + int src2 = (insn->src2_vreg >= 0) ? (ra->vreg_to_phys[insn->src2_vreg] + insn->src2_subreg) : 0; + int src3 = (insn->src3_vreg >= 0) ? (ra->vreg_to_phys[insn->src3_vreg] + insn->src3_subreg) : 0xff; /* Default to RZ (0xff) */ + int ureg = (insn->ureg >= 0) ? ra->uvreg_to_phys[insn->ureg] : 0; + + if (insn->is_uniform && insn->dst_vreg >= 0) { + dst = ra->uvreg_to_phys[insn->dst_vreg]; + } + + switch (insn->op) { + case BW_IR_NOP: + w[0] = 0x00007918; + w[1] = 0x00000000; + w[2] = 0x00000000; + w[3] = insn->control ? insn->control : 0x000fc000; /* control: a timed pause (fragment matmul) */ + break; + + case BW_IR_MOV_RZ: + /* MOV Rd, RZ */ + w[0] = 0x7202 | ((uint32_t)(dst & 0xff) << 16); + w[1] = 0x000000ff; + w[2] = 0x00000f00; + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + case BW_IR_MOV_IMM: + /* MOV Rd, imm32 */ + w[0] = 0x7802 | ((uint32_t)(dst & 0xff) << 16); + w[1] = insn->imm; + w[2] = 0x00000f00; + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + case BW_IR_S2R: + /* S2R Rd, SR */ + w[0] = 0x7919 | ((uint32_t)(dst & 0xff) << 16); + w[1] = 0x0; + w[2] = (insn->imm & 0xff) << 8; + w[3] = insn->control ? insn->control : 0x000e2200; + break; + + case BW_IR_LDC: + /* LDC Rd, c[0x0][imm] */ + w[0] = 0xff007b82 | ((uint32_t)(dst & 0xff) << 16); + w[1] = (insn->imm << 6) & 0x00ffff00; + w[2] = 0x00000800; + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + case BW_IR_LDC64: + /* LDC.64 Rd:Rd+1, c[0x0][imm] */ + w[0] = 0xff007b82 | ((uint32_t)(dst & 0xff) << 16); + w[1] = (insn->imm << 6) & 0x00ffff00; + w[2] = 0x00000a00; + w[3] = insn->control ? insn->control : 0x000e2200; + break; + + case BW_IR_LDCU: + /* LDCU URd, c[0x0][imm] */ + w[0] = 0xff0077ac | ((uint32_t)(dst & 0xff) << 16); + w[1] = (insn->imm << 5) & 0x00ffff00; + w[2] = 0x08000800; + w[3] = insn->control ? insn->control : 0x000e2200; + break; + + case BW_IR_LDCU64: + /* LDCU.64 URd:URd+1, c[0x0][imm] */ + w[0] = 0xff0077ac | ((uint32_t)(dst & 0xff) << 16); + w[1] = (insn->imm << 5) & 0x00ffff00; + w[2] = 0x08000a00; + w[3] = insn->control ? insn->control : 0x000e6e00; + break; + + case BW_IR_IMAD: + if (insn->src2_vreg >= 0) { + /* Register-register: IMAD Rd, Ra, Rb, Rc (0x7224) */ + w[0] = 0x7224 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x078e0200 | (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x001fca00; + } else if (insn->is_uniform && insn->ureg >= 0) { + /* Uniform register multiplier: IMAD Rd, Ra, URb, Rc (0x7c24) */ + w[0] = 0x7c24 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(ureg & 0xff); + w[2] = 0x0f8e0200 | (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x001fca00; + } else { + /* Immediate multiplier: IMAD Rd, Ra, imm, Rc (0x7824) */ + w[0] = 0x7824 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = insn->imm; + w[2] = 0x078e0200 | (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x001fca00; + } + break; + + case BW_IR_IMAD_WIDE: + /* IMAD.WIDE.U32 Rd:Rd+1, Ra, imm, Rc:Rc+1 */ + w[0] = 0x7825 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = insn->imm; + w[2] = 0x078e0000 | (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x001fcc00; + break; + + case BW_IR_ISETP_GE: + if (insn->is_uniform && insn->ureg >= 0) { + w[0] = 0x7c0c | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(ureg & 0xff); + w[2] = 0x0bf06070; + w[3] = 0x002fda00; + } else { + w[0] = 0x780c | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = insn->imm; + w[2] = 0x03f06270; + w[3] = 0x001fda00; + } + break; + + case BW_IR_LDG_E: + /* LDG.E Rd, desc[URd][Ra.64] */ + w[0] = 0x7981 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(ureg & 0xff); + w[2] = 0x0c1e1900; + w[3] = insn->control ? insn->control : 0x000f2200; + break; + + case BW_IR_STG_E: { + /* STG.E desc[URd][Ra.64+imm], Rb. imm = signed 24-bit byte offset at bits 40..63 (w[1] bits + * 8..31), as for LDG; words from nvcc 13.0.88 -arch=sm_121 (omega_blackwell_verify_codegen_fixtures_fragmm, + * 2026-10-12: STG.E desc[UR4][R4.64+0x4], R9 = 0x0000040904007986 0x000fe8000c101904). */ + int32_t off = (int32_t)insn->imm; + if (off < -(1 << 23) || off >= (1 << 23)) return -1; + w[0] = 0x7986 | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff) | (((uint32_t)off & 0xffffffU) << 8); + w[2] = 0x0c101900 | (uint32_t)(ureg & 0xff); + w[3] = insn->control ? insn->control : 0x000fe200; + break; + } + + case BW_IR_STG_EF: + /* STG.E.MMIO.GPU. Uncached store, meant to be visible without a fence. */ + w[0] = 0x7986 | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x0c111900 | (uint32_t)(ureg & 0xff); + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + case BW_IR_IADD3: + /* IADD3 Rd, PT, PT, Ra, Rb, Rc */ + w[0] = 0x7210 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x07ffe0ff; + w[3] = 0x010fca00; + break; + + case BW_IR_HMMA_F16: + case BW_IR_HMMA_BF16: { + /* HMMA.16816.F32[.BF16] Rd, Ra, Rb, Rc */ + w[0] = 0x723c | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + uint32_t prec_bit = (insn->op == BW_IR_HMMA_BF16) ? 0x00040000 : 0x00000000; + w[2] = (uint32_t)(src3 & 0xff) | (0x18 << 8) | prec_bit; + w[3] = insn->control ? insn->control : 0x000fe200; + break; + } + + case BW_IR_SHF_R: + /* SHF.R.U32.HI Rd, RZ, imm, Ra */ + w[0] = 0x7819U | ((uint32_t)(dst & 0xff) << 16) | (0xffU << 24); + w[1] = (uint32_t)insn->imm; + w[2] = 0x00011600 | (uint32_t)(src1 & 0xff); + w[3] = insn->control ? insn->control : 0x001fca00; + break; + + case BW_IR_LOP3_AND: + /* LOP3.LUT Rd, Ra, imm, RZ, 0xc0, !PT */ + w[0] = 0x7812U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)insn->imm; + w[2] = 0x078ec0ff; + w[3] = insn->control ? insn->control : 0x001fca00; + break; + + case BW_IR_LDG_E_64: + case BW_IR_LDG_E_128: { + /* LDG.E.64 / LDG.E.128 Rd, desc[URd][Ra.64+imm]. imm = signed 24-bit byte offset at + * bits 40..63 (w[1] bits 8..31); size field in w[2] bits 9..11 (32 = 4, 64 = 5, 128 = 6). + * Words from nvcc 13.0.88 -arch=sm_121 (omega_blackwell_verify_codegen_fixtures_fragmm). */ + int32_t off = (int32_t)insn->imm; + if (off < -(1 << 23) || off >= (1 << 23)) return -1; + w[0] = 0x7981U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(ureg & 0xff) | (((uint32_t)off & 0xffffffU) << 8); + w[2] = insn->op == BW_IR_LDG_E_64 ? 0x0c1e1b00U : 0x0c1e1d00U; + w[3] = insn->control ? insn->control : 0x000f2200; + break; + } + + case BW_IR_LDG_E_U16: + /* LDG.E.U16 Rd, desc[URd][Ra.64] */ + w[0] = 0x7981U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(ureg & 0xff); + w[2] = 0x0c1e1500; + w[3] = insn->control ? insn->control : 0x000f2200; + break; + + case BW_IR_LDG_STRONG_SYS: + /* LDG.E.STRONG.SYS. Same shape as LDG.E; w[2] carries the + * system-scope bits (0x0c1e1900 -> 0x0c1f5900). */ + w[0] = 0x7981 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(ureg & 0xff); + w[2] = 0x0c1f5900; + w[3] = insn->control ? insn->control : 0x000f2200; + break; + + case BW_IR_LDG_MMIO: + /* LDG.E.EF. Drop the cached line, then load. */ + w[0] = 0x7981 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(ureg & 0xff); + w[2] = 0x0c0e1900; + w[3] = insn->control ? insn->control : 0x000f2200; + break; + + case BW_IR_STG_STRONG_SYS: + w[0] = 0x7986 | ((uint32_t)(src1 & 0xff) << 24); + if (insn->predicate_p0) { + uint32_t pred = insn->predicate_not ? 0x8u : 0x0u; + w[0] = (w[0] & ~0xF000u) | (pred << 12); + } + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x0c115900 | (uint32_t)(ureg & 0xff); + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + case BW_IR_MEMBAR_ALL_SYS: + w[0] = 0x00007992; + w[1] = 0x00000000; + w[2] = 0x0000b000; + w[3] = insn->control ? insn->control : 0x000fec00; + break; + + case BW_IR_MEMBAR_SC_SYS: + w[0] = 0x00007992; + w[1] = 0x00000000; + w[2] = 0x00003000; + w[3] = insn->control ? insn->control : 0x000fec00; + break; + + case BW_IR_CCTL_IVALL: + w[0] = 0xff00798f; + w[1] = 0x00000000; + w[2] = 0x02000000; + w[3] = insn->control ? insn->control : 0x000fe800; + break; + + case BW_IR_ATOMG_ADD_STRONG_SYS: + w[0] = 0x79a8 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff) | 0x80000000u; + w[2] = 0x081f5100 | (uint32_t)(ureg & 0xff); + w[3] = insn->control ? insn->control : 0x00321e00; + break; + + case BW_IR_ATOMG_EXCH_STRONG_SYS: + w[0] = 0x79a8 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff) | 0x80000000u; + w[2] = 0x0c1f5100 | (uint32_t)(ureg & 0xff); + w[3] = insn->control ? insn->control : 0x00321e00; + break; + + case BW_IR_ISETP_GE_U32: + /* ISETP.GE.U32.AND P0, PT, Ra, Rb, PT. Checked with nvdisasm -b SM121. */ + w[0] = 0x720c | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x03f06070; + w[3] = insn->control ? insn->control : 0x001fda00; + break; + + case BW_IR_LOP3_XOR: + /* LOP3.LUT Rd, Ra, Rb, RZ, 0x3c, !PT. Checked with nvdisasm -b SM121. */ + w[0] = 0x7212 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x078e3cff; + w[3] = insn->control ? insn->control : 0x001fca00; + break; + + case BW_IR_FADD: + /* FADD Rd, Ra, Rb */ + w[0] = 0x7221U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x00000000; + w[3] = insn->control ? insn->control : 0x004fc400; + break; + + case BW_IR_FSUB: + /* FSUB Rd, Ra, Rb (FADD Rd, Ra, -Rb) */ + w[0] = 0x7221U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff) | 0x80000000U; + w[2] = 0x00000000; + w[3] = insn->control ? insn->control : 0x004fc400; + break; + + case BW_IR_FMUL: + /* FMUL Rd, Ra, Rb */ + w[0] = 0x7220U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x00400000; + w[3] = insn->control ? insn->control : 0x004fc400; + break; + + case BW_IR_FFMA: + /* FFMA Rd, Ra, Rb, Rc */ + w[0] = 0x7223U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x004fc400; + break; + + case BW_IR_FSETP: + /* FSETP.cond.AND P0, PT, Ra, Rb, PT */ + w[0] = 0x720bU | ((uint32_t)(dst & 0x7) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = insn->imm ? insn->imm : 0x03f06000; /* Default GE condition */ + w[3] = insn->control ? insn->control : 0x004fc400; + break; + + case BW_IR_FSEL: + /* FSEL Rd, Ra, Rb, P0 */ + w[0] = 0x7208U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = (uint32_t)(src3 & 0x7); + w[3] = insn->control ? insn->control : 0x000fca00; + break; + + case BW_IR_FMNMX_MIN: + /* FMNMX Rd, Ra, Rb, PT (minimum) */ + w[0] = 0x7209U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x03800000; + w[3] = insn->control ? insn->control : 0x004fc400; + break; + + case BW_IR_FMNMX_MAX: + /* FMNMX Rd, Ra, Rb, !PT (maximum) */ + w[0] = 0x7209U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x07800000; + w[3] = insn->control ? insn->control : 0x004fc400; + break; + + case BW_IR_I2FP: + /* I2FP.F32.S32 Rd, Ra */ + w[0] = 0x7245U | ((uint32_t)(dst & 0xff) << 16); + w[1] = (uint32_t)(src1 & 0xff); + w[2] = 0x00201400; + w[3] = insn->control ? insn->control : 0x004fe200; + break; + + case BW_IR_F2I: + /* F2I.TRUNC.NTZ Rd, Ra */ + w[0] = 0x7305U | ((uint32_t)(dst & 0xff) << 16); + w[1] = (uint32_t)(src1 & 0xff); + w[2] = 0x0020f100; + w[3] = insn->control ? insn->control : 0x004e2200; + break; + + case BW_IR_MUFU_RCP: + /* MUFU.RCP Rd, Ra */ + w[0] = 0x7308U | ((uint32_t)(dst & 0xff) << 16); + w[1] = (uint32_t)(src1 & 0xff); + w[2] = 0x00001000; + w[3] = insn->control ? insn->control : 0x000e2400; + break; + + case BW_IR_MUFU_RSQ: + /* MUFU.RSQ Rd, Ra */ + w[0] = 0x7308U | ((uint32_t)(dst & 0xff) << 16); + w[1] = (uint32_t)(src1 & 0xff); + w[2] = 0x00001400; + w[3] = insn->control ? insn->control : 0x000e2400; + break; + + case BW_IR_SHFL_DOWN: + /* SHFL.DOWN PT, Rd, Ra, offset, 0x1f */ + w[0] = 0x7f89U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = 0x08001f00U | (((uint32_t)insn->imm & 0x1f) << 21); + w[2] = 0x000e0000; + w[3] = insn->control ? insn->control : 0x000e2400; + break; + + case BW_IR_LDS: + /* LDS Rd, [Ra] */ + w[0] = 0x7984U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = 0x00000000; + w[2] = (uint32_t)(insn->imm & 0xffff); + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + case BW_IR_STS: + /* STS [Ra], Rb */ + w[0] = 0x7388U | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = (uint32_t)(insn->imm & 0xffff); + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + case BW_IR_EXIT: + w[0] = insn->predicate_p0 ? 0x0000094d : 0x0000794d; + w[1] = 0x00000000; + w[2] = 0x03800000; + w[3] = 0x000fea00; + break; + + case BW_IR_BRA: { + /* sm_121 BRA. Distance is (target - this) - 1, split across the + * low six bits at instruction bits 18..23 and the rest at bit 34. + * Predicate bits 12..15: 7 = always, 0 = @P0, 8 = @!P0. + * A zero delta with no predicate keeps the self-branch word the + * existing kernels already emit after EXIT. */ + int32_t delta = (int32_t)insn->imm; + int32_t rel = delta - 1; + uint32_t pred_field = 0x7u; + if (insn->predicate_p0) + pred_field = insn->predicate_not ? 0x8u : 0x0u; + w[0] = 0x947u | (pred_field << 12) | (((uint32_t)rel & 0x3fu) << 18); + w[1] = (uint32_t)(rel >> 6) << 2; + w[2] = (rel < 0) ? 0x0383ffffu : 0x03800000u; + if (insn->control) + w[3] = insn->control; + else if (delta == 0 && !insn->predicate_p0) + w[3] = 0x000fc000u; + else + w[3] = 0x000fea00u; + break; + } + + case BW_IR_BSSY: { + /* BSSY.RECONVERGENT Bn, target (omega #308). nvcc 13.0.88 -arch=sm_121: + * [0070] BSSY.RECONVERGENT B0, 0x140 ; 0x000000c000007945 0x000fe20003800200 + * opcode 0x945 (NAK sm70_encode.rs:4165), barrier id at bits 16..19 (set_bar_dst + * 16..20), guard predicate at bits 12..15 like BRA, relative byte offset + * target - (this + 16) at bit 32 (NAK: field 34.. in 4-byte units), the cond + * predicate PT at bits 87..89 (0x0380 << 16 in w[2]) and bit 73 (0x200 in w[2]), + * which the disassembler prints as .RECONVERGENT; nvcc sets it on every BSSY/BSYNC + * for sm_121 and Mesa NAK does not. We follow nvcc. The target is the instruction + * after the matching BSYNC, so the delta is at least 2; smaller is refused. */ + int32_t delta = (int32_t)insn->imm; + if (delta < 2 || insn->bar_reg >= BW_RECONV_MAX_BAR) return -1; + uint32_t pred_field = 0x7u; + if (insn->predicate_p0) + pred_field = insn->predicate_not ? 0x8u : 0x0u; + w[0] = 0x945u | (pred_field << 12) | ((uint32_t)insn->bar_reg << 16); + w[1] = (uint32_t)(delta - 1) * 16u; + w[2] = 0x03800200u; + w[3] = insn->control ? insn->control : 0x000fe200u; + break; + } + + case BW_IR_BSYNC: { + /* BSYNC.RECONVERGENT Bn: [0130] BSYNC.RECONVERGENT B0 ; 0x0000000000007941 0x000fea0003800200 + * opcode 0x941 (NAK sm70_encode.rs:4179), barrier id bits 16..19, cond PT, bit 73. */ + if (insn->bar_reg >= BW_RECONV_MAX_BAR) return -1; + uint32_t pred_field = 0x7u; + if (insn->predicate_p0) + pred_field = insn->predicate_not ? 0x8u : 0x0u; + w[0] = 0x941u | (pred_field << 12) | ((uint32_t)insn->bar_reg << 16); + w[1] = 0; + w[2] = 0x03800200u; + w[3] = insn->control ? insn->control : 0x000fea00u; + break; + } + + case BW_IR_MUFU_EX2: + /* MUFU.EX2 Rd, Ra. nvdisasm 13.0 -b SM121: 0x7308 with sub-op 0x0800 decodes + * "MUFU.EX2 R2, R4" (RCP is 0x1000, RSQ 0x1400 above). */ + w[0] = 0x7308U | ((uint32_t)(dst & 0xff) << 16); + w[1] = (uint32_t)(src1 & 0xff); + w[2] = 0x00000800; + w[3] = insn->control ? insn->control : 0x000e2400; + break; + + case BW_IR_BAR_SYNC: + /* BAR.SYNC.DEFER_BLOCKING 0x0: the exact words src/omega_numeric.c:885 runs on + * the chip (nvdisasm: "BAR.SYNC.DEFER_BLOCKING 0x0"). No registers. */ + w[0] = 0x00007b1dU; + w[1] = 0x00000000; + w[2] = 0x00010000; + w[3] = insn->control ? insn->control : 0x000fec00; + break; + + case BW_IR_LDS128: { + /* LDS.128 Rd..Rd+3, [Ra+imm]. nvcc 13.0.88 -arch=sm_121 words (fixtures below): + * LDS.128 R4, [R20] ; 0x0000000014047984 0x000fe80000000c00 + * LDS.128 R8, [R20+0x40] ; 0x0000400014087984 0x000e280000000c00 + * imm = byte offset at w[1] bits 8..31; size field 6 (128) at w[2] bits 9..11. */ + if (insn->imm >= (1u << 23)) return -1; + w[0] = 0x7984U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (insn->imm & 0xffffffU) << 8; + w[2] = 0x00000c00U; + w[3] = insn->control ? insn->control : 0x000fe800; + break; + } + + case BW_IR_LDS32: + /* LDS Rd, [Ra+URZ] (32-bit), the src/omega_numeric.c:886 form. */ + w[0] = 0x7984U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = 0x000000ff; + w[2] = 0x08000800; + w[3] = insn->control ? insn->control : 0x000e2800; + break; + + case BW_IR_STS32: + /* STS [Ra+URZ], Rb (32-bit), the src/omega_numeric.c:884 form. */ + w[0] = 0x7988U | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x080008ffU; + w[3] = insn->control ? insn->control : 0x000fe200; + break; + + /* Prime race cut (2026-10-05). An absent operand is RZ for these three ops. */ + case BW_IR_LOP3_LUT: { + /* LOP3.LUT Rd, Ra, Rb, Rc, imm8, !PT. LOP3_XOR above is this form with Rc = RZ, LUT 0x3c. */ + uint32_t a = (insn->src1_vreg >= 0) ? (uint32_t)(src1 & 0xff) : 0xffU; + uint32_t b = (insn->src2_vreg >= 0) ? (uint32_t)(src2 & 0xff) : 0xffU; + w[0] = 0x7212U | ((uint32_t)(dst & 0xff) << 16) | (a << 24); + w[1] = b; + w[2] = 0x078e0000U | ((insn->imm & 0xffU) << 8) | (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x001fca00; + break; + } + + case BW_IR_SHF_L_U32: { + /* SHF.L.U32 Rd, Ra, Rb, Rc: register-amount form (0x7219) of SHF_R's 0x7819, with the + * .R (w[2] bit 12) and .HI (bit 16) flags clear. Rc is the funnel high word (RZ). */ + uint32_t a = (insn->src1_vreg >= 0) ? (uint32_t)(src1 & 0xff) : 0xffU; + uint32_t b = (insn->src2_vreg >= 0) ? (uint32_t)(src2 & 0xff) : 0xffU; + w[0] = 0x7219U | ((uint32_t)(dst & 0xff) << 16) | (a << 24); + w[1] = b; + w[2] = 0x00000600U | (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x001fca00; + break; + } + + case BW_IR_IMAD_HI_U32: { + /* IMAD.HI.U32 Rd, Ra, Rb, Rc: opcode 0x227 with the IMAD.WIDE.U32 modifier word. */ + uint32_t a = (insn->src1_vreg >= 0) ? (uint32_t)(src1 & 0xff) : 0xffU; + uint32_t b = (insn->src2_vreg >= 0) ? (uint32_t)(src2 & 0xff) : 0xffU; + w[0] = 0x7227U | ((uint32_t)(dst & 0xff) << 16) | (a << 24); + w[1] = b; + w[2] = 0x078e0000U | (uint32_t)(src3 & 0xff); + w[3] = insn->control ? insn->control : 0x001fca00; + break; + } + + default: + return -1; + } + return 0; +} + +/* Prime race cut (2026-10-05): golden words for LOP3_LUT, SHF_L_U32 and IMAD_HI_U32. + * Each expected (w0, w1, w2) is the low 96 bits of an instruction nvcc 13.0.88 emitted + * for sm_121 (nvcc -arch=sm_121 -cubin, cuobjdump -sass; source and dump in + * bench/prime_race/tests/encoding_oracle.md). Control words (w3) are scheduler output and + * not compared. nvcc is an offline oracle only; nothing here links CUDA. 0 = all good. */ +int omega_blackwell_verify_codegen_fixtures_intops(void) { + OmegaRegAlloc ra; + memset(&ra, 0, sizeof(ra)); + static const int phys[] = { 0, 2, 6, 7, 9, 11, 13 }; + for (int i = 0; i < (int)(sizeof phys / sizeof phys[0]); i++) ra.vreg_to_phys[i] = phys[i]; + enum { R0 = 0, R2, R6, R7, R9, R11, R13, RZ = -1 }; + static const struct { + BlackwellIROpcode op; int d, a, b, c; uint32_t imm; uint32_t w0, w1, w2; const char *text; + } fx[] = { + { BW_IR_LOP3_LUT, R9, R7, R0, RZ, 0xfc, 0x07097212U, 0x00000000U, 0x078efcffU, "LOP3.LUT R9, R7, R0, RZ, 0xfc, !PT" }, + { BW_IR_LOP3_LUT, R11, R6, R7, R0, 0x78, 0x060b7212U, 0x00000007U, 0x078e7800U, "LOP3.LUT R11, R6, R7, R0, 0x78, !PT" }, + { BW_IR_LOP3_LUT, R13, R6, R7, R0, 0x10, 0x060d7212U, 0x00000007U, 0x078e1000U, "LOP3.LUT R13, R6, R7, R0, 0x10, !PT" }, + { BW_IR_LOP3_LUT, R7, RZ, R9, RZ, 0x33, 0xff077212U, 0x00000009U, 0x078e33ffU, "LOP3.LUT R7, RZ, R9, RZ, 0x33, !PT" }, + { BW_IR_SHF_L_U32, R7, R9, R2, RZ, 0, 0x09077219U, 0x00000002U, 0x000006ffU, "SHF.L.U32 R7, R9, R2, RZ" }, + { BW_IR_SHF_L_U32, R7, R0, R7, RZ, 0, 0x00077219U, 0x00000007U, 0x000006ffU, "SHF.L.U32 R7, R0, R7, RZ" }, + { BW_IR_IMAD_HI_U32, R9, R9, R0, R6, 0, 0x09097227U, 0x00000000U, 0x078e0006U, "IMAD.HI.U32 R9, R9, R0, R6" }, + { BW_IR_IMAD_HI_U32, R7, R0, R7, RZ, 0, 0x00077227U, 0x00000007U, 0x078e00ffU, "IMAD.HI.U32 R7, R0, R7, RZ" }, + }; + for (int i = 0; i < (int)(sizeof fx / sizeof fx[0]); i++) { + BlackwellIRInsn in; + memset(&in, 0, sizeof in); + in.op = fx[i].op; in.dst_vreg = fx[i].d; in.src1_vreg = fx[i].a; in.src2_vreg = fx[i].b; + in.src3_vreg = fx[i].c; in.ureg = -1; in.imm = fx[i].imm; + uint32_t w[4]; + if (encode_single_insn(&in, &ra, w) != 0) return -(2 * i + 1); + if (w[0] != fx[i].w0 || w[1] != fx[i].w1 || w[2] != fx[i].w2) return -(2 * i + 2); + } + return 0; +} + +int omega_blackwell_encode_one(const BlackwellIRInsn *insn, uint32_t w[4]) { + if (!insn || !w) return -1; + OmegaRegAlloc ra; + memset(&ra, 0, sizeof ra); + for (int i = 0; i < BW_MAX_VREGS; i++) ra.vreg_to_phys[i] = i; + for (int i = 0; i < BW_MAX_UVREGS; i++) ra.uvreg_to_phys[i] = i; + return encode_single_insn(insn, &ra, w); +} + +/* omega #328: golden words for the fragment-major matmul. Oracle: nvcc 13.0.88 -arch=sm_121 + * -cubin -O3, cuobjdump -sass, on a kernel with uint2 / uint4 loads at immediate offsets and a + * dependent mma.m16n8k16 bf16 chain (source and dump sealed in + * ~/workspace/investigations/2026-10-07-qwen3-decode-matmul/oracle/frag_plain.{cu,sass}): + * LDG.E.64 R2, desc[UR8][R30.64] ; 0x000000081e027981 0x000ea8000c1e1b00 + * LDG.E.64 R28, desc[UR8][R30.64+0x100] ; 0x000100081e1c7981 0x000ee8000c1e1b00 + * LDG.E.128 R8, desc[UR8][R32.64] ; 0x0000000820087981 0x000ea8000c1e1d00 + * LDG.E.128 R20, desc[UR8][R32.64+0x1000] ; 0x0010000820147981 0x000e9e000c1e1d00 + * HMMA.16816.F32.BF16 R8, R12, R6, R8 ; 0x000000060c08723c 0x010fe20000041808 + * NOP ; 0x0000000000007918 0x000fdc0000000000 + * The dependent HMMA chain nvcc emits is HMMA (stall 15) then NOP (stall 14): 29 cycles from + * one HMMA to the next that reads its accumulator. w3 is compared for the NOP only (it is the + * whole point of that instruction). 0 = all good. */ +int omega_blackwell_verify_codegen_fixtures_fragmm(void) { + static const struct { + BlackwellIROpcode op; int d, a, b, c, u; uint32_t imm, control; uint32_t w0, w1, w2, w3; const char *text; + } fx[] = { + { BW_IR_LDG_E_64, 2, 30, -1, -1, 8, 0, 0, 0x1e027981U, 0x00000008U, 0x0c1e1b00U, 0, "LDG.E.64 R2, desc[UR8][R30.64]" }, + { BW_IR_LDG_E_64, 28, 30, -1, -1, 8, 0x100, 0, 0x1e1c7981U, 0x00010008U, 0x0c1e1b00U, 0, "LDG.E.64 R28, desc[UR8][R30.64+0x100]" }, + { BW_IR_LDG_E_128, 8, 32, -1, -1, 8, 0, 0, 0x20087981U, 0x00000008U, 0x0c1e1d00U, 0, "LDG.E.128 R8, desc[UR8][R32.64]" }, + { BW_IR_LDG_E_128, 20, 32, -1, -1, 8, 0x1000, 0, 0x20147981U, 0x00100008U, 0x0c1e1d00U, 0, "LDG.E.128 R20, desc[UR8][R32.64+0x1000]" }, + { BW_IR_HMMA_BF16, 8, 12, 6, 8, -1, 0, 0, 0x0c08723cU, 0x00000006U, 0x00041808U, 0, "HMMA.16816.F32.BF16 R8, R12, R6, R8" }, + { BW_IR_NOP, -1, -1, -1, -1, -1, 0, 0x000fdc00U, 0x00007918U, 0, 0, 0x000fdc00U, "NOP (stall 14)" }, + /* LDS.128 with an immediate offset (attention batched loads, 2026-10-12): nvcc 13.0.88 -arch=sm_121 on + * float4 shared reads at register + constant offsets (fixture source in the omega speed/attention-batched-loads PR) */ + { BW_IR_LDS128, 4, 20, -1, -1, -1, 0, 0, 0x14047984U, 0x00000000U, 0x00000c00U, 0, "LDS.128 R4, [R20]" }, + { BW_IR_LDS128, 8, 20, -1, -1, -1, 0x40, 0, 0x14087984U, 0x00004000U, 0x00000c00U, 0, "LDS.128 R8, [R20+0x40]" }, + { BW_IR_LDS128, 12, 20, -1, -1, -1, 0x100, 0, 0x140c7984U, 0x00010000U, 0x00000c00U, 0, "LDS.128 R12, [R20+0x100]" }, + /* STG.E with an immediate offset (blocked prefill matmul, 2026-10-12): nvcc 13.0.88 -arch=sm_121 on float stores + * at register + constant offsets (~/.claude/jobs/ade3c837/tmp/stg-oracle/stg.cu); the second word is the + * offset-free STG word with UR4 */ + { BW_IR_STG_E, -1, 4, 8, -1, 4, 0, 0, 0x04007986U, 0x00000008U, 0x0c101904U, 0, "STG.E desc[UR4][R4.64], R8" }, + { BW_IR_STG_E, -1, 4, 9, -1, 4, 0x4, 0, 0x04007986U, 0x00000409U, 0x0c101904U, 0, "STG.E desc[UR4][R4.64+0x4], R9" }, + { BW_IR_STG_E, -1, 4, 10, -1, 4, 0x4000, 0, 0x04007986U, 0x0040000aU, 0x0c101904U, 0, "STG.E desc[UR4][R4.64+0x4000], R10" }, + { BW_IR_STG_E, -1, 6, 11, -1, 4, 0xfff00000u, 0, 0x06007986U, 0xf000000bU, 0x0c101904U, 0, "STG.E desc[UR4][R6.64+-0x100000], R11" }, + }; + for (int i = 0; i < (int)(sizeof fx / sizeof fx[0]); i++) { + BlackwellIRInsn in; + memset(&in, 0, sizeof in); + in.op = fx[i].op; in.dst_vreg = fx[i].d; in.src1_vreg = fx[i].a; in.src2_vreg = fx[i].b; + in.src3_vreg = fx[i].c; in.ureg = fx[i].u; in.imm = fx[i].imm; in.control = fx[i].control; + uint32_t w[4]; + if (omega_blackwell_encode_one(&in, w) != 0) return -(2 * i + 1); + if (w[0] != fx[i].w0 || w[1] != fx[i].w1 || w[2] != fx[i].w2 || (fx[i].w3 && w[3] != fx[i].w3)) return -(2 * i + 2); + } + /* offsets outside the signed 24-bit field are refused, not wrapped */ + BlackwellIRInsn big; + memset(&big, 0, sizeof big); + big.op = BW_IR_LDG_E_64; big.dst_vreg = 2; big.src1_vreg = 30; big.src2_vreg = -1; big.src3_vreg = -1; big.ureg = 8; + big.imm = 1u << 23; + uint32_t w[4]; + if (omega_blackwell_encode_one(&big, w) == 0) return -100; + big.imm = (uint32_t)-(1 << 23); + if (omega_blackwell_encode_one(&big, w) != 0) return -101; + return 0; +} + +/* omega #308: BSSY / BSYNC golden words. Oracle: nvcc 13.0.88 -arch=sm_121 -cubin -O3 on the + * kernels in docs/gpu-reconvergence-308.md, cuobjdump -sass (low 64-bit word, then high; the + * top 23 bits of the high word are the control word and are not compared here): + * k_loop [0070] BSSY.RECONVERGENT B0, 0x140 ; 0x000000c000007945 0x000fe20003800200 (delta 13) + * k_nested [0070] BSSY.RECONVERGENT B0, 0x300 ; 0x0000028000007945 0x000fe20003800200 (delta 41) + * k_break [0070] BSSY.RECONVERGENT B0, 0x110 ; 0x0000009000007945 0x000fe20003800200 (delta 10) + * k_loop [0130] BSYNC.RECONVERGENT B0 ; 0x0000000000007941 0x000fea0003800200 + * Barrier ids other than B0 and the predicated forms are decoded by tools/reconv_nvdisasm_check.sh + * (nvdisasm -b SM121 text), not by this table. */ +int omega_blackwell_verify_codegen_fixtures_reconv(void) { + static const struct { BlackwellIROpcode op; int delta; int bar; uint32_t w0, w1, w2; } fx[] = { + { BW_IR_BSSY, 13, 0, 0x00007945U, 0x000000c0U, 0x03800200U }, + { BW_IR_BSSY, 41, 0, 0x00007945U, 0x00000280U, 0x03800200U }, + { BW_IR_BSSY, 10, 0, 0x00007945U, 0x00000090U, 0x03800200U }, + { BW_IR_BSYNC, 0, 0, 0x00007941U, 0x00000000U, 0x03800200U }, + }; + for (int i = 0; i < (int)(sizeof fx / sizeof fx[0]); i++) { + BlackwellIRInsn in; + memset(&in, 0, sizeof in); + in.op = fx[i].op; in.dst_vreg = -1; in.src1_vreg = -1; in.src2_vreg = -1; in.src3_vreg = -1; in.ureg = -1; + in.imm = (uint32_t)fx[i].delta; in.bar_reg = (uint8_t)fx[i].bar; + uint32_t w[4]; + if (omega_blackwell_encode_one(&in, w) != 0) return -(2 * i + 1); + if (w[0] != fx[i].w0 || w[1] != fx[i].w1 || w[2] != fx[i].w2) return -(2 * i + 2); + /* control word defaults mirror nvcc's: BSSY 0x000fe200, BSYNC 0x000fea00 */ + if (w[3] != (fx[i].op == BW_IR_BSSY ? 0x000fe200U : 0x000fea00U)) return -(2 * i + 2); + } + /* refusals: a BSSY must name a later instruction (delta >= 2), barrier ids stop at B15 */ + BlackwellIRInsn bad; uint32_t w[4]; + memset(&bad, 0, sizeof bad); bad.op = BW_IR_BSSY; bad.dst_vreg = bad.src1_vreg = bad.src2_vreg = bad.src3_vreg = bad.ureg = -1; + bad.imm = 1; bad.bar_reg = 0; + if (omega_blackwell_encode_one(&bad, w) == 0) return -101; + bad.imm = (uint32_t)-3; + if (omega_blackwell_encode_one(&bad, w) == 0) return -102; + bad.imm = 5; bad.bar_reg = 16; + if (omega_blackwell_encode_one(&bad, w) == 0) return -103; + bad.op = BW_IR_BSYNC; bad.imm = 0; bad.bar_reg = 16; + if (omega_blackwell_encode_one(&bad, w) == 0) return -104; + bad.bar_reg = 15; + if (omega_blackwell_encode_one(&bad, w) != 0 || w[0] != (0x00007941U | (15U << 16))) return -105; + return 0; +} + +/* FB-1 cut 4: word-level fixtures for the four additive ops (checked against the + * nvdisasm decodes recorded in docs/numeric/FB1_CUT4_ELEMENTWISE.md). 0 = all good. */ +int omega_blackwell_verify_codegen_fixtures_fb1cut4(void) { + OmegaRegAlloc ra; + memset(&ra, 0, sizeof(ra)); + ra.vreg_to_phys[0] = 2; /* R2 */ + ra.vreg_to_phys[1] = 4; /* R4 */ + ra.vreg_to_phys[2] = 9; /* R9 */ + ra.vreg_to_phys[3] = 10; /* R10 */ + ra.vreg_to_phys[4] = 8; /* R8 */ + uint32_t w[4]; + + /* MUFU.EX2 R2, R4 */ + BlackwellIRInsn ex2 = { .op = BW_IR_MUFU_EX2, .dst_vreg = 0, .src1_vreg = 1 }; + if (encode_single_insn(&ex2, &ra, w) != 0) return -1; + if (w[0] != 0x00027308U || w[1] != 4 || w[2] != 0x00000800U) return -2; + /* BAR.SYNC.DEFER_BLOCKING 0x0 */ + BlackwellIRInsn bar = { .op = BW_IR_BAR_SYNC }; + if (encode_single_insn(&bar, &ra, w) != 0) return -3; + if (w[0] != 0x00007b1dU || w[1] != 0 || w[2] != 0x00010000U || w[3] != 0x000fec00U) return -4; + /* LDS R9, [R10+URZ] */ + BlackwellIRInsn lds = { .op = BW_IR_LDS32, .dst_vreg = 2, .src1_vreg = 3 }; + if (encode_single_insn(&lds, &ra, w) != 0) return -5; + if (w[0] != 0x0a097984U || w[1] != 0xff || w[2] != 0x08000800U) return -6; + /* STS [R8+URZ], R2 */ + BlackwellIRInsn sts = { .op = BW_IR_STS32, .src1_vreg = 4, .src2_vreg = 0 }; + if (encode_single_insn(&sts, &ra, w) != 0) return -7; + if (w[0] != 0x08007988U || w[1] != 2 || w[2] != 0x080008ffU) return -8; + return 0; +} + +int omega_bw_encode_program(const BlackwellIRProgram *prog, uint8_t *code_buf, size_t max_len, size_t *out_len) { + if (!prog || !code_buf || !out_len) return -1; + + size_t padded_insns = (prog->count + 7) & ~7ULL; + if (padded_insns < 32) padded_insns = 32; + + size_t req_bytes = padded_insns * 16; + if (max_len < req_bytes) return -1; + + uint8_t *p = code_buf; + for (size_t i = 0; i < padded_insns; i++) { + uint32_t w[4]; + if (i < prog->count) { + if (encode_single_insn(&prog->insns[i], &prog->regalloc, w) != 0) { + return -1; + } + } else { + /* Pad with NOP */ + w[0] = 0x00007918; + w[1] = 0x00000000; + w[2] = 0x00000000; + w[3] = 0x000fc000; + } + + p[0] = (uint8_t)(w[0] & 0xff); + p[1] = (uint8_t)((w[0] >> 8) & 0xff); + p[2] = (uint8_t)((w[0] >> 16) & 0xff); + p[3] = (uint8_t)((w[0] >> 24) & 0xff); + + p[4] = (uint8_t)(w[1] & 0xff); + p[5] = (uint8_t)((w[1] >> 8) & 0xff); + p[6] = (uint8_t)((w[1] >> 16) & 0xff); + p[7] = (uint8_t)((w[1] >> 24) & 0xff); + + p[8] = (uint8_t)(w[2] & 0xff); + p[9] = (uint8_t)((w[2] >> 8) & 0xff); + p[10] = (uint8_t)((w[2] >> 16) & 0xff); + p[11] = (uint8_t)((w[2] >> 24) & 0xff); + + p[12] = (uint8_t)(w[3] & 0xff); + p[13] = (uint8_t)((w[3] >> 8) & 0xff); + p[14] = (uint8_t)((w[3] >> 16) & 0xff); + p[15] = (uint8_t)((w[3] >> 24) & 0xff); + + p += 16; + } + + *out_len = req_bytes; + return 0; +} + +int omega_blackwell_codegen_matmul_i32_prog(const OmegaMatMulSpec *spec, BlackwellIRProgram *prog) { + if (!spec || !prog) return -1; + if (spec->m == 0 || spec->k == 0 || spec->n == 0) return -1; + + /* Fail closed loudly if K exceeds bounded unroll limit */ + if (spec->k > 32) { + BW_DIAG("ERROR: MatMul integer codegen exceeds bounded unroll limit (K=%u > 32)\n", spec->k); + return -1; + } + + omega_bw_ir_init(prog); + + /* 1. Allocate virtual registers */ + /* 64-bit base pointers */ + int v_ptr_a = omega_bw_ir_alloc_vreg64(prog); + int v_ptr_b = omega_bw_ir_alloc_vreg64(prog); + int v_ptr_c = omega_bw_ir_alloc_vreg64(prog); + int uv_desc = omega_bw_ir_alloc_uvreg64(prog); + + /* 32-bit CTA / Thread indexing */ + int v_ctaid_x = omega_bw_ir_alloc_vreg(prog); + int v_ctaid_y = omega_bw_ir_alloc_vreg(prog); + int v_tid_x = omega_bw_ir_alloc_vreg(prog); + int v_tid_y = omega_bw_ir_alloc_vreg(prog); + + /* 2D Coordinates & loop invariants */ + int v_col = omega_bw_ir_alloc_vreg(prog); + int v_row = omega_bw_ir_alloc_vreg(prog); + int v_row_k = omega_bw_ir_alloc_vreg(prog); + int v_const_1 = omega_bw_ir_alloc_vreg(prog); + int v_acc = omega_bw_ir_alloc_vreg(prog); + + /* Working registers for memory address and operands */ + int v_idx_a = omega_bw_ir_alloc_vreg(prog); + int v_off_a = omega_bw_ir_alloc_vreg64(prog); + int v_val_a = omega_bw_ir_alloc_vreg(prog); + + int v_idx_b = omega_bw_ir_alloc_vreg(prog); + int v_off_b = omega_bw_ir_alloc_vreg64(prog); + int v_val_b = omega_bw_ir_alloc_vreg(prog); + + int v_idx_c = omega_bw_ir_alloc_vreg(prog); + int v_off_c = omega_bw_ir_alloc_vreg64(prog); + + if (v_off_c < 0) return -1; + + /* 2. Load 64-bit global memory descriptor into uniform register pair */ + /* LDCU.64 uv_desc, c[0x0][0x358] */ + BlackwellIRInsn insn_desc = { .op = BW_IR_LDCU64, .dst_vreg = uv_desc, .imm = 0x358, .is_uniform = true }; + omega_bw_ir_append(prog, &insn_desc); + + /* 3. Load 64-bit base pointers from Constant Bank 0 */ + /* LDC.64 v_ptr_a, c[0x0][0x380] */ + BlackwellIRInsn insn_ptra = { .op = BW_IR_LDC64, .dst_vreg = v_ptr_a, .imm = 0x380 }; + omega_bw_ir_append(prog, &insn_ptra); + + /* LDC.64 v_ptr_b, c[0x0][0x388] */ + BlackwellIRInsn insn_ptrb = { .op = BW_IR_LDC64, .dst_vreg = v_ptr_b, .imm = 0x388 }; + omega_bw_ir_append(prog, &insn_ptrb); + + /* LDC.64 v_ptr_c, c[0x0][0x390] */ + BlackwellIRInsn insn_ptrc = { .op = BW_IR_LDC64, .dst_vreg = v_ptr_c, .imm = 0x390 }; + omega_bw_ir_append(prog, &insn_ptrc); + + /* 4. Query 2D CTA and Thread coordinates */ + /* S2R v_ctaid_x, SR_CTAID.X */ + BlackwellIRInsn insn_ctax = { .op = BW_IR_S2R, .dst_vreg = v_ctaid_x, .imm = BW_SR_CTAID_X }; + omega_bw_ir_append(prog, &insn_ctax); + + /* S2R v_ctaid_y, SR_CTAID.Y */ + BlackwellIRInsn insn_ctay = { .op = BW_IR_S2R, .dst_vreg = v_ctaid_y, .imm = BW_SR_CTAID_Y }; + omega_bw_ir_append(prog, &insn_ctay); + + /* S2R v_tid_x, SR_TID.X */ + BlackwellIRInsn insn_tidx = { .op = BW_IR_S2R, .dst_vreg = v_tid_x, .imm = BW_SR_TID_X }; + omega_bw_ir_append(prog, &insn_tidx); + + /* S2R v_tid_y, SR_TID.Y */ + BlackwellIRInsn insn_tidy = { .op = BW_IR_S2R, .dst_vreg = v_tid_y, .imm = BW_SR_TID_Y }; + omega_bw_ir_append(prog, &insn_tidy); + + /* 5. Compute 2D (row, col) coordinates */ + /* Standard 16x16 tile threads: col = ctaid_x * 16 + tid_x */ + BlackwellIRInsn insn_col = { .op = BW_IR_IMAD, .dst_vreg = v_col, .src1_vreg = v_ctaid_x, .src2_vreg = -1, .imm = 16, .src3_vreg = v_tid_x }; + omega_bw_ir_append(prog, &insn_col); + + /* row = ctaid_y * 16 + tid_y */ + BlackwellIRInsn insn_row = { .op = BW_IR_IMAD, .dst_vreg = v_row, .src1_vreg = v_ctaid_y, .src2_vreg = -1, .imm = 16, .src3_vreg = v_tid_y }; + omega_bw_ir_append(prog, &insn_row); + + /* 6. Precompute row base index: v_row_k = v_row * K + RZ */ + BlackwellIRInsn insn_row_k = { .op = BW_IR_IMAD, .dst_vreg = v_row_k, .src1_vreg = v_row, .src2_vreg = -1, .imm = spec->k, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_row_k); + + /* 7. Initialize v_const_1 = 1 for immediate linear indexing */ + BlackwellIRInsn insn_c1 = { .op = BW_IR_MOV_IMM, .dst_vreg = v_const_1, .imm = 1 }; + omega_bw_ir_append(prog, &insn_c1); + + /* 8. Initialize accumulator to zero: MOV v_acc, RZ */ + BlackwellIRInsn insn_init_acc = { .op = BW_IR_MOV_RZ, .dst_vreg = v_acc }; + omega_bw_ir_append(prog, &insn_init_acc); + + /* 9. Synthesize inner accumulation loop across K iterations */ + for (uint32_t step = 0; step < spec->k; step++) { + /* A[row, step]: idx_a = v_row_k + step = v_const_1 * step + v_row_k */ + BlackwellIRInsn insn_idxa = { .op = BW_IR_IMAD, .dst_vreg = v_idx_a, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = step, .src3_vreg = v_row_k }; + omega_bw_ir_append(prog, &insn_idxa); + + /* off_a = v_ptr_a + idx_a * 4 */ + BlackwellIRInsn insn_offa = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off_a, .src1_vreg = v_idx_a, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_a }; + omega_bw_ir_append(prog, &insn_offa); + + /* Load A[row, step]: LDG.E v_val_a, desc[uv_desc][v_off_a.64] */ + BlackwellIRInsn insn_lda = { .op = BW_IR_LDG_E, .dst_vreg = v_val_a, .src1_vreg = v_off_a, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x001ea800 }; + omega_bw_ir_append(prog, &insn_lda); + + /* B[step, col]: idx_b = step * N + col = v_const_1 * (step * N) + v_col */ + uint32_t step_n = step * spec->n; + BlackwellIRInsn insn_idxb = { .op = BW_IR_IMAD, .dst_vreg = v_idx_b, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = step_n, .src3_vreg = v_col }; + omega_bw_ir_append(prog, &insn_idxb); + + /* off_b = v_ptr_b + idx_b * 4 */ + BlackwellIRInsn insn_offb = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off_b, .src1_vreg = v_idx_b, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_b }; + omega_bw_ir_append(prog, &insn_offb); + + /* Load B[step, col]: LDG.E v_val_b, desc[uv_desc][v_off_b.64] */ + BlackwellIRInsn insn_ldb = { .op = BW_IR_LDG_E, .dst_vreg = v_val_b, .src1_vreg = v_off_b, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x002ea800 }; + omega_bw_ir_append(prog, &insn_ldb); + + /* Multiply and accumulate: IMAD v_acc, v_val_a, v_val_b, v_acc */ + BlackwellIRInsn insn_acc = { .op = BW_IR_IMAD, .dst_vreg = v_acc, .src1_vreg = v_val_a, .src2_vreg = v_val_b, .src3_vreg = v_acc, .control = 0x004fca00 }; + omega_bw_ir_append(prog, &insn_acc); + } + + /* 10. Compute output index: idx_c = row * N + col */ + BlackwellIRInsn insn_idxc = { .op = BW_IR_IMAD, .dst_vreg = v_idx_c, .src1_vreg = v_row, .src2_vreg = -1, .imm = spec->n, .src3_vreg = v_col }; + omega_bw_ir_append(prog, &insn_idxc); + + /* off_c = v_ptr_c + idx_c * 4 */ + BlackwellIRInsn insn_offc = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off_c, .src1_vreg = v_idx_c, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c }; + omega_bw_ir_append(prog, &insn_offc); + + /* Store C[row, col]: STG.E desc[uv_desc][v_off_c.64], v_acc */ + BlackwellIRInsn insn_stc = { .op = BW_IR_STG_E, .src1_vreg = v_off_c, .src2_vreg = v_acc, .src3_vreg = -1, .ureg = uv_desc }; + omega_bw_ir_append(prog, &insn_stc); + + /* 11. Kernel termination */ + BlackwellIRInsn insn_exit = { .op = BW_IR_EXIT, .predicate_p0 = false }; + omega_bw_ir_append(prog, &insn_exit); + + BlackwellIRInsn insn_bra = { .op = BW_IR_BRA }; + omega_bw_ir_append(prog, &insn_bra); + + /* 12. Solve bounded deterministic register allocation */ + if (omega_bw_regalloc_solve(prog) != 0) { + return -1; + } + return 0; +} + +/* ---- native v1 P07 cut A.2: allocation-free kernel encoding --------------------------------- + * The one place a solved IR program becomes a kernel. Hosted and freestanding builds both encode + * through it, so the two produce the same bytes for the same program (make test-codegen-freestanding + * compares them). */ +size_t omega_bw_program_code_bytes(const BlackwellIRProgram *prog) { + if (!prog) return 0; + size_t padded_insns = (prog->count + 7) & ~(size_t)7; + if (padded_insns < 32) padded_insns = 32; + return padded_insns * 16; +} + +int omega_blackwell_kernel_encode_into(const BlackwellIRProgram *prog, uint8_t *code_buf, size_t code_cap, + OmegaBlackwellKernel *kernel) { + if (!kernel) return -1; + memset(kernel, 0, sizeof *kernel); + if (!prog || !code_buf) return -1; + size_t need = omega_bw_program_code_bytes(prog); + if (code_cap < need) return OMEGA_BW_CODE_BUFFER_TOO_SMALL; /* refused before any byte is written */ + size_t emitted_size = 0; + if (omega_bw_encode_program(prog, code_buf, code_cap, &emitted_size) != 0) return -1; + kernel->code = code_buf; + kernel->code_size = emitted_size; + kernel->insn_count = emitted_size / 16; + kernel->gpr_count = prog->regalloc.peak_gpr_usage; + kernel->uniform_gpr_count = prog->regalloc.peak_ugpr_usage; + sha256_hash(kernel->code, kernel->code_size, kernel->code_digest); + return 0; +} + +#ifndef OMEGA_GPU_NO_POSIX +/* Hosted only: the allocating generators keep their names, caps and behavior. Each builds the program, + * mallocs max_bytes (the cap each generator always had) and encodes through omega_blackwell_kernel_encode_into; + * omega_blackwell_kernel_free releases the buffer. */ +static int bw_kernel_alloc_encode(const BlackwellIRProgram *prog, size_t max_bytes, OmegaBlackwellKernel *kernel) { + uint8_t *buf = (uint8_t *)malloc(max_bytes); + if (!buf) { kernel->code = NULL; return -1; } + if (omega_blackwell_kernel_encode_into(prog, buf, max_bytes, kernel) != 0) { + free(buf); + kernel->code = NULL; + return -1; + } + return 0; +} + +int omega_blackwell_codegen_matmul_i32(const OmegaMatMulSpec *spec, OmegaBlackwellKernel *kernel) { + if (!spec || !kernel) return -1; + BlackwellIRProgram prog; + if (omega_blackwell_codegen_matmul_i32_prog(spec, &prog) != 0) return -1; + /* 13. the code buffer is exactly the padded program (the i32 generator never had a fixed cap) */ + return bw_kernel_alloc_encode(&prog, omega_bw_program_code_bytes(&prog), kernel); +} +#endif + +int omega_blackwell_codegen_matmul_tensor_prog(const OmegaMatMulSpec *spec, BlackwellIRProgram *prog) { + if (!spec || !prog) return -1; + if (spec->m == 0 || spec->k == 0 || spec->n == 0) return -1; + if (spec->precision != OMEGA_MATMUL_PRECISION_FP16 && spec->precision != OMEGA_MATMUL_PRECISION_BF16) return -1; + if (spec->m % 16 != 0 || spec->n % 8 != 0 || spec->k != 16) { + BW_DIAG("ERROR: MatMul tensor codegen requires M multiple of 16, N multiple of 8, K=16 (got %ux%ux%u)\n", + spec->m, spec->k, spec->n); + return -1; + } + + omega_bw_ir_init(prog); + + /* 1. Allocate virtual registers */ + /* 64-bit base pointers */ + int v_ptr_a = omega_bw_ir_alloc_vreg64(prog); + int v_ptr_b = omega_bw_ir_alloc_vreg64(prog); + int v_ptr_c = omega_bw_ir_alloc_vreg64(prog); + int uv_desc = omega_bw_ir_alloc_uvreg64(prog); + + /* 32-bit CTA / Thread indexing */ + int v_tid = omega_bw_ir_alloc_vreg(prog); + int v_ctaid_x = omega_bw_ir_alloc_vreg(prog); + int v_ctaid_y = omega_bw_ir_alloc_vreg(prog); + + /* Tile and thread coordinates */ + int v_group_id = omega_bw_ir_alloc_vreg(prog); + int v_tid_in_grp = omega_bw_ir_alloc_vreg(prog); + int v_row_base = omega_bw_ir_alloc_vreg(prog); + int v_col_base = omega_bw_ir_alloc_vreg(prog); + int v_r0 = omega_bw_ir_alloc_vreg(prog); + int v_r1 = omega_bw_ir_alloc_vreg(prog); + int v_col_b = omega_bw_ir_alloc_vreg(prog); + int v_tid_col2 = omega_bw_ir_alloc_vreg(prog); + int v_const_1 = omega_bw_ir_alloc_vreg(prog); + + /* Bundles for HMMA */ + int v_ra = omega_bw_ir_alloc_vreg128(prog); /* Quad: Ra[0]..Ra[3] */ + int v_rb = omega_bw_ir_alloc_vreg64(prog); /* Pair: Rb[0]..Rb[1] */ + int v_rd = omega_bw_ir_alloc_vreg128(prog); /* Quad: Rd[0]..Rd[3] */ + + /* Scratch registers for indexing and loads */ + int v_idx = omega_bw_ir_alloc_vreg(prog); + int v_off = omega_bw_ir_alloc_vreg64(prog); + int v_b_tmp0 = omega_bw_ir_alloc_vreg(prog); + int v_b_tmp1 = omega_bw_ir_alloc_vreg(prog); + + if (v_b_tmp1 < 0) return -1; + + /* 2. Load 64-bit global memory descriptor into uniform register pair */ + /* LDCU.64 uv_desc, c[0x0][0x358] */ + BlackwellIRInsn insn_desc = { .op = BW_IR_LDCU64, .dst_vreg = uv_desc, .imm = 0x358, .is_uniform = true }; + omega_bw_ir_append(prog, &insn_desc); + + /* 3. Load 64-bit base pointers from Constant Bank 0 */ + /* LDC.64 v_ptr_a, c[0x0][0x380] */ + BlackwellIRInsn insn_ptra = { .op = BW_IR_LDC64, .dst_vreg = v_ptr_a, .imm = 0x380 }; + omega_bw_ir_append(prog, &insn_ptra); + + /* LDC.64 v_ptr_b, c[0x0][0x388] */ + BlackwellIRInsn insn_ptrb = { .op = BW_IR_LDC64, .dst_vreg = v_ptr_b, .imm = 0x388 }; + omega_bw_ir_append(prog, &insn_ptrb); + + /* LDC.64 v_ptr_c, c[0x0][0x390] */ + BlackwellIRInsn insn_ptrc = { .op = BW_IR_LDC64, .dst_vreg = v_ptr_c, .imm = 0x390 }; + omega_bw_ir_append(prog, &insn_ptrc); + + /* 4. Query Special Registers */ + /* S2R v_tid, SR_TID.X */ + BlackwellIRInsn insn_tidx = { .op = BW_IR_S2R, .dst_vreg = v_tid, .imm = BW_SR_TID_X }; + omega_bw_ir_append(prog, &insn_tidx); + + /* S2R v_ctaid_x, SR_CTAID.X */ + BlackwellIRInsn insn_cta_x = { .op = BW_IR_S2R, .dst_vreg = v_ctaid_x, .imm = BW_SR_CTAID_X }; + omega_bw_ir_append(prog, &insn_cta_x); + + /* S2R v_ctaid_y, SR_CTAID.Y */ + BlackwellIRInsn insn_cta_y = { .op = BW_IR_S2R, .dst_vreg = v_ctaid_y, .imm = BW_SR_CTAID_Y }; + omega_bw_ir_append(prog, &insn_cta_y); + + /* 5. Set up constant 1 */ + BlackwellIRInsn insn_c1 = { .op = BW_IR_MOV_IMM, .dst_vreg = v_const_1, .imm = 1 }; + omega_bw_ir_append(prog, &insn_c1); + + /* 6. Extract warp-level tile and thread coordinates */ + /* group_id = tid >> 2 */ + BlackwellIRInsn insn_grp = { .op = BW_IR_SHF_R, .dst_vreg = v_group_id, .src1_vreg = v_tid, .imm = 2 }; + omega_bw_ir_append(prog, &insn_grp); + + /* tid_in_grp = tid & 3 */ + BlackwellIRInsn insn_tig = { .op = BW_IR_LOP3_AND, .dst_vreg = v_tid_in_grp, .src1_vreg = v_tid, .imm = 3 }; + omega_bw_ir_append(prog, &insn_tig); + + /* row_base = ctaid_y * 16 */ + BlackwellIRInsn insn_rbase = { .op = BW_IR_IMAD, .dst_vreg = v_row_base, .src1_vreg = v_ctaid_y, .src2_vreg = -1, .imm = 16, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_rbase); + + /* col_base = ctaid_x * 8 */ + BlackwellIRInsn insn_cbase = { .op = BW_IR_IMAD, .dst_vreg = v_col_base, .src1_vreg = v_ctaid_x, .src2_vreg = -1, .imm = 8, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_cbase); + + /* r0 = row_base + group_id */ + BlackwellIRInsn insn_r0 = { .op = BW_IR_IADD3, .dst_vreg = v_r0, .src1_vreg = v_row_base, .src2_vreg = v_group_id, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_r0); + + /* r1 = r0 + 8 */ + BlackwellIRInsn insn_r1 = { .op = BW_IR_IMAD, .dst_vreg = v_r1, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = 8, .src3_vreg = v_r0 }; + omega_bw_ir_append(prog, &insn_r1); + + /* col_b = col_base + group_id */ + BlackwellIRInsn insn_colb = { .op = BW_IR_IADD3, .dst_vreg = v_col_b, .src1_vreg = v_col_base, .src2_vreg = v_group_id, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_colb); + + /* tid_col2 = tid_in_grp * 2 */ + BlackwellIRInsn insn_tcol2 = { .op = BW_IR_IMAD, .dst_vreg = v_tid_col2, .src1_vreg = v_tid_in_grp, .src2_vreg = -1, .imm = 2, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_tcol2); + + /* 7. Load A fragments (16x16 row-major, 2 bytes/element, row stride 32 bytes) */ + /* Pair 0: a0, a1 at r0 * 32 + tid_col2 * 2 */ + BlackwellIRInsn insn_a0_idx1 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r0, .src2_vreg = -1, .imm = 32, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_a0_idx1); + BlackwellIRInsn insn_a0_idx2 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_tid_col2, .src2_vreg = -1, .imm = 2, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_a0_idx2); + BlackwellIRInsn insn_a0_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 1, .src3_vreg = v_ptr_a }; + omega_bw_ir_append(prog, &insn_a0_off); + BlackwellIRInsn insn_lda0 = { .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 0, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x001ea800 }; + omega_bw_ir_append(prog, &insn_lda0); + + /* Pair 1: a2, a3 at r1 * 32 + tid_col2 * 2 */ + BlackwellIRInsn insn_a1_idx1 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r1, .src2_vreg = -1, .imm = 32, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_a1_idx1); + BlackwellIRInsn insn_a1_idx2 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_tid_col2, .src2_vreg = -1, .imm = 2, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_a1_idx2); + BlackwellIRInsn insn_a1_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 1, .src3_vreg = v_ptr_a }; + omega_bw_ir_append(prog, &insn_a1_off); + BlackwellIRInsn insn_lda1 = { .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 1, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x001ea800 }; + omega_bw_ir_append(prog, &insn_lda1); + + /* Pair 2: a4, a5 at r0 * 32 + tid_col2 * 2 + 16 */ + BlackwellIRInsn insn_a2_idx1 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r0, .src2_vreg = -1, .imm = 32, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_a2_idx1); + BlackwellIRInsn insn_a2_idx2 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_tid_col2, .src2_vreg = -1, .imm = 2, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_a2_idx2); + BlackwellIRInsn insn_a2_idx3 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = 16, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_a2_idx3); + BlackwellIRInsn insn_a2_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 1, .src3_vreg = v_ptr_a }; + omega_bw_ir_append(prog, &insn_a2_off); + BlackwellIRInsn insn_lda2 = { .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 2, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x001ea800 }; + omega_bw_ir_append(prog, &insn_lda2); + + /* Pair 3: a6, a7 at r1 * 32 + tid_col2 * 2 + 16 */ + BlackwellIRInsn insn_a3_idx1 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r1, .src2_vreg = -1, .imm = 32, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_a3_idx1); + BlackwellIRInsn insn_a3_idx2 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_tid_col2, .src2_vreg = -1, .imm = 2, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_a3_idx2); + BlackwellIRInsn insn_a3_idx3 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = 16, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_a3_idx3); + BlackwellIRInsn insn_a3_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 1, .src3_vreg = v_ptr_a }; + omega_bw_ir_append(prog, &insn_a3_off); + BlackwellIRInsn insn_lda3 = { .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 3, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x001ea800 }; + omega_bw_ir_append(prog, &insn_lda3); + + /* 8. Load and pack B fragments (16xN row-major, 2 bytes/element) */ + /* b0 at tid_col2 * N + col_b */ + BlackwellIRInsn insn_b0_idx = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_tid_col2, .src2_vreg = -1, .imm = spec->n, .src3_vreg = v_col_b }; + omega_bw_ir_append(prog, &insn_b0_idx); + BlackwellIRInsn insn_b0_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 2, .src3_vreg = v_ptr_b }; + omega_bw_ir_append(prog, &insn_b0_off); + BlackwellIRInsn insn_ldb0 = { .op = BW_IR_LDG_E_U16, .dst_vreg = v_b_tmp0, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x002ea800 }; + omega_bw_ir_append(prog, &insn_ldb0); + + /* b1 at (tid_col2 + 1) * N + col_b = b0_idx + N */ + BlackwellIRInsn insn_b1_idx = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = spec->n, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_b1_idx); + BlackwellIRInsn insn_b1_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 2, .src3_vreg = v_ptr_b }; + omega_bw_ir_append(prog, &insn_b1_off); + BlackwellIRInsn insn_ldb1 = { .op = BW_IR_LDG_E_U16, .dst_vreg = v_b_tmp1, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x002ea800 }; + omega_bw_ir_append(prog, &insn_ldb1); + + /* Pack Rb[0] = (b1 << 16) | b0 (wait on barrier 2) */ + BlackwellIRInsn insn_pack_b0 = { .op = BW_IR_IMAD, .dst_vreg = v_rb, .dst_subreg = 0, .src1_vreg = v_b_tmp1, .src2_vreg = -1, .imm = 0x10000, .src3_vreg = v_b_tmp0, .control = 0x004fca00 }; + omega_bw_ir_append(prog, &insn_pack_b0); + + /* b2 at (tid_col2 + 8) * N + col_b */ + BlackwellIRInsn insn_b2_idx1 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_tid_col2, .src2_vreg = -1, .imm = spec->n, .src3_vreg = v_col_b }; + omega_bw_ir_append(prog, &insn_b2_idx1); + BlackwellIRInsn insn_b2_idx2 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = 8 * spec->n, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_b2_idx2); + BlackwellIRInsn insn_b2_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 2, .src3_vreg = v_ptr_b }; + omega_bw_ir_append(prog, &insn_b2_off); + BlackwellIRInsn insn_ldb2 = { .op = BW_IR_LDG_E_U16, .dst_vreg = v_b_tmp0, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x002ea800 }; + omega_bw_ir_append(prog, &insn_ldb2); + + /* b3 at (tid_col2 + 9) * N + col_b = b2_idx + N */ + BlackwellIRInsn insn_b3_idx = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = spec->n, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_b3_idx); + BlackwellIRInsn insn_b3_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 2, .src3_vreg = v_ptr_b }; + omega_bw_ir_append(prog, &insn_b3_off); + BlackwellIRInsn insn_ldb3 = { .op = BW_IR_LDG_E_U16, .dst_vreg = v_b_tmp1, .src1_vreg = v_off, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = 0x002ea800 }; + omega_bw_ir_append(prog, &insn_ldb3); + + /* Pack Rb[1] = (b3 << 16) | b2 (wait on barrier 2) */ + BlackwellIRInsn insn_pack_b1 = { .op = BW_IR_IMAD, .dst_vreg = v_rb, .dst_subreg = 1, .src1_vreg = v_b_tmp1, .src2_vreg = -1, .imm = 0x10000, .src3_vreg = v_b_tmp0, .control = 0x004fca00 }; + omega_bw_ir_append(prog, &insn_pack_b1); + + /* 9. Execute HMMA Tensor Core instruction (wait on barrier 1 for A loads) */ + BlackwellIROpcode mma_op = (spec->precision == OMEGA_MATMUL_PRECISION_BF16) ? BW_IR_HMMA_BF16 : BW_IR_HMMA_F16; + BlackwellIRInsn insn_hmma = { + .op = mma_op, + .dst_vreg = v_rd, + .dst_subreg = 0, + .src1_vreg = v_ra, + .src1_subreg = 0, + .src2_vreg = v_rb, + .src2_subreg = 0, + .src3_vreg = -1, /* RZ accumulator input */ + .control = 0x002fca00 /* Wait on barrier 1 */ + }; + omega_bw_ir_append(prog, &insn_hmma); + + /* 10. Store C output fragments (16xN row-major, 4 bytes/float element) */ + /* d0: row r0, col col_base + tid_col2 + 0 */ + BlackwellIRInsn insn_d0_idx1 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r0, .src2_vreg = -1, .imm = spec->n, .src3_vreg = v_col_base }; + omega_bw_ir_append(prog, &insn_d0_idx1); + BlackwellIRInsn insn_d0_idx2 = { .op = BW_IR_IADD3, .dst_vreg = v_idx, .src1_vreg = v_idx, .src2_vreg = v_tid_col2, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_d0_idx2); + BlackwellIRInsn insn_d0_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c }; + omega_bw_ir_append(prog, &insn_d0_off); + BlackwellIRInsn insn_std0 = { .op = BW_IR_STG_E, .src1_vreg = v_off, .src2_vreg = v_rd, .src2_subreg = 0, .ureg = uv_desc, .control = 0x000fe200 }; + omega_bw_ir_append(prog, &insn_std0); + + /* d1: row r0, col col_base + tid_col2 + 1 */ + BlackwellIRInsn insn_d1_idx = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = 1, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_d1_idx); + BlackwellIRInsn insn_d1_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c }; + omega_bw_ir_append(prog, &insn_d1_off); + BlackwellIRInsn insn_std1 = { .op = BW_IR_STG_E, .src1_vreg = v_off, .src2_vreg = v_rd, .src2_subreg = 1, .ureg = uv_desc, .control = 0x000fe200 }; + omega_bw_ir_append(prog, &insn_std1); + + /* d2: row r1, col col_base + tid_col2 + 0 */ + BlackwellIRInsn insn_d2_idx1 = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r1, .src2_vreg = -1, .imm = spec->n, .src3_vreg = v_col_base }; + omega_bw_ir_append(prog, &insn_d2_idx1); + BlackwellIRInsn insn_d2_idx2 = { .op = BW_IR_IADD3, .dst_vreg = v_idx, .src1_vreg = v_idx, .src2_vreg = v_tid_col2, .src3_vreg = -1 }; + omega_bw_ir_append(prog, &insn_d2_idx2); + BlackwellIRInsn insn_d2_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c }; + omega_bw_ir_append(prog, &insn_d2_off); + BlackwellIRInsn insn_std2 = { .op = BW_IR_STG_E, .src1_vreg = v_off, .src2_vreg = v_rd, .src2_subreg = 2, .ureg = uv_desc, .control = 0x000fe200 }; + omega_bw_ir_append(prog, &insn_std2); + + /* d3: row r1, col col_base + tid_col2 + 1 */ + BlackwellIRInsn insn_d3_idx = { .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_const_1, .src2_vreg = -1, .imm = 1, .src3_vreg = v_idx }; + omega_bw_ir_append(prog, &insn_d3_idx); + BlackwellIRInsn insn_d3_off = { .op = BW_IR_IMAD_WIDE, .dst_vreg = v_off, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c }; + omega_bw_ir_append(prog, &insn_d3_off); + BlackwellIRInsn insn_std3 = { .op = BW_IR_STG_E, .src1_vreg = v_off, .src2_vreg = v_rd, .src2_subreg = 3, .ureg = uv_desc, .control = 0x000fe200 }; + omega_bw_ir_append(prog, &insn_std3); + + /* 11. Program Exit */ + BlackwellIRInsn insn_exit = { .op = BW_IR_EXIT }; + omega_bw_ir_append(prog, &insn_exit); + BlackwellIRInsn insn_bra = { .op = BW_IR_BRA }; + omega_bw_ir_append(prog, &insn_bra); + + /* 12. Run bounded register allocation */ + if (omega_bw_regalloc_solve(prog) != 0) { + return -1; + } + return 0; +} + +#ifndef OMEGA_GPU_NO_POSIX +int omega_blackwell_codegen_matmul_tensor(const OmegaMatMulSpec *spec, OmegaBlackwellKernel *kernel) { + if (!spec || !kernel) return -1; + BlackwellIRProgram prog; + if (omega_blackwell_codegen_matmul_tensor_prog(spec, &prog) != 0) { + return -1; + } + + return bw_kernel_alloc_encode(&prog, OMEGA_BW_CODE_CAP_SMALL, kernel); +} +#endif + +/* ---- FB-1 cut 1b: looped tensor matmul ------------------------------------------ + * + * Control words (bundle bits 105..125, decoded from the chip-proven kernel and from + * the vendor compiler's SASS for an equivalent HMMA loop on this chip, 2026-10-04): + * stall = bits 9..12 of w[3], yield = 13, write barrier = 14..16, read barrier = + * 17..19, wait mask = 20..25. 7 in a barrier field means "none". + * LDG (A) 0x001ea800 stall 4, yield, sets SB2 + * LDG.U16 (B) 0x002ea800 stall 4, yield, sets SB2 + * pack IMAD 0x004fca00 stall 5, waits SB2 (every outstanding load has landed) + * HMMA 0x002fca00 stall 5 (fixed latency: the vendor compiler sets no + * write barrier on HMMA either; consumers wait by stall count) + * STG 0x0007e200 stall 1, yield, read barrier SB3 (the store may read its + * data/address registers late; the next writer waits SB3) + * wait SB3 mask bit 23 (0x00800000) on the first instruction that overwrites a + * register a store reads: the C pointer advance. + * Loop-carried registers are kept live to the end of their loop (keep_alive) because + * the allocator is a straight-line linear scan and knows nothing about back edges. + */ +static void bw_keep_alive(BlackwellIRProgram *prog, int from_idx, int to_idx, int last_idx) { + /* every vreg first defined in [from_idx, to_idx) stays live until last_idx */ + for (int v = 0; v < prog->regalloc.num_vregs; v++) { + OmegaLiveInterval *iv = &prog->regalloc.intervals[v]; + if (iv->first_def >= from_idx && iv->first_def < to_idx && iv->last_use < last_idx) + iv->last_use = last_idx; + } +} + +#define BW_APPEND(prog, ...) do { BlackwellIRInsn _i = { __VA_ARGS__ }; if (omega_bw_ir_append((prog), &_i) < 0) return -1; } while (0) + +int omega_blackwell_codegen_matmul_tensor_loop_prog(const OmegaMatMulSpec *spec, uint32_t grid_x, + int mutant, BlackwellIRProgram *prog) { + if (!spec || !prog) return -1; + if (spec->m == 0 || spec->k == 0 || spec->n == 0) return -1; + if (spec->precision != OMEGA_MATMUL_PRECISION_FP16 && spec->precision != OMEGA_MATMUL_PRECISION_BF16) return -1; + if (spec->m % 16 != 0 || spec->n % 8 != 0 || spec->k % 16 != 0) { + BW_DIAG("ERROR: looped MatMul tensor codegen requires M%%16, N%%8, K%%16 (got %ux%ux%u)\n", + spec->m, spec->k, spec->n); + return -1; + } + const uint32_t K = spec->k, N = spec->n, NT = N / 8, KSTEPS = K / 16; + if (grid_x == 0 || grid_x > NT) return -1; + /* every immediate below must fit 32 bits: 32 * N (B row-block stride in bytes) is the largest */ + if ((uint64_t)N * 32u > 0xffffffffull || (uint64_t)grid_x * 32u > 0xffffffffull) return -1; + if (mutant && KSTEPS < 2) return -1; + + omega_bw_ir_init(prog); + + int v_ptr_a = omega_bw_ir_alloc_vreg64(prog), v_ptr_b = omega_bw_ir_alloc_vreg64(prog), v_ptr_c = omega_bw_ir_alloc_vreg64(prog); + int uv_desc = omega_bw_ir_alloc_uvreg64(prog); + int v_tid = omega_bw_ir_alloc_vreg(prog), v_ctaid_x = omega_bw_ir_alloc_vreg(prog), v_ctaid_y = omega_bw_ir_alloc_vreg(prog); + int v_group = omega_bw_ir_alloc_vreg(prog), v_tig = omega_bw_ir_alloc_vreg(prog), v_tcol2 = omega_bw_ir_alloc_vreg(prog); + int v_r0 = omega_bw_ir_alloc_vreg(prog), v_r1 = omega_bw_ir_alloc_vreg(prog), v_c1 = omega_bw_ir_alloc_vreg(prog); + int v_idx = omega_bw_ir_alloc_vreg(prog), v_col = omega_bw_ir_alloc_vreg(prog), v_cnt = omega_bw_ir_alloc_vreg(prog); + int v_pa0 = omega_bw_ir_alloc_vreg64(prog), v_pa1 = omega_bw_ir_alloc_vreg64(prog), v_pbcol = omega_bw_ir_alloc_vreg64(prog); + int v_pc0 = omega_bw_ir_alloc_vreg64(prog), v_pc1 = omega_bw_ir_alloc_vreg64(prog); + int v_pa0c = omega_bw_ir_alloc_vreg64(prog), v_pa1c = omega_bw_ir_alloc_vreg64(prog), v_pbc = omega_bw_ir_alloc_vreg64(prog); + int v_ta2 = omega_bw_ir_alloc_vreg64(prog), v_ta3 = omega_bw_ir_alloc_vreg64(prog); + int v_tb1 = omega_bw_ir_alloc_vreg64(prog), v_tb2 = omega_bw_ir_alloc_vreg64(prog), v_tb3 = omega_bw_ir_alloc_vreg64(prog); + int v_tc1 = omega_bw_ir_alloc_vreg64(prog), v_tc3 = omega_bw_ir_alloc_vreg64(prog); + int v_ra = omega_bw_ir_alloc_vreg128(prog), v_rb = omega_bw_ir_alloc_vreg64(prog), v_rd = omega_bw_ir_alloc_vreg128(prog); + int v_b0 = omega_bw_ir_alloc_vreg(prog), v_b1 = omega_bw_ir_alloc_vreg(prog); + if (v_b1 < 0 || uv_desc < 0) return -1; + + const uint32_t CTRL_LDA = 0x001ea800u, CTRL_LDB = 0x002ea800u, CTRL_PACK = 0x004fca00u; + const uint32_t CTRL_HMMA = 0x002fca00u, CTRL_STG_RDBAR3 = 0x0007e200u, CTRL_IMADW_WAIT3 = 0x009fcc00u; + const uint32_t CTRL_MOVRZ_WAIT3 = 0x008fe200u; + + /* prologue: descriptor, pointers, ids */ + BW_APPEND(prog, .op = BW_IR_LDCU64, .dst_vreg = uv_desc, .imm = 0x358, .is_uniform = true); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_a, .imm = 0x380); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_b, .imm = 0x388); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_c, .imm = 0x390); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_tid, .imm = BW_SR_TID_X); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_ctaid_x, .imm = BW_SR_CTAID_X); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_ctaid_y, .imm = BW_SR_CTAID_Y); + BW_APPEND(prog, .op = BW_IR_MOV_IMM, .dst_vreg = v_c1, .imm = 1); + BW_APPEND(prog, .op = BW_IR_SHF_R, .dst_vreg = v_group, .src1_vreg = v_tid, .imm = 2); + BW_APPEND(prog, .op = BW_IR_LOP3_AND, .dst_vreg = v_tig, .src1_vreg = v_tid, .imm = 3); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_tcol2, .src1_vreg = v_tig, .src2_vreg = -1, .imm = 2, .src3_vreg = -1); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_r0, .src1_vreg = v_ctaid_y, .src2_vreg = -1, .imm = 16, .src3_vreg = v_group); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_r1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 8, .src3_vreg = v_r0); + /* pa0 = A + (r0*K + tcol2)*2 ; pa1 likewise with r1 (A row-major, K bf16 per row) */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r0, .src2_vreg = -1, .imm = K, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa0, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 2, .src3_vreg = v_ptr_a); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r1, .src2_vreg = -1, .imm = K, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa1, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 2, .src3_vreg = v_ptr_a); + /* col = ctaid_x (first column tile of this CTA) */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_col, .src1_vreg = v_ctaid_x, .src2_vreg = -1, .imm = 1, .src3_vreg = -1); + /* pbcol = B + (tcol2*N + col*8 + group)*2 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_tcol2, .src2_vreg = -1, .imm = N, .src3_vreg = v_group); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = 8, .src3_vreg = v_idx); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbcol, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 2, .src3_vreg = v_ptr_b); + /* pc0 = C + (r0*N + col*8 + tcol2)*4 ; pc1 with r1 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r0, .src2_vreg = -1, .imm = N, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = 8, .src3_vreg = v_idx); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc0, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r1, .src2_vreg = -1, .imm = N, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = 8, .src3_vreg = v_idx); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc1, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c); + + /* ---- column-tile loop ---- */ + const int L_col = (int)prog->count; + /* accumulator = 0 (the first write waits SB3: the previous tile's stores may still read it) */ + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 0, .control = CTRL_MOVRZ_WAIT3); + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 1); + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 2); + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 3); + /* K cursors start at the row/column bases (IMAD.WIDE with imm 0 is a 64-bit copy) */ + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa0c, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0, .src3_vreg = v_pa0); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa1c, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0, .src3_vreg = v_pa1); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbc, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0, .src3_vreg = v_pbcol); + BW_APPEND(prog, .op = BW_IR_MOV_IMM, .dst_vreg = v_cnt, .imm = mutant ? KSTEPS - 1 : KSTEPS); + + /* ---- K loop: one 16x16 A fragment and one 16x8 B fragment per step ---- */ + const int L_k = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_ta2, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 16, .src3_vreg = v_pa0c); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_ta3, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 16, .src3_vreg = v_pa1c); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_tb1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 2u * N, .src3_vreg = v_pbc); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_tb2, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 16u * N, .src3_vreg = v_pbc); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_tb3, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 18u * N, .src3_vreg = v_pbc); + /* A: a0,a1 at (r0, kk+tcol2) ; a2,a3 at (r1, ...) ; a4,a5 at (r0, +8) ; a6,a7 at (r1, +8) */ + BW_APPEND(prog, .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 0, .src1_vreg = v_pa0c, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDA); + BW_APPEND(prog, .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 1, .src1_vreg = v_pa1c, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDA); + BW_APPEND(prog, .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 2, .src1_vreg = v_ta2, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDA); + BW_APPEND(prog, .op = BW_IR_LDG_E, .dst_vreg = v_ra, .dst_subreg = 3, .src1_vreg = v_ta3, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDA); + /* B: rows kk+tcol2, +1, +8, +9 at column col*8+group */ + BW_APPEND(prog, .op = BW_IR_LDG_E_U16, .dst_vreg = v_b0, .src1_vreg = v_pbc, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDB); + BW_APPEND(prog, .op = BW_IR_LDG_E_U16, .dst_vreg = v_b1, .src1_vreg = v_tb1, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDB); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_rb, .dst_subreg = 0, .src1_vreg = v_b1, .src2_vreg = -1, .imm = 0x10000, .src3_vreg = v_b0, .control = CTRL_PACK); + BW_APPEND(prog, .op = BW_IR_LDG_E_U16, .dst_vreg = v_b0, .src1_vreg = v_tb2, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDB); + BW_APPEND(prog, .op = BW_IR_LDG_E_U16, .dst_vreg = v_b1, .src1_vreg = v_tb3, .src2_vreg = -1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_LDB); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_rb, .dst_subreg = 1, .src1_vreg = v_b1, .src2_vreg = -1, .imm = 0x10000, .src3_vreg = v_b0, .control = CTRL_PACK); + /* rd += ra * rb (accumulate in place) */ + BW_APPEND(prog, .op = (spec->precision == OMEGA_MATMUL_PRECISION_BF16) ? BW_IR_HMMA_BF16 : BW_IR_HMMA_F16, + .dst_vreg = v_rd, .dst_subreg = 0, .src1_vreg = v_ra, .src1_subreg = 0, .src2_vreg = v_rb, .src2_subreg = 0, + .src3_vreg = v_rd, .src3_subreg = 0, .control = CTRL_HMMA); + /* advance K: A by 16 bf16 (32 bytes), B by 16 rows (32 N bytes); every load above has landed (packs waited SB2) */ + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa0c, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 32, .src3_vreg = v_pa0c); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa1c, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 32, .src3_vreg = v_pa1c); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbc, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 32u * N, .src3_vreg = v_pbc); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_cnt, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0xffffffffu, .src3_vreg = v_cnt); + BW_APPEND(prog, .op = BW_IR_ISETP_GE, .dst_vreg = -1, .src1_vreg = v_cnt, .src2_vreg = -1, .imm = 1, .src3_vreg = -1); + { + int here = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_BRA, .imm = (uint32_t)(int32_t)(L_k - here), .predicate_p0 = true); + } + const int L_k_end = (int)prog->count - 1; + + /* ---- store the 16x8 tile: d0 (r0, c), d1 (r0, c+1), d2 (r1, c), d3 (r1, c+1) ---- */ + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_tc1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 4, .src3_vreg = v_pc0); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_tc3, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 4, .src3_vreg = v_pc1); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc0, .src2_vreg = v_rd, .src2_subreg = 0, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_tc1, .src2_vreg = v_rd, .src2_subreg = 1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc1, .src2_vreg = v_rd, .src2_subreg = 2, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_tc3, .src2_vreg = v_rd, .src2_subreg = 3, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + /* next column tile of this CTA: col += grid_x ; B by grid_x*8 bf16 ; C by grid_x*8 f32 (waits SB3 first) */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_col, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x, .src3_vreg = v_col); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc0, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * 32u, .src3_vreg = v_pc0, .control = CTRL_IMADW_WAIT3); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * 32u, .src3_vreg = v_pc1); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbcol, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * 16u, .src3_vreg = v_pbcol); + BW_APPEND(prog, .op = BW_IR_ISETP_GE, .dst_vreg = -1, .src1_vreg = v_col, .src2_vreg = -1, .imm = NT, .src3_vreg = -1); + { + int here = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_BRA, .imm = (uint32_t)(int32_t)(L_col - here), .predicate_p0 = true, .predicate_not = true); + } + const int L_col_end = (int)prog->count - 1; + BW_APPEND(prog, .op = BW_IR_EXIT); + BW_APPEND(prog, .op = BW_IR_BRA); + + /* loop-carried values live to the end of their loop */ + bw_keep_alive(prog, 0, L_col, L_col_end); + bw_keep_alive(prog, L_col, L_k, L_k_end); + /* K-loop temporaries too: a load's address pair must never be recycled by a + * later instruction of the same iteration (the load may read it late). */ + bw_keep_alive(prog, L_k, L_k_end, L_k_end); + /* the accumulator is read by the stores after the K loop */ + if (prog->regalloc.intervals[v_rd].last_use < L_col_end) prog->regalloc.intervals[v_rd].last_use = L_col_end; + + return omega_bw_regalloc_solve(prog); +} + +#ifndef OMEGA_GPU_NO_POSIX +int omega_blackwell_codegen_matmul_tensor_loop(const OmegaMatMulSpec *spec, uint32_t grid_x, + int mutant, OmegaBlackwellKernel *kernel) { + if (!spec || !kernel) return -1; + BlackwellIRProgram prog; + if (omega_blackwell_codegen_matmul_tensor_loop_prog(spec, grid_x, mutant, &prog) != 0) return -1; + return bw_kernel_alloc_encode(&prog, OMEGA_BW_CODE_CAP_SMALL, kernel); +} +#endif + +/* ---- omega #328: fragment-major tensor matmul ---------------------------------------- + * + * The looped kernel above reads B as four scattered 2-byte loads per K step and waits for + * them before the next step (pack waits SB2), so each warp has one 256-byte step in flight; + * at m = 1 on GB10 that streams the weights at about 28 GB/s (omega #328 measurement). + * Here A and B arrive in the order HMMA.16816 consumes them (omega_matmul_frag_pack_a / _b): + * A block (mt, ks): 512 bytes, lane L at L*16: a0..a7, one LDG.E.128 per step; + * B block (nt, ks): 256 bytes, lane L at L*8: b0..b3, one LDG.E.64 per step; + * consecutive K steps of one tile are adjacent, so a warp streams its column tile. Each loop + * pass issues `unroll` steps of loads at immediate offsets (A on SB2, B on SB4), then runs the HMMA + * chain: every HMMA waits SB2 and SB4 (stall 15) and a NOP (stall 14) follows it, the 29 cycles nvcc + * puts between dependent HMMA.16816 (omega_blackwell_verify_codegen_fixtures_fragmm). + * The cursors advance only after the chain, when every load has landed (the HMMAs waited + * SB2 and SB4), as in the looped kernel. Stores, the column-tile loop and the C layout (row-major + * f32) are the looped kernel's. */ +/* A loads set SB2 and B loads SB4 (nvcc spreads loads over several scoreboards too); at the + * product unroll of 4 that is 4 loads per scoreboard per pass. The scoreboard depth is not + * documented to us; splitting did not make unroll 8 complete (omega_matmul_frag_unroll). */ +#define BW_FRAG_CTRL_LDG_A 0x000ea800u /* stall 4, yield, sets SB2 (nvcc word) */ +#define BW_FRAG_CTRL_LDG_B 0x000f2800u /* stall 4, yield, sets SB4 (nvcc word) */ +#define BW_FRAG_CTRL_HMMA 0x014fde00u /* stall 15, waits SB2 and SB4 (nvcc: dependent HMMA chain) */ +#define BW_FRAG_CTRL_NOP 0x000fdc00u /* stall 14 (nvcc, between dependent HMMAs) */ + +static void bw_live_until(BlackwellIRProgram *prog, int vreg, int last_idx) { + if (prog->regalloc.intervals[vreg].last_use < last_idx) prog->regalloc.intervals[vreg].last_use = last_idx; +} + +int omega_blackwell_codegen_matmul_frag_prog(const OmegaMatMulSpec *spec, uint32_t grid_x, uint32_t unroll, + int mutant, BlackwellIRProgram *prog) { + if (!spec || !prog) return -1; + if (spec->m == 0 || spec->k == 0 || spec->n == 0) return -1; + if (spec->precision != OMEGA_MATMUL_PRECISION_FP16 && spec->precision != OMEGA_MATMUL_PRECISION_BF16) return -1; + if (spec->m % 16 != 0 || spec->n % 8 != 0 || spec->k % 16 != 0) return -1; + if (unroll != 1 && unroll != 2 && unroll != 4 && unroll != 8) return -1; + const uint32_t K = spec->k, N = spec->n, NT = N / 8, KS = K / 16; + if (KS % unroll != 0) return -1; + const uint32_t ITERS = KS / unroll; + if (grid_x == 0 || grid_x > NT) return -1; + if (mutant && ITERS < 2) return -1; + /* every index and immediate below must fit 32 bits (rows up to OMEGA_BW_MATMUL_MAX_M) */ + if ((uint64_t)NT * KS * 32u > 0xffffffffull || (uint64_t)(OMEGA_BW_MATMUL_MAX_M / 16u) * KS * 32u > 0xffffffffull || + (uint64_t)grid_x * KS * 256u > 0xffffffffull || (uint64_t)N * 32u > 0xffffffffull || + (uint64_t)OMEGA_BW_MATMUL_MAX_M * N > 0xffffffffull) + return -1; + + omega_bw_ir_init(prog); + int v_ptr_a = omega_bw_ir_alloc_vreg64(prog), v_ptr_b = omega_bw_ir_alloc_vreg64(prog), v_ptr_c = omega_bw_ir_alloc_vreg64(prog); + int uv_desc = omega_bw_ir_alloc_uvreg64(prog); + int v_tid = omega_bw_ir_alloc_vreg(prog), v_ctaid_x = omega_bw_ir_alloc_vreg(prog), v_ctaid_y = omega_bw_ir_alloc_vreg(prog); + int v_group = omega_bw_ir_alloc_vreg(prog), v_tig = omega_bw_ir_alloc_vreg(prog), v_tcol2 = omega_bw_ir_alloc_vreg(prog); + int v_r0 = omega_bw_ir_alloc_vreg(prog), v_r1 = omega_bw_ir_alloc_vreg(prog), v_c1 = omega_bw_ir_alloc_vreg(prog); + int v_idx = omega_bw_ir_alloc_vreg(prog), v_col = omega_bw_ir_alloc_vreg(prog), v_cnt = omega_bw_ir_alloc_vreg(prog); + int v_pa = omega_bw_ir_alloc_vreg64(prog), v_pbcol = omega_bw_ir_alloc_vreg64(prog); + int v_pc0 = omega_bw_ir_alloc_vreg64(prog), v_pc1 = omega_bw_ir_alloc_vreg64(prog); + int v_pac = omega_bw_ir_alloc_vreg64(prog), v_pbc = omega_bw_ir_alloc_vreg64(prog); + int v_tc1 = omega_bw_ir_alloc_vreg64(prog), v_tc3 = omega_bw_ir_alloc_vreg64(prog); + int v_rd = omega_bw_ir_alloc_vreg128(prog); + int v_ra[8], v_rb[8]; + for (uint32_t u = 0; u < unroll; u++) { v_ra[u] = omega_bw_ir_alloc_vreg128(prog); v_rb[u] = omega_bw_ir_alloc_vreg64(prog); } + if (v_rb[unroll - 1] < 0 || v_ra[unroll - 1] < 0 || uv_desc < 0) return -1; + + const uint32_t CTRL_STG_RDBAR3 = 0x0007e200u, CTRL_IMADW_WAIT3 = 0x009fcc00u, CTRL_MOVRZ_WAIT3 = 0x008fe200u; + + /* prologue: descriptor, pointers, ids (as the looped kernel) */ + BW_APPEND(prog, .op = BW_IR_LDCU64, .dst_vreg = uv_desc, .imm = 0x358, .is_uniform = true); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_a, .imm = 0x380); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_b, .imm = 0x388); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_c, .imm = 0x390); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_tid, .imm = BW_SR_TID_X); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_ctaid_x, .imm = BW_SR_CTAID_X); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_ctaid_y, .imm = BW_SR_CTAID_Y); + BW_APPEND(prog, .op = BW_IR_MOV_IMM, .dst_vreg = v_c1, .imm = 1); + BW_APPEND(prog, .op = BW_IR_SHF_R, .dst_vreg = v_group, .src1_vreg = v_tid, .imm = 2); + BW_APPEND(prog, .op = BW_IR_LOP3_AND, .dst_vreg = v_tig, .src1_vreg = v_tid, .imm = 3); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_tcol2, .src1_vreg = v_tig, .src2_vreg = -1, .imm = 2, .src3_vreg = -1); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_r0, .src1_vreg = v_ctaid_y, .src2_vreg = -1, .imm = 16, .src3_vreg = v_group); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_r1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 8, .src3_vreg = v_r0); + /* pa = A + (ctaid_y * KS * 32 + tid) * 16: this CTA's row tile, this lane's 16 bytes of step 0 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_ctaid_y, .src2_vreg = -1, .imm = KS * 32u, .src3_vreg = v_tid); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 16, .src3_vreg = v_ptr_a); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_col, .src1_vreg = v_ctaid_x, .src2_vreg = -1, .imm = 1, .src3_vreg = -1); + /* pbcol = B + (col * KS * 32 + tid) * 8: column tile col, this lane's 8 bytes of step 0 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = KS * 32u, .src3_vreg = v_tid); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbcol, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 8, .src3_vreg = v_ptr_b); + /* pc0 = C + (r0*N + col*8 + tcol2)*4 ; pc1 with r1 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r0, .src2_vreg = -1, .imm = N, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = 8, .src3_vreg = v_idx); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc0, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r1, .src2_vreg = -1, .imm = N, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = 8, .src3_vreg = v_idx); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc1, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c); + + /* ---- column-tile loop ---- */ + const int L_col = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 0, .control = CTRL_MOVRZ_WAIT3); + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 1); + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 2); + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd, .dst_subreg = 3); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pac, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0, .src3_vreg = v_pa); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbc, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0, .src3_vreg = v_pbcol); + BW_APPEND(prog, .op = BW_IR_MOV_IMM, .dst_vreg = v_cnt, .imm = mutant ? ITERS - 1 : ITERS); + + /* ---- K loop: `unroll` steps of loads, then the HMMA chain ---- */ + const int L_k = (int)prog->count; + for (uint32_t u = 0; u < unroll; u++) { + BW_APPEND(prog, .op = BW_IR_LDG_E_128, .dst_vreg = v_ra[u], .src1_vreg = v_pac, .src2_vreg = -1, .src3_vreg = -1, + .ureg = uv_desc, .imm = u * 512u, .control = BW_FRAG_CTRL_LDG_A); + BW_APPEND(prog, .op = BW_IR_LDG_E_64, .dst_vreg = v_rb[u], .src1_vreg = v_pbc, .src2_vreg = -1, .src3_vreg = -1, + .ureg = uv_desc, .imm = u * 256u, .control = BW_FRAG_CTRL_LDG_B); + } + const BlackwellIROpcode hmma = (spec->precision == OMEGA_MATMUL_PRECISION_BF16) ? BW_IR_HMMA_BF16 : BW_IR_HMMA_F16; + for (uint32_t u = 0; u < unroll; u++) { + BW_APPEND(prog, .op = hmma, .dst_vreg = v_rd, .src1_vreg = v_ra[u], .src2_vreg = v_rb[u], .src3_vreg = v_rd, + .control = BW_FRAG_CTRL_HMMA); + BW_APPEND(prog, .op = BW_IR_NOP, .dst_vreg = -1, .src1_vreg = -1, .src2_vreg = -1, .src3_vreg = -1, .ureg = -1, + .control = BW_FRAG_CTRL_NOP); + } + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pac, .src1_vreg = v_c1, .src2_vreg = -1, .imm = unroll * 512u, .src3_vreg = v_pac); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbc, .src1_vreg = v_c1, .src2_vreg = -1, .imm = unroll * 256u, .src3_vreg = v_pbc); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_cnt, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0xffffffffu, .src3_vreg = v_cnt); + BW_APPEND(prog, .op = BW_IR_ISETP_GE, .dst_vreg = -1, .src1_vreg = v_cnt, .src2_vreg = -1, .imm = 1, .src3_vreg = -1); + { + int here = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_BRA, .imm = (uint32_t)(int32_t)(L_k - here), .predicate_p0 = true); + } + const int L_k_end = (int)prog->count - 1; + + /* ---- store the 16x8 tile (as the looped kernel) ---- */ + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_tc1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 4, .src3_vreg = v_pc0); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_tc3, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 4, .src3_vreg = v_pc1); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc0, .src2_vreg = v_rd, .src2_subreg = 0, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_tc1, .src2_vreg = v_rd, .src2_subreg = 1, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc1, .src2_vreg = v_rd, .src2_subreg = 2, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_tc3, .src2_vreg = v_rd, .src2_subreg = 3, .src3_vreg = -1, .ureg = uv_desc, .control = CTRL_STG_RDBAR3); + /* next column tile: col += grid_x ; C by grid_x*8 f32 (waits SB3 first) ; B by grid_x tiles of KS*256 bytes */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_col, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x, .src3_vreg = v_col); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc0, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * 32u, .src3_vreg = v_pc0, .control = CTRL_IMADW_WAIT3); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * 32u, .src3_vreg = v_pc1); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbcol, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * KS * 256u, .src3_vreg = v_pbcol); + BW_APPEND(prog, .op = BW_IR_ISETP_GE, .dst_vreg = -1, .src1_vreg = v_col, .src2_vreg = -1, .imm = NT, .src3_vreg = -1); + { + int here = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_BRA, .imm = (uint32_t)(int32_t)(L_col - here), .predicate_p0 = true, .predicate_not = true); + } + const int L_col_end = (int)prog->count - 1; + BW_APPEND(prog, .op = BW_IR_EXIT); + BW_APPEND(prog, .op = BW_IR_BRA); + + /* Loop-carried values live to the end of their loop (the allocator knows no back edges). + * Only these are read in a later pass than the one that wrote them; prologue temporaries + * are dead before the first loop and may be reused. K-loop temporaries (fragments) are + * kept to the end of the pass, as in the looped kernel. */ + const int col_carried[] = { v_c1, v_col, v_pa, v_pbcol, v_pc0, v_pc1, v_rd }; + for (size_t i = 0; i < sizeof col_carried / sizeof col_carried[0]; i++) bw_live_until(prog, col_carried[i], L_col_end); + const int k_carried[] = { v_pac, v_pbc, v_cnt }; + for (size_t i = 0; i < sizeof k_carried / sizeof k_carried[0]; i++) bw_live_until(prog, k_carried[i], L_k_end); + bw_keep_alive(prog, L_k, L_k_end, L_k_end); + return omega_bw_regalloc_solve(prog); +} + +#ifndef OMEGA_GPU_NO_POSIX +int omega_blackwell_codegen_matmul_frag(const OmegaMatMulSpec *spec, uint32_t grid_x, uint32_t unroll, + int mutant, OmegaBlackwellKernel *kernel) { + if (!spec || !kernel) return -1; + BlackwellIRProgram prog; + if (omega_blackwell_codegen_matmul_frag_prog(spec, grid_x, unroll, mutant, &prog) != 0) return -1; + return bw_kernel_alloc_encode(&prog, OMEGA_BW_CODE_CAP_SMALL, kernel); +} +#endif + +/* Capped at 4: unroll 8 (72 registers, 16 loads per pass) never completed on the GB10, with all + * loads on SB2 and again with A on SB2 and B on SB4 (2026-10-07 07:50Z and 07:54Z, omega #328), + * while unroll 4 (48 registers) ran every Qwen3 decode shape correctly. Cause UNKNOWN; the next + * experiment is the unroll-4 kernel launched with 72 declared registers (one variable). */ +/* ---- 2026-10-12: row/column-blocked fragment kernel (prefill rows) ------------------------ + * + * The kernel above gives one warp one 16x8 output tile: every B fragment is streamed once per row + * tile and every A fragment once per column tile, so at m = 128 on GB10 the three Qwen3-8B prefill + * shapes move about 4.7 GB per call at the DRAM rate (128x4096x24576: 20.9 ms, 2026-10-12 baseline). + * Here one warp owns RT row tiles x CT column tiles (RT*CT accumulators) over all of K: per K step + * it loads RT A fragments and CT B fragments and runs RT*CT HMMAs, so each loaded fragment feeds + * RT (B) or CT (A) tensor ops. Same packing, grid rules and C layout as the kernel above: the A + * fragments of row tile i sit at +i*KS*512 bytes, the B fragments of column tile j at +j*KS*256, + * both immediate offsets of the same cursors; the C tile (i, j) is at +i*16*N*4 + j*32 bytes from + * the two row pointers (STG.E immediate offsets, fixtures in omega_blackwell_verify_codegen_fixtures_fragmm). + * Loads per pass stay at or under 8 (unroll*(RT+CT)), the count the proven unroll-4 kernel issues; + * unroll 8 of that kernel (16 loads per pass) never completed on the GB10 and the cause is UNKNOWN, + * so this kernel does not go past that envelope. The HMMA chain keeps the dependent-chain control + * words (stall 15 then NOP stall 14) although the RT*CT accumulators are independent: a longer stall + * is never wrong, and the loads dominate the pass. CTA = one warp, as above; a grid of + * (grid_x, row blocks); column blocks advance by grid_x per pass of the column loop. */ +int omega_blackwell_codegen_matmul_frag_block_prog(const OmegaMatMulSpec *spec, uint32_t grid_x, uint32_t unroll, + uint32_t rt, uint32_t ct, int mutant, BlackwellIRProgram *prog) { + if (!spec || !prog) return -1; + if (spec->m == 0 || spec->k == 0 || spec->n == 0) return -1; + if (spec->precision != OMEGA_MATMUL_PRECISION_FP16 && spec->precision != OMEGA_MATMUL_PRECISION_BF16) return -1; + if (spec->m % 16 != 0 || spec->n % 8 != 0 || spec->k % 16 != 0) return -1; + if (rt != 1 && rt != 2 && rt != 4 && rt != 8) return -1; + if (ct != 1 && ct != 2 && ct != 4) return -1; + if (rt * ct > 16 || rt * ct < 2) return -1; /* 1x1 is the kernel above */ + if (unroll != 1 && unroll != 2) return -1; + if (unroll * (rt + ct) > 8) return -1; + const uint32_t K = spec->k, N = spec->n, NT = N / 8, KS = K / 16; + if (KS % unroll != 0 || NT % ct != 0) return -1; + const uint32_t ITERS = KS / unroll, NB = NT / ct; + if (grid_x == 0 || grid_x > NB) return -1; + if (mutant && ITERS < 2) return -1; + /* every index and immediate below must fit: 32 bits for the index arithmetic, signed 24 bits for + * the load/store offsets (rows up to OMEGA_BW_MATMUL_MAX_M) */ + if ((uint64_t)NT * KS * 32u > 0xffffffffull || (uint64_t)(OMEGA_BW_MATMUL_MAX_M / 16u) * KS * 32u > 0xffffffffull || + (uint64_t)grid_x * ct * KS * 256u > 0xffffffffull || (uint64_t)N * 32u > 0xffffffffull || + (uint64_t)OMEGA_BW_MATMUL_MAX_M * N > 0xffffffffull) + return -1; + if ((uint64_t)(rt - 1) * KS * 512u + (unroll - 1) * 512u >= (1ull << 23) || + (uint64_t)(ct - 1) * KS * 256u + (unroll - 1) * 256u >= (1ull << 23) || + (uint64_t)(rt - 1) * 16u * N * 4u + (ct - 1) * 32u + 4u >= (1ull << 23)) + return -1; + + omega_bw_ir_init(prog); + int v_ptr_a = omega_bw_ir_alloc_vreg64(prog), v_ptr_b = omega_bw_ir_alloc_vreg64(prog), v_ptr_c = omega_bw_ir_alloc_vreg64(prog); + int uv_desc = omega_bw_ir_alloc_uvreg64(prog); + int v_tid = omega_bw_ir_alloc_vreg(prog), v_ctaid_x = omega_bw_ir_alloc_vreg(prog), v_ctaid_y = omega_bw_ir_alloc_vreg(prog); + int v_group = omega_bw_ir_alloc_vreg(prog), v_tig = omega_bw_ir_alloc_vreg(prog), v_tcol2 = omega_bw_ir_alloc_vreg(prog); + int v_r0 = omega_bw_ir_alloc_vreg(prog), v_r1 = omega_bw_ir_alloc_vreg(prog), v_c1 = omega_bw_ir_alloc_vreg(prog); + int v_idx = omega_bw_ir_alloc_vreg(prog), v_col = omega_bw_ir_alloc_vreg(prog), v_cnt = omega_bw_ir_alloc_vreg(prog); + int v_pa = omega_bw_ir_alloc_vreg64(prog), v_pbcol = omega_bw_ir_alloc_vreg64(prog); + int v_pc0 = omega_bw_ir_alloc_vreg64(prog), v_pc1 = omega_bw_ir_alloc_vreg64(prog); + int v_pac = omega_bw_ir_alloc_vreg64(prog), v_pbc = omega_bw_ir_alloc_vreg64(prog); + int v_rd[16], v_ra[2][8], v_rb[2][4]; + for (uint32_t t = 0; t < rt * ct; t++) v_rd[t] = omega_bw_ir_alloc_vreg128(prog); + for (uint32_t u = 0; u < unroll; u++) { + for (uint32_t i = 0; i < rt; i++) v_ra[u][i] = omega_bw_ir_alloc_vreg128(prog); + for (uint32_t j = 0; j < ct; j++) v_rb[u][j] = omega_bw_ir_alloc_vreg64(prog); + } + if (v_rb[unroll - 1][ct - 1] < 0 || v_ra[unroll - 1][rt - 1] < 0 || v_rd[rt * ct - 1] < 0 || uv_desc < 0) return -1; + + const uint32_t CTRL_STG_RDBAR3 = 0x0007e200u, CTRL_IMADW_WAIT3 = 0x009fcc00u, CTRL_MOVRZ_WAIT3 = 0x008fe200u; + + /* prologue: descriptor, pointers, ids (as the kernel above; a CTA's row block is rt row tiles) */ + BW_APPEND(prog, .op = BW_IR_LDCU64, .dst_vreg = uv_desc, .imm = 0x358, .is_uniform = true); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_a, .imm = 0x380); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_b, .imm = 0x388); + BW_APPEND(prog, .op = BW_IR_LDC64, .dst_vreg = v_ptr_c, .imm = 0x390); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_tid, .imm = BW_SR_TID_X); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_ctaid_x, .imm = BW_SR_CTAID_X); + BW_APPEND(prog, .op = BW_IR_S2R, .dst_vreg = v_ctaid_y, .imm = BW_SR_CTAID_Y); + BW_APPEND(prog, .op = BW_IR_MOV_IMM, .dst_vreg = v_c1, .imm = 1); + BW_APPEND(prog, .op = BW_IR_SHF_R, .dst_vreg = v_group, .src1_vreg = v_tid, .imm = 2); + BW_APPEND(prog, .op = BW_IR_LOP3_AND, .dst_vreg = v_tig, .src1_vreg = v_tid, .imm = 3); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_tcol2, .src1_vreg = v_tig, .src2_vreg = -1, .imm = 2, .src3_vreg = -1); + /* r0 = ctaid_y * 16 * rt + group: row of this lane in row tile 0 of the block; r1 = r0 + 8 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_r0, .src1_vreg = v_ctaid_y, .src2_vreg = -1, .imm = 16u * rt, .src3_vreg = v_group); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_r1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 8, .src3_vreg = v_r0); + /* pa = A + (ctaid_y * rt * KS * 32 + tid) * 16: row tile 0 of this block, this lane's 16 bytes of step 0 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_ctaid_y, .src2_vreg = -1, .imm = rt * KS * 32u, .src3_vreg = v_tid); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pa, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 16, .src3_vreg = v_ptr_a); + /* col = ctaid_x * ct: first column tile of this CTA's first column block */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_col, .src1_vreg = v_ctaid_x, .src2_vreg = -1, .imm = ct, .src3_vreg = -1); + /* pbcol = B + (col * KS * 32 + tid) * 8: column tile col, this lane's 8 bytes of step 0 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = KS * 32u, .src3_vreg = v_tid); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbcol, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 8, .src3_vreg = v_ptr_b); + /* pc0 = C + (r0*N + col*8 + tcol2)*4 ; pc1 with r1 */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r0, .src2_vreg = -1, .imm = N, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = 8, .src3_vreg = v_idx); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc0, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_r1, .src2_vreg = -1, .imm = N, .src3_vreg = v_tcol2); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_idx, .src1_vreg = v_col, .src2_vreg = -1, .imm = 8, .src3_vreg = v_idx); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc1, .src1_vreg = v_idx, .src2_vreg = -1, .imm = 4, .src3_vreg = v_ptr_c); + + /* ---- column-block loop: zero the rt*ct accumulators (the first MOV waits SB3: the previous + * block's stores have read them), rewind the K cursors ---- */ + const int L_col = (int)prog->count; + for (uint32_t t = 0; t < rt * ct; t++) + for (uint32_t s = 0; s < 4; s++) + BW_APPEND(prog, .op = BW_IR_MOV_RZ, .dst_vreg = v_rd[t], .dst_subreg = (int)s, + .control = (t == 0 && s == 0) ? CTRL_MOVRZ_WAIT3 : 0); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pac, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0, .src3_vreg = v_pa); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbc, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0, .src3_vreg = v_pbcol); + BW_APPEND(prog, .op = BW_IR_MOV_IMM, .dst_vreg = v_cnt, .imm = mutant ? ITERS - 1 : ITERS); + + /* ---- K loop: `unroll` steps of (rt A + ct B) loads, then the rt*ct*unroll HMMAs ---- */ + const int L_k = (int)prog->count; + for (uint32_t u = 0; u < unroll; u++) { + for (uint32_t i = 0; i < rt; i++) + BW_APPEND(prog, .op = BW_IR_LDG_E_128, .dst_vreg = v_ra[u][i], .src1_vreg = v_pac, .src2_vreg = -1, .src3_vreg = -1, + .ureg = uv_desc, .imm = u * 512u + i * KS * 512u, .control = BW_FRAG_CTRL_LDG_A); + for (uint32_t j = 0; j < ct; j++) + BW_APPEND(prog, .op = BW_IR_LDG_E_64, .dst_vreg = v_rb[u][j], .src1_vreg = v_pbc, .src2_vreg = -1, .src3_vreg = -1, + .ureg = uv_desc, .imm = u * 256u + j * KS * 256u, .control = BW_FRAG_CTRL_LDG_B); + } + const BlackwellIROpcode hmma = (spec->precision == OMEGA_MATMUL_PRECISION_BF16) ? BW_IR_HMMA_BF16 : BW_IR_HMMA_F16; + for (uint32_t u = 0; u < unroll; u++) + for (uint32_t i = 0; i < rt; i++) + for (uint32_t j = 0; j < ct; j++) { + const int rd = v_rd[i * ct + j]; + BW_APPEND(prog, .op = hmma, .dst_vreg = rd, .src1_vreg = v_ra[u][i], .src2_vreg = v_rb[u][j], .src3_vreg = rd, + .control = BW_FRAG_CTRL_HMMA); + BW_APPEND(prog, .op = BW_IR_NOP, .dst_vreg = -1, .src1_vreg = -1, .src2_vreg = -1, .src3_vreg = -1, .ureg = -1, + .control = BW_FRAG_CTRL_NOP); + } + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pac, .src1_vreg = v_c1, .src2_vreg = -1, .imm = unroll * 512u, .src3_vreg = v_pac); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbc, .src1_vreg = v_c1, .src2_vreg = -1, .imm = unroll * 256u, .src3_vreg = v_pbc); + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_cnt, .src1_vreg = v_c1, .src2_vreg = -1, .imm = 0xffffffffu, .src3_vreg = v_cnt); + BW_APPEND(prog, .op = BW_IR_ISETP_GE, .dst_vreg = -1, .src1_vreg = v_cnt, .src2_vreg = -1, .imm = 1, .src3_vreg = -1); + { + int here = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_BRA, .imm = (uint32_t)(int32_t)(L_k - here), .predicate_p0 = true); + } + const int L_k_end = (int)prog->count - 1; + + /* ---- store the rt*ct tiles: tile (i, j) at +i*16*N*4 + j*32 bytes from pc0 (rows r0) and pc1 (rows r1) ---- */ + for (uint32_t i = 0; i < rt; i++) + for (uint32_t j = 0; j < ct; j++) { + const int rd = v_rd[i * ct + j]; + const uint32_t off = i * 16u * N * 4u + j * 32u; + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc0, .src2_vreg = rd, .src2_subreg = 0, .src3_vreg = -1, .ureg = uv_desc, .imm = off, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc0, .src2_vreg = rd, .src2_subreg = 1, .src3_vreg = -1, .ureg = uv_desc, .imm = off + 4u, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc1, .src2_vreg = rd, .src2_subreg = 2, .src3_vreg = -1, .ureg = uv_desc, .imm = off, .control = CTRL_STG_RDBAR3); + BW_APPEND(prog, .op = BW_IR_STG_E, .src1_vreg = v_pc1, .src2_vreg = rd, .src2_subreg = 3, .src3_vreg = -1, .ureg = uv_desc, .imm = off + 4u, .control = CTRL_STG_RDBAR3); + } + /* next column block: col += grid_x*ct ; C by grid_x*ct*8 f32 (waits SB3 first) ; B by grid_x*ct tiles of KS*256 bytes */ + BW_APPEND(prog, .op = BW_IR_IMAD, .dst_vreg = v_col, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * ct, .src3_vreg = v_col); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc0, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * ct * 32u, .src3_vreg = v_pc0, .control = CTRL_IMADW_WAIT3); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pc1, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * ct * 32u, .src3_vreg = v_pc1); + BW_APPEND(prog, .op = BW_IR_IMAD_WIDE, .dst_vreg = v_pbcol, .src1_vreg = v_c1, .src2_vreg = -1, .imm = grid_x * ct * KS * 256u, .src3_vreg = v_pbcol); + BW_APPEND(prog, .op = BW_IR_ISETP_GE, .dst_vreg = -1, .src1_vreg = v_col, .src2_vreg = -1, .imm = NT, .src3_vreg = -1); + { + int here = (int)prog->count; + BW_APPEND(prog, .op = BW_IR_BRA, .imm = (uint32_t)(int32_t)(L_col - here), .predicate_p0 = true, .predicate_not = true); + } + const int L_col_end = (int)prog->count - 1; + BW_APPEND(prog, .op = BW_IR_EXIT); + BW_APPEND(prog, .op = BW_IR_BRA); + + /* loop-carried values live to the end of their loop (as the kernel above) */ + const int col_carried[] = { v_c1, v_col, v_pa, v_pbcol, v_pc0, v_pc1 }; + for (size_t i = 0; i < sizeof col_carried / sizeof col_carried[0]; i++) bw_live_until(prog, col_carried[i], L_col_end); + for (uint32_t t = 0; t < rt * ct; t++) bw_live_until(prog, v_rd[t], L_col_end); + const int k_carried[] = { v_pac, v_pbc, v_cnt }; + for (size_t i = 0; i < sizeof k_carried / sizeof k_carried[0]; i++) bw_live_until(prog, k_carried[i], L_k_end); + bw_keep_alive(prog, L_k, L_k_end, L_k_end); + return omega_bw_regalloc_solve(prog); +} + +#ifndef OMEGA_GPU_NO_POSIX +int omega_blackwell_codegen_matmul_frag_block(const OmegaMatMulSpec *spec, uint32_t grid_x, uint32_t unroll, + uint32_t rt, uint32_t ct, int mutant, OmegaBlackwellKernel *kernel) { + if (!spec || !kernel) return -1; + BlackwellIRProgram prog; + if (omega_blackwell_codegen_matmul_frag_block_prog(spec, grid_x, unroll, rt, ct, mutant, &prog) != 0) return -1; + return bw_kernel_alloc_encode(&prog, OMEGA_BW_CODE_CAP_MAX, kernel); +} +#endif + +/* The row and column tiles one warp owns in the blocked kernel: the largest of 4, 2, 1 dividing the + * row tiles (rt), and for rt > 1 the largest of 4, 2, 1 dividing the column tiles (ct); rt = ct = 1 + * is the single-tile kernel (decode rows). */ +void omega_matmul_frag_block_shape(uint32_t mt, uint32_t nt, uint32_t *rt, uint32_t *ct) { + uint32_t r = mt % 4u == 0 ? 4u : mt % 2u == 0 ? 2u : 1u; + *rt = r; + *ct = r > 1 ? (nt % 4u == 0 ? 4u : nt % 2u == 0 ? 2u : 1u) : 1u; +} + +/* loads per pass at or under 8 (see the kernel comment): unroll 2 only when 2*(rt+ct) fits and KS is even */ +uint32_t omega_matmul_frag_block_unroll(uint32_t kp, uint32_t rt, uint32_t ct) { + const uint32_t ks = kp / 16u; + return (ks % 2u == 0 && 2u * (rt + ct) <= 8u) ? 2u : 1u; +} + +uint32_t omega_matmul_frag_unroll(uint32_t kp) { + const uint32_t ks = kp / 16u; + 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) { + 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); +} + +/* Row 0 only, every column of every K block (zeros past k): for a one-row call whose buffer already + * holds zeros in rows 1..15 of every block from an earlier full pack of the same width. */ +#define FRAG_PACK_A_ROW0_BODY(LOAD) \ + do { \ + const uint32_t KS = kp / 16u; \ + frag_a_tab_init(); \ + const uint16_t *tab = g_frag_a_tab; \ + for (uint32_t ks = 0; ks < KS; ks++) { \ + uint16_t *blk = dst + (size_t)ks * 256u; \ + const uint32_t c0 = ks * 16u, c1 = k - c0 < 16u ? k - c0 : 16u; \ + for (uint32_t cc = 0; cc < c1; cc++) blk[tab[cc]] = LOAD(a[c0 + cc]); \ + for (uint32_t cc = c1; cc < 16u; cc++) blk[tab[cc]] = 0; \ + } \ + } while (0) +void omega_matmul_frag_pack_a_row0(const uint16_t *a, uint32_t k, uint32_t kp, uint16_t *dst) { + FRAG_PACK_A_ROW0_BODY(FRAG_ID); +} +size_t omega_matmul_result_sentinels(float *cd, uint32_t m, uint32_t n, uint32_t np, float poison, int set) { + /* one word per 16 x 8 fragment tile that holds a real output word: the tile's last real row and column */ + size_t count = 0; + if (m == 0 || n == 0) return 0; + const uint32_t mt = (m + 15u) / 16u, nt = (n + 7u) / 8u; + for (uint32_t ti = 0; ti < mt; ti++) { + uint32_t r = ti * 16u + 15u; if (r >= m) r = m - 1u; + float *row = cd + (size_t)r * np; + for (uint32_t tj = 0; tj < nt; tj++) { + uint32_t c = tj * 8u + 7u; if (c >= n) c = n - 1u; + if (set) { row[c] = poison; count++; } + else if (row[c] == poison) count++; + } + } + return count; +} + +void omega_matmul_frag_pack_a_row0_f32(const float *a, uint32_t k, uint32_t kp, uint16_t *dst) { + FRAG_PACK_A_ROW0_BODY(frag_f32_to_bf16); +} + +void omega_matmul_frag_pack_b(const uint16_t *b, uint32_t k, uint32_t n, uint32_t kp, + uint32_t nt0, uint32_t nt1, uint16_t *dst) { + const uint32_t KS = kp / 16u; + memset(dst, 0, (size_t)(nt1 - nt0) * KS * 128u * sizeof *dst); + for (uint32_t row = 0; row < k; row++) { + const uint32_t ks = row / 16u, rr = row % 16u, khi = rr / 8u, tig = (rr % 8u) / 2u, lo = rr % 2u; + const uint16_t *src = &b[(size_t)row * n]; + for (uint32_t nt = nt0; nt < nt1; nt++) { + const uint32_t c0 = nt * 8u; + for (uint32_t group = 0; group < 8u && c0 + group < n; group++) { + const size_t lane = group * 4u + tig; + dst[(((size_t)(nt - nt0) * KS + ks) * 32u + lane) * 4u + khi * 2u + lo] = src[c0 + group]; + } + } + } +} + +int omega_blackwell_verify_codegen_fixtures(void) { + OmegaRegAlloc ra; + memset(&ra, 0, sizeof(ra)); + ra.vreg_to_phys[0] = 2; + ra.vreg_to_phys[1] = 4; + ra.vreg_to_phys[2] = 6; + ra.vreg_to_phys[3] = 7; + ra.uvreg_to_phys[0] = 4; + + uint32_t w[4]; + + /* 1. MOV R7, RZ */ + BlackwellIRInsn insn_mov_rz = { .op = BW_IR_MOV_RZ, .dst_vreg = 3 }; + if (encode_single_insn(&insn_mov_rz, &ra, w) != 0) return -1; + if (w[0] != (0x7202 | (7 << 16)) || w[1] != 0xff || w[2] != 0x00000f00) return -2; + + /* 2. MOV R2, 1 */ + BlackwellIRInsn insn_mov_imm = { .op = BW_IR_MOV_IMM, .dst_vreg = 0, .imm = 1 }; + if (encode_single_insn(&insn_mov_imm, &ra, w) != 0) return -3; + if (w[0] != (0x7802 | (2 << 16)) || w[1] != 1 || w[2] != 0x00000f00) return -4; + + /* 3. Register-Register IMAD: IMAD R7, R2, R6, R7 */ + BlackwellIRInsn insn_imad_rr = { .op = BW_IR_IMAD, .dst_vreg = 3, .src1_vreg = 0, .src2_vreg = 2, .src3_vreg = 3 }; + if (encode_single_insn(&insn_imad_rr, &ra, w) != 0) return -5; + if (w[0] != (0x7224 | (7 << 16) | (2 << 24)) || w[1] != 6 || w[2] != (0x078e0200 | 7)) return -6; + + /* 4. Immediate IMAD: IMAD R6, R2, 16, RZ */ + BlackwellIRInsn insn_imad_imm = { .op = BW_IR_IMAD, .dst_vreg = 2, .src1_vreg = 0, .src2_vreg = -1, .imm = 16, .src3_vreg = -1 }; + if (encode_single_insn(&insn_imad_imm, &ra, w) != 0) return -7; + if (w[0] != (0x7824 | (6 << 16) | (2 << 24)) || w[1] != 16 || w[2] != 0x078e02ff) return -8; + + /* 5. IMAD.WIDE: IMAD.WIDE R4, R2, 4, R4 */ + BlackwellIRInsn insn_imad_wide = { .op = BW_IR_IMAD_WIDE, .dst_vreg = 1, .src1_vreg = 0, .imm = 4, .src3_vreg = 1 }; + if (encode_single_insn(&insn_imad_wide, &ra, w) != 0) return -9; + if (w[0] != (0x7825 | (4 << 16) | (2 << 24)) || w[1] != 4 || w[2] != (0x078e0000 | 4)) return -10; + + /* 6. LDC.64 R4, c[0x0][0x380] */ + BlackwellIRInsn insn_ldc64 = { .op = BW_IR_LDC64, .dst_vreg = 1, .imm = 0x380 }; + if (encode_single_insn(&insn_ldc64, &ra, w) != 0) return -11; + if (w[0] != (0xff007b82 | (4 << 16)) || w[1] != ((0x380 << 6) & 0x00ffff00) || w[2] != 0x00000a00) return -12; + + /* 7. LDCU.64 UR4, c[0x0][0x358] */ + BlackwellIRInsn insn_ldcu64 = { .op = BW_IR_LDCU64, .dst_vreg = 0, .imm = 0x358, .is_uniform = true }; + if (encode_single_insn(&insn_ldcu64, &ra, w) != 0) return -13; + if (w[0] != (0xff0077ac | (4 << 16)) || w[1] != ((0x358 << 5) & 0x00ffff00) || w[2] != 0x08000a00) return -14; + + /* 8. LDG.E R2, desc[UR4][R4.64] */ + BlackwellIRInsn insn_ldg = { .op = BW_IR_LDG_E, .dst_vreg = 0, .src1_vreg = 1, .ureg = 0 }; + if (encode_single_insn(&insn_ldg, &ra, w) != 0) return -15; + if (w[0] != (0x7981 | (2 << 16) | (4 << 24)) || w[1] != 4 || w[2] != 0x0c1e1900) return -16; + + /* 9. STG.E desc[UR4][R4.64], R7 */ + BlackwellIRInsn insn_stg = { .op = BW_IR_STG_E, .src1_vreg = 1, .src2_vreg = 3, .ureg = 0 }; + if (encode_single_insn(&insn_stg, &ra, w) != 0) return -17; + if (w[0] != (0x7986 | (4 << 24)) || w[1] != 7 || w[2] != (0x0c101900 | 4)) return -18; + + /* 10. S2R R2, SR_CTAID.X */ + BlackwellIRInsn insn_s2r = { .op = BW_IR_S2R, .dst_vreg = 0, .imm = BW_SR_CTAID_X }; + if (encode_single_insn(&insn_s2r, &ra, w) != 0) return -19; + if (w[0] != (0x7919 | (2 << 16)) || w[2] != (BW_SR_CTAID_X << 8)) return -20; + + /* 11. HMMA.16816.F32 R4, R4, R2, RZ */ + BlackwellIRInsn insn_hmma_f16 = { .op = BW_IR_HMMA_F16, .dst_vreg = 1, .src1_vreg = 1, .src2_vreg = 0, .src3_vreg = -1 }; + if (encode_single_insn(&insn_hmma_f16, &ra, w) != 0) return -21; + if (w[0] != 0x0404723c || w[1] != 0x00000002 || w[2] != 0x000018ff || w[3] != 0x000fe200) return -22; + + /* 12. HMMA.16816.F32.BF16 R4, R4, R2, RZ */ + BlackwellIRInsn insn_hmma_bf16 = { .op = BW_IR_HMMA_BF16, .dst_vreg = 1, .src1_vreg = 1, .src2_vreg = 0, .src3_vreg = -1 }; + uint32_t w_bf16[4]; + if (encode_single_insn(&insn_hmma_bf16, &ra, w_bf16) != 0) return -23; + if (w_bf16[0] != 0x0404723c || w_bf16[1] != 0x00000002 || w_bf16[2] != 0x000418ff || w_bf16[3] != 0x000fe200) return -24; + + /* 13. Differential Invariant: w[2] bit 18 toggles strictly between FP16 and BF16 */ + if ((w[2] ^ w_bf16[2]) != 0x00040000) return -25; + if (w[0] != w_bf16[0] || w[1] != w_bf16[1] || w[3] != w_bf16[3]) return -26; + + /* 14. SHF.R.U32.HI R4, RZ, 2, R2 */ + BlackwellIRInsn insn_shf = { .op = BW_IR_SHF_R, .dst_vreg = 1, .src1_vreg = 0, .imm = 2 }; + if (encode_single_insn(&insn_shf, &ra, w) != 0) return -27; + if (w[0] != 0xff047819 || w[1] != 2 || w[2] != 0x00011602 || w[3] != 0x001fca00) return -28; + + /* 15. LOP3.LUT R4, R2, 3, RZ, 0xc0, !PT */ + BlackwellIRInsn insn_lop3 = { .op = BW_IR_LOP3_AND, .dst_vreg = 1, .src1_vreg = 0, .imm = 3 }; + if (encode_single_insn(&insn_lop3, &ra, w) != 0) return -29; + if (w[0] != 0x02047812 || w[1] != 3 || w[2] != 0x078ec0ff || w[3] != 0x001fca00) return -30; + + /* 16. LDG.E.U16 R2, desc[UR4][R4.64] */ + BlackwellIRInsn insn_ldg16 = { .op = BW_IR_LDG_E_U16, .dst_vreg = 0, .src1_vreg = 1, .ureg = 0 }; + if (encode_single_insn(&insn_ldg16, &ra, w) != 0) return -31; + if (w[0] != 0x04027981 || w[1] != 4 || w[2] != 0x0c1e1500 || w[3] != 0x000f2200) return -32; + + /* A zero-delta branch stays the self-branch the matmul kernels already emit. */ + BlackwellIRInsn insn_bra0 = { .op = BW_IR_BRA }; + if (encode_single_insn(&insn_bra0, &ra, w) != 0) return -33; + if (w[0] != 0x00fc7947 || w[1] != 0xfffffffc || w[2] != 0x0383ffff || w[3] != 0x000fc000) return -34; + + BlackwellIRInsn insn_ge = { .op = BW_IR_ISETP_GE_U32, .src1_vreg = 1, .src2_vreg = 2 }; + if (encode_single_insn(&insn_ge, &ra, w) != 0) return -35; + if (w[0] != (0x720c | (4 << 24)) || w[1] != 6 || w[2] != 0x03f06070) return -36; + + BlackwellIRInsn insn_xor = { .op = BW_IR_LOP3_XOR, .dst_vreg = 1, .src1_vreg = 0, .src2_vreg = 2 }; + if (encode_single_insn(&insn_xor, &ra, w) != 0) return -37; + if (w[0] != (0x7212 | (4 << 16) | (2 << 24)) || w[1] != 6 || w[2] != 0x078e3cff) return -38; + + BlackwellIRInsn insn_ldg_ss = { .op = BW_IR_LDG_STRONG_SYS, .dst_vreg = 0, .src1_vreg = 1, .ureg = 0 }; + if (encode_single_insn(&insn_ldg_ss, &ra, w) != 0) return -39; + if (w[0] != (0x7981 | (2 << 16) | (4 << 24)) || w[1] != 4 || w[2] != 0x0c1f5900) return -40; + /* 17. FADD R7, R2, R4 */ + BlackwellIRInsn insn_fadd = { .op = BW_IR_FADD, .dst_vreg = 3, .src1_vreg = 0, .src2_vreg = 1 }; + if (encode_single_insn(&insn_fadd, &ra, w) != 0) return -133; + if (w[0] != 0x02077221 || w[1] != 4 || w[2] != 0 || w[3] != 0x004fc400) return -134; + + /* 18. FSUB R7, R2, R4 (negated src2) */ + BlackwellIRInsn insn_fsub = { .op = BW_IR_FSUB, .dst_vreg = 3, .src1_vreg = 0, .src2_vreg = 1 }; + if (encode_single_insn(&insn_fsub, &ra, w) != 0) return -135; + if (w[0] != 0x02077221 || w[1] != 0x80000004 || w[2] != 0 || w[3] != 0x004fc400) return -136; + + /* 19. FMUL R7, R2, R4 */ + BlackwellIRInsn insn_fmul = { .op = BW_IR_FMUL, .dst_vreg = 3, .src1_vreg = 0, .src2_vreg = 1 }; + if (encode_single_insn(&insn_fmul, &ra, w) != 0) return -137; + if (w[0] != 0x02077220 || w[1] != 4 || w[2] != 0x00400000 || w[3] != 0x004fc400) return -138; + + /* 20. FFMA R7, R2, R4, R6 */ + BlackwellIRInsn insn_ffma = { .op = BW_IR_FFMA, .dst_vreg = 3, .src1_vreg = 0, .src2_vreg = 1, .src3_vreg = 2 }; + if (encode_single_insn(&insn_ffma, &ra, w) != 0) return -139; + if (w[0] != 0x02077223 || w[1] != 4 || w[2] != 6 || w[3] != 0x004fc400) return -140; + + /* 21. FMNMX_MIN R7, R2, R4 */ + BlackwellIRInsn insn_min = { .op = BW_IR_FMNMX_MIN, .dst_vreg = 3, .src1_vreg = 0, .src2_vreg = 1 }; + if (encode_single_insn(&insn_min, &ra, w) != 0) return -141; + if (w[0] != 0x02077209 || w[1] != 4 || w[2] != 0x03800000 || w[3] != 0x004fc400) return -142; + + /* 22. FMNMX_MAX R7, R2, R4 */ + BlackwellIRInsn insn_max = { .op = BW_IR_FMNMX_MAX, .dst_vreg = 3, .src1_vreg = 0, .src2_vreg = 1 }; + if (encode_single_insn(&insn_max, &ra, w) != 0) return -143; + if (w[0] != 0x02077209 || w[1] != 4 || w[2] != 0x07800000 || w[3] != 0x004fc400) return -144; + + /* 23. I2FP R7, R2 */ + BlackwellIRInsn insn_i2f = { .op = BW_IR_I2FP, .dst_vreg = 3, .src1_vreg = 0 }; + if (encode_single_insn(&insn_i2f, &ra, w) != 0) return -145; + if (w[0] != 0x00077245 || w[1] != 2 || w[2] != 0x00201400 || w[3] != 0x004fe200) return -146; + + /* 24. F2I R7, R2 */ + BlackwellIRInsn insn_f2i = { .op = BW_IR_F2I, .dst_vreg = 3, .src1_vreg = 0 }; + if (encode_single_insn(&insn_f2i, &ra, w) != 0) return -147; + if (w[0] != 0x00077305 || w[1] != 2 || w[2] != 0x0020f100 || w[3] != 0x004e2200) return -148; + + /* 25. MUFU_RCP R7, R2 */ + BlackwellIRInsn insn_mufu_rcp = { .op = BW_IR_MUFU_RCP, .dst_vreg = 3, .src1_vreg = 0 }; + if (encode_single_insn(&insn_mufu_rcp, &ra, w) != 0) return -149; + if (w[0] != 0x00077308 || w[1] != 2 || w[2] != 0x00001000 || w[3] != 0x000e2400) return -150; + + /* 26. MUFU_RSQ R7, R2 */ + BlackwellIRInsn insn_mufu_rsq = { .op = BW_IR_MUFU_RSQ, .dst_vreg = 3, .src1_vreg = 0 }; + if (encode_single_insn(&insn_mufu_rsq, &ra, w) != 0) return -151; + if (w[0] != 0x00077308 || w[1] != 2 || w[2] != 0x00001400 || w[3] != 0x000e2400) return -152; + + /* 27. SHFL_DOWN R7, R2, 16 */ + BlackwellIRInsn insn_shfl = { .op = BW_IR_SHFL_DOWN, .dst_vreg = 3, .src1_vreg = 0, .imm = 16 }; + if (encode_single_insn(&insn_shfl, &ra, w) != 0) return -153; + if (w[0] != 0x02077f89 || w[1] != 0x0a001f00 || w[2] != 0x000e0000 || w[3] != 0x000e2400) return -154; + + /* 28. LDS R7, [R2] */ + BlackwellIRInsn insn_lds = { .op = BW_IR_LDS, .dst_vreg = 3, .src1_vreg = 0, .imm = 0 }; + if (encode_single_insn(&insn_lds, &ra, w) != 0) return -155; + if (w[0] != 0x02077984 || w[1] != 0 || w[2] != 0 || w[3] != 0x000fe200) return -156; + + /* 29. STS [R2], R4 */ + BlackwellIRInsn insn_sts = { .op = BW_IR_STS, .src1_vreg = 0, .src2_vreg = 1, .imm = 0 }; + if (encode_single_insn(&insn_sts, &ra, w) != 0) return -157; + if (w[0] != 0x02007388 || w[1] != 4 || w[2] != 0 || w[3] != 0x000fe200) return -158; + + return 0; +} + +int omega_blackwell_test_regalloc_bounds(void) { + BlackwellIRProgram prog; + omega_bw_ir_init(&prog); + + int v0 = omega_bw_ir_alloc_vreg64(&prog); + int v1 = omega_bw_ir_alloc_vreg(&prog); + int v2 = omega_bw_ir_alloc_vreg64(&prog); + int v3 = omega_bw_ir_alloc_vreg128(&prog); /* Test 128-bit quad allocation */ + + BlackwellIRInsn i0 = { .op = BW_IR_LDC64, .dst_vreg = v0, .imm = 0x380 }; + omega_bw_ir_append(&prog, &i0); + BlackwellIRInsn i1 = { .op = BW_IR_MOV_IMM, .dst_vreg = v1, .imm = 10 }; + omega_bw_ir_append(&prog, &i1); + BlackwellIRInsn i2 = { .op = BW_IR_LDC64, .dst_vreg = v2, .imm = 0x388 }; + omega_bw_ir_append(&prog, &i2); + BlackwellIRInsn i3 = { .op = BW_IR_HMMA_F16, .dst_vreg = v3, .src1_vreg = v3, .src2_vreg = v0, .src3_vreg = -1 }; + omega_bw_ir_append(&prog, &i3); + /* i4 uses v1, v2, v3 simultaneously so all intervals are concurrently active */ + int v_sink = omega_bw_ir_alloc_vreg(&prog); + BlackwellIRInsn i4 = { .op = BW_IR_IADD3, .dst_vreg = v_sink, .src1_vreg = v1, .src2_vreg = v2, .src3_vreg = v3 }; + omega_bw_ir_append(&prog, &i4); + + if (omega_bw_regalloc_solve(&prog) != 0) return -1; + + int phys_v0 = prog.regalloc.vreg_to_phys[v0]; + int phys_v1 = prog.regalloc.vreg_to_phys[v1]; + int phys_v2 = prog.regalloc.vreg_to_phys[v2]; + int phys_v3 = prog.regalloc.vreg_to_phys[v3]; + + if (phys_v0 % 2 != 0) return -2; + if (phys_v2 % 2 != 0) return -3; + if (phys_v3 % 4 != 0) return -4; /* 4-alignment for 128-bit quad */ + if (phys_v1 == phys_v0 || phys_v1 == phys_v0 + 1) return -5; + if (phys_v2 == phys_v0 || phys_v2 == phys_v0 + 1) return -6; + for (int k = 0; k < 4; k++) { + if (phys_v3 + k == phys_v0 || phys_v3 + k == phys_v0 + 1) return -7; + if (phys_v3 + k == phys_v2 || phys_v3 + k == phys_v2 + 1) return -8; + if (phys_v3 + k == phys_v1) return -9; + } + + /* Test bounds refusal: intentionally attempt to allocate more registers than hardware capacity */ + BlackwellIRProgram overflow_prog; + omega_bw_ir_init(&overflow_prog); + for (int i = 0; i < BW_PHYS_GPR_MAX + 5; i++) { + int v = omega_bw_ir_alloc_vreg(&overflow_prog); + if (v < 0) break; + BlackwellIRInsn insn = { .op = BW_IR_MOV_IMM, .dst_vreg = v, .imm = (uint32_t)i }; + omega_bw_ir_append(&overflow_prog, &insn); + } + for (size_t i = 0; i < overflow_prog.count; i++) { + for (int v = 0; v < overflow_prog.regalloc.num_vregs; v++) { + overflow_prog.regalloc.intervals[v].last_use = (int)overflow_prog.count - 1; + } + } + if (omega_bw_regalloc_solve(&overflow_prog) == 0) { + return -6; + } + + return 0; +} + +#ifndef OMEGA_GPU_NO_POSIX /* prints: hosted only (the freestanding build has no stdio) */ +int omega_blackwell_test_codegen_variation(void) { + OmegaMatMulSpec spec1, spec2; + if (omega_matmul_spec_init(&spec1, 16, 16, 16, OMEGA_MATMUL_PRECISION_INT32) != 0) { + printf("FAIL: spec1 init failed\n"); + return -1; + } + if (omega_matmul_spec_init(&spec2, 32, 16, 64, OMEGA_MATMUL_PRECISION_INT32) != 0) { + printf("FAIL: spec2 init failed\n"); + return -1; + } + + OmegaBlackwellKernel k1, k2; + memset(&k1, 0, sizeof(k1)); + memset(&k2, 0, sizeof(k2)); + + if (omega_blackwell_codegen_matmul(&spec1, &k1) != 0) { + printf("FAIL: k1 codegen failed\n"); + return -1; + } + if (omega_blackwell_codegen_matmul(&spec2, &k2) != 0) { + printf("FAIL: k2 codegen failed\n"); + omega_blackwell_kernel_free(&k1); + return -1; + } + + OmegaBlackwellRealizationIdentity id1, id2; + omega_blackwell_bind_matmul_realization(&spec1, &k1, &id1); + omega_blackwell_bind_matmul_realization(&spec2, &k2, &id2); + + printf("================================================================================\n"); + printf(" OMEGA BLACKWELL CODEGEN VARIATION DEMONSTRATION (GATE 7 STAGE-1)\n"); + printf("================================================================================\n"); + printf("Config 1: 16x16x16 INT32\n"); + printf(" Instructions: %zu (%zu bytes, %u GPRs, %u UGPRs)\n", k1.insn_count, k1.code_size, k1.gpr_count, k1.uniform_gpr_count); + printf(" Spec ID: "); + for (int i = 0; i < 16; i++) printf("%02x", spec1.spec_id[i]); + printf("...\n"); + printf(" Code Digest: "); + for (int i = 0; i < 16; i++) printf("%02x", k1.code_digest[i]); + printf("...\n"); + printf(" Realization: "); + for (int i = 0; i < 16; i++) printf("%02x", id1.realization_id[i]); + printf("...\n\n"); + + printf("Config 2: 32x16x64 INT32\n"); + printf(" Instructions: %zu (%zu bytes, %u GPRs, %u UGPRs)\n", k2.insn_count, k2.code_size, k2.gpr_count, k2.uniform_gpr_count); + printf(" Spec ID: "); + for (int i = 0; i < 16; i++) printf("%02x", spec2.spec_id[i]); + printf("...\n"); + printf(" Code Digest: "); + for (int i = 0; i < 16; i++) printf("%02x", k2.code_digest[i]); + printf("...\n"); + printf(" Realization: "); + for (int i = 0; i < 16; i++) printf("%02x", id2.realization_id[i]); + printf("...\n"); + printf("================================================================================\n"); + + /* Validation checks */ + if (memcmp(spec1.spec_id, spec2.spec_id, 32) == 0) { + printf("FAIL: spec IDs match (expected distinct)\n"); + return -2; + } + if (memcmp(k1.code_digest, k2.code_digest, 32) == 0) { + printf("FAIL: code digests match (expected distinct)\n"); + return -3; + } + if (memcmp(id1.realization_id, id2.realization_id, 32) == 0) { + printf("FAIL: realization IDs match (expected distinct)\n"); + return -4; + } + + printf("PASS: Dynamic codegen variation verified (distinct specifications, code digests, and realization IDs).\n"); + + omega_blackwell_kernel_free(&k1); + omega_blackwell_kernel_free(&k2); + return 0; +} +#endif + +/* Declared registers: peak + 2 rounded up to 8 (see omega_blackwell_codegen.h for the chip evidence). */ +uint32_t omega_bw_gpr_declared(uint32_t peak) { return ((peak + 2u + 7u) / 8u) * 8u; } +int omega_bw_gpr_declared_ok(uint32_t declared, uint32_t peak) { return declared % 8u == 0u && declared >= peak + 2u; } diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_bw_reconv.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_bw_reconv.h new file mode 100644 index 000000000..d432e5763 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_bw_reconv.h @@ -0,0 +1,83 @@ +#ifndef OMEGA_BW_RECONV_H +#define OMEGA_BW_RECONV_H +/* Structured warp reconvergence regions for the Blackwell IR emitters (omega #308). + * + * A region is the span between a BSSY (arm barrier Bn, name the join point) and the + * matching BSYNC (wait for every armed lane, continue as one warp). Inside a region the + * lanes of a warp may take different paths: a predicated forward branch, a loop whose + * trip count differs per lane, a break. Every path that leaves the region jumps to the + * BSYNC itself (that is where nvcc 13.0.88 sends loop exits on sm_121); the BSSY names the + * instruction after the BSYNC. Regions nest; the innermost open region owns Bn with + * n = depth, so nesting depth is bounded by the barrier register count and begin fails + * closed (returns -1) when that bound is reached. + * + * This header holds the bookkeeping only (indices, patching, bounds). Each emitter wraps + * it with its own control-word scheme: see region_begin / region_exit / region_join in + * src/omega_gpu_elementwise_api.c and src/omega_gpu_attention_api.c. + * + * Reference: Mesa NAK nak_nir_lower_cf.c (push_scope / pop_scope: bar_set_nv before a + * divergent if or loop, bar_sync_nv at its merge block, breaks jump to the sync) and the + * nvcc oracle listing in docs/gpu-reconvergence-308.md. */ + +#include "omega_blackwell_codegen.h" + +#define BW_RECONV_MAX_DEPTH BW_RECONV_MAX_BAR +#define BW_RECONV_MAX_EXITS 8 /* forward exits (breaks) recorded per region */ + +typedef struct { + int depth; /* open regions */ + int peak; /* deepest nesting seen (reported in receipts) */ + int opened; /* regions begun (for receipts) */ + int bssy_at[BW_RECONV_MAX_DEPTH]; + int exits[BW_RECONV_MAX_DEPTH][BW_RECONV_MAX_EXITS]; + int n_exits[BW_RECONV_MAX_DEPTH]; +} BwRegions; + +/* Called after the emitter appended the BSSY at index `bssy_index`. Returns the barrier + * register to use, or -1 when the nesting bound is reached (the caller must fail the + * build: no code with a missing barrier may be emitted). The caller allocates the + * barrier BEFORE emitting: use bw_regions_next_bar to pick it, then bw_regions_begin. */ +static inline int bw_regions_next_bar(const BwRegions *r) { + return r->depth < BW_RECONV_MAX_DEPTH ? r->depth : -1; +} +static inline int bw_regions_begin(BwRegions *r, int bssy_index) { + if (r->depth >= BW_RECONV_MAX_DEPTH || bssy_index < 0) return -1; + r->bssy_at[r->depth] = bssy_index; + r->n_exits[r->depth] = 0; + r->depth++; + r->opened++; + if (r->depth > r->peak) r->peak = r->depth; + return r->depth - 1; +} + +/* Records a forward branch (already appended at `bra_index`) that leaves the innermost + * open region; its target is patched to the BSYNC by bw_regions_join. -1 when no region + * is open or the per-region exit table is full. */ +static inline int bw_regions_exit(BwRegions *r, int bra_index) { + if (r->depth <= 0 || bra_index < 0) return -1; + int d = r->depth - 1; + if (r->n_exits[d] >= BW_RECONV_MAX_EXITS) return -1; + r->exits[d][r->n_exits[d]++] = bra_index; + return 0; +} + +/* Called after the emitter appended the BSYNC at index `bsync_index` for the innermost + * open region. Patches the BSSY to name the instruction after the BSYNC and every + * recorded exit to jump to the BSYNC. Returns the barrier register closed, or -1 when + * no region is open or an index is inconsistent (BSSY must precede the BSYNC). */ +static inline int bw_regions_join(BwRegions *r, BlackwellIRProgram *p, int bsync_index) { + if (r->depth <= 0 || !p || bsync_index < 0 || (size_t)bsync_index >= p->count) return -1; + int d = --r->depth; + int at = r->bssy_at[d]; + if (at < 0 || at >= bsync_index || p->insns[at].op != BW_IR_BSSY || p->insns[bsync_index].op != BW_IR_BSYNC) return -1; + if (p->insns[at].bar_reg != (uint8_t)d || p->insns[bsync_index].bar_reg != (uint8_t)d) return -1; + p->insns[at].imm = (uint32_t)(bsync_index + 1 - at); + for (int i = 0; i < r->n_exits[d]; i++) { + int b = r->exits[d][i]; + if (b <= at || b >= bsync_index || p->insns[b].op != BW_IR_BRA) return -1; + p->insns[b].imm = (uint32_t)(bsync_index - b); + } + return d; +} + +#endif /* OMEGA_BW_RECONV_H */ diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.c new file mode 100644 index 000000000..fb821e4f3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.c @@ -0,0 +1,1139 @@ +/* omega_gpu_elementwise_api.c: FB-1 cut 4 (2026-10-04). See the header. + * + * Layout of this file: (1) kernel codegen on top of the BlackwellIR, with a + * small scheduler that writes every control word; (2) one launcher cloned from + * the chip-proven tensor matmul path (omega_blackwell_execute_matmul_tensor); + * (3) the public entry points, which split work into <= OMEGA_GPU_EW_MAX_CTAS + * launches and run the host-side bookkeeping. + * + * Scheduling rules (chip-learned, src/omega_numeric.c omega_numeric_check_patch): + * - a variable-latency result (LDG, LDS, LDC, LDCU, S2R, SHFL, MUFU) arrives through + * a scoreboard; the producer stalls >= 2 and the consumer waits on that SB; + * - a fixed-latency result (FADD FMUL FFMA IMAD IADD3 MOV LOP3 SHF) has no + * scoreboard: the producer stalls >= 5 before its consumer (we use 6); + * - a predicate producer (ISETP) stalls 14 before @P0 use (NAK SM120 padding); + * - stores (STG, STS) set a read barrier so the next instruction cannot overwrite + * the source register early. + * The emitter below serialises: every instruction waits on everything still + * pending. A final local pass tightens supported adjacent ALU pairs to 5 cycles. + */ +#include "omega_gpu_elementwise_api.h" +#include "omega_blackwell_codegen.h" +#include "omega_bw_reconv.h" +#include "omega_blackwell_qmd.h" +#include "omega_blackwell_submit.h" +#include "omega_gpu_session.h" +#include "sha256.h" +#include +#include +#include +#include + +/* ------------------------------------------------------------------ codegen */ + +#define CW(stall, wbar, rbar, wait) \ + (((uint32_t)(stall) << 9) | ((uint32_t)(wbar) << 14) | ((uint32_t)(rbar) << 17) | ((uint32_t)(wait) << 20)) +#define CW_YIELD 0x2000u +#define SB_NONE 7u +#define SB_GPR 0u /* variable-latency GPR results */ +#define SB_RD 1u /* store source-register read barrier */ +#define SB_UGPR 2u /* uniform-register results (LDCU) */ + +enum { K_FIXED, K_PRED, K_VAR, K_UVAR, K_STORE, K_SYNC, K_EXIT, K_BRA, K_BSSY, K_BSYNC }; + +#define EW_MAX_LOOPS 4 +typedef struct { + BlackwellIRProgram *p; + uint32_t pending; /* scoreboards set and not yet waited on */ + int err; + int loop_start[EW_MAX_LOOPS], loop_end[EW_MAX_LOOPS]; + int n_loops; + int open_start[EW_MAX_LOOPS]; /* starts of loops begun and not yet ended (nesting stack) */ + int depth; + BwRegions rg; /* structured reconvergence regions (omega #308) */ + int rg_mutant; /* test only: 1 = drop the BSYNC at join, 2 = corrupt the BSSY target (host sim must catch both) */ + int exited; /* a predicated EXIT was emitted: some lanes of a warp may be gone */ + int exit_sync_ok; /* test only: lets a kernel put SHFL/BAR after a predicated EXIT (the negative control R6) */ + int test_path; /* building for omega_gpu_elementwise_codegen_ir (host tests), never for a launch */ +} Em; + +static void emit(Em *e, BlackwellIRInsn in, int kind) { + uint32_t wait = e->pending; + switch (kind) { + case K_FIXED: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_PRED: in.control = CW(14, SB_NONE, SB_NONE, wait); e->pending = 0; break; + case K_VAR: in.control = CW(4, SB_GPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_GPR; break; + case K_UVAR: in.control = CW(4, SB_UGPR, SB_NONE, wait) | CW_YIELD; e->pending = 1u << SB_UGPR; break; + case K_STORE: in.control = CW(4, SB_NONE, SB_RD, wait) | CW_YIELD; e->pending = 1u << SB_RD; break; + case K_SYNC: in.control = CW(6, SB_NONE, SB_NONE, wait); e->pending = 0; break; + /* a predicated EXIT or BRA that falls through must not be the only waiter */ + case K_EXIT: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + case K_BRA: in.control = CW(5, SB_NONE, SB_NONE, wait); e->pending = in.predicate_p0 ? wait : 0; break; + /* BSSY / BSYNC read no registers; the stall counts (1 and 5, both with yield) are the ones + * nvcc 13.0.88 writes for sm_121 (docs/gpu-reconvergence-308.md). They wait on everything + * pending so that, as for every branch here, nothing is in flight across a control edge + * and the straight-line scoreboard walk in the tests stays valid. */ + case K_BSSY: in.control = CW(1, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + case K_BSYNC: in.control = CW(5, SB_NONE, SB_NONE, wait) | CW_YIELD; e->pending = 0; break; + default: e->err = -1; return; + } + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; /* append returns the index */ +} + +static int V(Em *e) { int v = omega_bw_ir_alloc_vreg(e->p); if (v < 0) e->err = -1; return v; } +static int V64(Em *e) { int v = omega_bw_ir_alloc_vreg64(e->p); if (v < 0) e->err = -1; return v; } +static int UV64(Em *e) { int v = omega_bw_ir_alloc_uvreg64(e->p); if (v < 0) e->err = -1; return v; } +static int here(const Em *e) { return (int)e->p->count; } + +#define NOREG -1 +static BlackwellIRInsn I0(BlackwellIROpcode op) { + BlackwellIRInsn in; memset(&in, 0, sizeof in); + in.op = op; in.dst_vreg = NOREG; in.src1_vreg = NOREG; in.src2_vreg = NOREG; in.src3_vreg = NOREG; in.ureg = NOREG; + return in; +} +static void ldcu64(Em *e, int udst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDCU64); i.dst_vreg = udst; i.imm = off; i.is_uniform = true; emit(e, i, K_UVAR); } +static void ldc64(Em *e, int dst64, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC64); i.dst_vreg = dst64; i.imm = off; emit(e, i, K_VAR); } +static void ldc32(Em *e, int dst, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_LDC); i.dst_vreg = dst; i.imm = off; emit(e, i, K_VAR); } +static void s2r(Em *e, int dst, uint32_t sr) { BlackwellIRInsn i = I0(BW_IR_S2R); i.dst_vreg = dst; i.imm = sr; emit(e, i, K_VAR); } +static void movi(Em *e, int dst, uint32_t imm) { BlackwellIRInsn i = I0(BW_IR_MOV_IMM); i.dst_vreg = dst; i.imm = imm; emit(e, i, K_FIXED); } +static void movf(Em *e, int dst, float f) { uint32_t u; memcpy(&u, &f, 4); movi(e, dst, u); } +static void movrz(Em *e, int dst) { BlackwellIRInsn i = I0(BW_IR_MOV_RZ); i.dst_vreg = dst; emit(e, i, K_FIXED); } +/* dst = a * imm + c (c may be NOREG for RZ) */ +static void imadi(Em *e, int dst, int a, uint32_t imm, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); } +/* dst = a * b + c (registers) */ +static void imadr(Em *e, int dst, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void iadd3(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IADD3); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void lop3xor(Em *e, int dst, int a, int b) { BlackwellIRInsn i = I0(BW_IR_LOP3_XOR); i.dst_vreg = dst; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +/* dst64 = idx * 4 + ptr64 (byte address of element idx) */ +static void addr4(Em *e, int dst64, int idx, int ptr64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = idx; i.imm = 4; i.src3_vreg = ptr64; emit(e, i, K_FIXED); } +static void ldg(Em *e, int dst, int addr64, int udesc) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = dst; i.src1_vreg = addr64; i.ureg = udesc; emit(e, i, K_VAR); } +/* Independent loads (LDG_E from global, or LDS32 from shared memory with ureg NOREG) issued + * back to back (campaign C2a, 2026-10-05). The first load + * waits on whatever is pending; the others wait on nothing, so all n are in flight together. + * Every load sets SB_GPR (a counting scoreboard), so the next instruction waits once for all + * of them instead of once per load. Fails the build if a load address is a destination of the + * group or a destination repeats (the later loads would read an operand still in flight). */ +static void ld_group(Em *e, BlackwellIROpcode op, int n, const int *dst, const int *addr, int ureg) { + for (int i = 0; i < n; i++) + for (int k = 0; k < n; k++) + if (addr[i] == dst[k] || (k != i && dst[i] == dst[k])) { e->err = -1; return; } + for (int i = 0; i < n; i++) { + if (op != BW_IR_LDG_E && op != BW_IR_LDS32) { e->err = -1; return; } + BlackwellIRInsn in = I0(op); in.dst_vreg = dst[i]; in.src1_vreg = addr[i]; in.ureg = ureg; + if (i == 0) { emit(e, in, K_VAR); continue; } + in.control = CW(4, SB_GPR, SB_NONE, 0) | CW_YIELD; /* nonzero, so the encoder keeps it */ + if (omega_bw_ir_append(e->p, &in) < 0) e->err = -1; + } +} +static void stg(Em *e, int addr64, int val, int udesc) { BlackwellIRInsn i = I0(BW_IR_STG_E); i.src1_vreg = addr64; i.src2_vreg = val; i.ureg = udesc; emit(e, i, K_STORE); } +static void fadd(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FADD); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void fsub(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FSUB); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void fmul(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_FMUL); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +static void ffma(Em *e, int d, int a, int b, int c) { BlackwellIRInsn i = I0(BW_IR_FFMA); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; emit(e, i, K_FIXED); } +static void mufu(Em *e, BlackwellIROpcode op, int d, int a) { BlackwellIRInsn i = I0(op); i.dst_vreg = d; i.src1_vreg = a; emit(e, i, K_VAR); } +/* Cross-lane and warp-ending ops are refused inside an open reconvergence region (omega #308): + * a SHFL or BAR.SYNC reached by a split warp reads inactive lanes / counts a partial warp + * (undefined; the 2026-10-04 attention bug), and a lane that EXITs inside a region can no + * longer be joined. The build fails closed instead of emitting such code. */ +/* Cross-lane instructions (SHFL, BAR.SYNC) need the whole warp present. The emitter refuses + * them (fails the build) inside an open reconvergence region, where lanes may be on different + * paths, and after a predicated EXIT, where lanes may be gone for good: a SHFL then reads + * inactive lanes (undefined on the chip, the attention failure of 2026-10-04). A kernel that + * must drop lanes before a cross-lane step clamps them instead and exits them afterwards. */ +static int warp_split(Em *e) { if (e->rg.depth > 0 || (e->exited && !e->exit_sync_ok)) { e->err = -1; return 1; } return 0; } +static void shfl_down(Em *e, int d, int a, uint32_t off) { if (warp_split(e)) return; BlackwellIRInsn i = I0(BW_IR_SHFL_DOWN); i.dst_vreg = d; i.src1_vreg = a; i.imm = off; emit(e, i, K_VAR); } +static void sts32(Em *e, int addr, int val) { BlackwellIRInsn i = I0(BW_IR_STS32); i.src1_vreg = addr; i.src2_vreg = val; emit(e, i, K_STORE); } +static void lds32(Em *e, int d, int addr) { BlackwellIRInsn i = I0(BW_IR_LDS32); i.dst_vreg = d; i.src1_vreg = addr; emit(e, i, K_VAR); } +static void bar_sync(Em *e) { if (warp_split(e)) return; emit(e, I0(BW_IR_BAR_SYNC), K_SYNC); } +static void isetp_ge_u32(Em *e, int a, int b) { BlackwellIRInsn i = I0(BW_IR_ISETP_GE_U32); i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_PRED); } +/* An EXIT inside a region would leave the barrier waiting for a lane that never comes: refused. */ +static void exit_if_p0(Em *e) { if (e->rg.depth > 0) { e->err = -1; return; } e->exited = 1; BlackwellIRInsn i = I0(BW_IR_EXIT); i.predicate_p0 = true; emit(e, i, K_EXIT); } +static void bra_back_if_not_p0(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.predicate_not = true; i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } +static void tail(Em *e) { + emit(e, I0(BW_IR_EXIT), K_EXIT); + BlackwellIRInsn self = I0(BW_IR_BRA); /* the self-branch every kernel here ends with */ + self.control = 0x000fc000u; + if (omega_bw_ir_append(e->p, &self) < 0) e->err = -1; +} +/* Loops may nest (prime race cut): begin pushes the start, end pops it, so the inner + * loop is closed (and its liveness fixed) first. For the single-level loops above this + * is exactly the old behaviour. */ +static void loop_begin(Em *e) { if (e->depth >= EW_MAX_LOOPS) { e->err = -1; return; } e->open_start[e->depth++] = here(e); } +/* Closing a loop: every value defined before the loop and read inside it stays + * live until the back-branch, otherwise the linear-scan allocator (which knows + * nothing about back-edges) would hand its register to a body temporary whose + * first definition comes after the value's last textual use (e.g. the scale y + * in rmsnorm pass 2), and the next iteration would read garbage. */ +static void loop_end(Em *e) { + if (e->n_loops >= EW_MAX_LOOPS || e->depth <= 0) { e->err = -1; return; } + int start = e->open_start[--e->depth], end = here(e) - 1; + e->loop_start[e->n_loops] = start; + e->loop_end[e->n_loops] = end; + e->n_loops++; + OmegaRegAlloc *ra = &e->p->regalloc; + for (int v = 0; v < ra->num_vregs; v++) { + OmegaLiveInterval *iv = &ra->intervals[v]; + if (iv->first_def >= 0 && iv->first_def < start && iv->last_use >= start && iv->last_use < end) iv->last_use = end; + } +} + +/* Kernel argument words (constant bank 0, same slots as the matmul path): + * 0x380 a, 0x388 b, 0x390 c (64-bit each), then four 32-bit parameters. */ +#define ARG_A 0x380u +#define ARG_B 0x388u +#define ARG_C 0x390u +#define ARG_P0 0x398u +#define ARG_P1 0x39cu +#define ARG_P2 0x3a0u +#define ARG_P3 0x3a4u +#define ARG_P4 0x3a8u +#define DESC_OFF 0x358u + +typedef struct { int udesc, pa, pb, pc, tid, cta; } Pro; +static Pro prologue(Em *e) { + Pro r; + r.udesc = UV64(e); r.pa = V64(e); r.pb = V64(e); r.pc = V64(e); r.tid = V(e); r.cta = V(e); + ldcu64(e, r.udesc, DESC_OFF); + ldc64(e, r.pa, ARG_A); ldc64(e, r.pb, ARG_B); ldc64(e, r.pc, ARG_C); + s2r(e, r.tid, BW_SR_TID_X); s2r(e, r.cta, BW_SR_CTAID_X); + return r; +} + +/* out[i] = 2^a[i] for i < n (n = P0). Threads 128, grid ceil(n/128). Mutant: 2^(a+1). */ +static void gen_ex2(Em *e, int mutant) { + Pro p = prologue(e); + int n = V(e), i = V(e), off = V64(e), x = V(e), y = V(e); + ldc32(e, n, ARG_P0); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + isetp_ge_u32(e, i, n); + exit_if_p0(e); + addr4(e, off, i, p.pa); + ldg(e, x, off, p.udesc); + if (mutant) { int one = V(e); movf(e, one, 1.0f); fadd(e, x, x, one); } + mufu(e, BW_IR_MUFU_EX2, y, x); + addr4(e, off, i, p.pc); + stg(e, off, y, p.udesc); + tail(e); +} + +/* out[i] = a[i ^ 127] within each CTA of 128 (n % 128 == 0). STS own word, BAR.SYNC, + * LDS the partner word. Mutant: LDS own word (no exchange). */ +static void gen_xchg(Em *e, int mutant) { + Pro p = prologue(e); + int i = V(e), off = V64(e), x = V(e), saddr = V(e), paddr = V(e), mask = V(e), y = V(e); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + addr4(e, off, i, p.pa); + ldg(e, x, off, p.udesc); + imadi(e, saddr, p.tid, 4, NOREG); + sts32(e, saddr, x); + bar_sync(e); + if (mutant) { + lds32(e, y, saddr); + } else { + movi(e, mask, OMEGA_GPU_EW_THREADS - 1); + lop3xor(e, paddr, p.tid, mask); + imadi(e, paddr, paddr, 4, NOREG); + lds32(e, y, paddr); + } + addr4(e, off, i, p.pc); + stg(e, off, y, p.udesc); + tail(e); +} + +/* One CTA of 128 threads per row. P0 = dim/128 (loop count), P1 = bits(1/dim), + * P2 = bits(eps), P3 = dim. Mutant: the warp tree drops the last SHFL step. */ +static void gen_rmsnorm(Em *e, int mutant) { + Pro p = prologue(e); + int nk = V(e), invd = V(e), eps = V(e), dim = V(e); + int rowbase = V(e), idx = V(e), col = V(e), k = V(e), acc = V(e), cT = V(e), c1 = V(e); + int off = V64(e), x = V(e), t = V(e); + ldc32(e, nk, ARG_P0); ldc32(e, invd, ARG_P1); ldc32(e, eps, ARG_P2); ldc32(e, dim, ARG_P3); + imadr(e, rowbase, p.cta, dim, NOREG); + iadd3(e, idx, rowbase, p.tid); + movrz(e, acc); movrz(e, k); + movi(e, cT, OMEGA_GPU_EW_THREADS); movi(e, c1, 1); + loop_begin(e); + int l1 = here(e); + addr4(e, off, idx, p.pa); + ldg(e, x, off, p.udesc); + ffma(e, acc, x, x, acc); + iadd3(e, idx, idx, cT); + iadd3(e, k, k, c1); + isetp_ge_u32(e, k, nk); + bra_back_if_not_p0(e, l1); + loop_end(e); + static const uint32_t steps[5] = { 16, 8, 4, 2, 1 }; + for (int s = 0; s < (mutant ? 4 : 5); s++) { shfl_down(e, t, acc, steps[s]); fadd(e, acc, acc, t); } + int saddr = V(e); + imadi(e, saddr, p.tid, 4, NOREG); + sts32(e, saddr, acc); + bar_sync(e); + int a0 = V(e), a1 = V(e), a2 = V(e), a3 = V(e), s0 = V(e), s1 = V(e), s2 = V(e), s3 = V(e), sum = V(e); + movrz(e, a0); movi(e, a1, 128); movi(e, a2, 256); movi(e, a3, 384); + lds32(e, s0, a0); lds32(e, s1, a1); lds32(e, s2, a2); lds32(e, s3, a3); + fadd(e, sum, s0, s1); fadd(e, sum, sum, s2); fadd(e, sum, sum, s3); + int v = V(e), y = V(e), u = V(e), cmh = V(e), c15 = V(e); + fmul(e, v, sum, invd); + fadd(e, v, v, eps); + mufu(e, BW_IR_MUFU_RSQ, y, v); + movf(e, cmh, -0.5f); movf(e, c15, 1.5f); + fmul(e, u, v, y); fmul(e, u, u, y); ffma(e, u, u, cmh, c15); fmul(e, y, y, u); + int offw = V64(e), offc = V64(e), w = V(e), o = V(e); + iadd3(e, idx, rowbase, p.tid); + imadi(e, col, p.tid, 1, NOREG); /* col = tid (the encoder maps a missing src2 to R0, not RZ, so no IADD3 here) */ + movrz(e, k); + loop_begin(e); + int l2 = here(e); + addr4(e, off, idx, p.pa); + ldg(e, x, off, p.udesc); + addr4(e, offw, col, p.pb); + ldg(e, w, offw, p.udesc); + fmul(e, o, x, y); + fmul(e, o, o, w); + addr4(e, offc, idx, p.pc); + stg(e, offc, o, p.udesc); + iadd3(e, idx, idx, cT); + iadd3(e, col, col, cT); + iadd3(e, k, k, c1); + isetp_ge_u32(e, k, nk); + bra_back_if_not_p0(e, l2); + loop_end(e); + tail(e); +} + +/* One CTA of head_dim/2 threads per head. P0 = head_dim, P1 = head_dim/2. + * a = vector, b = table (cos in the first half of each head, sin in the second). + * Mutant: out0 = q0*cos + q1*sin. */ +static void gen_rope(Em *e, int mutant) { + Pro p = prologue(e); + int hd = V(e), half = V(e), i0 = V(e), i1 = V(e), off0 = V64(e), off1 = V64(e); + int q0 = V(e), q1 = V(e), c = V(e), s = V(e), t0 = V(e), t1 = V(e), o0 = V(e), o1 = V(e); + ldc32(e, hd, ARG_P0); ldc32(e, half, ARG_P1); + imadr(e, i0, p.cta, hd, p.tid); + iadd3(e, i1, i0, half); + addr4(e, off0, i0, p.pa); ldg(e, q0, off0, p.udesc); + addr4(e, off1, i1, p.pa); ldg(e, q1, off1, p.udesc); + addr4(e, off0, i0, p.pb); ldg(e, c, off0, p.udesc); + addr4(e, off1, i1, p.pb); ldg(e, s, off1, p.udesc); + fmul(e, t0, q0, c); fmul(e, t1, q1, s); + if (mutant) fadd(e, o0, t0, t1); else fsub(e, o0, t0, t1); + fmul(e, t0, q0, s); fmul(e, t1, q1, c); + fadd(e, o1, t0, t1); + addr4(e, off0, i0, p.pc); stg(e, off0, o0, p.udesc); + addr4(e, off1, i1, p.pc); stg(e, off1, o1, p.udesc); + tail(e); +} + +/* out[i] = g/(1+2^(g*-log2e)) * up for i < n (P0). Mutant: 2^(g*+log2e). */ +static void gen_swiglu(Em *e, int mutant) { + Pro p = prologue(e); + int n = V(e), i = V(e), off = V64(e), g = V(e), u = V(e), k = V(e), t = V(e), ex = V(e), d = V(e), r = V(e), one = V(e), o = V(e); + ldc32(e, n, ARG_P0); + imadi(e, i, p.cta, OMEGA_GPU_EW_THREADS, p.tid); + isetp_ge_u32(e, i, n); + exit_if_p0(e); + addr4(e, off, i, p.pa); ldg(e, g, off, p.udesc); + addr4(e, off, i, p.pb); ldg(e, u, off, p.udesc); + movf(e, k, mutant ? 1.4426950408889634f : -1.4426950408889634f); + movf(e, one, 1.0f); + fmul(e, t, g, k); + mufu(e, BW_IR_MUFU_EX2, ex, t); + fadd(e, d, ex, one); + mufu(e, BW_IR_MUFU_RCP, r, d); + fmul(e, o, g, r); + fmul(e, o, o, u); + addr4(e, off, i, p.pc); + stg(e, off, o, p.udesc); + tail(e); +} + +/* ------------------------------------------- prime race sieve (2026-10-05) */ +static void lop3lut(Em *e, int d, int a, int b, int c, uint32_t lut) { BlackwellIRInsn i = I0(BW_IR_LOP3_LUT); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src3_vreg = c; i.imm = lut & 0xffu; emit(e, i, K_FIXED); } +static void shl_r(Em *e, int d, int a, int n) { BlackwellIRInsn i = I0(BW_IR_SHF_L_U32); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = n; emit(e, i, K_FIXED); } +static void shr_i(Em *e, int d, int a, uint32_t n) { BlackwellIRInsn i = I0(BW_IR_SHF_R); i.dst_vreg = d; i.src1_vreg = a; i.imm = n; emit(e, i, K_FIXED); } +static void imadhi(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IMAD_HI_U32); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } +/* dst64 = a * imm + c64 (IMAD.WIDE.U32 immediate form) */ +static void widei(Em *e, int dst64, int a, uint32_t imm, int c64) { BlackwellIRInsn i = I0(BW_IR_IMAD_WIDE); i.dst_vreg = dst64; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c64; emit(e, i, K_FIXED); } +/* @P0 BRA forward; returns the instruction index for bra_patch_here */ +static int bra_fwd_if_p0(Em *e) { int at = here(e); BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.imm = 1; emit(e, i, K_BRA); return at; } +static void bra_patch_here(Em *e, int at) { if (e->err == 0 && at >= 0 && at < here(e)) e->p->insns[at].imm = (uint32_t)(here(e) - at); else e->err = -1; } +static void bra_always(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } + +/* ---- structured reconvergence regions (omega #308; bookkeeping in omega_bw_reconv.h) ---- + * region_begin: BSSY Bd (d = nesting depth), fails closed when no barrier register is left. + * region_exit: a forward branch out of the innermost region, patched to its BSYNC at join + * (RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0). + * region_join: BSYNC Bd; patches the BSSY to the instruction after it and every exit to it. + * Usage: divergent loop = region_begin; L: isetp; region_exit(RX_IF_P0); body; bra_always(L); region_join. + * if/else diamond = region_begin; isetp; t = bra_fwd_if_p0; then; region_exit(RX_ALWAYS); + * bra_patch_here(t); else; region_join. */ +enum { RX_ALWAYS, RX_IF_P0, RX_IF_NOT_P0 }; +static int region_begin(Em *e) { + int bar = bw_regions_next_bar(&e->rg); + if (bar < 0) { e->err = -1; return -1; } + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BSSY); i.bar_reg = (uint8_t)bar; i.imm = 2; emit(e, i, K_BSSY); + if (bw_regions_begin(&e->rg, at) < 0) e->err = -1; + return bar; +} +static void region_exit(Em *e, int cond) { + int at = here(e); + BlackwellIRInsn i = I0(BW_IR_BRA); i.imm = 1; + if (cond != RX_ALWAYS) { i.predicate_p0 = true; i.predicate_not = (cond == RX_IF_NOT_P0); } + emit(e, i, K_BRA); + if (bw_regions_exit(&e->rg, at) < 0) e->err = -1; +} +static void region_join(Em *e) { + if (e->rg.depth <= 0) { e->err = -1; return; } + int d = e->rg.depth - 1, bsync = here(e); + BlackwellIRInsn i = I0(e->rg_mutant == 1 ? BW_IR_NOP : BW_IR_BSYNC); i.bar_reg = (uint8_t)d; emit(e, i, K_BSYNC); + if (e->rg_mutant == 1) { + /* negative control (host sim only): the join is a NOP; patch as the real join would */ + BwRegions *r = &e->rg; r->depth--; + e->p->insns[r->bssy_at[d]].imm = (uint32_t)(bsync + 1 - r->bssy_at[d]); + for (int k = 0; k < r->n_exits[d]; k++) e->p->insns[r->exits[d][k]].imm = (uint32_t)(bsync - r->exits[d][k]); + return; + } + if (bw_regions_join(&e->rg, e->p, bsync) != d) e->err = -1; + if (e->rg_mutant == 2) e->p->insns[e->rg.bssy_at[d]].imm += 1; /* negative control: BSSY names the wrong join */ +} + +/* Word-parallel odd-only sieve (docs: handoff 2026-10-05 DESIGN "GPU kernel (native)"). + * Thread t owns 32-bit output words w = t, t + S, t + 2S, ... (S = P1 = threads launched; + * the I42 envelope caps a launch at OMEGA_GPU_EW_MAX_CTAS CTAs, so a grid-stride loop + * replaces one thread per word). Every word has exactly one writer; no atomics. + * Bit j of word w is the odd number 2(32w + j) + 1. + * Arguments: a (0x380) = prime table, entries {p, magic = ceil(2^32 / p), k0 = (p*p - 1)/2} + * (12 bytes, ascending p, odd primes <= isqrt(limit)) followed by ONE sentinel entry with + * k0 = 0xffffffff that ends every scan; c (0x390) = output words; + * P0 = nwords, P1 = S, P2 = last word index, P3 = ~tailmask (bits past the last odd). + * Range: limit < 2^32 (so base, k0 < 2^31 and the sign-bit tricks below hold). + * Per word: base = 32w; for each prime while k0 < base + 32: + * d = base - k0; neg = d >> 31 (k0 > base); dpos = neg ? 0 : d; jadd = neg ? k0 - base : 0 + * q = hi32(dpos * magic) (= floor(dpos/p) or one more: magic is rounded up) + * r = dpos - q*p (q one too big -> r = (dpos mod p) - p, wrapped) + * j = p - r; j -= p * ((r - 1) >> 31) (r == 0 -> 0; wrapped r -> p - (dpos mod p)) + * One fix covers both cases: with q one too big, dpos mod p >= p - dpos*e/2^32 > p/2 > 0 + * (e = magic*p - 2^32 < p, dpos < 2^31), so the true remainder is never 0 there and + * p - r - p = p - (dpos mod p) is the right offset. A separate "r += p if wrapped" step was + * removed after a negative control showed it changes no output (host sim, limit 1e7, where + * the overshoot occurs 268 times; bench/prime_race/tests magic_model). + * j += jadd; while j < 32 { acc |= 1 << j; j += p } + * then acc |= (w == 0) (the number 1), word = ~(acc | (w == last ? ~tailmask : 0)). + * Branch-free except the loop branches. Mutant: drops the j fix (j = p - r unreduced), so words where + * base - k0 is a multiple of p (or q overshot) mark the wrong bits. + * + * staged = 1 (OMEGA_GPU_EW_PRIME_SIEVE_SHARED, campaign C3): P4 = table words, sentinel included + * (3 per entry). The CTA first copies the table into shared memory at offset 0 (thread t copies + * words t, t + 128, ...), BAR_SYNC, then the prime loop reads shared memory (LDS) instead of + * uncached global memory. Every thread reaches the barrier: the w >= nwords exit comes after + * it. The launch must declare at least 4 * P4 bytes of shared memory. + * + * divergent (omega #308, regression R1): 0 = the warp-uniform mark loop above (campaign C5). + * 1 = the original lane-dependent mark loop (omega 888a011: `while j < 32 { acc |= 1 << j; j += p }`) + * wrapped in a reconvergence region. 2 = as 1, and the prime loop (whose break `k0 >= base + 32` + * is also lane-dependent: every lane sieves a different word) wrapped in an outer region, so the + * mark loop's region nests inside it (B0 outer, B1 inner). */ +static void gen_prime_sieve(Em *e, int mutant, int staged, int divergent) { + Pro pr = prologue(e); + int nwords = V(e), stride = V(e), lastw = V(e), tailinv = V(e); + int one = V(e), c32 = V(e), cm1 = V(e), w = V(e); + ldc32(e, nwords, ARG_P0); ldc32(e, stride, ARG_P1); ldc32(e, lastw, ARG_P2); ldc32(e, tailinv, ARG_P3); + movi(e, one, 1); movi(e, c32, 32); movi(e, cm1, 0xffffffffu); + int c4 = -1, c8 = -1, c12 = -1; + if (staged) { + int twords = V(e), i = V(e), ga = V64(e), val = V(e), sa = V(e); + c4 = V(e); c8 = V(e); c12 = V(e); + ldc32(e, twords, ARG_P4); + movi(e, c4, 4); movi(e, c8, 8); movi(e, c12, 12); + imadi(e, i, pr.tid, 1, NOREG); + /* The staging loop's trip count differs per thread (thread t copies words t, t+128, ...), + * so its exit splits the warp. The divergent variants rejoin the warp before BAR.SYNC + * (a barrier is not a reconvergence point: the fragments would stay split for the rest + * of the kernel). The production kernel keeps the 2026-10-05 C3 form unchanged. */ + if (divergent) region_begin(e); + loop_begin(e); /* staging loop */ + int ls = here(e); + isetp_ge_u32(e, i, twords); + int sdone = -1; + if (divergent) region_exit(e, RX_IF_P0); else sdone = bra_fwd_if_p0(e); + addr4(e, ga, i, pr.pa); + ldg(e, val, ga, pr.udesc); + imadi(e, sa, i, 4, NOREG); + sts32(e, sa, val); + imadi(e, i, one, OMEGA_GPU_EW_THREADS, i); + bra_always(e, ls); + loop_end(e); + if (divergent) region_join(e); else bra_patch_here(e, sdone); + bar_sync(e); + } + imadi(e, w, pr.cta, OMEGA_GPU_EW_THREADS, pr.tid); + isetp_ge_u32(e, w, nwords); + exit_if_p0(e); + + /* ptr, a64, a64m: global addresses, or (staged) 32-bit shared offsets */ + int base = V(e), basep32 = V(e), acc = V(e); + int ptr = staged ? V(e) : V64(e), a64 = staged ? V(e) : V64(e), a64m = staged ? V(e) : V64(e); + int p = V(e), magic = V(e), k0 = V(e), negp = V(e), d = V(e), neg = V(e), nd = V(e), dpos = V(e), jadd = V(e); + int q = V(e), r = V(e), j = V(e), t = V(e), z = V(e), bit = V(e); + int e1 = V(e), m = V(e), word = V(e), oaddr = V64(e); + int tt = V(e), jj = V(e), sh = V(e), c31 = V(e), cm32 = V(e); + movi(e, c31, 31); movi(e, cm32, 0xffffffe0u); + + loop_begin(e); /* word loop */ + int lw = here(e); + imadi(e, base, w, 32, NOREG); + iadd3(e, basep32, base, c32); + movrz(e, acc); + if (staged) movrz(e, ptr); else widei(e, ptr, one, 0, pr.pa); + + if (divergent >= 2) region_begin(e); /* outer region: the prime loop's break is lane-dependent */ + loop_begin(e); /* prime loop */ + int lp = here(e); + /* one memory round trip per prime: all three entry words load together (C2a). The + * sentinel entry is a whole entry, so loading p and magic before the k0 test is in bounds. */ + if (staged) { iadd3(e, a64, ptr, c8); iadd3(e, a64m, ptr, c4); } + else { widei(e, a64, one, 8, ptr); widei(e, a64m, one, 4, ptr); } + { + const int dsts[3] = { k0, p, magic }, adrs[3] = { a64, ptr, a64m }; + if (staged) ld_group(e, BW_IR_LDS32, 3, dsts, adrs, NOREG); + else ld_group(e, BW_IR_LDG_E, 3, dsts, adrs, pr.udesc); + } + isetp_ge_u32(e, k0, basep32); + int brk = -1; + if (divergent >= 2) region_exit(e, RX_IF_P0); else brk = bra_fwd_if_p0(e); + imadi(e, negp, p, 0xffffffffu, NOREG); /* -p */ + imadi(e, d, k0, 0xffffffffu, base); /* base - k0 */ + shr_i(e, neg, d, 31); + imadi(e, nd, d, 0xffffffffu, NOREG); /* -d */ + imadr(e, dpos, neg, nd, d); /* d - neg*d */ + imadr(e, jadd, neg, nd, NOREG); /* neg * (k0 - base) */ + imadhi(e, q, dpos, magic); + imadr(e, r, q, negp, dpos); /* dpos - q*p */ + imadi(e, j, r, 0xffffffffu, p); /* p - r */ + if (!mutant) { + iadd3(e, t, r, cm1); + shr_i(e, z, t, 31); /* r == 0, or r wrapped (q one too big) */ + imadr(e, j, z, negp, j); /* j - p */ + } + iadd3(e, j, j, jadd); + + /* mark loop (campaign C5): the trip count depends only on p, so every active lane runs the + * same ceil(32/p) steps and the warp never splits here (all active lanes are on the same + * prime). Bits past this word are masked out instead of branched around. The old loop ran + * "while j < 32", a lane-dependent branch with no reconvergence point. */ + if (divergent) { + /* R1: the 888a011 mark loop, lane-dependent trip count, inside a region. Each lane + * leaves at its own iteration (the exit jumps to the BSYNC) and the warp reunites there. */ + region_begin(e); + loop_begin(e); + int li = here(e); + isetp_ge_u32(e, j, c32); + region_exit(e, RX_IF_P0); + shl_r(e, bit, one, j); + lop3lut(e, acc, acc, bit, NOREG, 0xfc); /* acc | bit */ + iadd3(e, j, j, p); + bra_always(e, li); + loop_end(e); + region_join(e); + } else { + movrz(e, tt); + loop_begin(e); + int li = here(e); + isetp_ge_u32(e, tt, c32); + int done = bra_fwd_if_p0(e); + iadd3(e, jj, j, tt); + lop3lut(e, sh, jj, c31, NOREG, 0xc0); /* jj & 31 */ + shl_r(e, bit, one, sh); + iadd3(e, t, jj, cm32); + shr_i(e, z, t, 31); /* jj < 32 (j <= p + 31, far below 2^31) */ + imadi(e, m, z, 0xffffffffu, NOREG); /* all ones when jj < 32, else 0 */ + lop3lut(e, acc, acc, bit, m, 0xf8); /* acc | (bit & m) */ + iadd3(e, tt, tt, p); + bra_always(e, li); + loop_end(e); + bra_patch_here(e, done); + } + + if (staged) iadd3(e, ptr, ptr, c12); else widei(e, ptr, one, 12, ptr); + bra_always(e, lp); + loop_end(e); + if (divergent >= 2) region_join(e); else bra_patch_here(e, brk); + + iadd3(e, t, w, cm1); + shr_i(e, z, t, 31); /* w == 0: the number 1 is not prime */ + lop3lut(e, acc, acc, z, NOREG, 0xfc); + lop3xor(e, e1, w, lastw); + iadd3(e, t, e1, cm1); + shr_i(e, z, t, 31); /* w == last word */ + imadr(e, m, z, tailinv, NOREG); + lop3lut(e, word, acc, m, NOREG, 0x03); /* ~(acc | m) */ + addr4(e, oaddr, w, pr.pc); + stg(e, oaddr, word, pr.udesc); + /* IMAD, not IADD3: the IADD3 encoder ignores the scheduler control word (fixed + * 0x010fca00), so right after a store it would not wait on the read barrier */ + imadr(e, w, stride, one, w); + isetp_ge_u32(e, w, nwords); + bra_back_if_not_p0(e, lw); + loop_end(e); + tail(e); +} + +/* ---- reconvergence probes (omega #308, regressions R3..R6 and the resource bound) ---- + * All: a, b = u32 inputs, out = u32, P0 = n; 128 threads, grid ceil(n/128); launched by + * omega_gpu_reconv_probe_u32. A lane past n clamps its index to n-1 so that it loads valid + * data and takes part in the warp-wide SHFL; it exits only after the SHFL, before its store. + * Each probe computes a per-lane r on divergent paths, joins, then + * out[i] = r + 4099 * s, s = r of lane (lane+1) in the same warp (SHFL.DOWN 1; lane 31: own r) + * so a lane that joined late, never, or with the wrong value shows in the neighbour's word too. + * The host oracle is rc_oracle in tests/gpu_reconv_test.c. */ +typedef struct { Pro pr; int n, i, idx, x, y, r, s, one, cm1; } Rp; +static Rp rp_begin(Em *e) { + Rp k; memset(&k, 0, sizeof k); + k.pr = prologue(e); + k.n = V(e); k.i = V(e); k.idx = V(e); k.x = V(e); k.y = V(e); k.r = V(e); k.s = V(e); k.one = V(e); k.cm1 = V(e); + int nm1 = V(e), d = V(e), neg = V(e), off = V64(e); + ldc32(e, k.n, ARG_P0); + movi(e, k.one, 1); movi(e, k.cm1, 0xffffffffu); + imadi(e, k.i, k.pr.cta, OMEGA_GPU_EW_THREADS, k.pr.tid); + iadd3(e, nm1, k.n, k.cm1); /* n - 1 */ + imadi(e, d, k.i, 0xffffffffu, nm1); /* (n - 1) - i, top bit set when i > n - 1 */ + shr_i(e, neg, d, 31); + imadr(e, k.idx, neg, d, k.i); /* i, or n - 1 when past the end */ + addr4(e, off, k.idx, k.pr.pa); ldg(e, k.x, off, k.pr.udesc); + addr4(e, off, k.idx, k.pr.pb); ldg(e, k.y, off, k.pr.udesc); + return k; +} +static void rp_end(Em *e, const Rp *k) { + int out = V(e), off = V64(e); + shfl_down(e, k->s, k->r, 1); + imadi(e, out, k->s, 4099, k->r); + isetp_ge_u32(e, k->i, k->n); + exit_if_p0(e); + addr4(e, off, k->i, k->pr.pc); + stg(e, off, out, k->pr.udesc); + tail(e); +} +/* R3: if/else with sides of different length. x >= y: r = f(x, y) (5 steps); else r = x + 1. + * Math mutant: the long side is one too big. */ +static void gen_rc_diamond(Em *e, int mutant) { + Rp k = rp_begin(e); + int t = V(e), u = V(e); + region_begin(e); + isetp_ge_u32(e, k.x, k.y); + int els = bra_fwd_if_p0(e); + iadd3(e, k.r, k.x, k.one); /* short side */ + region_exit(e, RX_ALWAYS); + bra_patch_here(e, els); + imadi(e, t, k.x, 3, k.y); /* long side: t = 3x + y */ + lop3xor(e, u, t, k.x); /* u = t ^ x */ + imadi(e, k.r, u, 5, k.one); /* r = 5u + 1 */ + shr_i(e, t, k.r, 3); + iadd3(e, k.r, k.r, t); /* r += r >> 3 */ + if (mutant) iadd3(e, k.r, k.r, k.one); + region_join(e); + rp_end(e, &k); +} +/* The lane-dependent loop shared by R4 and R5: v = x & 255, step = (y & 15) + 1, + * while v < 256 { v += step; cnt += 1 }. Math mutant: the bound is 255. Emits the region. */ +static void rc_count_loop(Em *e, const Rp *k, int mutant, int v, int cnt) { + int st = V(e), bound = V(e), c255 = V(e), c15 = V(e); + movi(e, c255, 255); movi(e, c15, 15); movi(e, bound, mutant ? 255 : 256); + lop3lut(e, v, k->x, c255, NOREG, 0xc0); + lop3lut(e, st, k->y, c15, NOREG, 0xc0); + iadd3(e, st, st, k->one); + movrz(e, cnt); + region_begin(e); + loop_begin(e); + int L = here(e); + isetp_ge_u32(e, v, bound); + region_exit(e, RX_IF_P0); + iadd3(e, v, v, st); + iadd3(e, cnt, cnt, k->one); + bra_always(e, L); + loop_end(e); + region_join(e); +} +/* R4: lane-dependent loop exit (break). r = 256 * cnt + v. */ +static void gen_rc_loopbreak(Em *e, int mutant) { + Rp k = rp_begin(e); + int v = V(e), cnt = V(e); + rc_count_loop(e, &k, mutant, v, cnt); + imadi(e, k.r, cnt, 256, v); + rp_end(e, &k); +} +/* R5: nested divergence. Odd x: r = 7 (skips the inner region). Even x: the R4 loop inside the + * outer region, r = 256 * cnt + v + 100. */ +static void gen_rc_nested(Em *e, int mutant) { + Rp k = rp_begin(e); + int v = V(e), cnt = V(e), low = V(e), c100 = V(e); + movi(e, k.r, 7); movi(e, c100, 100); + lop3lut(e, low, k.x, k.one, NOREG, 0xc0); /* x & 1 */ + region_begin(e); + isetp_ge_u32(e, low, k.one); + region_exit(e, RX_IF_P0); + rc_count_loop(e, &k, mutant, v, cnt); + imadi(e, k.r, cnt, 256, v); + iadd3(e, k.r, k.r, c100); + region_join(e); + rp_end(e, &k); +} +/* R6: lanes past the end, a divergent region, then a CTA-wide exchange and the warp SHFL. + * xv = x | 1 computed on divergent paths (even lanes take the branch), every thread stores xv + * to its shared slot, BAR.SYNC, reads its partner's (tid ^ 1), r = 3x + partner_xv. + * Production form: lanes past n are clamped and exit after the SHFL (correct). early_exit + * (mutant 1): lanes past n EXIT first, as a naive kernel would; the emitter refuses that + * (BAR/SHFL after a predicated EXIT). Only the host-test build path (codegen_ir) may bypass the + * refusal, so the simulator can show what the kernel would do (SHFL_EXITED); a launch never can. */ +static void gen_rc_exit_bar(Em *e, int early_exit) { + Rp k = rp_begin(e); + int saddr = V(e), paddr = V(e), yv = V(e), xv = V(e), low = V(e); + if (early_exit) { + e->exit_sync_ok = early_exit == 1 && e->test_path; + isetp_ge_u32(e, k.i, k.n); + exit_if_p0(e); + } + imadi(e, xv, k.x, 1, NOREG); + lop3lut(e, low, k.x, k.one, NOREG, 0xc0); /* x & 1 */ + region_begin(e); + isetp_ge_u32(e, low, k.one); + region_exit(e, RX_IF_P0); /* odd lanes leave */ + iadd3(e, xv, xv, k.one); /* even lanes: xv = x + 1 */ + region_join(e); + imadi(e, saddr, k.pr.tid, 4, NOREG); + sts32(e, saddr, xv); + bar_sync(e); + lop3xor(e, paddr, k.pr.tid, k.one); + imadi(e, paddr, paddr, 4, NOREG); + lds32(e, yv, paddr); + imadi(e, k.r, k.x, 3, yv); + rp_end(e, &k); +} +/* Barrier-register bound: `levels` nested regions, each leaving lanes with x >= y out and adding 1 + * for the others: r = x + levels * (x < y). 16 levels must build (B0..B15); 17 must be refused. */ +static void gen_rc_depth(Em *e, int levels) { + Rp k = rp_begin(e); + imadi(e, k.r, k.x, 1, NOREG); + for (int d = 0; d < levels; d++) { + region_begin(e); + isetp_ge_u32(e, k.x, k.y); + region_exit(e, RX_IF_P0); + iadd3(e, k.r, k.r, k.one); + } + for (int d = 0; d < levels; d++) region_join(e); + rp_end(e, &k); +} +/* Codegen refusals (each must come back CODEGEN_FAIL; a kernel with a split warp at a + * cross-lane step must never reach the chip). */ +static void gen_rc_refuse(Em *e, OmegaGpuEwOp which) { + Rp k = rp_begin(e); + switch (which) { + case OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION: region_begin(e); isetp_ge_u32(e, k.i, k.n); exit_if_p0(e); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION: region_begin(e); bar_sync(e); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION: region_begin(e); shfl_down(e, k.s, k.x, 1); region_join(e); break; + case OMEGA_GPU_EW_RC_REFUSE_UNCLOSED: region_begin(e); isetp_ge_u32(e, k.x, k.y); region_exit(e, RX_IF_P0); break; /* no join */ + case OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY: region_join(e); break; /* BSYNC without BSSY */ + default: e->err = -1; break; + } + imadi(e, k.r, k.x, 1, NOREG); + rp_end(e, &k); +} + +/* A value first defined inside a loop body may not be read after the loop + * before it is written again: the allocator could have let a later body + * temporary share its register, and the last iteration's value would be lost. */ +static int check_loop_invariant(const Em *e) { + const OmegaRegAlloc *ra = &e->p->regalloc; + for (int L = 0; L < e->n_loops; L++) + for (int v = 0; v < ra->num_vregs; v++) { + int fd = ra->intervals[v].first_def; + if (fd < e->loop_start[L] || fd > e->loop_end[L]) continue; + for (size_t i = (size_t)e->loop_end[L] + 1; i < e->p->count; i++) { + const BlackwellIRInsn *in = &e->p->insns[i]; + if (in->src1_vreg == v || in->src2_vreg == v || in->src3_vreg == v) return -1; + if (in->dst_vreg == v && !in->is_uniform) break; + } + } + return 0; +} + +#define EW_GPR_BUDGET 64u /* the QMD declares 64 registers, as the matmul launcher does */ + +/* Mesa NAK sm120_instr_latencies.rs + sm100/reg_raw.csv: ALU/dual-ALU pairs + * and FMA/FMA pairs need 4 + 1 cycles; mixed pairs need 5 + 1. CSV rows are + * READERS, columns WRITERS (see lat_rs_gen.py), not the reverse. IMAD.WIDE + * has operand-specific latencies and is deliberately excluded here. + * + * Retain at least 5 cycles after every fixed producer. Thus the next reader + * uses the pair-specific bound and later readers are >= 9 cycles away (the + * next instruction in a tightened pair is itself fixed). No instruction, + * branch target, wait, barrier assignment or register allocation is changed. + * IADD3's encoder still supplies its historical control word; do not pretend + * to schedule that producer here. Its existing 5-cycle delay is unchanged. + * + * Predicate-to-guard uses NAK paw_latency -> raw(write, None): reader + * RedirectedFp64, writer Dualalu = 13, plus SM120's 1 = 14, in emit above. + * NVIDIA's public ISA docs are silent about SASS control-word semantics. + */ +static int fixed_pair_class(BlackwellIROpcode op) { + switch (op) { + case BW_IR_MOV_RZ: case BW_IR_MOV_IMM: case BW_IR_IADD3: + case BW_IR_LOP3_XOR: case BW_IR_LOP3_LUT: + case BW_IR_SHF_R: case BW_IR_SHF_L_U32: return 1; + case BW_IR_IMAD: case BW_IR_IMAD_HI_U32: + case BW_IR_FADD: case BW_IR_FSUB: case BW_IR_FMUL: case BW_IR_FFMA: return 2; + default: return 0; + } +} + +static void schedule_fixed_pairs(BlackwellIRProgram *p) { + for (size_t i = 0; i + 1 < p->count; i++) { + BlackwellIRInsn *a = &p->insns[i]; + const BlackwellIRInsn *b = &p->insns[i + 1]; + int cls = fixed_pair_class(a->op); + if (!cls || cls != fixed_pair_class(b->op) || a->op == BW_IR_IADD3 || + a->predicate_p0 || b->predicate_p0 || ((a->control >> 9) & 15u) != 6) + continue; + a->control = (a->control & ~(15u << 9)) | (5u << 9); + } +} + +static int build_kernel(OmegaGpuEwOp op, int mutant, OmegaBlackwellKernel *kernel, BlackwellIRProgram *prog_out, int test_path) { + BlackwellIRProgram *prog = calloc(1, sizeof *prog); + if (!prog) return OMEGA_GPU_EW_CODEGEN_FAIL; + omega_bw_ir_init(prog); + Em e; memset(&e, 0, sizeof e); e.p = prog; e.test_path = test_path; + /* mutant 1 = the op's math mutant (as before); 2 = the join (BSYNC) dropped; 3 = the BSSY + * names the wrong join. 2 and 3 only change kernels that open a region. */ + e.rg_mutant = mutant == 2 ? 1 : mutant == 3 ? 2 : 0; + int math = mutant == 1; + switch (op) { + case OMEGA_GPU_EW_EX2: gen_ex2(&e, math); break; + case OMEGA_GPU_EW_XCHG: gen_xchg(&e, math); break; + case OMEGA_GPU_EW_RMSNORM: gen_rmsnorm(&e, math); break; + case OMEGA_GPU_EW_ROPE: gen_rope(&e, math); break; + case OMEGA_GPU_EW_SWIGLU: gen_swiglu(&e, math); break; + case OMEGA_GPU_EW_PRIME_SIEVE: gen_prime_sieve(&e, math, 0, 0); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED: gen_prime_sieve(&e, math, 1, 0); break; + case OMEGA_GPU_EW_PRIME_SIEVE_DIV1: gen_prime_sieve(&e, math, 0, 1); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV1: gen_prime_sieve(&e, math, 1, 1); break; + case OMEGA_GPU_EW_PRIME_SIEVE_DIV2: gen_prime_sieve(&e, math, 0, 2); break; + case OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2: gen_prime_sieve(&e, math, 1, 2); break; + case OMEGA_GPU_EW_RC_DIAMOND: gen_rc_diamond(&e, math); break; + case OMEGA_GPU_EW_RC_LOOPBREAK: gen_rc_loopbreak(&e, math); break; + case OMEGA_GPU_EW_RC_NESTED: gen_rc_nested(&e, math); break; + case OMEGA_GPU_EW_RC_EXIT_BAR: gen_rc_exit_bar(&e, math); break; + case OMEGA_GPU_EW_RC_REFUSE_EXIT_SHFL: gen_rc_exit_bar(&e, 2); break; + case OMEGA_GPU_EW_RC_DEPTH16: gen_rc_depth(&e, BW_RECONV_MAX_BAR); break; + case OMEGA_GPU_EW_RC_REFUSE_DEPTH17: gen_rc_depth(&e, BW_RECONV_MAX_BAR + 1); break; + case OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION: case OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION: + case OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION: case OMEGA_GPU_EW_RC_REFUSE_UNCLOSED: + case OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY: gen_rc_refuse(&e, op); break; + default: e.err = -1; break; + } + if (e.rg.depth != 0) e.err = -1; /* a region left open has no join: refuse the build */ + schedule_fixed_pairs(prog); + int rc = OMEGA_GPU_EW_CODEGEN_FAIL; + int ra_rc = (e.err == 0) ? omega_bw_regalloc_solve(prog) : -1; + int loop_rc = (ra_rc == 0) ? check_loop_invariant(&e) : -1; +#ifdef OMEGA_EW_DEBUG + fprintf(stderr, "ew codegen op=%d mutant=%d emit_err=%d insns=%zu vregs=%d regalloc=%d loops=%d peak_gpr=%u\n", + (int)op, mutant, e.err, prog->count, prog->regalloc.num_vregs, ra_rc, loop_rc, prog->regalloc.peak_gpr_usage); +#endif + if (e.err == 0 && ra_rc == 0 && loop_rc == 0 && prog->regalloc.peak_gpr_usage <= EW_GPR_BUDGET) { + size_t max_bytes = (size_t)BW_MAX_IR_INSNS * 16; + memset(kernel, 0, sizeof *kernel); + kernel->code = malloc(max_bytes); + size_t emitted = 0; + if (kernel->code && omega_bw_encode_program(prog, kernel->code, max_bytes, &emitted) == 0) { + kernel->code_size = emitted; + kernel->insn_count = emitted / 16; + kernel->gpr_count = prog->regalloc.peak_gpr_usage; + kernel->uniform_gpr_count = prog->regalloc.peak_ugpr_usage; + sha256_hash(kernel->code, kernel->code_size, kernel->code_digest); + if (prog_out) *prog_out = *prog; + rc = OMEGA_GPU_EW_OK; + } else { +#ifdef OMEGA_EW_DEBUG + fprintf(stderr, "ew codegen op=%d: encode failed (an instruction form the encoder refuses)\n", (int)op); +#endif + free(kernel->code); kernel->code = NULL; + } + } + free(prog); + return rc; +} + +/* --------------------------------------------------------- kernel cache */ + +/* One kernel per (op, mutant); the device copy is uploaded once and stays + * resident for the process (cut 4b: no per-call code page). */ +typedef struct { int used; int op; int mutant; OmegaBlackwellKernel kernel; OmegaGpuMem code; } Slot; +static int g_mutant_op; /* 0 = none */ +static int g_mutant_level = 1; /* the mutant number built for g_mutant_op (1 math, 2 join dropped, 3 join corrupted) */ +static Slot g_cache[8]; +static OmegaGpuScratch g_a, g_b, g_c; /* staging, grown to the high-water mark, reused per call */ +static bool g_hooked; +#define LOCK() omega_gpu_session_lock() +#define UNLOCK() omega_gpu_session_unlock() + +static void cache_clear_locked(void) { + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used) { free(g_cache[i].kernel.code); omega_gpu_session_free(&g_cache[i].code); memset(&g_cache[i], 0, sizeof g_cache[i]); } +} + +void omega_gpu_elementwise_cache_clear(void) { + LOCK(); + cache_clear_locked(); + UNLOCK(); +} + +/* Called by the session (lock held, device still open) right before it closes. */ +static void on_session_close(void) { + cache_clear_locked(); + omega_gpu_session_scratch_free(&g_a); omega_gpu_session_scratch_free(&g_b); omega_gpu_session_scratch_free(&g_c); +} + +void omega_gpu_elementwise_test_set_mutant(int op) { + LOCK(); + g_mutant_op = op; g_mutant_level = 1; + cache_clear_locked(); + UNLOCK(); +} +void omega_gpu_elementwise_test_set_mutant_level(int op, int level) { + LOCK(); + g_mutant_op = op; g_mutant_level = level < 1 ? 1 : level > 3 ? 3 : level; + cache_clear_locked(); + UNLOCK(); +} + +/* Caller holds the lock. Builds the kernel if needed; uploads the device copy when a + * device is open (upload = false lets the host-only codegen path run without a chip). */ +static int kernel_for(OmegaGpuEwOp op, bool upload, Slot **out, bool *hit) { + int mutant = (g_mutant_op == (int)op) ? g_mutant_level : 0; + Slot *s = NULL; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) + if (g_cache[i].used && g_cache[i].op == (int)op && g_cache[i].mutant == mutant) { s = &g_cache[i]; *hit = true; break; } + if (!s) { + OmegaBlackwellKernel k; + int rc = build_kernel(op, mutant, &k, NULL, 0); + if (rc != OMEGA_GPU_EW_OK) return rc; + size_t slot = 0; + for (size_t i = 0; i < sizeof g_cache / sizeof g_cache[0]; i++) if (!g_cache[i].used) { slot = i; break; } + s = &g_cache[slot]; + if (s->used) { free(s->kernel.code); omega_gpu_session_free(&s->code); } /* full: evict slot 0 */ + memset(s, 0, sizeof *s); + s->used = 1; s->op = (int)op; s->mutant = mutant; s->kernel = k; + *hit = false; + } + if (upload && !s->code.cpu) { + if (omega_gpu_session_alloc_code(s->kernel.code_size, &s->code) != 0) return OMEGA_GPU_EW_CHIP_FAIL; + memcpy(s->code.cpu, s->kernel.code, s->kernel.code_size); + __asm__ volatile("dsb sy" ::: "memory"); + } + *out = s; + return OMEGA_GPU_EW_OK; +} + +int omega_gpu_elementwise_codegen(OmegaGpuEwOp op, const uint32_t *dims, float eps, OmegaBlackwellKernel *kernel) { + (void)dims; (void)eps; /* kernels read their shape from the argument words */ + if (!kernel) return OMEGA_GPU_EW_BAD_ARGS; + LOCK(); + int mutant = (g_mutant_op == (int)op) ? g_mutant_level : 0; + UNLOCK(); + return build_kernel(op, mutant, kernel, NULL, 0); +} + +int omega_gpu_elementwise_codegen_ir(OmegaGpuEwOp op, int mutant, void *prog, OmegaBlackwellKernel *kernel) { + if (!kernel) return OMEGA_GPU_EW_BAD_ARGS; + if (mutant < 0 || mutant > 3) return OMEGA_GPU_EW_BAD_ARGS; + return build_kernel(op, mutant, kernel, (BlackwellIRProgram *)prog, 1); +} + +const char *omega_gpu_elementwise_last_error(void) { return omega_gpu_session_last_error(); } + +/* ------------------------------------------------------------ launcher */ + +#define EW_POISON 0xffbadbadu /* a NaN pattern no kernel here produces on purpose */ +#define EW_WAIT_MS 600000ull /* like main's load/store launchers; a 5 s wait failed under contention (omega#198) */ + +static uint64_t now_ns(void) { + struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); + return (uint64_t)t.tv_sec * 1000000000ULL + (uint64_t)t.tv_nsec; +} + +/* Caller holds the lock. Opens the shared device on first use. */ +static int dev_open_locked(void) { + if (!g_hooked) { (void)omega_gpu_session_on_close(on_session_close); g_hooked = true; } + return omega_gpu_session_open() ? OMEGA_GPU_EW_OK : OMEGA_GPU_EW_CHIP_FAIL; +} + +/* One launch: a and b staged in, c out (c_bytes/4 words, poison-filled first), through + * the shared session (omega_gpu_session_launch: shader-cache invalidate, constant bank, + * QMD0/QMD1, first marker, L2_FLUSH_DIRTY, second marker), then readback and the + * poison scan. b may be NULL when b_fill wrote the staging buffer already. */ +static int run_abc(const Slot *ks, const void *a, size_t a_bytes, const void *b, size_t b_bytes, + void *c, size_t c_bytes, uint32_t threads_x, uint32_t grid_x, + const uint32_t params[4], OmegaGpuEwInfo *info) { + if (omega_gpu_session_scratch(&g_a, a_bytes) || omega_gpu_session_scratch(&g_b, b_bytes) || omega_gpu_session_scratch(&g_c, c_bytes)) + return OMEGA_GPU_EW_CHIP_FAIL; + memcpy(g_a.mem.cpu, a, a_bytes); + if (b) memcpy(g_b.mem.cpu, b, b_bytes); + size_t c_words = c_bytes / 4; + uint32_t *c_dev = (uint32_t *)g_c.mem.cpu; + for (size_t i = 0; i < c_words; i++) c_dev[i] = EW_POISON; + __asm__ volatile("dsb sy" ::: "memory"); + + uint32_t args[OMEGA_BW_CBANK_MATMUL_ARGS_WORDS]; + args[0] = (uint32_t)g_a.mem.va; args[1] = (uint32_t)(g_a.mem.va >> 32); + args[2] = (uint32_t)g_b.mem.va; args[3] = (uint32_t)(g_b.mem.va >> 32); + args[4] = (uint32_t)g_c.mem.va; args[5] = (uint32_t)(g_c.mem.va >> 32); + args[6] = params[0]; args[7] = params[1]; args[8] = params[2]; args[9] = params[3]; + OmegaGpuLaunch L = { + .code_va = ks->code.va, .gpr_count = EW_GPR_BUDGET, .threads_x = threads_x, .threads_y = 1, + .grid_x = grid_x, .grid_y = 1, .num_elements = c_words, + .args = args, .n_args = OMEGA_BW_CBANK_MATMUL_ARGS_WORDS, .timeout_ms = EW_WAIT_MS, + }; + uint64_t elapsed = 0; uint32_t marker = 0; + if (omega_gpu_session_launch(&L, &elapsed, &marker) != 0) return OMEGA_GPU_EW_CHIP_FAIL; + + memcpy(c, g_c.mem.cpu, c_bytes); + uint32_t unwritten = 0; + for (size_t i = 0; i < c_words; i++) if (((uint32_t *)c)[i] == EW_POISON) unwritten++; + if (info) { + info->chip_calls++; + info->elapsed_ns += elapsed; + info->completion_marker = marker; + info->unwritten_words += unwritten; + info->threads_per_cta = threads_x; + info->ctas_last_launch = grid_x; + } + return unwritten ? OMEGA_GPU_EW_UNWRITTEN : OMEGA_GPU_EW_OK; +} + +/* ------------------------------------------------------- public entries */ + +static void info_begin(OmegaGpuEwInfo *info, const OmegaBlackwellKernel *k, bool hit) { + if (!info) return; + memset(info, 0, sizeof *info); + info->kernel_cache_hit = hit; + info->gpr_count = k->gpr_count; + info->insn_count = (uint32_t)k->insn_count; + snprintf(info->target_chip, sizeof info->target_chip, "NVIDIA DGX Spark (Grace Blackwell GB10)"); + info->sm_architecture = 121; +} +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static void info_end(OmegaGpuEwInfo *info, uint64_t t0) { if (info) info->call_ns = now_ns() - t0; } + +/* Common prologue of every chip entry: lock, open, kernel (resident), info. */ +static int begin(OmegaGpuEwOp op, Slot **ks, OmegaGpuEwInfo *info) { + LOCK(); + int rc = dev_open_locked(); + bool hit = false; + if (rc == OMEGA_GPU_EW_OK) rc = kernel_for(op, true, ks, &hit); + if (rc != OMEGA_GPU_EW_OK) { UNLOCK(); return rc; } + info_begin(info, &(*ks)->kernel, hit); + return OMEGA_GPU_EW_OK; +} + +int omega_gpu_rmsnorm_f32(uint32_t rows, uint32_t dim, const float *x, const float *weight, + float eps, float *out, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + if (!x || !weight || !out || rows == 0 || dim == 0 || dim % OMEGA_GPU_EW_THREADS != 0) return OMEGA_GPU_EW_BAD_ARGS; + if (dim > OMEGA_GPU_EW_MAX_DIM) return OMEGA_GPU_EW_TOO_LARGE; + Slot *k = NULL; + int rc = begin(OMEGA_GPU_EW_RMSNORM, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + uint32_t params[4] = { dim / OMEGA_GPU_EW_THREADS, f2u(1.0f / (float)dim), f2u(eps), dim }; + for (uint32_t r0 = 0; r0 < rows && rc == OMEGA_GPU_EW_OK; r0 += OMEGA_GPU_EW_MAX_CTAS) { + uint32_t nr = rows - r0 < OMEGA_GPU_EW_MAX_CTAS ? rows - r0 : OMEGA_GPU_EW_MAX_CTAS; + size_t bytes = (size_t)nr * dim * 4; + rc = run_abc(k, x + (size_t)r0 * dim, bytes, weight, (size_t)dim * 4, out + (size_t)r0 * dim, bytes, + OMEGA_GPU_EW_THREADS, nr, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +int omega_gpu_rope_f32(uint32_t heads, uint32_t head_dim, const float *v, + const float *cos_half, const float *sin_half, float *out, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + if (!v || !cos_half || !sin_half || !out || heads == 0 || head_dim < 2 || (head_dim & 1)) return OMEGA_GPU_EW_BAD_ARGS; + if (head_dim > 2048) return OMEGA_GPU_EW_TOO_LARGE; + Slot *k = NULL; + int rc = begin(OMEGA_GPU_EW_ROPE, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + uint32_t half = head_dim / 2; + uint32_t params[4] = { head_dim, half, 0, 0 }; + for (uint32_t h0 = 0; h0 < heads && rc == OMEGA_GPU_EW_OK; h0 += OMEGA_GPU_EW_MAX_CTAS) { + uint32_t nh = heads - h0 < OMEGA_GPU_EW_MAX_CTAS ? heads - h0 : OMEGA_GPU_EW_MAX_CTAS; + size_t bytes = (size_t)nh * head_dim * 4; + /* table: cos in the first half of each head, sin in the second, written straight into + * the staging buffer (one copy per head of this launch) */ + if (omega_gpu_session_scratch(&g_b, bytes) != 0) { rc = OMEGA_GPU_EW_CHIP_FAIL; break; } + float *table = g_b.mem.cpu; + for (uint32_t h = 0; h < nh; h++) { + memcpy(table + (size_t)h * head_dim, cos_half, half * sizeof *table); + memcpy(table + (size_t)h * head_dim + half, sin_half, half * sizeof *table); + } + /* out may alias v: v is copied into the staging buffer before the result lands in out */ + rc = run_abc(k, v + (size_t)h0 * head_dim, bytes, NULL, bytes, out + (size_t)h0 * head_dim, bytes, half, nh, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +static int run_1d(OmegaGpuEwOp op, uint32_t n, const void *a, const void *b, void *c, OmegaGpuEwInfo *info) { + uint64_t t0 = now_ns(); + Slot *k = NULL; + int rc = begin(op, &k, info); + if (rc != OMEGA_GPU_EW_OK) return rc; + const uint32_t chunk = OMEGA_GPU_EW_MAX_CTAS * OMEGA_GPU_EW_THREADS; + for (uint32_t i0 = 0; i0 < n && rc == OMEGA_GPU_EW_OK; i0 += chunk) { + uint32_t ni = n - i0 < chunk ? n - i0 : chunk; + uint32_t grid = (ni + OMEGA_GPU_EW_THREADS - 1) / OMEGA_GPU_EW_THREADS; + uint32_t params[4] = { ni, 0, 0, 0 }; + size_t bytes = (size_t)ni * 4; + rc = run_abc(k, (const uint8_t *)a + (size_t)i0 * 4, bytes, b ? (const uint8_t *)b + (size_t)i0 * 4 : a, bytes, + (uint8_t *)c + (size_t)i0 * 4, bytes, OMEGA_GPU_EW_THREADS, grid, params, info); + } + UNLOCK(); + info_end(info, t0); + return rc; +} + +int omega_gpu_swiglu_f32(uint32_t n, const float *gate, const float *up, float *out, OmegaGpuEwInfo *info) { + if (!gate || !up || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_SWIGLU, n, gate, up, out, info); +} +int omega_gpu_ex2_f32(uint32_t n, const float *x, float *out, OmegaGpuEwInfo *info) { + if (!x || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_EX2, n, x, NULL, out, info); +} +int omega_gpu_shared_xchg_u32(uint32_t n, const uint32_t *x, uint32_t *out, OmegaGpuEwInfo *info) { + if (!x || !out || n == 0 || n % OMEGA_GPU_EW_THREADS != 0) return OMEGA_GPU_EW_BAD_ARGS; + return run_1d(OMEGA_GPU_EW_XCHG, n, x, NULL, out, info); +} +int omega_gpu_reconv_probe_u32(OmegaGpuEwOp op, uint32_t n, const uint32_t *a, const uint32_t *b, uint32_t *out, OmegaGpuEwInfo *info) { + if (!a || !b || !out || n == 0) return OMEGA_GPU_EW_BAD_ARGS; + switch (op) { + case OMEGA_GPU_EW_RC_DIAMOND: case OMEGA_GPU_EW_RC_LOOPBREAK: case OMEGA_GPU_EW_RC_NESTED: + case OMEGA_GPU_EW_RC_EXIT_BAR: case OMEGA_GPU_EW_RC_DEPTH16: break; + default: return OMEGA_GPU_EW_BAD_ARGS; + } + return run_1d(op, n, a, b, out, info); +} + +const char *omega_gpu_elementwise_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_EW_OK: return "OK"; + case OMEGA_GPU_EW_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_EW_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_EW_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_EW_CHIP_FAIL: return "CHIP_FAIL"; + case OMEGA_GPU_EW_UNWRITTEN: return "UNWRITTEN"; + default: return "UNKNOWN"; + } +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.h b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.h new file mode 100644 index 000000000..243b1ed9c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/omega_gpu_elementwise_api.h @@ -0,0 +1,183 @@ +#ifndef OMEGA_GPU_ELEMENTWISE_API_H +#define OMEGA_GPU_ELEMENTWISE_API_H +/* + * omega_gpu_elementwise_api: native (no CUDA) elementwise and row-reduction + * kernels for the AIEN inference stack (FB-1 cut 4, 2026-10-04). + * + * Three inference ops plus two probe ops, every kernel generated by our own + * codegen (src/omega_blackwell_codegen.c IR) and launched through the same + * chip-proven sequence as the tensor matmul path: all buffers GPU-uncached + * (nvos.h NVOS32_ATTR2_GPU_CACHEABLE: system memory cached by the GPU is not + * coherent with CPU mappings), first marker, L2_FLUSH_DIRTY, second marker + * (C3 tail), poison-filled output scanned for unwritten words after readback. + * + * The math follows aien-sovereign-core crates/aien-inference-abi/src/tensor.rs + * (ReferenceCpuBackend), read 2026-10-04 at main 5fdab70: + * rmsnorm: scale = 1/sqrt(mean(x^2) + eps) (oracle sums in f64; the chip + * sums in f32 and uses MUFU.RSQ refined by one Newton step), + * out[i] = (x[i] * scale) * weight[i] in that order. + * rope: rotate_half pairs (i, i + head_dim/2) per head, cos/sin tables + * supplied by the host as f32 (the oracle casts f64 cos/sin to f32 + * before the f32 math): out0 = q0*cos - q1*sin, out1 = q0*sin + q1*cos, + * emitted as FMUL, FMUL, FADD (no fused multiply-add), so the chip + * result is bit-identical to the f32 oracle. + * swiglu: out = silu(gate) * up, silu(g) = g / (1 + exp(-g)); the chip uses + * MUFU.EX2(g * -log2(e)) and MUFU.RCP (approximate units), the + * oracle computes in f64. Tolerance is stated per op in the test. + * + * Cut 4b (2026-10-04): the device, channel and launch scratch are the process-wide + * session shared with the matmul and attention APIs (omega_gpu_session.h): one open + * 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 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 +#include +#include +#include "omega_blackwell_matmul.h" /* OmegaBlackwellKernel */ + +#ifdef __cplusplus +extern "C" { +#endif + +enum { + OMEGA_GPU_EW_OK = 0, + OMEGA_GPU_EW_BAD_ARGS = -1, /* NULL pointer, zero dimension, or a shape rule below broken */ + OMEGA_GPU_EW_TOO_LARGE = -2, /* dimension outside the codegen limits */ + OMEGA_GPU_EW_CODEGEN_FAIL = -3, /* our codegen refused or exceeded the register budget */ + OMEGA_GPU_EW_CHIP_FAIL = -4, /* device open, submit, marker or release failed */ + OMEGA_GPU_EW_UNWRITTEN = -5 /* output words still equal to their poison after the run */ +}; + +/* Kernel families. The two probes exist to prove the new instructions on the + * chip with the smallest possible kernels (and are kept for regression). */ +typedef enum { + OMEGA_GPU_EW_EX2 = 1, /* out[i] = 2^a[i] (probe for MUFU.EX2) */ + OMEGA_GPU_EW_XCHG, /* out[i] = a[i ^ (T-1)] inside each CTA (probe for STS/BAR.SYNC/LDS) */ + OMEGA_GPU_EW_RMSNORM, + OMEGA_GPU_EW_ROPE, + OMEGA_GPU_EW_SWIGLU, + OMEGA_GPU_EW_PRIME_SIEVE, /* prime race (2026-10-05): word-parallel odd-only sieve, codegen only + * here; launched by bench/prime_race/gb10_native.c (argument words in + * gen_prime_sieve's comment) */ + OMEGA_GPU_EW_PRIME_SIEVE_SHARED, /* the same sieve with the table staged in shared memory (C3) */ + /* Structured warp reconvergence (omega #308). The four sieves below are the production sieve + * with its lane-dependent loops put back inside BSSY/BSYNC regions (regression R1): DIV1 wraps + * the original mark loop (omega 888a011), DIV2 also wraps the prime loop (nested regions). */ + OMEGA_GPU_EW_PRIME_SIEVE_DIV1, + OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV1, + OMEGA_GPU_EW_PRIME_SIEVE_DIV2, + OMEGA_GPU_EW_PRIME_SIEVE_SHARED_DIV2, + /* Probes for omega_gpu_reconv_probe_u32 (u32 in a, b; u32 out; oracle in tests/gpu_reconv_test.c) */ + OMEGA_GPU_EW_RC_DIAMOND, /* R3: if/else, sides of different length, SHFL after the join */ + OMEGA_GPU_EW_RC_LOOPBREAK, /* R4: loop with a lane-dependent break */ + OMEGA_GPU_EW_RC_NESTED, /* R5: a lane-dependent loop region inside an if region */ + OMEGA_GPU_EW_RC_EXIT_BAR, /* R6: lanes past the end + STS/BAR.SYNC/LDS exchange + SHFL, lanes exit last */ + OMEGA_GPU_EW_RC_DEPTH16, /* 16 nested regions: every barrier register B0..B15 in use */ + /* Codegen refusals: omega_gpu_elementwise_codegen_ir must return CODEGEN_FAIL for each */ + OMEGA_GPU_EW_RC_REFUSE_DEPTH17, /* a 17th nested region: no barrier register left */ + OMEGA_GPU_EW_RC_REFUSE_EXIT_SHFL, /* lanes EXIT, then BAR.SYNC/SHFL on the rest */ + OMEGA_GPU_EW_RC_REFUSE_EXIT_IN_REGION, /* EXIT inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_BAR_IN_REGION, /* BAR.SYNC inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_SHFL_IN_REGION, /* SHFL inside an open region */ + OMEGA_GPU_EW_RC_REFUSE_UNCLOSED, /* region begun, never joined */ + OMEGA_GPU_EW_RC_REFUSE_JOIN_ONLY /* BSYNC with no BSSY */ +} OmegaGpuEwOp; + +/* Shape rules (checked, refused with BAD_ARGS / TOO_LARGE): + * rmsnorm: dim % OMEGA_GPU_EW_THREADS == 0, dim <= OMEGA_GPU_EW_MAX_DIM, rows >= 1 + * rope: head_dim even, 2 <= head_dim <= 2048 (head_dim/2 threads per CTA), heads >= 1 + * swiglu: n >= 1 (the kernel guards the tail with a predicated EXIT) + * 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 1024u + +typedef struct { + uint32_t chip_calls; /* launches made */ + uint64_t elapsed_ns; /* sum of launch-to-second-marker over the launches */ + uint32_t completion_marker; /* observed first marker word of the last launch */ + uint32_t unwritten_words; /* output words still equal to poison (0 on success) */ + bool kernel_cache_hit; /* the shape's kernel was already generated in this process */ + uint32_t gpr_count; /* registers the generated kernel uses */ + uint32_t insn_count; + uint32_t threads_per_cta; + uint32_t ctas_last_launch; + char target_chip[64]; + uint32_t sm_architecture; + uint64_t call_ns; /* cut 4b: wall time of the whole API call (staging, launches, copy-out) */ +} OmegaGpuEwInfo; + +/* out[r*dim + i] = x[r*dim + i] * scale_r * weight[i]; scale_r = 1/sqrt(mean_i(x^2) + eps). */ +int omega_gpu_rmsnorm_f32(uint32_t rows, uint32_t dim, const float *x, const float *weight, + float eps, float *out, OmegaGpuEwInfo *info); + +/* v holds `heads` heads of head_dim values back to back; cos_half and sin_half + * hold head_dim/2 values each (cos(pos*freq_i), sin(pos*freq_i)); out gets the + * rotated heads (may alias v: the API copies through its own buffers). */ +int omega_gpu_rope_f32(uint32_t heads, uint32_t head_dim, const float *v, + const float *cos_half, const float *sin_half, float *out, + OmegaGpuEwInfo *info); + +/* out[i] = silu(gate[i]) * up[i] for i < n. */ +int omega_gpu_swiglu_f32(uint32_t n, const float *gate, const float *up, float *out, + OmegaGpuEwInfo *info); + +/* Probes. ex2: out[i] = 2^x[i]. xchg: out[i] = x[i ^ (OMEGA_GPU_EW_THREADS-1)] within each CTA. */ +int omega_gpu_ex2_f32(uint32_t n, const float *x, float *out, OmegaGpuEwInfo *info); +int omega_gpu_shared_xchg_u32(uint32_t n, const uint32_t *x, uint32_t *out, OmegaGpuEwInfo *info); +/* Reconvergence probes (op = one of OMEGA_GPU_EW_RC_DIAMOND .. OMEGA_GPU_EW_RC_DEPTH16, else + * BAD_ARGS). n >= 1, any n: lanes past the end take part in the warp step and exit before + * their store. out[i] = r_i + 4099 * r_(i+1 in warp); r per op in src/omega_gpu_elementwise_api.c. */ +int omega_gpu_reconv_probe_u32(OmegaGpuEwOp op, uint32_t n, const uint32_t *a, const uint32_t *b, + uint32_t *out, OmegaGpuEwInfo *info); + +/* Generate (without launching) the kernel for one op. Kernels read their shape + * from the argument words, so one kernel per op serves every shape; dims and eps + * are accepted for forward compatibility and ignored today (may be NULL / 0). + * Lets tests disassemble the bytes offline (nvdisasm) and check the register + * budget. Caller frees kernel->code. */ +int omega_gpu_elementwise_codegen(OmegaGpuEwOp op, const uint32_t *dims, float eps, + OmegaBlackwellKernel *kernel); + +/* Same, with the mutant chosen by the caller (0 = production kernel, 1 = the op's math mutant, + * 2 = the reconvergence join (BSYNC) dropped, 3 = the BSSY names the wrong join; 2 and 3 change + * only kernels that open a region, the host simulator must catch both) and, when prog is + * not NULL, a copy of the allocated IR program (a BlackwellIRProgram, post register + * allocation) for a host IR simulator. Does not touch the device or the kernel cache. + * Caller frees kernel->code. */ +int omega_gpu_elementwise_codegen_ir(OmegaGpuEwOp op, int mutant, void *prog, + OmegaBlackwellKernel *kernel); + +/* TEST ONLY. Selects a deliberately wrong kernel for one op (0 clears). Each + * mutant changes the math by far more than the op's tolerance, so a parity + * check that still passes against it proves nothing. Clears the kernel cache. + * EX2: computes 2^(x+1). XCHG: reads its own shared word (no exchange). + * RMSNORM: the warp tree drops its last SHFL step (half the lanes go missing). + * ROPE: out0 = q0*cos + q1*sin. SWIGLU: exp(+g) instead of exp(-g). */ +void omega_gpu_elementwise_test_set_mutant(int op); +/* TEST ONLY. Like test_set_mutant, choosing the mutant number (1 math, 2 join dropped, 3 join + * corrupted) that the next launch of `op` builds; lets a chip test observe what a missing + * reconvergence does (the simulator must have flagged it first). */ +void omega_gpu_elementwise_test_set_mutant_level(int op, int level); + +const char *omega_gpu_elementwise_rc_name(int rc); +void omega_gpu_elementwise_cache_clear(void); + +/* Stage name of the most recent CHIP_FAIL ("" if none), shared with the other GPU APIs + * (omega_gpu_session_last_error); an open failure carries the driver text. */ +const char *omega_gpu_elementwise_last_error(void); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/receipt.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/receipt.json new file mode 100644 index 000000000..41bc190ec --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/receipt.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_RECONV_V1","issue":308,"comparison":"exact u32","cases":[{"op":"rc_diamond","regression":"R3","n":1,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":214482,"chip_calls":1,"unwritten_words":0,"cache_hit":false},{"op":"rc_diamond","regression":"R3","n":5,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103185,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":31,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103136,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":32,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103936,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":33,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103457,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":63,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103137,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":64,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103297,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":65,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103745,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":96,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103297,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":127,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103153,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":128,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103217,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":129,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103201,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":200,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103985,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":1000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103201,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":4096,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103569,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":8191,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103489,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":8192,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103281,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":8193,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103537,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":20000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":76129,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":131071,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":106049,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":131072,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":104881,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_diamond","regression":"R3","n":131073,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":208146,"chip_calls":2,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":1,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103232,"chip_calls":1,"unwritten_words":0,"cache_hit":false},{"op":"rc_loopbreak","regression":"R4","n":5,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102880,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":31,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102801,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":32,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102913,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":33,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102737,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":63,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102609,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":64,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102785,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":65,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102993,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":96,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102929,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":127,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":68416,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":128,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102913,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":129,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102641,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":200,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102929,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":1000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102608,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":4096,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102705,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":8191,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102929,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":8192,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102688,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":8193,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102705,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":20000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102961,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":131071,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103601,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":131072,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":104321,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_loopbreak","regression":"R4","n":131073,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":210994,"chip_calls":2,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":1,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":104081,"chip_calls":1,"unwritten_words":0,"cache_hit":false},{"op":"rc_nested","regression":"R5","n":5,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102865,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":31,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103681,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":32,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102849,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":33,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103169,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":63,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102817,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":64,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102817,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":65,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102897,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":96,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102849,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":127,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102785,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":128,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102817,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":129,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103313,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":200,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102769,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":1000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103361,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":4096,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102977,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":8191,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102833,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":8192,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102977,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":8193,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103025,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":20000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103409,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":131071,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":104337,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":131072,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":106833,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_nested","regression":"R5","n":131073,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":212210,"chip_calls":2,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":1,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":105281,"chip_calls":1,"unwritten_words":0,"cache_hit":false},{"op":"rc_exit_bar","regression":"R6","n":5,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103649,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":31,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102993,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":32,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103137,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":33,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103041,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":63,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103073,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":64,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102993,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":65,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103888,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":96,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103153,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":127,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102913,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":128,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103009,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":129,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103249,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":200,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":113553,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":1000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":113105,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":4096,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103937,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":8191,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":111521,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":8192,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":110865,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":8193,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103681,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":20000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103809,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":131071,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":107361,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":131072,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":106369,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_exit_bar","regression":"R6","n":131073,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":190386,"chip_calls":2,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":1,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":106353,"chip_calls":1,"unwritten_words":0,"cache_hit":false},{"op":"rc_depth16","regression":"B0..B15","n":5,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102945,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":31,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102849,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":32,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102641,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":33,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103841,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":63,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102657,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":64,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102849,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":65,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102577,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":96,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103217,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":127,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103489,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":128,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102833,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":129,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":103153,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":200,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102961,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":1000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102881,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":4096,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102961,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":8191,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102897,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":8192,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102672,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":8193,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102641,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":20000,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":102721,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":131071,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":104865,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":131072,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":106609,"chip_calls":1,"unwritten_words":0,"cache_hit":true},{"op":"rc_depth16","regression":"B0..B15","n":131073,"rc":"OK","violations":0,"pass":true,"chip_elapsed_ns":211234,"chip_calls":2,"unwritten_words":0,"cache_hit":true}],"mutants":[{"op":"rc_diamond","mutant":1,"rc":"OK","violations":755,"caught":true},{"op":"rc_loopbreak","mutant":1,"rc":"OK","violations":377,"caught":true},{"op":"rc_nested","mutant":1,"rc":"OK","violations":110,"caught":true},{"op":"rc_exit_bar","mutant":1,"rc":"CODEGEN_FAIL","violations":1000,"caught":true}],"observations":[],"sim_model_n4096":[{"op":"rc_diamond","order":0,"warp_issues":4736,"lane_issues":133045,"splits":128,"max_frags":2,"peak_bars":1},{"op":"rc_diamond","order":1,"warp_issues":4736,"lane_issues":133096,"splits":128,"max_frags":2,"peak_bars":1},{"op":"rc_loopbreak","order":0,"warp_issues":115685,"lane_issues":713552,"splits":2889,"max_frags":28,"peak_bars":1},{"op":"rc_loopbreak","order":1,"warp_issues":116847,"lane_issues":728322,"splits":2876,"max_frags":2,"peak_bars":1},{"op":"rc_nested","order":0,"warp_issues":92819,"lane_issues":444474,"splits":1739,"max_frags":20,"peak_bars":2},{"op":"rc_nested","order":1,"warp_issues":91594,"lane_issues":433797,"splits":1694,"max_frags":2,"peak_bars":2},{"op":"rc_exit_bar","order":0,"warp_issues":5120,"lane_issues":157717,"splits":128,"max_frags":2,"peak_bars":1},{"op":"rc_exit_bar","order":1,"warp_issues":5120,"lane_issues":157638,"splits":128,"max_frags":2,"peak_bars":1},{"op":"rc_depth16","order":0,"warp_issues":13696,"lane_issues":280428,"splits":128,"max_frags":2,"peak_bars":16},{"op":"rc_depth16","order":1,"warp_issues":13696,"lane_issues":279136,"splits":128,"max_frags":2,"peak_bars":16}],"device_opens":1,"checks":235,"failed":0,"verdict":"OMEGA_GPU_RECONV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/run.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/run.log new file mode 100644 index 000000000..94b86819e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/reconv/GPU-RECONV-710d438c/run.log @@ -0,0 +1,20 @@ +codegen rc_diamond: 37 insns, 14 gprs, 1 regions +codegen rc_loopbreak: 41 insns, 14 gprs, 1 regions +codegen rc_nested: 49 insns, 15 gprs, 2 regions +codegen rc_exit_bar: 40 insns, 18 gprs, 1 regions +codegen rc_depth16: 107 insns, 14 gprs, 16 regions +nvdisasm diamond: rc=0 insns=40 undecodable=0 missing=0 (/tmp/omega_rc_diamond_2665116.sass) +nvdisasm depth16: rc=0 insns=112 undecodable=0 missing=0 (/tmp/omega_rc_depth16_2665116.sass) +nvdisasm sieve_div2: rc=0 insns=72 undecodable=0 missing=0 (/tmp/omega_rc_sieve_div2_2665116.sass) +nvdisasm forms: rc=0 insns=4 undecodable=0 missing=0 (/tmp/omega_rc_forms_2665116.sass) +model rc_diamond n=4096: warp_issues=4736 lane_util=0.878 splits=128 max_frags=2 peak_bars=1 +model rc_diamond n=4096: warp_issues=4736 lane_util=0.878 splits=128 max_frags=2 peak_bars=1 +model rc_loopbreak n=4096: warp_issues=115685 lane_util=0.193 splits=2889 max_frags=28 peak_bars=1 +model rc_loopbreak n=4096: warp_issues=116847 lane_util=0.195 splits=2876 max_frags=2 peak_bars=1 +model rc_nested n=4096: warp_issues=92819 lane_util=0.150 splits=1739 max_frags=20 peak_bars=2 +model rc_nested n=4096: warp_issues=91594 lane_util=0.148 splits=1694 max_frags=2 peak_bars=2 +model rc_exit_bar n=4096: warp_issues=5120 lane_util=0.963 splits=128 max_frags=2 peak_bars=1 +model rc_exit_bar n=4096: warp_issues=5120 lane_util=0.962 splits=128 max_frags=2 peak_bars=1 +model rc_depth16 n=4096: warp_issues=13696 lane_util=0.640 splits=128 max_frags=2 peak_bars=16 +model rc_depth16 n=4096: warp_issues=13696 lane_util=0.637 splits=128 max_frags=2 peak_bars=16 +PASS: 235 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router.out new file mode 100644 index 000000000..5511b7980 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router.out @@ -0,0 +1,174 @@ +codegen warps 8 depth 1: 567 instructions, 44 registers (declared 48, register file 12288 of 65536) +codegen warps 8 depth 2: 567 instructions, 44 registers (declared 48, register file 12288 of 65536) +codegen warps 8 depth 4: 567 instructions, 46 registers (declared 48, register file 12288 of 65536) +codegen warps 8 depth 8: 567 instructions, 60 registers (declared 64, register file 16384 of 65536) +codegen warps 16 depth 1: 543 instructions, 40 registers (declared 48, register file 24576 of 65536) +codegen warps 16 depth 2: 543 instructions, 40 registers (declared 48, register file 24576 of 65536) +codegen warps 16 depth 4: 543 instructions, 46 registers (declared 48, register file 24576 of 65536) +codegen warps 16 depth 8: 543 instructions, 60 registers (declared 64, register file 32768 of 65536) +codegen warps 32 depth 1: 547 instructions, 40 registers (declared 48, register file 49152 of 65536) +codegen warps 32 depth 2: 547 instructions, 40 registers (declared 48, register file 49152 of 65536) +codegen warps 32 depth 4: 547 instructions, 46 registers (declared 48, register file 49152 of 65536) +codegen warps 32 depth 8: 547 instructions, 60 registers (declared 64, register file 65536 of 65536) +gpu_router_test: 69 checks, 0 failed: PASS +sim depth 8 norm: ok ids equal, w max abs 4.14e-08, x' max abs 1.67e-07 (of 2.05), tables ok, margin 1.40e-01 +sim depth 8 norm seed 12: ok ids equal, w max abs 2.88e-08, x' max abs 1.67e-07 (of 2.03), tables ok, margin 7.86e-02 +sim depth 8 no-norm: ok ids equal, w max abs 2.89e-08, x' max abs 1.33e-07 (of 2.05), tables ok, margin 2.17e-02 +sim depth 4 norm: ok ids equal, w max abs 5.29e-08, x' max abs 3.03e-07 (of 2.04), tables ok, margin 5.94e-02 +sim depth 1 norm: ok ids equal, w max abs 5.22e-08, x' max abs 2.82e-07 (of 2.00), tables ok, margin 4.43e-02 +sim depth 2 norm out_scale 2^64: ok ids equal, w max abs 5.07e-08, x' max abs 1.37e-07 (of 2.08), tables ok, margin 1.20e-01 +sim mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.45e-01 (of 2.07), tables ok, margin 1.39e-01 +sim mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 1.81e-07 (of 2.07), tables ok, margin 1.39e-01 +sim mutant 3: caught (bad mask 8) ids equal, w max abs 2.02e-08, x' max abs 1.81e-07 (of 2.07), tables WRONG, margin 1.39e-01 +sim mutant 4: caught (bad mask 2) ids equal, w max abs 6.91e-01, x' max abs 1.81e-07 (of 2.07), tables ok, margin 1.39e-01 +sim: 630654 warp issues in total +gpu_router_test: 10 checks, 0 failed: PASS +PASS timing 1x2048x8192 upload_ms=240.5 ok_calls=100 median_ms=0.366 p90_ms=0.412 min_ms=0.301 max_ms=0.926 chip_ns_mean=354105 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=106.5 ok_calls=100 median_ms=0.718 p90_ms=0.723 min_ms=0.691 max_ms=1.273 chip_ns_mean=719993 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) +router alloc (2 layers): rc=OK 136.2 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.95e-08, x' max abs 2.90e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.29e-08, x' max abs 1.34e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.79e-08, x' max abs 1.48e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 1.81e-07, x' max abs 3.07e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 5.10e-08, x' max abs 2.10e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 156.2 us vs 147.3 us, call 411.6 us vs 165.6 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 1, warps 32 depth 4): router chip 72.1 us, router call 75.7 us, grouped gate+up dev chip 144.7 us, router+gate+up sequence 229.6 us +gpu_router_test: 17 checks, 0 failed: PASS +router alloc (2 layers): rc=OK 135.1 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.95e-08, x' max abs 2.90e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.29e-08, x' max abs 1.34e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.79e-08, x' max abs 1.48e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 1.81e-07, x' max abs 3.07e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 5.10e-08, x' max abs 2.10e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 150.7 us vs 143.5 us, call 412.4 us vs 161.6 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 1, warps 32 depth 8): router chip 77.1 us, router call 80.1 us, grouped gate+up dev chip 146.9 us, router+gate+up sequence 238.1 us +gpu_router_test: 17 checks, 0 failed: PASS +warps 32 depth 8 exit 0 (informational) +router alloc (2 layers): rc=OK 135.3 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.27e-08, x' max abs 1.28e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.42e-08, x' max abs 2.45e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 3.02e-08, x' max abs 1.96e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 3.16e-08, x' max abs 2.43e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 2.56e-08, x' max abs 1.18e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 4.71e-08, x' max abs 1.52e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 179 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 153.8 us vs 146.4 us, call 411.7 us vs 164.4 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 1, warps 16 depth 8): router chip 80.7 us, router call 84.1 us, grouped gate+up dev chip 150.7 us, router+gate+up sequence 244.1 us +gpu_router_test: 17 checks, 0 failed: PASS +warps 16 depth 8 exit 0 (informational) +router alloc (2 layers): rc=OK 136.2 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 2.92e-08, x' max abs 2.31e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.27e-08, x' max abs 1.28e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 7.38e-08, x' max abs 2.28e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 3.02e-08, x' max abs 1.96e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 3.16e-08, x' max abs 1.32e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 4.71e-08, x' max abs 1.52e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 1.69e-07, x' max abs 1.63e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 147.7 us vs 145.5 us, call 402.5 us vs 166.0 us +e2e group 3 vs fp8 oracle: worst rel 2.72e-08 +timing (medians of 50, evict 1, warps 8 depth 8): router chip 87.2 us, router call 91.0 us, grouped gate+up dev chip 146.9 us, router+gate+up sequence 247.2 us +gpu_router_test: 17 checks, 0 failed: PASS +warps 8 depth 8 exit 0 (informational) +router alloc (2 layers): rc=OK 135.1 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.95e-08, x' max abs 2.90e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.29e-08, x' max abs 1.34e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.79e-08, x' max abs 1.48e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 1.81e-07, x' max abs 3.07e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 5.10e-08, x' max abs 2.10e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 153.6 us vs 145.9 us, call 409.5 us vs 163.8 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 0, warps 32 depth 4): router chip 26.0 us, router call 27.2 us, grouped gate+up dev chip 150.0 us, router+gate+up sequence 185.3 us +gpu_router_test: 17 checks, 0 failed: PASS +no-evict exit 0 (informational) +GPU_ROUTER_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/SHA256SUMS new file mode 100644 index 000000000..6667960f9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/SHA256SUMS @@ -0,0 +1,16 @@ +5f829009002959b0a4965f1c016bbb6f3786545789b09816c7d652be3a39b08e receipt-baseline-matmul.json +c295577f7f91500049e4c37d06147e32338e44bad2b428033bc17605865cf2a8 receipt-main.json +1747b5ceaeebfd6d76a4ee0355d86348d24641a458f830a4177ac320fda2a7dc receipt-noevict.json +bb140511ae5423765ee528f8bac9384e05e33fac8033603849cdfe7124c3eba4 receipt-w16-d8.json +33d6a7b8c614bb78077b01fd768e413b1b50aaeb218cad6011d281caac8b25b5 receipt-w32-d8.json +8c883e88a526dab7bf1d5d4bc5c3cb4061b4c64d9b1954dbd696881b85704f07 receipt-w8-d8.json +1dc7ed2b6562a6e21572e78fe2a7f02c2069d4c9cb5da458c9a8e0e96f90e880 baseline-matmul.log +66f32fbc83402bb2a0e52e65ab16dd002c489f812da3d3b30e391bd9af6b07e4 build.log +4e3d22dc50ec9f7d083ee344423bf842d6c2c9b302bb4721839c8fe300a119e7 host-only.log +dda0cf949170f759da61890fa11a2d8a8d4fa6471553558f26cfcd4a85b47d3d main.log +3cd2001f1bbbb26a9e3d4dc7f1775e8dc660895f74c677397a0fec200d8c79e2 noevict.log +628565a72d16563c83fad624acd5598c5c01657ba5fa703e5b15faeaf682dd52 sim.log +d5bc185a8c99c256cb23ab2e6109b505c5ff43e0404f24f47b0c0fd9f6794415 w16-d8.log +5030106ba1044258f029610d81d92c2e4b5b65a4584dc3630add43bb9f3c8852 w32-d8.log +1232f685c70f5161a443ae0b9b43f4d53ab253235d86a80f3d4585cc7852f47b w8-d8.log +5cfef6c9e2412f97e226254d9d0365585fae49e03120da807f8b2e91fa14b8ed device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/baseline-matmul.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/baseline-matmul.log new file mode 100644 index 000000000..9366bfb2b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/baseline-matmul.log @@ -0,0 +1,4 @@ +PASS timing 1x2048x8192 upload_ms=240.5 ok_calls=100 median_ms=0.366 p90_ms=0.412 min_ms=0.301 max_ms=0.926 chip_ns_mean=354105 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=106.5 ok_calls=100 median_ms=0.718 p90_ms=0.723 min_ms=0.691 max_ms=1.273 chip_ns_mean=719993 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/build.log new file mode 100644 index 000000000..c7d3efa09 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/build.log @@ -0,0 +1 @@ +make: 'build/gpu_matmul_api_test' is up to date. diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/device.txt new file mode 100644 index 000000000..d18c5c065 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:58:45Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 14 72 2 38 106 +end 2026-10-15T00:58:57Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/host-only.log new file mode 100644 index 000000000..2f48348c2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/host-only.log @@ -0,0 +1,13 @@ +codegen warps 8 depth 1: 567 instructions, 44 registers (declared 48, register file 12288 of 65536) +codegen warps 8 depth 2: 567 instructions, 44 registers (declared 48, register file 12288 of 65536) +codegen warps 8 depth 4: 567 instructions, 46 registers (declared 48, register file 12288 of 65536) +codegen warps 8 depth 8: 567 instructions, 60 registers (declared 64, register file 16384 of 65536) +codegen warps 16 depth 1: 543 instructions, 40 registers (declared 48, register file 24576 of 65536) +codegen warps 16 depth 2: 543 instructions, 40 registers (declared 48, register file 24576 of 65536) +codegen warps 16 depth 4: 543 instructions, 46 registers (declared 48, register file 24576 of 65536) +codegen warps 16 depth 8: 543 instructions, 60 registers (declared 64, register file 32768 of 65536) +codegen warps 32 depth 1: 547 instructions, 40 registers (declared 48, register file 49152 of 65536) +codegen warps 32 depth 2: 547 instructions, 40 registers (declared 48, register file 49152 of 65536) +codegen warps 32 depth 4: 547 instructions, 46 registers (declared 48, register file 49152 of 65536) +codegen warps 32 depth 8: 547 instructions, 60 registers (declared 64, register file 65536 of 65536) +gpu_router_test: 69 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/main.log new file mode 100644 index 000000000..ae645b407 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/main.log @@ -0,0 +1,28 @@ +router alloc (2 layers): rc=OK 136.2 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.95e-08, x' max abs 2.90e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.29e-08, x' max abs 1.34e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.79e-08, x' max abs 1.48e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 1.81e-07, x' max abs 3.07e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 5.10e-08, x' max abs 2.10e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 156.2 us vs 147.3 us, call 411.6 us vs 165.6 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 1, warps 32 depth 4): router chip 72.1 us, router call 75.7 us, grouped gate+up dev chip 144.7 us, router+gate+up sequence 229.6 us +gpu_router_test: 17 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/noevict.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/noevict.log new file mode 100644 index 000000000..51339151f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/noevict.log @@ -0,0 +1,29 @@ +router alloc (2 layers): rc=OK 135.1 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.95e-08, x' max abs 2.90e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.29e-08, x' max abs 1.34e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.79e-08, x' max abs 1.48e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 1.81e-07, x' max abs 3.07e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 5.10e-08, x' max abs 2.10e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 153.6 us vs 145.9 us, call 409.5 us vs 163.8 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 0, warps 32 depth 4): router chip 26.0 us, router call 27.2 us, grouped gate+up dev chip 150.0 us, router+gate+up sequence 185.3 us +gpu_router_test: 17 checks, 0 failed: PASS +no-evict exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-baseline-matmul.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-baseline-matmul.json new file mode 100644 index 000000000..4443c4b51 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-baseline-matmul.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_TIMING_V1","cta_budget":64,"spin_us":0,"calls":100,"shapes":[{"m":1,"k":2048,"n":8192,"pass":true,"upload_ms":240.495,"ok_calls":100,"median_ms":0.3657,"p90_ms":0.4125,"min_ms":0.3009,"max_ms":0.9259,"chip_ns_mean":354105,"grid_x":64,"grid_y":1,"e2e_first":2.36603e-07,"e2e_last":2.36603e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0},{"m":1,"k":8192,"n":2048,"pass":true,"upload_ms":106.486,"ok_calls":100,"median_ms":0.7178,"p90_ms":0.7234,"min_ms":0.6914,"max_ms":1.2733,"chip_ns_mean":719993,"grid_x":64,"grid_y":1,"e2e_first":5.21488e-07,"e2e_last":5.21488e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-main.json new file mode 100644 index 000000000..fc451abf2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-main.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_ROUTER_V1","reps":50,"evict":1,"spin_us":2000,"points":[{"point":"parity 0","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":146497},{"point":"parity 1","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27217},{"point":"parity 2","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27073},{"point":"parity 3","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27521},{"point":"parity 4","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26833},{"point":"parity 5","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28001},{"point":"parity 6","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26385},{"point":"parity 7","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27169},{"point":"parity 8","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26465},{"point":"parity 9","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27697},{"point":"parity 10","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26160},{"point":"parity 11","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27536},{"point":"parity 12","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28368},{"point":"parity 13","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27312},{"point":"parity 14","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27264},{"point":"parity 15","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26272},{"point":"parity 16","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27008},{"point":"parity 17","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26512},{"point":"parity 18","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27328},{"point":"parity 19","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28496},{"point":"parity 20","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27376},{"point":"parity 21","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26848},{"point":"parity 22","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27712},{"point":"parity 23","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27200},{"point":"parity 24","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27520},{"point":"parity 25","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26960},{"point":"parity 26","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":28176},{"point":"parity 27","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27616},{"point":"parity 28","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27776},{"point":"parity 29","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":28353},{"point":"parity 30","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27601},{"point":"parity 31","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27553},{"point":"parity 32","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28097},{"point":"parity 33","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27425},{"point":"parity 34","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27473},{"point":"parity 35","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27265},{"point":"mutant 1","caught":1,"bad_mask":5},{"point":"mutant 2","caught":1,"bad_mask":1},{"point":"mutant 3","caught":1,"bad_mask":8},{"point":"mutant 4","caught":1,"bad_mask":2},{"point":"timing","warps":32,"depth":4,"reps":50,"router_chip_median_ns":72129,"router_call_median_ns":75713,"gateup_dev_chip_median_ns":144690,"sequence_median_ns":229587,"router_bytes":524288,"marker":1145324612}],"checks":17,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-noevict.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-noevict.json new file mode 100644 index 000000000..a6e04461d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-noevict.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_ROUTER_V1","reps":50,"evict":0,"spin_us":2000,"points":[{"point":"parity 0","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":149010},{"point":"parity 1","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26384},{"point":"parity 2","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27056},{"point":"parity 3","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26528},{"point":"parity 4","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26848},{"point":"parity 5","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26864},{"point":"parity 6","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26912},{"point":"parity 7","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25808},{"point":"parity 8","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26512},{"point":"parity 9","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26704},{"point":"parity 10","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26993},{"point":"parity 11","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26529},{"point":"parity 12","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27121},{"point":"parity 13","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26833},{"point":"parity 14","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25633},{"point":"parity 15","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26897},{"point":"parity 16","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27056},{"point":"parity 17","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26368},{"point":"parity 18","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26880},{"point":"parity 19","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26800},{"point":"parity 20","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26336},{"point":"parity 21","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26976},{"point":"parity 22","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25616},{"point":"parity 23","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27072},{"point":"parity 24","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27056},{"point":"parity 25","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26784},{"point":"parity 26","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27056},{"point":"parity 27","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26672},{"point":"parity 28","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26848},{"point":"parity 29","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26833},{"point":"parity 30","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26961},{"point":"parity 31","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26049},{"point":"parity 32","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27233},{"point":"parity 33","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26561},{"point":"parity 34","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26801},{"point":"parity 35","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26689},{"point":"mutant 1","caught":1,"bad_mask":5},{"point":"mutant 2","caught":1,"bad_mask":1},{"point":"mutant 3","caught":1,"bad_mask":8},{"point":"mutant 4","caught":1,"bad_mask":2},{"point":"timing","warps":32,"depth":4,"reps":50,"router_chip_median_ns":26048,"router_call_median_ns":27249,"gateup_dev_chip_median_ns":149986,"sequence_median_ns":185266,"router_bytes":524288,"marker":1145324612}],"checks":17,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w16-d8.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w16-d8.json new file mode 100644 index 000000000..a9d286729 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w16-d8.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_ROUTER_V1","reps":50,"evict":1,"spin_us":2000,"points":[{"point":"parity 0","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":165122},{"point":"parity 1","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26481},{"point":"parity 2","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26273},{"point":"parity 3","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26273},{"point":"parity 4","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26465},{"point":"parity 5","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25537},{"point":"parity 6","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25697},{"point":"parity 7","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25377},{"point":"parity 8","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26032},{"point":"parity 9","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25760},{"point":"parity 10","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25712},{"point":"parity 11","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25584},{"point":"parity 12","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25808},{"point":"parity 13","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25680},{"point":"parity 14","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":24848},{"point":"parity 15","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":24704},{"point":"parity 16","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":24960},{"point":"parity 17","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25808},{"point":"parity 18","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25216},{"point":"parity 19","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26304},{"point":"parity 20","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26001},{"point":"parity 21","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26097},{"point":"parity 22","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25521},{"point":"parity 23","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26113},{"point":"parity 24","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":25872},{"point":"parity 25","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":25376},{"point":"parity 26","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26368},{"point":"parity 27","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26240},{"point":"parity 28","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":25328},{"point":"parity 29","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":25712},{"point":"parity 30","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26512},{"point":"parity 31","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":25632},{"point":"parity 32","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26256},{"point":"parity 33","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25712},{"point":"parity 34","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26048},{"point":"parity 35","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":25664},{"point":"mutant 1","caught":1,"bad_mask":5},{"point":"mutant 2","caught":1,"bad_mask":1},{"point":"mutant 3","caught":1,"bad_mask":8},{"point":"mutant 4","caught":1,"bad_mask":2},{"point":"timing","warps":16,"depth":8,"reps":50,"router_chip_median_ns":80705,"router_call_median_ns":84081,"gateup_dev_chip_median_ns":150721,"sequence_median_ns":244114,"router_bytes":524288,"marker":1145324612}],"checks":17,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w32-d8.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w32-d8.json new file mode 100644 index 000000000..33ebe9402 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w32-d8.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_ROUTER_V1","reps":50,"evict":1,"spin_us":2000,"points":[{"point":"parity 0","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":149617},{"point":"parity 1","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27137},{"point":"parity 2","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27425},{"point":"parity 3","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":29345},{"point":"parity 4","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27553},{"point":"parity 5","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27505},{"point":"parity 6","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26864},{"point":"parity 7","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27248},{"point":"parity 8","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27840},{"point":"parity 9","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26816},{"point":"parity 10","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28096},{"point":"parity 11","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28096},{"point":"parity 12","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26768},{"point":"parity 13","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27056},{"point":"parity 14","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26656},{"point":"parity 15","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27184},{"point":"parity 16","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27520},{"point":"parity 17","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26864},{"point":"parity 18","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28112},{"point":"parity 19","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26320},{"point":"parity 20","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27761},{"point":"parity 21","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26801},{"point":"parity 22","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28113},{"point":"parity 23","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27297},{"point":"parity 24","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27121},{"point":"parity 25","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27617},{"point":"parity 26","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27840},{"point":"parity 27","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27184},{"point":"parity 28","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":27520},{"point":"parity 29","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":28528},{"point":"parity 30","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":28112},{"point":"parity 31","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":26992},{"point":"parity 32","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27584},{"point":"parity 33","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":28112},{"point":"parity 34","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":27984},{"point":"parity 35","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":26304},{"point":"mutant 1","caught":1,"bad_mask":5},{"point":"mutant 2","caught":1,"bad_mask":1},{"point":"mutant 3","caught":1,"bad_mask":8},{"point":"mutant 4","caught":1,"bad_mask":2},{"point":"timing","warps":32,"depth":8,"reps":50,"router_chip_median_ns":77089,"router_call_median_ns":80065,"gateup_dev_chip_median_ns":146930,"sequence_median_ns":238083,"router_bytes":524288,"marker":1145324612}],"checks":17,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w8-d8.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w8-d8.json new file mode 100644 index 000000000..d510e0730 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/receipt-w8-d8.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_ROUTER_V1","reps":50,"evict":1,"spin_us":2000,"points":[{"point":"parity 0","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":161522},{"point":"parity 1","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31840},{"point":"parity 2","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31168},{"point":"parity 3","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":32608},{"point":"parity 4","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31440},{"point":"parity 5","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31968},{"point":"parity 6","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":32016},{"point":"parity 7","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":32640},{"point":"parity 8","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31360},{"point":"parity 9","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31536},{"point":"parity 10","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31824},{"point":"parity 11","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31520},{"point":"parity 12","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31616},{"point":"parity 13","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":35344},{"point":"parity 14","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":32528},{"point":"parity 15","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31312},{"point":"parity 16","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":32064},{"point":"parity 17","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31872},{"point":"parity 18","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31376},{"point":"parity 19","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31360},{"point":"parity 20","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31360},{"point":"parity 21","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31440},{"point":"parity 22","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31728},{"point":"parity 23","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31040},{"point":"parity 24","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":31200},{"point":"parity 25","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":31744},{"point":"parity 26","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":31216},{"point":"parity 27","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":31296},{"point":"parity 28","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":31536},{"point":"parity 29","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":30528},{"point":"parity 30","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":31968},{"point":"parity 31","norm_topk":0,"bad_mask":0,"margin_case":0,"chip_ns":30912},{"point":"parity 32","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":32112},{"point":"parity 33","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31344},{"point":"parity 34","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31296},{"point":"parity 35","norm_topk":1,"bad_mask":0,"margin_case":0,"chip_ns":31840},{"point":"mutant 1","caught":1,"bad_mask":5},{"point":"mutant 2","caught":1,"bad_mask":1},{"point":"mutant 3","caught":1,"bad_mask":8},{"point":"mutant 4","caught":1,"bad_mask":2},{"point":"timing","warps":8,"depth":8,"reps":50,"router_chip_median_ns":87217,"router_call_median_ns":90961,"gateup_dev_chip_median_ns":146946,"sequence_median_ns":247171,"router_bytes":524288,"marker":1145324612}],"checks":17,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/sim.log new file mode 100644 index 000000000..aa78a7731 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/sim.log @@ -0,0 +1,12 @@ +sim depth 8 norm: ok ids equal, w max abs 4.14e-08, x' max abs 1.67e-07 (of 2.05), tables ok, margin 1.40e-01 +sim depth 8 norm seed 12: ok ids equal, w max abs 2.88e-08, x' max abs 1.67e-07 (of 2.03), tables ok, margin 7.86e-02 +sim depth 8 no-norm: ok ids equal, w max abs 2.89e-08, x' max abs 1.33e-07 (of 2.05), tables ok, margin 2.17e-02 +sim depth 4 norm: ok ids equal, w max abs 5.29e-08, x' max abs 3.03e-07 (of 2.04), tables ok, margin 5.94e-02 +sim depth 1 norm: ok ids equal, w max abs 5.22e-08, x' max abs 2.82e-07 (of 2.00), tables ok, margin 4.43e-02 +sim depth 2 norm out_scale 2^64: ok ids equal, w max abs 5.07e-08, x' max abs 1.37e-07 (of 2.08), tables ok, margin 1.20e-01 +sim mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.45e-01 (of 2.07), tables ok, margin 1.39e-01 +sim mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 1.81e-07 (of 2.07), tables ok, margin 1.39e-01 +sim mutant 3: caught (bad mask 8) ids equal, w max abs 2.02e-08, x' max abs 1.81e-07 (of 2.07), tables WRONG, margin 1.39e-01 +sim mutant 4: caught (bad mask 2) ids equal, w max abs 6.91e-01, x' max abs 1.81e-07 (of 2.07), tables ok, margin 1.39e-01 +sim: 630654 warp issues in total +gpu_router_test: 10 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w16-d8.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w16-d8.log new file mode 100644 index 000000000..e4073befa --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w16-d8.log @@ -0,0 +1,29 @@ +router alloc (2 layers): rc=OK 135.3 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.27e-08, x' max abs 1.28e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.42e-08, x' max abs 2.45e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 3.02e-08, x' max abs 1.96e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 3.16e-08, x' max abs 2.43e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 2.56e-08, x' max abs 1.18e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 4.71e-08, x' max abs 1.52e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 179 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 153.8 us vs 146.4 us, call 411.7 us vs 164.4 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 1, warps 16 depth 8): router chip 80.7 us, router call 84.1 us, grouped gate+up dev chip 150.7 us, router+gate+up sequence 244.1 us +gpu_router_test: 17 checks, 0 failed: PASS +warps 16 depth 8 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w32-d8.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w32-d8.log new file mode 100644 index 000000000..77eefc05c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w32-d8.log @@ -0,0 +1,29 @@ +router alloc (2 layers): rc=OK 135.1 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.70e-08, x' max abs 1.66e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.95e-08, x' max abs 2.90e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.29e-08, x' max abs 1.34e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 1.79e-08, x' max abs 1.48e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 1.81e-07, x' max abs 3.07e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 5.10e-08, x' max abs 2.10e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 2.10e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 6.92e-08, x' max abs 2.50e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 150.7 us vs 143.5 us, call 412.4 us vs 161.6 us +e2e group 3 vs fp8 oracle: worst rel 2.33e-08 +timing (medians of 50, evict 1, warps 32 depth 8): router chip 77.1 us, router call 80.1 us, grouped gate+up dev chip 146.9 us, router+gate+up sequence 238.1 us +gpu_router_test: 17 checks, 0 failed: PASS +warps 32 depth 8 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w8-d8.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w8-d8.log new file mode 100644 index 000000000..ec530d110 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/router/w8-d8.log @@ -0,0 +1,29 @@ +router alloc (2 layers): rc=OK 136.2 ms () +parity 0 (norm 1, out_scale 1, x scale 0.01): ok ids equal, w max abs 2.92e-08, x' max abs 2.31e-07 (of 1.98), tables ok, margin 7.98e-03 +second call: bit-identical +parity 1 (norm 1, out_scale 1, x scale 1): ok ids equal, w max abs 3.62e-08, x' max abs 2.32e-07 (of 2.05), tables ok, margin 3.88e-02 +parity 2 (norm 1, out_scale 1, x scale 40): ok ids equal, w max abs 2.09e-08, x' max abs 1.65e-07 (of 2.04), tables ok, margin 1.40e-02 +parity 24 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 1.27e-08, x' max abs 1.28e-07 (of 2.05), tables ok, margin 7.60e-02 +parity 25 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 7.38e-08, x' max abs 2.28e-07 (of 2.06), tables ok, margin 3.20e-02 +parity 26 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 8.15e-09, x' max abs 2.93e-07 (of 2.03), tables ok, margin 8.03e-02 +parity 27 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 6.59e-09, x' max abs 1.52e-07 (of 2.07), tables ok, margin 5.37e-02 +parity 28 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 9.86e-09, x' max abs 1.80e-07 (of 2.03), tables ok, margin 1.24e-02 +parity 29 (norm 0, out_scale 1, x scale 40): ok ids equal, w max abs 3.25e-08, x' max abs 1.26e-07 (of 2.04), tables ok, margin 3.17e-02 +parity 30 (norm 0, out_scale 1, x scale 0.01): ok ids equal, w max abs 3.96e-08, x' max abs 2.52e-07 (of 2.03), tables ok, margin 1.30e-01 +parity 31 (norm 0, out_scale 1, x scale 1): ok ids equal, w max abs 3.02e-08, x' max abs 1.96e-07 (of 2.05), tables ok, margin 3.20e-02 +parity 32 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 3.16e-08, x' max abs 1.32e-07 (of 2.05), tables ok, margin 1.48e-02 +parity 33 (norm 1, out_scale 2^64, x scale 0.01): ok ids equal, w max abs 5.09e-08, x' max abs 1.33e-07 (of 2.01), tables ok, margin 3.39e-02 +parity 34 (norm 1, out_scale 2^64, x scale 1): ok ids equal, w max abs 3.93e-08, x' max abs 2.49e-07 (of 2.08), tables ok, margin 3.67e-02 +parity 35 (norm 1, out_scale 2^64, x scale 40): ok ids equal, w max abs 6.79e-08, x' max abs 3.01e-07 (of 2.06), tables ok, margin 1.47e-01 +chip parity: 0 of 36 mismatches, 0 margin cases (recorded, oracle margin below 1e-04) +chip mutant 1: caught (bad mask 5) ids DIFFER, w max abs 0.00e+00, x' max abs 3.30e-01 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 2: caught (bad mask 1) ids DIFFER, w max abs 0.00e+00, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +chip mutant 3: caught (bad mask 8) ids equal, w max abs 4.71e-08, x' max abs 1.52e-07 (of 2.04), tables WRONG, margin 1.04e-01 +chip mutant 4: caught (bad mask 2) ids equal, w max abs 7.51e-01, x' max abs 1.52e-07 (of 2.04), tables ok, margin 1.04e-01 +fp8 upload gate+up 384 MB + down 24 MB: rc OK / OK, 178 ms +e2e router layer 1: ok ids equal, w max abs 1.69e-07, x' max abs 1.63e-07 (of 2.02), tables ok, margin 7.28e-02 +e2e grouped gate+up (8 experts, 1536 x 2048): device table/x' vs host table: bit-identical; chip 147.7 us vs 145.5 us, call 402.5 us vs 166.0 us +e2e group 3 vs fp8 oracle: worst rel 2.72e-08 +timing (medians of 50, evict 1, warps 8 depth 8): router chip 87.2 us, router call 91.0 us, grouped gate+up dev chip 146.9 us, router+gate+up sequence 247.2 us +gpu_router_test: 17 checks, 0 failed: PASS +warps 8 depth 8 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/summary.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/summary.txt new file mode 100644 index 000000000..caf68262c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/summary.txt @@ -0,0 +1,23 @@ +omega 710d438cac6c1159b4ca2b39af49812ce08f554b dirty=0 physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf dirty=0 start 2026-10-15T00:55:00Z +bf16_gemv rc=0 start=2026-10-15T00:55:00Z end=2026-10-15T00:55:26Z verdict: GPU_BF16_GEMV_CHIP: PASS +cmdlist rc=0 start=2026-10-15T00:55:26Z end=2026-10-15T00:55:33Z verdict: GPU_CMDLIST_CHIP: PASS +decode_attn rc=0 start=2026-10-15T00:55:33Z end=2026-10-15T00:55:40Z verdict: GPU_DECODE_ATTN_CHIP: PASS +decode_graph rc=0 start=2026-10-15T00:55:40Z end=2026-10-15T00:55:42Z verdict: GPU_DECODE_GRAPH_CHIP: PASS +decode_graph_red rc=0 start=2026-10-15T00:55:42Z end=2026-10-15T00:55:44Z verdict: GPU_DECODE_GRAPH_CHIP_RED: FAILED_AS_EXPECTED +decode_graph_cached rc=0 start=2026-10-15T00:55:44Z end=2026-10-15T00:55:46Z verdict: GPU_DECODE_GRAPH_CHIP_CACHED: PASS +fp8 rc=0 start=2026-10-15T00:55:46Z end=2026-10-15T00:55:58Z verdict: GPU_FP8_CHIP: PASS +fp8_v2 rc=0 start=2026-10-15T00:55:58Z end=2026-10-15T00:56:12Z verdict: GPU_FP8_V2_CHIP: PASS +fp8gemm rc=0 start=2026-10-15T00:56:12Z end=2026-10-15T00:56:26Z verdict: GPU_FP8GEMM_CHIP: PASS +l2d_barrier rc=0 start=2026-10-15T00:56:26Z end=2026-10-15T00:56:37Z verdict: GPU_L2D_BARRIER_CHIP: PASS +l2d_prefetch rc=0 start=2026-10-15T00:56:37Z end=2026-10-15T00:56:51Z verdict: GPU_L2D_PREFETCH_CHIP: PASS +matmul_api rc=0 start=2026-10-15T00:56:51Z end=2026-10-15T00:57:29Z verdict: GPU_MATMUL_API_CHIP: PASS +prefill_attn rc=1 start=2026-10-15T00:57:29Z end=2026-10-15T00:58:45Z verdict: GPU_PREFILL_ATTN_CHIP: FAIL +router rc=0 start=2026-10-15T00:58:45Z end=2026-10-15T00:58:57Z verdict: GPU_ROUTER_CHIP: PASS +tcgemm rc=0 start=2026-10-15T00:58:57Z end=2026-10-15T01:04:22Z verdict: TCGEMM_CHIP: PASS +attention rc=0 start=2026-10-15T01:04:22Z end=2026-10-15T01:04:38Z verdict: PASS: 2 checks, 0 failed +cut4b rc=0 start=2026-10-15T01:04:38Z end=2026-10-15T01:05:43Z verdict: matmul_timing rc=0 :: PASS: 4 checks, 0 failed +elementwise rc=0 start=2026-10-15T01:05:43Z end=2026-10-15T01:05:43Z verdict: PASS: 35 checks, 0 failed +reconv rc=126 start=2026-10-15T01:05:43Z end=2026-10-15T01:05:43Z verdict: +l1g rc=1 start=2026-10-15T01:05:43Z end=2026-10-15T01:12:53Z verdict: L1G_CHIP: FAIL +end 2026-10-15T01:12:53Z +reconv-sh rc=0 PASS: 235 checks, 0 failed diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm.out new file mode 100644 index 000000000..fbc50302d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm.out @@ -0,0 +1,85 @@ +gateup 128 r1: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 128 r1: chip mutant 1: caught (1572864 of 1572864 differ) +gateup 128 r1: chip mutant 2: caught (1572864 of 1572864 differ) +gateup 128 r1: chip mutant 3: caught (1560576 of 1572864 differ) +gateup 128 r1: chip mutant 4: caught (1572864 of 1572864 differ) +gateup 128 r1: TCGEMM gateup (medians of 9): chip 2738.8 us, call 4014.6 us; 2.35 TFLOPS; weights streamed 403 MB (147.0 GB/s), activations gathered 403 MB, output 6 MB; total 296.3 GB/s +gateup 128 r2: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 128 r2: TCGEMM gateup (medians of 9): chip 3068.9 us, call 4340.0 us; 2.10 TFLOPS; weights streamed 403 MB (131.2 GB/s), activations gathered 403 MB, output 6 MB; total 264.5 GB/s +gateup 128 r3: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 128 r3: TCGEMM gateup (medians of 9): chip 2765.3 us, call 4089.6 us; 2.33 TFLOPS; weights streamed 403 MB (145.6 GB/s), activations gathered 403 MB, output 6 MB; total 293.5 GB/s +gateup 128 r4: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 128 r4: TCGEMM gateup (medians of 9): chip 2693.3 us, call 3965.7 us; 2.39 TFLOPS; weights streamed 403 MB (149.5 GB/s), activations gathered 403 MB, output 6 MB; total 301.3 GB/s +gateup 128 r5: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 128 r5: TCGEMM gateup (medians of 9): chip 3698.1 us, call 4999.2 us; 1.74 TFLOPS; weights streamed 403 MB (108.9 GB/s), activations gathered 403 MB, output 6 MB; total 219.5 GB/s +down 128 r1: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 128 r1: chip mutant 1: caught (2097152 of 2097152 differ) +down 128 r1: chip mutant 2: caught (2097152 of 2097152 differ) +down 128 r1: chip mutant 3: caught (2080768 of 2097152 differ) +down 128 r1: chip mutant 4: caught (2097152 of 2097152 differ) +down 128 r1: TCGEMM down (medians of 9): chip 1635.4 us, call 3179.7 us; 1.97 TFLOPS; weights streamed 200 MB (122.1 GB/s), activations gathered 200 MB, output 8 MB; total 249.4 GB/s +down 128 r2: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 128 r2: TCGEMM down (medians of 9): chip 1430.1 us, call 2933.0 us; 2.25 TFLOPS; weights streamed 200 MB (139.7 GB/s), activations gathered 200 MB, output 8 MB; total 285.2 GB/s +down 128 r3: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 128 r3: TCGEMM down (medians of 9): chip 1427.7 us, call 2967.4 us; 2.26 TFLOPS; weights streamed 200 MB (139.9 GB/s), activations gathered 200 MB, output 8 MB; total 285.7 GB/s +down 128 r4: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 128 r4: TCGEMM down (medians of 9): chip 1627.9 us, call 3180.0 us; 1.98 TFLOPS; weights streamed 200 MB (122.7 GB/s), activations gathered 200 MB, output 8 MB; total 250.6 GB/s +down 128 r5: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 128 r5: TCGEMM down (medians of 9): chip 1437.5 us, call 2944.4 us; 2.24 TFLOPS; weights streamed 200 MB (139.0 GB/s), activations gathered 200 MB, output 8 MB; total 283.7 GB/s +gateup 3600 r1: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 3600 r1: chip mutant 1: caught (44236800 of 44236800 differ) +gateup 3600 r1: chip mutant 2: caught (44236800 of 44236800 differ) +gateup 3600 r1: chip mutant 3: caught (44236798 of 44236800 differ) +gateup 3600 r1: chip mutant 4: caught (44236795 of 44236800 differ) +gateup 3600 r1: TCGEMM gateup (medians of 9): chip 19030.9 us, call 57362.2 us; 9.52 TFLOPS; weights streamed 1604 MB (84.3 GB/s), activations gathered 1604 MB, output 177 MB; total 177.9 GB/s +gateup 3600 r2: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 3600 r2: TCGEMM gateup (medians of 9): chip 19130.6 us, call 57279.3 us; 9.47 TFLOPS; weights streamed 1604 MB (83.9 GB/s), activations gathered 1604 MB, output 177 MB; total 177.0 GB/s +gateup 3600 r3: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 3600 r3: TCGEMM gateup (medians of 9): chip 19641.5 us, call 56998.2 us; 9.23 TFLOPS; weights streamed 1604 MB (81.7 GB/s), activations gathered 1604 MB, output 177 MB; total 172.4 GB/s +gateup 3600 r4: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 3600 r4: TCGEMM gateup (medians of 9): chip 19098.9 us, call 56418.0 us; 9.49 TFLOPS; weights streamed 1604 MB (84.0 GB/s), activations gathered 1604 MB, output 177 MB; total 177.3 GB/s +gateup 3600 r5: chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +gateup 3600 r5: TCGEMM gateup (medians of 9): chip 19156.6 us, call 56142.1 us; 9.46 TFLOPS; weights streamed 1604 MB (83.7 GB/s), activations gathered 1604 MB, output 177 MB; total 176.7 GB/s +down 3600 r1: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 3600 r1: chip mutant 1: caught (58982400 of 58982400 differ) +down 3600 r1: chip mutant 2: caught (58982400 of 58982400 differ) +down 3600 r1: chip mutant 3: caught (58982400 of 58982400 differ) +down 3600 r1: chip mutant 4: caught (58982387 of 58982400 differ) +down 3600 r1: TCGEMM down (medians of 9): chip 13118.1 us, call 57213.4 us; 6.91 TFLOPS; weights streamed 805 MB (61.4 GB/s), activations gathered 805 MB, output 236 MB; total 140.8 GB/s +down 3600 r2: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 3600 r2: TCGEMM down (medians of 9): chip 12482.1 us, call 55534.8 us; 7.26 TFLOPS; weights streamed 805 MB (64.5 GB/s), activations gathered 805 MB, output 236 MB; total 147.9 GB/s +down 3600 r3: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 3600 r3: TCGEMM down (medians of 9): chip 12922.6 us, call 57256.6 us; 7.01 TFLOPS; weights streamed 805 MB (62.3 GB/s), activations gathered 805 MB, output 236 MB; total 142.9 GB/s +down 3600 r4: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 3600 r4: TCGEMM down (medians of 9): chip 12455.2 us, call 55452.2 us; 7.27 TFLOPS; weights streamed 805 MB (64.7 GB/s), activations gathered 805 MB, output 236 MB; total 148.3 GB/s +down 3600 r5: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +down 3600 r5: TCGEMM down (medians of 9): chip 12462.7 us, call 55552.5 us; 7.27 TFLOPS; weights streamed 805 MB (64.6 GB/s), activations gathered 805 MB, output 236 MB; total 148.2 GB/s +qkv 3600 r1: chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +qkv 3600 r1: chip mutant 1: caught (18432000 of 18432000 differ) +qkv 3600 r1: chip mutant 2: caught (18432000 of 18432000 differ) +qkv 3600 r1: chip mutant 3: caught (18432000 of 18432000 differ) +qkv 3600 r1: chip mutant 4: caught (18431997 of 18432000 differ) +qkv 3600 r1: TCGEMM qkv (medians of 9): chip 6706.0 us, call 26440.3 us; 11.26 TFLOPS; weights streamed 598 MB (89.1 GB/s), activations gathered 598 MB, output 74 MB; total 189.2 GB/s +qkv 3600 r2: chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +qkv 3600 r2: TCGEMM qkv (medians of 9): chip 6227.0 us, call 25514.5 us; 12.12 TFLOPS; weights streamed 598 MB (96.0 GB/s), activations gathered 598 MB, output 74 MB; total 203.8 GB/s +qkv 3600 r3: chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +qkv 3600 r3: TCGEMM qkv (medians of 9): chip 6148.5 us, call 25862.0 us; 12.28 TFLOPS; weights streamed 598 MB (97.2 GB/s), activations gathered 598 MB, output 74 MB; total 206.4 GB/s +qkv 3600 r4: chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +qkv 3600 r4: TCGEMM qkv (medians of 9): chip 6740.0 us, call 26409.6 us; 11.20 TFLOPS; weights streamed 598 MB (88.7 GB/s), activations gathered 598 MB, output 74 MB; total 188.3 GB/s +qkv 3600 r5: chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +qkv 3600 r5: TCGEMM qkv (medians of 9): chip 6643.3 us, call 26207.9 us; 11.36 TFLOPS; weights streamed 598 MB (90.0 GB/s), activations gathered 598 MB, output 74 MB; total 191.0 GB/s +o 3600 r1: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +o 3600 r1: chip mutant 1: caught (7372800 of 7372800 differ) +o 3600 r1: chip mutant 2: caught (7372800 of 7372800 differ) +o 3600 r1: chip mutant 3: caught (7372800 of 7372800 differ) +o 3600 r1: chip mutant 4: caught (7372800 of 7372800 differ) +o 3600 r1: TCGEMM o (medians of 9): chip 4108.5 us, call 22746.0 us; 14.70 TFLOPS; weights streamed 478 MB (116.4 GB/s), activations gathered 478 MB, output 29 MB; total 239.9 GB/s +o 3600 r2: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +o 3600 r2: TCGEMM o (medians of 9): chip 3884.0 us, call 22116.5 us; 15.55 TFLOPS; weights streamed 478 MB (123.1 GB/s), activations gathered 478 MB, output 29 MB; total 253.8 GB/s +o 3600 r3: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +o 3600 r3: TCGEMM o (medians of 9): chip 3790.1 us, call 22110.9 us; 15.94 TFLOPS; weights streamed 478 MB (126.2 GB/s), activations gathered 478 MB, output 29 MB; total 260.1 GB/s +o 3600 r4: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +o 3600 r4: TCGEMM o (medians of 9): chip 3784.3 us, call 22210.0 us; 15.96 TFLOPS; weights streamed 478 MB (126.3 GB/s), activations gathered 478 MB, output 29 MB; total 260.5 GB/s +o 3600 r5: chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +o 3600 r5: TCGEMM o (medians of 9): chip 4090.6 us, call 22542.8 us; 14.77 TFLOPS; weights streamed 478 MB (116.9 GB/s), activations gathered 478 MB, output 29 MB; total 241.0 GB/s +TCGEMM_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/SHA256SUMS new file mode 100644 index 000000000..6d9a448ab --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/SHA256SUMS @@ -0,0 +1,63 @@ +aece1c2f66d1f1d31a5158ee2f96e35a6dcd026d31cf4d6df0a1863ee1ce59c8 receipt-down-128-r1.json +99997f978e64bbb102ca843b84f783266b7263505b33d52e5d9fc064aa2c3d7e receipt-down-128-r2.json +7e63c0cda11ece30c33c9c28d311ee1b6fd220ea66b520d1d552d04b1c096e2a receipt-down-128-r3.json +2676967a2fb76ebcef78e14bf1e55ce35d14403dd219616444d4aa6e27440891 receipt-down-128-r4.json +b4f11168a2ed5b31071707d202e63a758f9f2f91ebbe2c16c47882e31e9bdfd4 receipt-down-128-r5.json +0d521c2a838b17d6a292f39dd85c2db5e0af7cc2db3fe8a60cb758f08c739848 receipt-down-3600-r1.json +3d4ba9b14b7c3639e28ddf1df3439ac56f2f9e024c13129768e06413436a1932 receipt-down-3600-r2.json +289f5f077c115f228973cd0442c06d4025857ec5e7be2cf89e34a3ce99ab3214 receipt-down-3600-r3.json +606302bf1722d82393052bc852bf13f907c01c7d395ba01acd1a93302d0efabb receipt-down-3600-r4.json +2561d40863c3feee1f1a1685ade070257128473d056a95d9656ffa6506e96ff8 receipt-down-3600-r5.json +405c03f733a5e0036632ff2931ada071f35bc1b1b9c610fbf501b11549c08fc6 receipt-gateup-128-r1.json +9cc4070493cb3e37f308c8518d2d605ea7bb5d1882a544e3e69d8d79fa1a9b12 receipt-gateup-128-r2.json +9a53ed3d05117b758365ca7155bfda903d18776c418ad5e540c868b27807a0bc receipt-gateup-128-r3.json +9bcee5c54c661c6935797c9aeb039810bca8d2d0c2835f8c309bf3358dffb658 receipt-gateup-128-r4.json +6f19e407fa55c92252e4d2705b61e903236c18f886bf9e2e868e19e4fd226737 receipt-gateup-128-r5.json +294566f1e14d287dc4c19bf83822c345ef6744b6cbcde248ef614c3346ba1e16 receipt-gateup-3600-r1.json +aab71fb998186fe37ad68c54af6d7cbb5899a6ec3f6680b68cc1d07666b20b22 receipt-gateup-3600-r2.json +9987c80beae0ff2157dead8c4fa0f7cf673fc012e7460f7eb95f9b9ab3c87ff9 receipt-gateup-3600-r3.json +39e5a745e8e9ad646dc63917acf08e4440a75916d60b731dd004f9a6e52af036 receipt-gateup-3600-r4.json +e2a9a3f476dc9f4c95d5894036d0da133ad46cffa4c1d9af88a90395a3c4f509 receipt-gateup-3600-r5.json +19505b3ed6b0c18caf52564fa7afd94a985fa9343f287f521ba1e3ae20b40f0f receipt-o-3600-r1.json +3c8f0eb7c253b9a8b44f71343933d9a2fea8c92fc45634e43d2291d0c705c4fa receipt-o-3600-r2.json +5df8f31506d384357d3ad369f0d1dd5eb5c0906aa077f6dc5adec42e8ce92fe0 receipt-o-3600-r3.json +6079c5825a1a2e4981e8badaf5e7b7be0f82b7a2d0ff99abdba0a556f90f9d82 receipt-o-3600-r4.json +3cc3f493990c6586ce6ce41d0a411ac8bcbc7b95ef2e014d89f879f757353855 receipt-o-3600-r5.json +7d7ec1d1281946202a8797648e750caf5e6028999228d2adcbc81176869f3ee3 receipt-qkv-3600-r1.json +d912d50c511577f858a40c770aedbc4d560cf2170eb9ba2424c1a9652346fca9 receipt-qkv-3600-r2.json +b47ff4a2fe6f69388c97dff51a61bcf20499da5b7f6b1e69e31573c38aa68ca9 receipt-qkv-3600-r3.json +eb992b3dc266fd7bc31e31ca994abfa2e91a675644624b67160c1eae303f45bc receipt-qkv-3600-r4.json +9f49be86af186b6a875b84e317232f716fedb273a481c10a6171b12004e683ff receipt-qkv-3600-r5.json +c4e8babc8d1e4f57baf19447afc22e102291cdeadaf6b849becb3b4308f54687 build.log +12412c849d39327f60dc336ec9646ecac1ef09133413da0c3e782402b3f004d5 down-128-r1.log +168a0959b1c44ee92eeaa568df496bf10b6b45e312813cf1b8d461feb1a0733b down-128-r2.log +247944b15a676265ae377590de9df9446d66727ed345dd8d1cac7d04b7aeefa1 down-128-r3.log +255589335ade57ec8d35a20c18a91909cf5ed44bf898462a00aa738919fc0eee down-128-r4.log +bb5306b6613d089244305617be22a2fa4129f590aca3871b7556b70346c0f825 down-128-r5.log +65c9c8e044141ae429890e317c4aac05abe5597f8f8616852fa600beff66ea83 down-3600-r1.log +4a4b782a8e390f457b2db6cc086268b6087cac6d7fd72ec6ae9227e662439cb3 down-3600-r2.log +0fe213f0605531b25c240890ec27472fef577f07fdc7af9dcce1f78d996008d7 down-3600-r3.log +785b08c8595ee086a71acdd7b9b0f4abaae6f7030efb2a05ad763ef4cf1ab175 down-3600-r4.log +8c263c3f7c15cdedee33d8e97edbc0d1de3366cc72bde38897afd012d8ce38cd down-3600-r5.log +266aede67d5a34195a6df71f9d5eeed33ac13f348ec85aaef7b99de31541c8b2 gateup-128-r1.log +dd207ea782d2289ed0076d568fa230ede49234ef26b7ef9689071e72c0d69813 gateup-128-r2.log +9a8ca0366fea0a2622937c2dd3ff76c202b7e4dba965f0f376ee18aa76af31c9 gateup-128-r3.log +107d4a8bf743b3559b078878c414aa12e0c442c55cc6d6e92f6060766acbe820 gateup-128-r4.log +165396695357b405ff44eb5b68a0fc1d6a1f63a11717aaf0662387ccbbfd744f gateup-128-r5.log +1ffc8c70723cd1e773a81b61371ae20d43f7fabf978c04a0143db758873ad1d4 gateup-3600-r1.log +173f9a38974f6f706b38965ddf5abfd1fe9ae3ee4bf098b33e3a9b0918a82e9f gateup-3600-r2.log +57737c7a35b0399d033cafd28b144fef6dfd9173b9a0ec6c25d266aabd31431f gateup-3600-r3.log +c2787e68790a6e6c30209c304c3a0ff569234b7cedd3ba228cefbf39711a0ad7 gateup-3600-r4.log +5d507127331de1a8e0ed57ed7549506b3413373db7b540c4e46f767b0060d461 gateup-3600-r5.log +8a5a5749af0c22a6b68316ac26b4ac7faaee950d1c19ed2d17cf97ef17160143 o-3600-r1.log +b63dfa44769a1c97d761bdef6064851cfa339e6f3b2f093dc443925b83688157 o-3600-r2.log +e5b7080a7580100f97ede2bac1b9dab11308b3e9acf6a599734e7d5683c6dcbd o-3600-r3.log +413f873177a0822bd4a6ab06f01638c91fe23f901b3f8b98445980e635e2bd9a o-3600-r4.log +15abe5469913046b9c4e4dbf029860ec758cea76dc2f71ec00815951cd2ec808 o-3600-r5.log +07e6c2f20b4492524584065cf733b5c99ad68aac044f0aaac5af96076ed0246d qkv-3600-r1.log +b7a6e0815368d2b824f193c4ec0d64dac07352ab282bc954e8b1a4642b5ddc9e qkv-3600-r2.log +a4486911d844e05cf1a27c55de52231cc90ec5e361fdf5e8f400d03a6f12b8db qkv-3600-r3.log +1f726a30d362eec4ff46b8f01705bb0f87ed0113551c04441e0ff311a1fdedba qkv-3600-r4.log +156c8e632f11513c4a5dca9c6e9770b95e50551168416a4a3d9c380fc158fb4a qkv-3600-r5.log +7bb228d33be884dddd7a0561ce4fed4f9612541bc9b403d83f30b34e19bab3a1 device.txt +9078bfe9023e2c3b4986c08d66ccf65fbcf653791b13fa22298c2e42bb9dca14 exits.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/build.log new file mode 100644 index 000000000..48bed336f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/build.log @@ -0,0 +1,79 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/sha256.c -o /tmp/t3-omega/sha256.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_canonical.c -o /tmp/t3-omega/omega_canonical.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_validate.c -o /tmp/t3-omega/omega_validate.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_core.c -o /tmp/t3-omega/omega_core.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_codec.c -o /tmp/t3-omega/omega_codec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_encoder.c -o /tmp/t3-omega/aarch64_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_decoder.c -o /tmp/t3-omega/aarch64_decoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize.c -o /tmp/t3-omega/omega_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_exec.c -o /tmp/t3-omega/omega_exec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_self_host.c -o /tmp/t3-omega/omega_self_host.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_verify.c -o /tmp/t3-omega/omega_verify.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program.c -o /tmp/t3-omega/omega_program.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_synthesis.c -o /tmp/t3-omega/omega_synthesis.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_library.c -o /tmp/t3-omega/omega_library.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_discovery.c -o /tmp/t3-omega/omega_discovery.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_machine.c -o /tmp/t3-omega/omega_machine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize_synth.c -o /tmp/t3-omega/omega_realize_synth.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_matvec.c -o /tmp/t3-omega/omega_matvec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator.c -o /tmp/t3-omega/omega_accelerator.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator_world.c -o /tmp/t3-omega/omega_accelerator_world.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vector.c -o /tmp/t3-omega/omega_vector.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_encoder.c -o /tmp/t3-omega/omega_blackwell_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_qmd.c -o /tmp/t3-omega/omega_blackwell_qmd.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_realize.c -o /tmp/t3-omega/omega_blackwell_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_submit.c -o /tmp/t3-omega/omega_blackwell_submit.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o /tmp/t3-omega/omega_blackwell_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_engine.c -o /tmp/t3-omega/omega_gpu_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_matmul.c -o /tmp/t3-omega/omega_blackwell_matmul.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen.c -o /tmp/t3-omega/omega_blackwell_codegen.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_session.c -o /tmp/t3-omega/omega_gpu_session.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform.c -o /tmp/t3-omega/omega_gpu_platform.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform_linux.c -o /tmp/t3-omega/omega_gpu_platform_linux.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fmt.c -o /tmp/t3-omega/omega_gpu_fmt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_matmul_api.c -o /tmp/t3-omega/omega_gpu_matmul_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_elementwise_api.c -o /tmp/t3-omega/omega_gpu_elementwise_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_attention_api.c -o /tmp/t3-omega/omega_gpu_attention_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_serving.c -o /tmp/t3-omega/omega_gpu_serving.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_wait.c -o /tmp/t3-omega/omega_gpu_wait.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_evidence.c -o /tmp/t3-omega/omega_evidence.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/m16/m16_native.c -o /tmp/t3-omega/m16_native.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/nvrm/nvrm.c -o /tmp/t3-omega/nvrm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_moe_api.c -o /tmp/t3-omega/omega_gpu_moe_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe.c -o /tmp/t3-omega/omega_blackwell_codegen_moe.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_pack.c -o /tmp/t3-omega/omega_gpu_fp8_pack.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_api.c -o /tmp/t3-omega/omega_gpu_fp8_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe2.c -o /tmp/t3-omega/omega_blackwell_codegen_moe2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_attn.c -o /tmp/t3-omega/omega_blackwell_codegen_attn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_attn_api.c -o /tmp/t3-omega/omega_gpu_decode_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_hostmath.c -o /tmp/t3-omega/omega_gpu_hostmath.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_router.c -o /tmp/t3-omega/omega_blackwell_codegen_router.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_router_api.c -o /tmp/t3-omega/omega_gpu_router_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_cmdlist.c -o /tmp/t3-omega/omega_gpu_cmdlist.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_dec.c -o /tmp/t3-omega/omega_blackwell_codegen_dec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_mem_cached.c -o /tmp/t3-omega/omega_gpu_mem_cached.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_graph.c -o /tmp/t3-omega/omega_gpu_decode_graph.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_bf16.c -o /tmp/t3-omega/omega_blackwell_codegen_bf16.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_bf16_gemv_api.c -o /tmp/t3-omega/omega_gpu_bf16_gemv_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_gemm.c -o /tmp/t3-omega/omega_blackwell_codegen_gemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8gemm_api.c -o /tmp/t3-omega/omega_gpu_fp8gemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc.c -o /tmp/t3-omega/omega_blackwell_codegen_tc.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_tcgemm_api.c -o /tmp/t3-omega/omega_gpu_tcgemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pattn.c -o /tmp/t3-omega/omega_blackwell_codegen_pattn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill_attn_api.c -o /tmp/t3-omega/omega_gpu_prefill_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pf.c -o /tmp/t3-omega/omega_blackwell_codegen_pf.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill.c -o /tmp/t3-omega/omega_gpu_prefill.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc2.c -o /tmp/t3-omega/omega_blackwell_codegen_tc2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfgemm.c -o /tmp/t3-omega/omega_gpu_pfgemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qmma.c -o /tmp/t3-omega/omega_blackwell_codegen_qmma.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qg.c -o /tmp/t3-omega/omega_blackwell_codegen_qg.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pfhost.c -o /tmp/t3-omega/omega_blackwell_codegen_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfhost.c -o /tmp/t3-omega/omega_gpu_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program_ir.c -o /tmp/t3-omega/omega_program_ir.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vc_bridge.c -o /tmp/t3-omega/omega_vc_bridge.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_resolve.c -o /tmp/t3-omega/omega_resolve.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_receipt.c -o /tmp/t3-omega/omega_receipt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blake3.c -o /tmp/t3-omega/omega_blake3.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vcstore.c -o /tmp/t3-omega/omega_vcstore.o +ar rcs /tmp/t3-omega/libomega_gpu.a /tmp/t3-omega/sha256.o /tmp/t3-omega/omega_canonical.o /tmp/t3-omega/omega_validate.o /tmp/t3-omega/omega_core.o /tmp/t3-omega/omega_codec.o /tmp/t3-omega/aarch64_encoder.o /tmp/t3-omega/aarch64_decoder.o /tmp/t3-omega/omega_realize.o /tmp/t3-omega/omega_exec.o /tmp/t3-omega/omega_self_host.o /tmp/t3-omega/omega_verify.o /tmp/t3-omega/omega_program.o /tmp/t3-omega/omega_synthesis.o /tmp/t3-omega/omega_library.o /tmp/t3-omega/omega_discovery.o /tmp/t3-omega/omega_machine.o /tmp/t3-omega/omega_realize_synth.o /tmp/t3-omega/omega_matvec.o /tmp/t3-omega/omega_accelerator.o /tmp/t3-omega/omega_accelerator_world.o /tmp/t3-omega/omega_vector.o /tmp/t3-omega/omega_blackwell_encoder.o /tmp/t3-omega/omega_blackwell_qmd.o /tmp/t3-omega/omega_blackwell_realize.o /tmp/t3-omega/omega_blackwell_submit.o /tmp/t3-omega/omega_blackwell_engine.o /tmp/t3-omega/omega_gpu_engine.o /tmp/t3-omega/omega_blackwell_matmul.o /tmp/t3-omega/omega_blackwell_codegen.o /tmp/t3-omega/omega_gpu_session.o /tmp/t3-omega/omega_gpu_platform.o /tmp/t3-omega/omega_gpu_platform_linux.o /tmp/t3-omega/omega_gpu_fmt.o /tmp/t3-omega/omega_gpu_matmul_api.o /tmp/t3-omega/omega_gpu_elementwise_api.o /tmp/t3-omega/omega_gpu_attention_api.o /tmp/t3-omega/omega_gpu_serving.o /tmp/t3-omega/omega_gpu_wait.o /tmp/t3-omega/omega_evidence.o /tmp/t3-omega/m16_native.o /tmp/t3-omega/nvrm.o /tmp/t3-omega/omega_gpu_moe_api.o /tmp/t3-omega/omega_blackwell_codegen_moe.o /tmp/t3-omega/omega_gpu_fp8_pack.o /tmp/t3-omega/omega_gpu_fp8_api.o /tmp/t3-omega/omega_blackwell_codegen_moe2.o /tmp/t3-omega/omega_blackwell_codegen_attn.o /tmp/t3-omega/omega_gpu_decode_attn_api.o /tmp/t3-omega/omega_gpu_hostmath.o /tmp/t3-omega/omega_blackwell_codegen_router.o /tmp/t3-omega/omega_gpu_router_api.o /tmp/t3-omega/omega_gpu_cmdlist.o /tmp/t3-omega/omega_blackwell_codegen_dec.o /tmp/t3-omega/omega_gpu_mem_cached.o /tmp/t3-omega/omega_gpu_decode_graph.o /tmp/t3-omega/omega_blackwell_codegen_bf16.o /tmp/t3-omega/omega_gpu_bf16_gemv_api.o /tmp/t3-omega/omega_blackwell_codegen_gemm.o /tmp/t3-omega/omega_gpu_fp8gemm_api.o /tmp/t3-omega/omega_blackwell_codegen_tc.o /tmp/t3-omega/omega_gpu_tcgemm_api.o /tmp/t3-omega/omega_blackwell_codegen_pattn.o /tmp/t3-omega/omega_gpu_prefill_attn_api.o /tmp/t3-omega/omega_blackwell_codegen_pf.o /tmp/t3-omega/omega_gpu_prefill.o /tmp/t3-omega/omega_blackwell_codegen_tc2.o /tmp/t3-omega/omega_gpu_pfgemm.o /tmp/t3-omega/omega_blackwell_codegen_qmma.o /tmp/t3-omega/omega_blackwell_codegen_qg.o /tmp/t3-omega/omega_blackwell_codegen_pfhost.o /tmp/t3-omega/omega_gpu_pfhost.o /tmp/t3-omega/omega_program_ir.o /tmp/t3-omega/omega_vc_bridge.o /tmp/t3-omega/omega_resolve.o /tmp/t3-omega/omega_receipt.o /tmp/t3-omega/omega_blake3.o /tmp/t3-omega/omega_vcstore.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o /tmp/t3-omega/gpu_tcgemm_test tests/gpu_tcgemm_test.c /tmp/t3-omega/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/device.txt new file mode 100644 index 000000000..ace1d1911 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T00:58:57Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 16 71 2 38 105 +end 2026-10-15T01:04:22Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r1.log new file mode 100644 index 000000000..1e5c91bce --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r1.log @@ -0,0 +1,10 @@ +chip down: 128 tokens, M 1024 rows, 127 segments, 127 tiles, grid 16 x 127, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +chip mutant 1: caught (2097152 of 2097152 differ) +chip mutant 2: caught (2097152 of 2097152 differ) +chip mutant 3: caught (2080768 of 2097152 differ) +chip mutant 4: caught (2097152 of 2097152 differ) +TCGEMM down (medians of 9): chip 1635.4 us, call 3179.7 us; 1.97 TFLOPS; weights streamed 200 MB (122.1 GB/s), activations gathered 200 MB, output 8 MB; total 249.4 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r2.log new file mode 100644 index 000000000..c70779b5c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r2.log @@ -0,0 +1,6 @@ +chip down: 128 tokens, M 1024 rows, 127 segments, 127 tiles, grid 16 x 127, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 1430.1 us, call 2933.0 us; 2.25 TFLOPS; weights streamed 200 MB (139.7 GB/s), activations gathered 200 MB, output 8 MB; total 285.2 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r3.log new file mode 100644 index 000000000..e04616f44 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r3.log @@ -0,0 +1,6 @@ +chip down: 128 tokens, M 1024 rows, 127 segments, 127 tiles, grid 16 x 127, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 1427.7 us, call 2967.4 us; 2.26 TFLOPS; weights streamed 200 MB (139.9 GB/s), activations gathered 200 MB, output 8 MB; total 285.7 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r4.log new file mode 100644 index 000000000..916659e42 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r4.log @@ -0,0 +1,6 @@ +chip down: 128 tokens, M 1024 rows, 127 segments, 127 tiles, grid 16 x 127, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 1627.9 us, call 3180.0 us; 1.98 TFLOPS; weights streamed 200 MB (122.7 GB/s), activations gathered 200 MB, output 8 MB; total 250.6 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r5.log new file mode 100644 index 000000000..dab7bcdab --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-128-r5.log @@ -0,0 +1,6 @@ +chip down: 128 tokens, M 1024 rows, 127 segments, 127 tiles, grid 16 x 127, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 1437.5 us, call 2944.4 us; 2.24 TFLOPS; weights streamed 200 MB (139.0 GB/s), activations gathered 200 MB, output 8 MB; total 283.7 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r1.log new file mode 100644 index 000000000..5dc01a440 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r1.log @@ -0,0 +1,10 @@ +chip down: 3600 tokens, M 28800 rows, 128 segments, 512 tiles, grid 16 x 512, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +chip mutant 1: caught (58982400 of 58982400 differ) +chip mutant 2: caught (58982400 of 58982400 differ) +chip mutant 3: caught (58982400 of 58982400 differ) +chip mutant 4: caught (58982387 of 58982400 differ) +TCGEMM down (medians of 9): chip 13118.1 us, call 57213.4 us; 6.91 TFLOPS; weights streamed 805 MB (61.4 GB/s), activations gathered 805 MB, output 236 MB; total 140.8 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r2.log new file mode 100644 index 000000000..a4bd5dedf --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r2.log @@ -0,0 +1,6 @@ +chip down: 3600 tokens, M 28800 rows, 128 segments, 512 tiles, grid 16 x 512, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 12482.1 us, call 55534.8 us; 7.26 TFLOPS; weights streamed 805 MB (64.5 GB/s), activations gathered 805 MB, output 236 MB; total 147.9 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r3.log new file mode 100644 index 000000000..4db4344b6 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r3.log @@ -0,0 +1,6 @@ +chip down: 3600 tokens, M 28800 rows, 128 segments, 512 tiles, grid 16 x 512, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 12922.6 us, call 57256.6 us; 7.01 TFLOPS; weights streamed 805 MB (62.3 GB/s), activations gathered 805 MB, output 236 MB; total 142.9 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r4.log new file mode 100644 index 000000000..d8bb46bdb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r4.log @@ -0,0 +1,6 @@ +chip down: 3600 tokens, M 28800 rows, 128 segments, 512 tiles, grid 16 x 512, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 12455.2 us, call 55452.2 us; 7.27 TFLOPS; weights streamed 805 MB (64.7 GB/s), activations gathered 805 MB, output 236 MB; total 148.3 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r5.log new file mode 100644 index 000000000..684cac70c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/down-3600-r5.log @@ -0,0 +1,6 @@ +chip down: 3600 tokens, M 28800 rows, 128 segments, 512 tiles, grid 16 x 512, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM down (medians of 9): chip 12462.7 us, call 55552.5 us; 7.27 TFLOPS; weights streamed 805 MB (64.6 GB/s), activations gathered 805 MB, output 236 MB; total 148.2 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/exits.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/exits.txt new file mode 100644 index 000000000..7d70c9541 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/exits.txt @@ -0,0 +1,30 @@ +gateup 128 r1 exit 0 +gateup 128 r2 exit 0 +gateup 128 r3 exit 0 +gateup 128 r4 exit 0 +gateup 128 r5 exit 0 +down 128 r1 exit 0 +down 128 r2 exit 0 +down 128 r3 exit 0 +down 128 r4 exit 0 +down 128 r5 exit 0 +gateup 3600 r1 exit 0 +gateup 3600 r2 exit 0 +gateup 3600 r3 exit 0 +gateup 3600 r4 exit 0 +gateup 3600 r5 exit 0 +down 3600 r1 exit 0 +down 3600 r2 exit 0 +down 3600 r3 exit 0 +down 3600 r4 exit 0 +down 3600 r5 exit 0 +qkv 3600 r1 exit 0 +qkv 3600 r2 exit 0 +qkv 3600 r3 exit 0 +qkv 3600 r4 exit 0 +qkv 3600 r5 exit 0 +o 3600 r1 exit 0 +o 3600 r2 exit 0 +o 3600 r3 exit 0 +o 3600 r4 exit 0 +o 3600 r5 exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r1.log new file mode 100644 index 000000000..edfc130a3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r1.log @@ -0,0 +1,10 @@ +chip gateup: 128 tokens, M 1024 rows, 128 segments, 128 tiles, grid 12 x 128, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +chip mutant 1: caught (1572864 of 1572864 differ) +chip mutant 2: caught (1572864 of 1572864 differ) +chip mutant 3: caught (1560576 of 1572864 differ) +chip mutant 4: caught (1572864 of 1572864 differ) +TCGEMM gateup (medians of 9): chip 2738.8 us, call 4014.6 us; 2.35 TFLOPS; weights streamed 403 MB (147.0 GB/s), activations gathered 403 MB, output 6 MB; total 296.3 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r2.log new file mode 100644 index 000000000..b8ec9bdf7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r2.log @@ -0,0 +1,6 @@ +chip gateup: 128 tokens, M 1024 rows, 128 segments, 128 tiles, grid 12 x 128, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 3068.9 us, call 4340.0 us; 2.10 TFLOPS; weights streamed 403 MB (131.2 GB/s), activations gathered 403 MB, output 6 MB; total 264.5 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r3.log new file mode 100644 index 000000000..38b476563 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r3.log @@ -0,0 +1,6 @@ +chip gateup: 128 tokens, M 1024 rows, 128 segments, 128 tiles, grid 12 x 128, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 2765.3 us, call 4089.6 us; 2.33 TFLOPS; weights streamed 403 MB (145.6 GB/s), activations gathered 403 MB, output 6 MB; total 293.5 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r4.log new file mode 100644 index 000000000..22f2735d7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r4.log @@ -0,0 +1,6 @@ +chip gateup: 128 tokens, M 1024 rows, 128 segments, 128 tiles, grid 12 x 128, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 2693.3 us, call 3965.7 us; 2.39 TFLOPS; weights streamed 403 MB (149.5 GB/s), activations gathered 403 MB, output 6 MB; total 301.3 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r5.log new file mode 100644 index 000000000..18d81de8e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-128-r5.log @@ -0,0 +1,6 @@ +chip gateup: 128 tokens, M 1024 rows, 128 segments, 128 tiles, grid 12 x 128, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 3698.1 us, call 4999.2 us; 1.74 TFLOPS; weights streamed 403 MB (108.9 GB/s), activations gathered 403 MB, output 6 MB; total 219.5 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r1.log new file mode 100644 index 000000000..130a0cde7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r1.log @@ -0,0 +1,10 @@ +chip gateup: 3600 tokens, M 28800 rows, 128 segments, 510 tiles, grid 12 x 510, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +chip mutant 1: caught (44236800 of 44236800 differ) +chip mutant 2: caught (44236800 of 44236800 differ) +chip mutant 3: caught (44236798 of 44236800 differ) +chip mutant 4: caught (44236795 of 44236800 differ) +TCGEMM gateup (medians of 9): chip 19030.9 us, call 57362.2 us; 9.52 TFLOPS; weights streamed 1604 MB (84.3 GB/s), activations gathered 1604 MB, output 177 MB; total 177.9 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r2.log new file mode 100644 index 000000000..d0d67f2c7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r2.log @@ -0,0 +1,6 @@ +chip gateup: 3600 tokens, M 28800 rows, 128 segments, 510 tiles, grid 12 x 510, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 19130.6 us, call 57279.3 us; 9.47 TFLOPS; weights streamed 1604 MB (83.9 GB/s), activations gathered 1604 MB, output 177 MB; total 177.0 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r3.log new file mode 100644 index 000000000..3b8dd5380 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r3.log @@ -0,0 +1,6 @@ +chip gateup: 3600 tokens, M 28800 rows, 128 segments, 510 tiles, grid 12 x 510, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 19641.5 us, call 56998.2 us; 9.23 TFLOPS; weights streamed 1604 MB (81.7 GB/s), activations gathered 1604 MB, output 177 MB; total 172.4 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r4.log new file mode 100644 index 000000000..0729251ba --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r4.log @@ -0,0 +1,6 @@ +chip gateup: 3600 tokens, M 28800 rows, 128 segments, 510 tiles, grid 12 x 510, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 19098.9 us, call 56418.0 us; 9.49 TFLOPS; weights streamed 1604 MB (84.0 GB/s), activations gathered 1604 MB, output 177 MB; total 177.3 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r5.log new file mode 100644 index 000000000..f6e1b8cdb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/gateup-3600-r5.log @@ -0,0 +1,6 @@ +chip gateup: 3600 tokens, M 28800 rows, 128 segments, 510 tiles, grid 12 x 510, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 393216 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM gateup (medians of 9): chip 19156.6 us, call 56142.1 us; 9.46 TFLOPS; weights streamed 1604 MB (83.7 GB/s), activations gathered 1604 MB, output 177 MB; total 176.7 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r1.log new file mode 100644 index 000000000..60f304278 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r1.log @@ -0,0 +1,10 @@ +chip o: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 16 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +chip mutant 1: caught (7372800 of 7372800 differ) +chip mutant 2: caught (7372800 of 7372800 differ) +chip mutant 3: caught (7372800 of 7372800 differ) +chip mutant 4: caught (7372800 of 7372800 differ) +TCGEMM o (medians of 9): chip 4108.5 us, call 22746.0 us; 14.70 TFLOPS; weights streamed 478 MB (116.4 GB/s), activations gathered 478 MB, output 29 MB; total 239.9 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r2.log new file mode 100644 index 000000000..dd4104b21 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r2.log @@ -0,0 +1,6 @@ +chip o: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 16 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM o (medians of 9): chip 3884.0 us, call 22116.5 us; 15.55 TFLOPS; weights streamed 478 MB (123.1 GB/s), activations gathered 478 MB, output 29 MB; total 253.8 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r3.log new file mode 100644 index 000000000..7348a586f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r3.log @@ -0,0 +1,6 @@ +chip o: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 16 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM o (medians of 9): chip 3790.1 us, call 22110.9 us; 15.94 TFLOPS; weights streamed 478 MB (126.2 GB/s), activations gathered 478 MB, output 29 MB; total 260.1 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r4.log new file mode 100644 index 000000000..038f5c75e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r4.log @@ -0,0 +1,6 @@ +chip o: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 16 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM o (medians of 9): chip 3784.3 us, call 22210.0 us; 15.96 TFLOPS; weights streamed 478 MB (126.3 GB/s), activations gathered 478 MB, output 29 MB; total 260.5 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r5.log new file mode 100644 index 000000000..c3cebb014 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/o-3600-r5.log @@ -0,0 +1,6 @@ +chip o: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 16 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 524288 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM o (medians of 9): chip 4090.6 us, call 22542.8 us; 14.77 TFLOPS; weights streamed 478 MB (116.9 GB/s), activations gathered 478 MB, output 29 MB; total 241.0 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r1.log new file mode 100644 index 000000000..8f007277f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r1.log @@ -0,0 +1,10 @@ +chip qkv: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 40 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +chip mutant 1: caught (18432000 of 18432000 differ) +chip mutant 2: caught (18432000 of 18432000 differ) +chip mutant 3: caught (18432000 of 18432000 differ) +chip mutant 4: caught (18431997 of 18432000 differ) +TCGEMM qkv (medians of 9): chip 6706.0 us, call 26440.3 us; 11.26 TFLOPS; weights streamed 598 MB (89.1 GB/s), activations gathered 598 MB, output 74 MB; total 189.2 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r2.log new file mode 100644 index 000000000..50cbffd2c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r2.log @@ -0,0 +1,6 @@ +chip qkv: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 40 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM qkv (medians of 9): chip 6227.0 us, call 25514.5 us; 12.12 TFLOPS; weights streamed 598 MB (96.0 GB/s), activations gathered 598 MB, output 74 MB; total 203.8 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r3.log new file mode 100644 index 000000000..487ef7b7a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r3.log @@ -0,0 +1,6 @@ +chip qkv: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 40 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM qkv (medians of 9): chip 6148.5 us, call 25862.0 us; 12.28 TFLOPS; weights streamed 598 MB (97.2 GB/s), activations gathered 598 MB, output 74 MB; total 206.4 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r4.log new file mode 100644 index 000000000..548210389 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r4.log @@ -0,0 +1,6 @@ +chip qkv: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 40 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM qkv (medians of 9): chip 6740.0 us, call 26409.6 us; 11.20 TFLOPS; weights streamed 598 MB (88.7 GB/s), activations gathered 598 MB, output 74 MB; total 188.3 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r5.log new file mode 100644 index 000000000..2b95e6cee --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/qkv-3600-r5.log @@ -0,0 +1,6 @@ +chip qkv: 3600 tokens, M 3600 rows, 1 segments, 57 tiles, grid 40 x 57, rt 4 ct 2 warps 8, declared 128 registers +chip bit-identity: 0 of 1310720 sampled outputs (256 rows) differ from the emulation (bit-identical) +chip second call: identical +TCGEMM qkv (medians of 9): chip 6643.3 us, call 26207.9 us; 11.36 TFLOPS; weights streamed 598 MB (90.0 GB/s), activations gathered 598 MB, output 74 MB; total 191.0 GB/s +chip: PASS +GPU_TCGEMM: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r1.json new file mode 100644 index 000000000..2216e718e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r1.json @@ -0,0 +1 @@ +{"shape":"down","tokens":128,"rows":1024,"tiles":127,"reps":9,"chip_median_ns":1635394,"call_median_ns":3179748,"tflops":1.970,"streamed_bytes":199753728,"act_bytes":199753728,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r2.json new file mode 100644 index 000000000..a6e08a5be --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r2.json @@ -0,0 +1 @@ +{"shape":"down","tokens":128,"rows":1024,"tiles":127,"reps":9,"chip_median_ns":1430144,"call_median_ns":2933010,"tflops":2.252,"streamed_bytes":199753728,"act_bytes":199753728,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r3.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r3.json new file mode 100644 index 000000000..5647aa61a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r3.json @@ -0,0 +1 @@ +{"shape":"down","tokens":128,"rows":1024,"tiles":127,"reps":9,"chip_median_ns":1427664,"call_median_ns":2967410,"tflops":2.256,"streamed_bytes":199753728,"act_bytes":199753728,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r4.json new file mode 100644 index 000000000..fc15cb36b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r4.json @@ -0,0 +1 @@ +{"shape":"down","tokens":128,"rows":1024,"tiles":127,"reps":9,"chip_median_ns":1627939,"call_median_ns":3179956,"tflops":1.979,"streamed_bytes":199753728,"act_bytes":199753728,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r5.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r5.json new file mode 100644 index 000000000..f46460255 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-128-r5.json @@ -0,0 +1 @@ +{"shape":"down","tokens":128,"rows":1024,"tiles":127,"reps":9,"chip_median_ns":1437521,"call_median_ns":2944401,"tflops":2.241,"streamed_bytes":199753728,"act_bytes":199753728,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r1.json new file mode 100644 index 000000000..67e227e48 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r1.json @@ -0,0 +1 @@ +{"shape":"down","tokens":3600,"rows":28800,"tiles":512,"reps":9,"chip_median_ns":13118113,"call_median_ns":57213385,"tflops":6.906,"streamed_bytes":805306368,"act_bytes":805306368,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r2.json new file mode 100644 index 000000000..08ad9737d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r2.json @@ -0,0 +1 @@ +{"shape":"down","tokens":3600,"rows":28800,"tiles":512,"reps":9,"chip_median_ns":12482074,"call_median_ns":55534790,"tflops":7.258,"streamed_bytes":805306368,"act_bytes":805306368,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r3.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r3.json new file mode 100644 index 000000000..ff99f9f1f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r3.json @@ -0,0 +1 @@ +{"shape":"down","tokens":3600,"rows":28800,"tiles":512,"reps":9,"chip_median_ns":12922607,"call_median_ns":57256631,"tflops":7.011,"streamed_bytes":805306368,"act_bytes":805306368,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r4.json new file mode 100644 index 000000000..62c86fc46 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r4.json @@ -0,0 +1 @@ +{"shape":"down","tokens":3600,"rows":28800,"tiles":512,"reps":9,"chip_median_ns":12455177,"call_median_ns":55452243,"tflops":7.274,"streamed_bytes":805306368,"act_bytes":805306368,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r5.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r5.json new file mode 100644 index 000000000..c81ae1eb4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-down-3600-r5.json @@ -0,0 +1 @@ +{"shape":"down","tokens":3600,"rows":28800,"tiles":512,"reps":9,"chip_median_ns":12462713,"call_median_ns":55552547,"tflops":7.269,"streamed_bytes":805306368,"act_bytes":805306368,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r1.json new file mode 100644 index 000000000..4a50dcde0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r1.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":128,"rows":1024,"tiles":128,"reps":9,"chip_median_ns":2738784,"call_median_ns":4014606,"tflops":2.352,"streamed_bytes":402653184,"act_bytes":402653184,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r2.json new file mode 100644 index 000000000..d681c7845 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r2.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":128,"rows":1024,"tiles":128,"reps":9,"chip_median_ns":3068947,"call_median_ns":4340002,"tflops":2.099,"streamed_bytes":402653184,"act_bytes":402653184,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r3.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r3.json new file mode 100644 index 000000000..9ce018622 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r3.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":128,"rows":1024,"tiles":128,"reps":9,"chip_median_ns":2765279,"call_median_ns":4089647,"tflops":2.330,"streamed_bytes":402653184,"act_bytes":402653184,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r4.json new file mode 100644 index 000000000..007b388bf --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r4.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":128,"rows":1024,"tiles":128,"reps":9,"chip_median_ns":2693295,"call_median_ns":3965709,"tflops":2.392,"streamed_bytes":402653184,"act_bytes":402653184,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r5.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r5.json new file mode 100644 index 000000000..dd3773e76 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-128-r5.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":128,"rows":1024,"tiles":128,"reps":9,"chip_median_ns":3698106,"call_median_ns":4999225,"tflops":1.742,"streamed_bytes":402653184,"act_bytes":402653184,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r1.json new file mode 100644 index 000000000..e6aba5266 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r1.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":3600,"rows":28800,"tiles":510,"reps":9,"chip_median_ns":19030887,"call_median_ns":57362229,"tflops":9.521,"streamed_bytes":1604321280,"act_bytes":1604321280,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r2.json new file mode 100644 index 000000000..2094d8606 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r2.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":3600,"rows":28800,"tiles":510,"reps":9,"chip_median_ns":19130614,"call_median_ns":57279298,"tflops":9.471,"streamed_bytes":1604321280,"act_bytes":1604321280,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r3.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r3.json new file mode 100644 index 000000000..ef713caae --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r3.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":3600,"rows":28800,"tiles":510,"reps":9,"chip_median_ns":19641531,"call_median_ns":56998157,"tflops":9.225,"streamed_bytes":1604321280,"act_bytes":1604321280,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r4.json new file mode 100644 index 000000000..ff9c828e2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r4.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":3600,"rows":28800,"tiles":510,"reps":9,"chip_median_ns":19098901,"call_median_ns":56417973,"tflops":9.487,"streamed_bytes":1604321280,"act_bytes":1604321280,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r5.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r5.json new file mode 100644 index 000000000..298e1c07f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-gateup-3600-r5.json @@ -0,0 +1 @@ +{"shape":"gateup","tokens":3600,"rows":28800,"tiles":510,"reps":9,"chip_median_ns":19156565,"call_median_ns":56142111,"tflops":9.459,"streamed_bytes":1604321280,"act_bytes":1604321280,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r1.json new file mode 100644 index 000000000..eb47ee24c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r1.json @@ -0,0 +1 @@ +{"shape":"o","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":4108491,"call_median_ns":22746031,"tflops":14.701,"streamed_bytes":478150656,"act_bytes":478150656,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r2.json new file mode 100644 index 000000000..e7a4e14e7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r2.json @@ -0,0 +1 @@ +{"shape":"o","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":3884009,"call_median_ns":22116471,"tflops":15.550,"streamed_bytes":478150656,"act_bytes":478150656,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r3.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r3.json new file mode 100644 index 000000000..8fae49466 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r3.json @@ -0,0 +1 @@ +{"shape":"o","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":3790136,"call_median_ns":22110869,"tflops":15.936,"streamed_bytes":478150656,"act_bytes":478150656,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r4.json new file mode 100644 index 000000000..3c60bce2a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r4.json @@ -0,0 +1 @@ +{"shape":"o","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":3784343,"call_median_ns":22209989,"tflops":15.960,"streamed_bytes":478150656,"act_bytes":478150656,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r5.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r5.json new file mode 100644 index 000000000..3bdedce62 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-o-3600-r5.json @@ -0,0 +1 @@ +{"shape":"o","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":4090618,"call_median_ns":22542824,"tflops":14.765,"streamed_bytes":478150656,"act_bytes":478150656,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r1.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r1.json new file mode 100644 index 000000000..ef68595b3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r1.json @@ -0,0 +1 @@ +{"shape":"qkv","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":6706041,"call_median_ns":26440256,"tflops":11.258,"streamed_bytes":597688320,"act_bytes":597688320,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r2.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r2.json new file mode 100644 index 000000000..248ca58d7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r2.json @@ -0,0 +1 @@ +{"shape":"qkv","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":6227043,"call_median_ns":25514451,"tflops":12.124,"streamed_bytes":597688320,"act_bytes":597688320,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r3.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r3.json new file mode 100644 index 000000000..93d743dc8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r3.json @@ -0,0 +1 @@ +{"shape":"qkv","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":6148514,"call_median_ns":25861990,"tflops":12.279,"streamed_bytes":597688320,"act_bytes":597688320,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r4.json new file mode 100644 index 000000000..9fdc7367c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r4.json @@ -0,0 +1 @@ +{"shape":"qkv","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":6739959,"call_median_ns":26409625,"tflops":11.201,"streamed_bytes":597688320,"act_bytes":597688320,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r5.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r5.json new file mode 100644 index 000000000..c2c1a7d0e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/tcgemm/receipt-qkv-3600-r5.json @@ -0,0 +1 @@ +{"shape":"qkv","tokens":3600,"rows":3600,"tiles":57,"reps":9,"chip_median_ns":6643318,"call_median_ns":26207861,"tflops":11.364,"streamed_bytes":597688320,"act_bytes":597688320,"fail":0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega-gates.sh b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega-gates.sh new file mode 100755 index 000000000..c536e131c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega-gates.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# omega chip gates at omega main (worktree ~/workspace/omega-requal-main), pinned physics. One quietlock hold (<=20 min) +# per gate, each under /tmp/aien-gb10.lock. Nothing is killed or timed out. Evidence outside the worktree (the gate +# scripts record `git status` dirtiness), copied into the omega evidence PR afterwards. +set -u +O=$HOME/workspace/omega-requal-main +P=$HOME/workspace/pkv514-pins/physics +E=$HOME/workspace/requal-0c63/omega-gates +mkdir -p "$E" +S=$E/summary.txt +echo "omega $(git -C $O rev-parse HEAD) dirty=$(git -C $O status --porcelain | wc -l) physics $(git -C $P rev-parse HEAD) dirty=$(git -C $P status --porcelain | wc -l) start $(date -u +%FT%TZ)" >> "$S" +g() { # g NAME CMD... (run from the omega worktree) + local name=$1; shift + local t0; t0=$(date -u +%FT%TZ) + ( cd "$O" && quietlock hold --owner OWN30B --minutes 20 --reason "omega gate $name at omega main" -- flock /tmp/aien-gb10.lock "$@" ) > "$E/$name.out" 2>&1 + local rc=$? + echo "$name rc=$rc start=$t0 end=$(date -u +%FT%TZ) verdict: $(grep -E 'PASS|FAIL|FAILED_AS_EXPECTED|UNEXPECTED' "$E/$name.out" | tail -1)" >> "$S" +} +g bf16_gemv tools/run_gpu_bf16_gemv_chip.sh "$E/bf16_gemv" "$P" +g cmdlist tools/run_gpu_cmdlist_chip.sh "$E/cmdlist" "$P" +g decode_attn tools/run_gpu_decode_attn_chip.sh "$E/decode_attn" "$P" +g decode_graph tools/run_gpu_decode_graph_chip.sh "$E/decode_graph" main "$P" +g decode_graph_red tools/run_gpu_decode_graph_chip.sh "$E/decode_graph_red" red "$P" +g decode_graph_cached tools/run_gpu_decode_graph_chip.sh "$E/decode_graph_cached" cached "$P" +g fp8 tools/run_gpu_fp8_chip.sh "$E/fp8" "$P" +g fp8_v2 tools/run_gpu_fp8_v2_chip.sh "$E/fp8_v2" "$P" +g fp8gemm tools/run_gpu_fp8gemm_chip.sh "$E/fp8gemm" "$P" +g l2d_barrier tools/run_gpu_l2d_barrier_chip.sh "$E/l2d_barrier" "$P" +g l2d_prefetch tools/run_gpu_l2d_prefetch_chip.sh "$E/l2d_prefetch" "$P" +g matmul_api tools/run_gpu_matmul_api_chip.sh "$E/matmul_api" "$P" +g prefill_attn tools/run_gpu_prefill_attn_chip.sh "$E/prefill_attn" "$P" +g router tools/run_gpu_router_chip.sh "$E/router" "$P" +g tcgemm tools/run_gpu_tcgemm_chip.sh "$E/tcgemm" "$P" +g attention env PHYSICS_DIR="$P" tools/run_gpu_attention_chip.sh "$E/attention" +g cut4b env PHYSICS_DIR="$P" tools/run_gpu_cut4b_chip.sh "$E/cut4b" +g elementwise env PHYSICS_DIR="$P" tools/run_gpu_elementwise_chip.sh "$E/elementwise" +g reconv env PHYSICS_DIR="$P" tools/run_gpu_reconv_chip.sh "$E/reconv" +g l1g env PHYS="$P" OUT_DIR="$HOME/workspace/requal-0c63/l1g-build" tools/run_l1g_chip.sh "$E/l1g" qmma pfgemm qgemm +echo "end $(date -u +%FT%TZ)" >> "$S" diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/SHA256SUMS new file mode 100644 index 000000000..a2e739f91 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/SHA256SUMS @@ -0,0 +1,23 @@ +48c58ba0eb8e3fedbaea9cb1a943a6c35e116b744a6bce7eea41e80ebc32b2d0 device.txt +852e68fd8c84a35e26074fe97c15f93826cf68bc0df15f8fa453059dc4eb1287 build.log +501f702d5de67982912675275b30d652e54fc3b769eb7605a82ac820707dabc2 summary.txt +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r5.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r1.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r2.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r3.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r4.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r5.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/build.log new file mode 100644 index 000000000..46ff4f88b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/build.log @@ -0,0 +1,3 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform_linux.c -o build/omega_gpu_platform_linux.o +ar rcs build/libomega_gpu.a build/sha256.o build/omega_canonical.o build/omega_validate.o build/omega_core.o build/omega_codec.o build/aarch64_encoder.o build/aarch64_decoder.o build/omega_realize.o build/omega_exec.o build/omega_self_host.o build/omega_verify.o build/omega_program.o build/omega_synthesis.o build/omega_library.o build/omega_discovery.o build/omega_machine.o build/omega_realize_synth.o build/omega_matvec.o build/omega_accelerator.o build/omega_accelerator_world.o build/omega_vector.o build/omega_blackwell_encoder.o build/omega_blackwell_qmd.o build/omega_blackwell_realize.o build/omega_blackwell_submit.o build/omega_blackwell_engine.o build/omega_gpu_engine.o build/omega_blackwell_matmul.o build/omega_blackwell_codegen.o build/omega_gpu_session.o build/omega_gpu_platform.o build/omega_gpu_platform_linux.o build/omega_gpu_fmt.o build/omega_gpu_matmul_api.o build/omega_gpu_elementwise_api.o build/omega_gpu_attention_api.o build/omega_gpu_serving.o build/omega_gpu_wait.o build/omega_evidence.o build/m16_native.o build/nvrm.o build/omega_gpu_moe_api.o build/omega_blackwell_codegen_moe.o build/omega_gpu_fp8_pack.o build/omega_gpu_fp8_api.o build/omega_blackwell_codegen_moe2.o build/omega_blackwell_codegen_attn.o build/omega_gpu_decode_attn_api.o build/omega_gpu_hostmath.o build/omega_blackwell_codegen_router.o build/omega_gpu_router_api.o build/omega_gpu_cmdlist.o build/omega_blackwell_codegen_dec.o build/omega_gpu_mem_cached.o build/omega_gpu_decode_graph.o build/omega_blackwell_codegen_bf16.o build/omega_gpu_bf16_gemv_api.o build/omega_blackwell_codegen_gemm.o build/omega_gpu_fp8gemm_api.o build/omega_blackwell_codegen_tc.o build/omega_gpu_tcgemm_api.o build/omega_blackwell_codegen_pattn.o build/omega_gpu_prefill_attn_api.o build/omega_blackwell_codegen_pf.o build/omega_gpu_prefill.o build/omega_blackwell_codegen_tc2.o build/omega_gpu_pfgemm.o build/omega_blackwell_codegen_qmma.o build/omega_blackwell_codegen_qg.o build/omega_blackwell_codegen_pfhost.o build/omega_gpu_pfhost.o build/omega_program_ir.o build/omega_vc_bridge.o build/omega_resolve.o build/omega_receipt.o build/omega_blake3.o build/omega_vcstore.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o build/gpu_l2_stale_test tests/gpu_l2_stale_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/device.txt new file mode 100644 index 000000000..ae43f0aeb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/device.txt @@ -0,0 +1,5 @@ +start 2026-10-15T01:55:43Z omega=8f491df271782cbe93fd03a95645db05f360dda3 branch=fix/457-l2-inval-after-host-write dirty=1 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 52 4 3 69 69 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/gate.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/gate.out new file mode 100644 index 000000000..186793050 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/gate.out @@ -0,0 +1,21 @@ +r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +GPU_L2_STALE_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r1.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r1.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r2.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r2.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r3.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r3.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r4.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r4.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r5.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c0-r5.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r1.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r1.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r2.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r2.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r3.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r3.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r4.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r4.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r5.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/realloc-c1-r5.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r1.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r1.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r2.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r2.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r3.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r3.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r4.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r4.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r5.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c0-r5.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r1.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r1.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r2.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r2.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r3.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r3.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r4.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r4.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r5.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/rewrite-c1-r5.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/summary.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/summary.txt new file mode 100644 index 000000000..e6a3ed79c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457-gate-fix-r2/summary.txt @@ -0,0 +1,20 @@ +r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/PINS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/PINS new file mode 100644 index 000000000..c3cac367f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/PINS @@ -0,0 +1,8 @@ +created=2026-10-15T00:49:42Z +host=spark-b87b kernel=7.0.0-1019-nvidia +driver=580.173.02, NVIDIA GB10 +physics=e95e3ed dirty=0 +omega=ce42e62f dirty=127 +# CORRECTION (worker OWN30B requal): the lines above are the scaffold defaults (~/workspace/physics, ~/omega), NOT what this repro uses. +repro_omega=710d438cac6c1159b4ca2b39af49812ce08f554b dirty=0 path=~/workspace/omega-requal-main (omega main; src identical to 62833658, diff 62833658..710d438c touches only checker2 files) +repro_physics=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf dirty=0 (omega physics.lock) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/SHA256SUMS new file mode 100644 index 000000000..ff4947569 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/SHA256SUMS @@ -0,0 +1,136 @@ +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./build.log +90e41f8727ef24dc34ef4617cb3706bcd3a3d6d0c733ec2786b06ba6465330b2 ./fix-build.log +6acbc0333befe00e57efc5a901a43bd3bc5a1c9dd0a45f84603df6789467bd53 ./fixgates/cmdlist/build.log +2e40f20283bfc71f691e0f8905253104fed2dcd98165f0d732d8a23c283f53fb ./fixgates/cmdlist/device.txt +19a5e1c7793eb4bd2cd68172703e3a6996966dbc8ba3d6b015f38b6455aa75d8 ./fixgates/cmdlist/host-only.log +a1c6a78d7b31faae095a0a2ad84d53e2aac9f6d34621b1c1c947988efcc22087 ./fixgates/cmdlist/main.log +fdd95ee0c9716b14e1eec171769c594a96a1deffde38fe710419eaccaaca9bfe ./fixgates/cmdlist.out +796bc4db16f3e2606776eb5e5985643ad5a32ca5cd87f2b740370be88a1bf8d6 ./fixgates/cmdlist/receipt-main.json +c8e9ac96269fec7a92d118b01295ee09a9c5f330ab760277fbe9a47dcbf981e1 ./fixgates/cmdlist/receipt-spin0.json +90fb388d6494bb76d147f0ff1cccda96c5e01bc64fc0cb650a694e71f26769c5 ./fixgates/cmdlist/sim.log +cb916858ce6967d47a19c6b9b7ae7eb4cfbd359416b10eb0aff67ad079dde0d0 ./fixgates/cmdlist/spin0.log +2985f370300ac01949c1b3d9c15ef32339728c28b7cce08de16a52556dfc3853 ./fixgates/decode_graph_cached/binaries.sha256 +7e4f4ac3efc235011f399b32ea4aae78bb40b65dd155c7ae5f94aad771cae31d ./fixgates/decode_graph_cached/build.log +7e72e7ad042df585f05a96d32be8b7289626e838b983414db8ec7bdbac7dbed9 ./fixgates/decode_graph_cached/cached.log +226f4d26cc928f5d9ab8cfdb50c216f1b115ffb34d9de4b7540be4124545d450 ./fixgates/decode_graph_cached/device.txt +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc ./fixgates/decode_graph_cached/host-only.log +7a69d90856c35a1759ea781feb62eb6fbdf76db6d8ab63ef06caa7deb9235284 ./fixgates/decode_graph_cached.out +2196d202e1cb82b203e929bee535db79757a3b91fa71890c13607425a03d3de3 ./fixgates/decode_graph_cached/receipt-cached.json +e7fc66ed904eaa7cb69d81bc5a753a461829c6260f2d8b6e6dab9d12593abad5 ./fixgates/decode_graph_cached/worktree.diff +12641abdc6478ebeb7b3b4d3be9f351d2749f1d9d352bd7764827cb2f5bfcbaf ./fixgates/fp8/baseline-matmul.log +3bebff182d270e3c7408da472646424164128b7a01722d58a71bb424a99ce194 ./fixgates/fp8/build.log +72d5065a1f3c1034038b849d40ae9a37b87f1790ce5c19314c07ba21afcef46e ./fixgates/fp8/depth0.log +82bd94a62cd4c240ee6911b0e6ab020f12dd3ce386a532e1012fecc927d94726 ./fixgates/fp8/device.txt +de0e3f30509f0491e9a2ad8e22005f758a8e4e2723906cd0986f0c3a61b53945 ./fixgates/fp8/grouped-old.log +caeab5a3cdebfa0910e2a449141b573071298a47743f9a862efba72b89d8a61e ./fixgates/fp8/host-only.log +f1c664cb187c634d474a1a648c73cec7c6db50ddd9d364a40e5bc45ddc3cbec9 ./fixgates/fp8/main.log +fb56057322fa8530da8477186ea04b8a1fb8cc196f1922426d1977bf2161ab21 ./fixgates/fp8/noevict.log +fac3604141cd9ffdcb95bd4d511118894dc654621719b6dc52dad210b72d2257 ./fixgates/fp8.out +ec5cc7fdb271705be442d85d50e9a5b2d6fa7c92ce00fff5eddd1db7fe8264cb ./fixgates/fp8/receipt-baseline-matmul.json +430a91af97fa5514ed73ebd8ab5cca1e6567cb43e25db7fa8a65fd3c6ef0c1bc ./fixgates/fp8/receipt-depth0.json +a6b4e1f8510c4fca58d9e34ba22b111796a1121cdaf9d120d6fd533c2a828f12 ./fixgates/fp8/receipt-grouped-old.json +477dfe611bde58293f74de56a50789583e554d5b1486b71dc101124c926bc86f ./fixgates/fp8/receipt-main.json +84b97340a9c3b358f175163fe96e8a1e4ae199e39c7a76bd46d76ce280f69e67 ./fixgates/fp8/receipt-noevict.json +a8618d6c326a481c2801fcfa1dfc1ded3a49dd94128a4d732137079d4ae2d687 ./fixgates/fp8/sim.log +a93cf9aa63eef90ae55ce90ceb2723a6c6b245f25edd0f4f1799b54b9469c19f ./fix-lib.sha256 +e7fc66ed904eaa7cb69d81bc5a753a461829c6260f2d8b6e6dab9d12593abad5 ./fix-variant.diff +83b85db14440e60ad84555bd82aa6c4b420b813da4cdfc09c4440fe8f5198169 ./gate-fix/build.log +a6863b8625f32304fc05a97cb55402c280fa6b6186a52fe0d12cab9f0e845f00 ./gate-fix/device.txt +f7df6a8f3de745308b8e9638daf9a5eaaaa6b976fc4735aa1200c3a449ceccbb ./gate-fix.out +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-fix/realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-fix/realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-fix/realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-fix/realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-fix/realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-fix/realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-fix/realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-fix/realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-fix/realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-fix/realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-fix/rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-fix/rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-fix/rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-fix/rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-fix/rewrite-c0-r5.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./gate-fix/rewrite-c1-r1.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./gate-fix/rewrite-c1-r2.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./gate-fix/rewrite-c1-r3.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./gate-fix/rewrite-c1-r4.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b ./gate-fix/rewrite-c1-r5.log +501f702d5de67982912675275b30d652e54fc3b769eb7605a82ac820707dabc2 ./gate-fix/summary.txt +0e3e4f03ecd6a9373ba320704324922eefe449429fdb05f59e6db330b76c52d3 ./gate-red/build.log +3b89ed0e0581a9a87227134bb4094df5356b3d1941c329512c3b13190cc4ac15 ./gate-red/device.txt +d3b36f81602218a9ed045b64f0d6780a0ed1ed85efdc5989e9c82fd056e6c786 ./gate-red.out +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-red/realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-red/realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-red/realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-red/realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 ./gate-red/realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-red/realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-red/realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-red/realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-red/realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 ./gate-red/realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-red/rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-red/rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-red/rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-red/rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 ./gate-red/rewrite-c0-r5.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./gate-red/rewrite-c1-r1.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./gate-red/rewrite-c1-r2.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./gate-red/rewrite-c1-r3.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./gate-red/rewrite-c1-r4.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 ./gate-red/rewrite-c1-r5.log +4b73fc935a2ca80ba2876b9fe33a18ff3cf25cf0826bcc7becf1877b9cc5ff97 ./gate-red/summary.txt +b54292e0f28a7ade0acef8e02bf1e47e252eba054c6fc8a33b51d377c1bb67b8 ./ground.txt +d484de7bdbb5a4be5879d12da55dc5b989082408fb98c6acd61c2edfa3975ee8 ./l2_stale_test +abfb86ae7da9a9ed4d3f56b0ca7bd2f4c3038463d47be02b9c662efbde3efa72 ./l2_stale_test_fix +fcb06e0f9949f670f20d204d5a8e469c0d98f2ca9f70c4070452bb1c94847280 ./lib.sha256 +23f548967452a8f1c927137c563e9bc34076193210db69fe035859ab5279ce1d ./PINS +3e928acc3253508c7e763553ed11cd2f7c0b4f6fb3a5c8ad319a8c1cdedbce10 ./plan.md +fb71bc98c9ae8142fa745996e2bb192718c7533c60b1d881e0b6ba0ae4ecb892 ./runs/fix-realloc-c0-r1.log +173255ed65b574642611eecbcebd2366c66590c4aefa8639d31e20b6d823a931 ./runs/fix-realloc-c0-r2.log +d878400de3844bb97241ab8fd7bf2145de6afc6ca6dd812b3f2dea6eb49c30e8 ./runs/fix-realloc-c0-r3.log +d878400de3844bb97241ab8fd7bf2145de6afc6ca6dd812b3f2dea6eb49c30e8 ./runs/fix-realloc-c0-r4.log +0c480e3e7f877b5e45c0096790538e57da9565a2f9d2c23ebd76739aef36889c ./runs/fix-realloc-c0-r5.log +f9fa19c341ab58f5eba102e0966b570995a2217271d8e5a365b9c63aaff8f5d8 ./runs/fix-realloc-c1-r1.log +c3f7c953410ce00c8b8a60c3499a07eaf35a1dc669e5601f182bca94788e2e14 ./runs/fix-realloc-c1-r2.log +f1121f2fba35f721d72b62f39d9d2967ba38de596623b4c9dfa1b59a0b40223b ./runs/fix-realloc-c1-r3.log +5ef863d2283c57dfae0962d05b628238189d24b7a70c5dee76464d52d0d34842 ./runs/fix-realloc-c1-r4.log +5ef863d2283c57dfae0962d05b628238189d24b7a70c5dee76464d52d0d34842 ./runs/fix-realloc-c1-r5.log +1852289611bae7d99484f87cbaf8b723766b16fc3bf002e477b5642d417906e3 ./runs/fix-rewrite-c0-r1.log +1852289611bae7d99484f87cbaf8b723766b16fc3bf002e477b5642d417906e3 ./runs/fix-rewrite-c0-r2.log +68ae0330030534e5f211d9ef60d70a308196c73effc9dd4e941f6fcc7cb7a761 ./runs/fix-rewrite-c0-r3.log +d0db44b69dd5eecbdb8befcd9c5ae66a80a96f424882edce86d7ff90305352cb ./runs/fix-rewrite-c0-r4.log +9006102734277252848c7a0ad9e4c9ea52d24decfe8ffb1dac3230c585be22db ./runs/fix-rewrite-c0-r5.log +8d5b1fa41cddffd54a969878e2853ed5fdffaf09566828228d5cdb69335c990e ./runs/fix-rewrite-c1-r1.log +320a784cead7abdaf06fb7d25cb5548b6b6945b23f76345a02491bea437a7d98 ./runs/fix-rewrite-c1-r2.log +320a784cead7abdaf06fb7d25cb5548b6b6945b23f76345a02491bea437a7d98 ./runs/fix-rewrite-c1-r3.log +9274ab53d6bac1b6dd682ed919d9798f6d861305721e5ce1150994495708da5a ./runs/fix-rewrite-c1-r4.log +d0ee0bd2cf7bf3c54f286653ddb7579070935e72da8a36913bb15378df7b9d26 ./runs/fix-rewrite-c1-r5.log +e51c4f67b3e6168d42f9ad0d4994c3ec532c81584a3db9047234fc4f19a130a4 ./runs/realloc-c0-r1.log +895fa72062d28e48a16ce64ad43651437eb88f8a71a0f81fcd6e244cb2a24b69 ./runs/realloc-c0-r2.log +607bd5b7fda530f7543fbd902489bbc26ea8fce91348379c4da8c202a9b28004 ./runs/realloc-c0-r3.log +61eafec468d57f4e70991448c4e1e711978366a6195b578528085fc085d82c0e ./runs/realloc-c0-r4.log +07792740e322c7f26015ea4b75eee16b3d11acdf19c197a125e832786e2741f4 ./runs/realloc-c0-r5.log +c694a0550e001f81d0d168c4506f3e5447abccf276431cb94914e05e11d13c4d ./runs/realloc-c1-r1.log +c694a0550e001f81d0d168c4506f3e5447abccf276431cb94914e05e11d13c4d ./runs/realloc-c1-r2.log +81619407363bb8fe2605f2225f13b84a0c7d6ae2e5b6432f5a920a825f45be42 ./runs/realloc-c1-r3.log +9dfcb02f196dd6564b0cc256ad0f9c6f780bbe35aeaeeab978b70bae46e6cc91 ./runs/realloc-c1-r4.log +43558368b89d7b7eeeab0968e134ef14969084d1aacca04d8018f1c041519b12 ./runs/realloc-c1-r5.log +2d7c3d2670f38d233602d2c353281e87ae604562ea8fbf2a5ac116d5312de008 ./runs/rewrite-c0-r1.log +169059ea5da360c491c49c0a6ba629daa395827767395602dff44e6c65f0aee5 ./runs/rewrite-c0-r2.log +169059ea5da360c491c49c0a6ba629daa395827767395602dff44e6c65f0aee5 ./runs/rewrite-c0-r3.log +b11ef5db49315a63af1d898f1e34eb85fd719d378463099fb96a355378d43834 ./runs/rewrite-c0-r4.log +197fb711f8859ac6b2c13396bef3c5477328af7d608c656e5d73ec587a347764 ./runs/rewrite-c0-r5.log +d74bc6ffdc739c2e6aa9783d5c41cc251a32fae681f58be4e70eab4f41e317e0 ./runs/rewrite-c1-r1.log +164fab6bdb11958b08403ab540b1268a05a0f60a444f4aa1b60ae941400be0b1 ./runs/rewrite-c1-r2.log +ac70a4057cb2045eb042a002d4d4cc48017cd07ee34a5230f2e9241add0d1536 ./runs/rewrite-c1-r3.log +f97094da2816aae3867c0f3edf002eae89dea5a6e24a5f9e316298e3316b0881 ./runs/rewrite-c1-r4.log +f97094da2816aae3867c0f3edf002eae89dea5a6e24a5f9e316298e3316b0881 ./runs/rewrite-c1-r5.log +f2f7043e6544f14a67959b6649f328f52f596c538ab543d8409ef257aeafbb5c ./runs/run-all.sh +6b95229967b8fb4a8fde4c654a662ead3d82e8c6cf5d8f89560c9f2d520f8485 ./runs/run-fix.sh +b9d1012d0b146caac8430541e6f74dd8914c11fd56c46c28b2209acd34cefbe9 ./runs/summary-fix.txt +6a2a8fab9e8a45b6fd301ddecdc69060b3b38e0ccb571aacbe184a80149fab3d ./runs/summary.txt +fb2d8fc1fabf57d23f7140d241f8f062331c3d2f1342c196b11e638a30eddb90 ./src/l2_stale_test.c +0309767b3765158087cb117ce14002955481ab84fda6b8c68e9cfe042edd5f4f ./state-after.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/build.log new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-build.log new file mode 100644 index 000000000..eae6d17c8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-build.log @@ -0,0 +1,78 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/sha256.c -o build/sha256.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_canonical.c -o build/omega_canonical.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_validate.c -o build/omega_validate.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_core.c -o build/omega_core.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_codec.c -o build/omega_codec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_encoder.c -o build/aarch64_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_decoder.c -o build/aarch64_decoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize.c -o build/omega_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_exec.c -o build/omega_exec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_self_host.c -o build/omega_self_host.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_verify.c -o build/omega_verify.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program.c -o build/omega_program.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_synthesis.c -o build/omega_synthesis.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_library.c -o build/omega_library.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_discovery.c -o build/omega_discovery.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_machine.c -o build/omega_machine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize_synth.c -o build/omega_realize_synth.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_matvec.c -o build/omega_matvec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator.c -o build/omega_accelerator.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator_world.c -o build/omega_accelerator_world.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vector.c -o build/omega_vector.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_encoder.c -o build/omega_blackwell_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_qmd.c -o build/omega_blackwell_qmd.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_realize.c -o build/omega_blackwell_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_submit.c -o build/omega_blackwell_submit.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o build/omega_blackwell_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_engine.c -o build/omega_gpu_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_matmul.c -o build/omega_blackwell_matmul.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen.c -o build/omega_blackwell_codegen.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_session.c -o build/omega_gpu_session.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform.c -o build/omega_gpu_platform.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform_linux.c -o build/omega_gpu_platform_linux.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fmt.c -o build/omega_gpu_fmt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_matmul_api.c -o build/omega_gpu_matmul_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_elementwise_api.c -o build/omega_gpu_elementwise_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_attention_api.c -o build/omega_gpu_attention_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_serving.c -o build/omega_gpu_serving.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_wait.c -o build/omega_gpu_wait.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_evidence.c -o build/omega_evidence.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/m16/m16_native.c -o build/m16_native.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/nvrm/nvrm.c -o build/nvrm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_moe_api.c -o build/omega_gpu_moe_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe.c -o build/omega_blackwell_codegen_moe.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_pack.c -o build/omega_gpu_fp8_pack.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_api.c -o build/omega_gpu_fp8_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe2.c -o build/omega_blackwell_codegen_moe2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_attn.c -o build/omega_blackwell_codegen_attn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_attn_api.c -o build/omega_gpu_decode_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_hostmath.c -o build/omega_gpu_hostmath.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_router.c -o build/omega_blackwell_codegen_router.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_router_api.c -o build/omega_gpu_router_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_cmdlist.c -o build/omega_gpu_cmdlist.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_dec.c -o build/omega_blackwell_codegen_dec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_mem_cached.c -o build/omega_gpu_mem_cached.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_graph.c -o build/omega_gpu_decode_graph.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_bf16.c -o build/omega_blackwell_codegen_bf16.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_bf16_gemv_api.c -o build/omega_gpu_bf16_gemv_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_gemm.c -o build/omega_blackwell_codegen_gemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8gemm_api.c -o build/omega_gpu_fp8gemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc.c -o build/omega_blackwell_codegen_tc.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_tcgemm_api.c -o build/omega_gpu_tcgemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pattn.c -o build/omega_blackwell_codegen_pattn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill_attn_api.c -o build/omega_gpu_prefill_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pf.c -o build/omega_blackwell_codegen_pf.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill.c -o build/omega_gpu_prefill.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc2.c -o build/omega_blackwell_codegen_tc2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfgemm.c -o build/omega_gpu_pfgemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qmma.c -o build/omega_blackwell_codegen_qmma.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qg.c -o build/omega_blackwell_codegen_qg.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pfhost.c -o build/omega_blackwell_codegen_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfhost.c -o build/omega_gpu_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program_ir.c -o build/omega_program_ir.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vc_bridge.c -o build/omega_vc_bridge.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_resolve.c -o build/omega_resolve.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_receipt.c -o build/omega_receipt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blake3.c -o build/omega_blake3.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vcstore.c -o build/omega_vcstore.o +ar rcs build/libomega_gpu.a build/sha256.o build/omega_canonical.o build/omega_validate.o build/omega_core.o build/omega_codec.o build/aarch64_encoder.o build/aarch64_decoder.o build/omega_realize.o build/omega_exec.o build/omega_self_host.o build/omega_verify.o build/omega_program.o build/omega_synthesis.o build/omega_library.o build/omega_discovery.o build/omega_machine.o build/omega_realize_synth.o build/omega_matvec.o build/omega_accelerator.o build/omega_accelerator_world.o build/omega_vector.o build/omega_blackwell_encoder.o build/omega_blackwell_qmd.o build/omega_blackwell_realize.o build/omega_blackwell_submit.o build/omega_blackwell_engine.o build/omega_gpu_engine.o build/omega_blackwell_matmul.o build/omega_blackwell_codegen.o build/omega_gpu_session.o build/omega_gpu_platform.o build/omega_gpu_platform_linux.o build/omega_gpu_fmt.o build/omega_gpu_matmul_api.o build/omega_gpu_elementwise_api.o build/omega_gpu_attention_api.o build/omega_gpu_serving.o build/omega_gpu_wait.o build/omega_evidence.o build/m16_native.o build/nvrm.o build/omega_gpu_moe_api.o build/omega_blackwell_codegen_moe.o build/omega_gpu_fp8_pack.o build/omega_gpu_fp8_api.o build/omega_blackwell_codegen_moe2.o build/omega_blackwell_codegen_attn.o build/omega_gpu_decode_attn_api.o build/omega_gpu_hostmath.o build/omega_blackwell_codegen_router.o build/omega_gpu_router_api.o build/omega_gpu_cmdlist.o build/omega_blackwell_codegen_dec.o build/omega_gpu_mem_cached.o build/omega_gpu_decode_graph.o build/omega_blackwell_codegen_bf16.o build/omega_gpu_bf16_gemv_api.o build/omega_blackwell_codegen_gemm.o build/omega_gpu_fp8gemm_api.o build/omega_blackwell_codegen_tc.o build/omega_gpu_tcgemm_api.o build/omega_blackwell_codegen_pattn.o build/omega_gpu_prefill_attn_api.o build/omega_blackwell_codegen_pf.o build/omega_gpu_prefill.o build/omega_blackwell_codegen_tc2.o build/omega_gpu_pfgemm.o build/omega_blackwell_codegen_qmma.o build/omega_blackwell_codegen_qg.o build/omega_blackwell_codegen_pfhost.o build/omega_gpu_pfhost.o build/omega_program_ir.o build/omega_vc_bridge.o build/omega_resolve.o build/omega_receipt.o build/omega_blake3.o build/omega_vcstore.o diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-lib.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-lib.sha256 new file mode 100644 index 000000000..3c7708e47 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-lib.sha256 @@ -0,0 +1 @@ +8b7c0678b056075242427d846cef5f782ce81a6a7f1077178043aa2d85f64a73 build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-variant.diff b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-variant.diff new file mode 100644 index 000000000..6b277f907 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fix-variant.diff @@ -0,0 +1,107 @@ +diff --git a/Makefile b/Makefile +index 6a406f72..455c492b 100644 +--- a/Makefile ++++ b/Makefile +@@ -2462,6 +2462,12 @@ test-gpu-fp8: $(GPU_FP8_TEST) + ./$(GPU_FP8_TEST) --host-only + ./$(GPU_FP8_TEST) --sim + ++# omega #457 (2026-10-15): host rewrite of a GPU-cached buffer must be visible to the next launch. Chip only; the gate ++# is tools/run_gpu_l2_stale_chip.sh. ++GPU_L2_STALE_TEST = $(OUT_DIR)/gpu_l2_stale_test ++$(GPU_L2_STALE_TEST): tests/gpu_l2_stale_test.c src/omega_gpu_fp8_api.h src/omega_gpu_session.h $(OUT_DIR)/libomega_gpu.a ++ $(CC) $(CFLAGS) -ffp-contract=off -o $@ tests/gpu_l2_stale_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm ++ + # OWN-30B cut 8 (2026-10-13): one-launch decode attention (omega_gpu_decode_attn_api.h). test-gpu-decode-attn is + # host-only + simulator; the chip gate is tools/run_gpu_decode_attn_chip.sh. + .PHONY: test-gpu-decode-attn +diff --git a/src/omega_gpu_platform_linux.c b/src/omega_gpu_platform_linux.c +index dc02aab4..620b7137 100644 +--- a/src/omega_gpu_platform_linux.c ++++ b/src/omega_gpu_platform_linux.c +@@ -31,6 +31,8 @@ typedef struct { + OmegaGpuHandleTable t; + NvrmMem mem[OMEGA_GPU_HANDLE_SLOTS]; + uint32_t rights[OMEGA_GPU_HANDLE_SLOTS]; ++ uint8_t gpu_cached[OMEGA_GPU_HANDLE_SLOTS]; /* allocated GPU-cached (nvrm_alloc), omega #457 */ ++ int l2_inval_pending; /* a host sync into a GPU-cached buffer since the last submission, omega #457 */ + M16NativeContext m16; + OmegaGpuDeviceHandle dev; /* generation 0 = closed */ + OmegaGpuQueueHandle queue; +@@ -157,6 +159,7 @@ static int ref_device_close(void *ctx, OmegaGpuDeviceHandle dev) { + (void)omega_gpu_handles_close(&r->t, i, r->t.generation[i], r->t.kind[i]); + memset(&r->mem[i], 0, sizeof r->mem[i]); + r->rights[i] = 0; ++ r->gpu_cached[i] = 0; + } + (void)omega_gpu_handles_close(&r->t, dev.index, dev.generation, OMEGA_GPU_HANDLE_DEVICE); + memset(&r->dev, 0, sizeof r->dev); +@@ -198,6 +201,7 @@ static int ref_dma_alloc(void *ctx, OmegaGpuDeviceHandle dev, const OmegaGpuBuff + } + r->mem[idx] = m; + r->rights[idx] = desc->rights; ++ r->gpu_cached[idx] = (uint8_t)cached; + out->index = idx; out->generation = gen; + cpu->ptr = m.cpu; cpu->len = (size_t)m.size; + gpu->va = m.va; +@@ -218,6 +222,7 @@ static int ref_dma_free(void *ctx, OmegaGpuBufferHandle b) { + (void)omega_gpu_handles_close(&r->t, b.index, b.generation, kind); + memset(&r->mem[b.index], 0, sizeof r->mem[b.index]); + r->rights[b.index] = 0; ++ r->gpu_cached[b.index] = 0; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; + } +@@ -230,18 +235,22 @@ static void barrier(void) { + #endif + } + +-static int ref_sync(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len, const char *stage) { ++static int ref_sync(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len, const char *stage, int to_gpu) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = buf_ok(r, b, NULL); + if (rc == OMEGA_GPU_PLAT_OK) rc = range_ok(r, b, off, len); + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, stage); ++ /* omega #457 (chip, 2026-10-15): after the host rewrites a GPU-cached buffer the GPU already read, every later launch ++ * read the old bytes from L2 (nvos.h:1117 "For system memory this will not be coherent with direct CPU mappings"). ++ * The next submission therefore starts with L2_SYSMEM_NCOH_INVALIDATE (ref_queue_submit). */ ++ else if (to_gpu && r->gpu_cached[b.index]) r->l2_inval_pending = 1; + ref_unlock(r); + if (rc == OMEGA_GPU_PLAT_OK) barrier(); /* uncached system memory: a full barrier is the whole sync */ + return rc; + } +-static int ref_sync_to_gpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_cpu_to_gpu"); } +-static int ref_sync_to_cpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_gpu_to_cpu"); } ++static int ref_sync_to_gpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_cpu_to_gpu", 1); } ++static int ref_sync_to_cpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_gpu_to_cpu", 0); } + + static int ref_poll_word(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint32_t expected, uint64_t timeout_ms, uint32_t *observed) { + LinuxRef *r = ctx; +@@ -297,8 +306,24 @@ static int ref_queue_submit(void *ctx, OmegaGpuQueueHandle q, const uint32_t *wo + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK && (!words || nwords == 0u)) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; +- if (rc == OMEGA_GPU_PLAT_OK && (uint64_t)nwords * 4u > r->m16.pb_mem.size) rc = OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; +- if (rc == OMEGA_GPU_PLAT_OK && m16_native_submit_methods(&r->m16, words, nwords) != 0) rc = OMEGA_GPU_PLAT_REFUSED_DEVICE; ++ /* omega #457: a host sync into a GPU-cached buffer is pending, so this submission starts with ++ * MEM_OP_A..D = 0, 0, 0, OPERATION L2_SYSMEM_NCOH_INVALIDATE 0x11 in D bits 31:27 (clc96f.h:30-73), the same ++ * method form as the C3 tail's L2_FLUSH_DIRTY. No dirty line is dropped: every earlier submission ended with ++ * L2_FLUSH_DIRTY and the host waited for it. */ ++ const uint32_t pre = r->l2_inval_pending ? 5u : 0u; ++ if (rc == OMEGA_GPU_PLAT_OK && ((uint64_t)nwords + pre) * 4u > r->m16.pb_mem.size) rc = OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; ++ uint32_t *buf = NULL; ++ if (rc == OMEGA_GPU_PLAT_OK && pre) { ++ buf = malloc(((size_t)nwords + pre) * 4u); ++ if (!buf) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; ++ else { ++ buf[0] = (2u << 28) | (4u << 16) | (0x0028u >> 2); buf[1] = 0; buf[2] = 0; buf[3] = 0; buf[4] = 0x11u << 27; ++ memcpy(buf + pre, words, (size_t)nwords * 4u); ++ } ++ } ++ if (rc == OMEGA_GPU_PLAT_OK && m16_native_submit_methods(&r->m16, buf ? buf : words, nwords + pre) != 0) rc = OMEGA_GPU_PLAT_REFUSED_DEVICE; ++ if (rc == OMEGA_GPU_PLAT_OK && pre) r->l2_inval_pending = 0; ++ free(buf); + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, "submit_methods"); + ref_unlock(r); + return rc; diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist.out new file mode 100644 index 000000000..969e24145 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist.out @@ -0,0 +1,47 @@ +codegen axpy: 23 insns, peak 12 gprs, declared 16 +codegen res add|norm: 128 insns, peak 40 gprs, declared 48 +codegen res combine|norm: 264 insns, peak 49 gprs, declared 56 +codegen res add: 45 insns, peak 28 gprs, declared 32 +codegen swiglu: 29 insns, peak 16 gprs, declared 24 +codegen argmax: 165 insns, peak 32 gprs, declared 40 +codegen argmax indexed: 160 insns, peak 40 gprs, declared 48 +host-only: 20 checks, 0 failed: PASS +sim res mode 5 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 1 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 1 mutant 1: x DIFFERS, y 2047/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 1: x DIFFERS, y 2048/2048 outside tolerance +sim swiglu mutant 0: 0/6144 outside tolerance +sim swiglu mutant 1: 6144/6144 outside tolerance +sim argmax tie 0 mutant 0: index 151625 value 49.9996 (ref 151625) +sim argmax tie 0 mutant 1: index 151625 value 49.9996 (ref 151625) +sim argmax tie 1 mutant 0: index 1007 value 60 (ref 1007) +sim argmax tie 1 mutant 1: index 28784 value 49.9999 (ref 1007) +sim: 39 checks, 0 failed: PASS +L=64: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 3.20 us/launch (wall 3.21, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 2.82 us/launch (wall 2.83, 1 submits); INLINE ok 3.90 us/launch (4 submits) +L=1024: baseline 103.1 us/launch (chip 103.1 us, wall 103.5 us per launch); PCAS ok 2.72 us/launch (wall 2.73, 1 submits); INLINE ok 3.97 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1456.5 us; BARRIER_NONE rc 0 12736 differ 1351.3 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 110.3 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 107.5 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS +L=64: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 3.20 us/launch (wall 3.21, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 103.1 us/launch (chip 103.1 us, wall 103.6 us per launch); PCAS ok 3.17 us/launch (wall 3.18, 1 submits); INLINE ok 3.90 us/launch (4 submits) +L=1024: baseline 104.6 us/launch (chip 104.6 us, wall 105.2 us per launch); PCAS ok 2.61 us/launch (wall 2.61, 1 submits); INLINE ok 3.91 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1790.1 us; BARRIER_NONE rc 0 21376 differ 1652.9 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 106.2 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 103.6 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS +spin-us 0 exit 0 (informational) +GPU_CMDLIST_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/SHA256SUMS new file mode 100644 index 000000000..cb9e0caca --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/SHA256SUMS @@ -0,0 +1,8 @@ +796bc4db16f3e2606776eb5e5985643ad5a32ca5cd87f2b740370be88a1bf8d6 receipt-main.json +c8e9ac96269fec7a92d118b01295ee09a9c5f330ab760277fbe9a47dcbf981e1 receipt-spin0.json +6acbc0333befe00e57efc5a901a43bd3bc5a1c9dd0a45f84603df6789467bd53 build.log +19a5e1c7793eb4bd2cd68172703e3a6996966dbc8ba3d6b015f38b6455aa75d8 host-only.log +a1c6a78d7b31faae095a0a2ad84d53e2aac9f6d34621b1c1c947988efcc22087 main.log +90fb388d6494bb76d147f0ff1cccda96c5e01bc64fc0cb650a694e71f26769c5 sim.log +cb916858ce6967d47a19c6b9b7ae7eb4cfbd359416b10eb0aff67ad079dde0d0 spin0.log +2e40f20283bfc71f691e0f8905253104fed2dcd98165f0d732d8a23c283f53fb device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/build.log new file mode 100644 index 000000000..6ee72b1b9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/build.log @@ -0,0 +1 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o build/gpu_cmdlist_test tests/gpu_cmdlist_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/device.txt new file mode 100644 index 000000000..67e0a9568 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T01:14:52Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=fix/457-l2-inval-after-host-write dirty=4 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 67 2 42 105 +end 2026-10-15T01:15:00Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/host-only.log new file mode 100644 index 000000000..ea7cd0e33 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/host-only.log @@ -0,0 +1,8 @@ +codegen axpy: 23 insns, peak 12 gprs, declared 16 +codegen res add|norm: 128 insns, peak 40 gprs, declared 48 +codegen res combine|norm: 264 insns, peak 49 gprs, declared 56 +codegen res add: 45 insns, peak 28 gprs, declared 32 +codegen swiglu: 29 insns, peak 16 gprs, declared 24 +codegen argmax: 165 insns, peak 32 gprs, declared 40 +codegen argmax indexed: 160 insns, peak 40 gprs, declared 48 +host-only: 20 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/main.log new file mode 100644 index 000000000..7d899d78d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/main.log @@ -0,0 +1,11 @@ +L=64: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 3.20 us/launch (wall 3.21, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 2.82 us/launch (wall 2.83, 1 submits); INLINE ok 3.90 us/launch (4 submits) +L=1024: baseline 103.1 us/launch (chip 103.1 us, wall 103.5 us per launch); PCAS ok 2.72 us/launch (wall 2.73, 1 submits); INLINE ok 3.97 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1456.5 us; BARRIER_NONE rc 0 12736 differ 1351.3 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 110.3 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 107.5 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/receipt-main.json new file mode 100644 index 000000000..e8cd1df83 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/receipt-main.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_CMDLIST_V1","reps":20,"spin_us":0,"rows":[{"L":64,"baseline_ns":6607629,"baseline_wall_ns":6630893,"pcas_ok":1,"pcas_ns":205090,"pcas_wall_ns":205586,"pcas_submits":1,"inline_ok":1,"inline_ns":307363,"inline_submits":1,"stamps_span_ns":192704,"stamps_min_ns":2752,"stamps_max_ns":3200,"stamps_chip_ns":205250},{"L":289,"baseline_ns":29831825,"baseline_wall_ns":29936580,"pcas_ok":1,"pcas_ns":816423,"pcas_wall_ns":817672,"pcas_submits":1,"inline_ok":1,"inline_ns":1127946,"inline_submits":4,"stamps_span_ns":870880,"stamps_min_ns":2656,"stamps_max_ns":3264,"stamps_chip_ns":915832},{"L":1024,"baseline_ns":105569571,"baseline_wall_ns":105980227,"pcas_ok":1,"pcas_ns":2787706,"pcas_wall_ns":2793418,"pcas_submits":1,"inline_ok":1,"inline_ns":4070197,"inline_submits":13,"stamps_span_ns":2896544,"stamps_min_ns":2592,"stamps_max_ns":3200,"stamps_chip_ns":2961819}],"skip_control":{"rc":-1,"first_missing":32,"sems_done":63},"no_barrier_control":{"wfi_rc":0,"wfi_diff":0,"wfi_ns":1456542,"none_rc":0,"none_diff":12736,"none_ns":1351324},"glue_tie0":{"rc":0,"chip_ns":110258,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":45508,"argmax_ref":45508},"glue_tie1":{"rc":0,"chip_ns":107473,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":1007,"argmax_ref":1007},"checks":31,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/receipt-spin0.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/receipt-spin0.json new file mode 100644 index 000000000..680449422 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/receipt-spin0.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_CMDLIST_V1","reps":20,"spin_us":0,"rows":[{"L":64,"baseline_ns":6606654,"baseline_wall_ns":6633389,"pcas_ok":1,"pcas_ns":205057,"pcas_wall_ns":205538,"pcas_submits":1,"inline_ok":1,"inline_ns":307378,"inline_submits":1,"stamps_span_ns":199424,"stamps_min_ns":2784,"stamps_max_ns":3232,"stamps_chip_ns":204802},{"L":289,"baseline_ns":29808708,"baseline_wall_ns":29927572,"pcas_ok":1,"pcas_ns":917337,"pcas_wall_ns":918424,"pcas_submits":1,"inline_ok":1,"inline_ns":1127690,"inline_submits":4,"stamps_span_ns":901184,"stamps_min_ns":2720,"stamps_max_ns":3424,"stamps_chip_ns":917464},{"L":1024,"baseline_ns":107107999,"baseline_wall_ns":107766499,"pcas_ok":1,"pcas_ns":2668201,"pcas_wall_ns":2672633,"pcas_submits":1,"inline_ok":1,"inline_ns":3998788,"inline_submits":13,"stamps_span_ns":2755392,"stamps_min_ns":2464,"stamps_max_ns":13120,"stamps_chip_ns":2812058}],"skip_control":{"rc":-1,"first_missing":32,"sems_done":63},"no_barrier_control":{"wfi_rc":0,"wfi_diff":0,"wfi_ns":1790065,"none_rc":0,"none_diff":21376,"none_ns":1652943},"glue_tie0":{"rc":0,"chip_ns":106241,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":45508,"argmax_ref":45508},"glue_tie1":{"rc":0,"chip_ns":103649,"x_identical":1,"y_bad":0,"act_bad":0,"argmax":1007,"argmax_ref":1007},"checks":31,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/sim.log new file mode 100644 index 000000000..25130326e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/sim.log @@ -0,0 +1,15 @@ +sim res mode 5 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 1 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 1 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 1 mutant 1: x DIFFERS, y 2047/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 5 scale 2^64 mutant 1: x identical, y 2047/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 0: x identical, y 0/2048 outside tolerance +sim res mode 6 scale 2^64 mutant 1: x DIFFERS, y 2048/2048 outside tolerance +sim swiglu mutant 0: 0/6144 outside tolerance +sim swiglu mutant 1: 6144/6144 outside tolerance +sim argmax tie 0 mutant 0: index 151625 value 49.9996 (ref 151625) +sim argmax tie 0 mutant 1: index 151625 value 49.9996 (ref 151625) +sim argmax tie 1 mutant 0: index 1007 value 60 (ref 1007) +sim argmax tie 1 mutant 1: index 28784 value 49.9999 (ref 1007) +sim: 39 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/spin0.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/spin0.log new file mode 100644 index 000000000..c65c69bbc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/cmdlist/spin0.log @@ -0,0 +1,12 @@ +L=64: baseline 103.2 us/launch (chip 103.2 us, wall 103.6 us per launch); PCAS ok 3.20 us/launch (wall 3.21, 1 submits); INLINE ok 4.80 us/launch (1 submits) +L=289: baseline 103.1 us/launch (chip 103.1 us, wall 103.6 us per launch); PCAS ok 3.17 us/launch (wall 3.18, 1 submits); INLINE ok 3.90 us/launch (4 submits) +L=1024: baseline 104.6 us/launch (chip 104.6 us, wall 105.2 us per launch); PCAS ok 2.61 us/launch (wall 2.61, 1 submits); INLINE ok 3.91 us/launch (13 submits) +negative control skip_launch=33: rc -1 first_missing 32 sems_done 63/64 x x0+63a +heavy chain (32 x 1M elements): WFI rc 0 0 differ 1790.1 us; BARRIER_NONE rc 0 21376 differ 1652.9 us (informational: grids overlapped without the barrier: the WFI is load-bearing) +glue list tie 0: rc 0, 5 launches in 1 submit(s) 106.2 us chip; x identical, y 0 bad, act 0 bad, argmax 45508 (ref 45508) +glue list tie 1: rc 0, 5 launches in 1 submit(s) 103.6 us chip; x identical, y 0 bad, act 0 bad, argmax 1007 (ref 1007) +chip mutant 1: rc 0, x same, y 2048 bad, argmax 1007 (ref 1007): caught +chip mutant 2: rc 0, x differs, y 2047 bad, argmax 1007 (ref 1007): caught +chip mutant 3: rc 0, x same, y 0 bad, argmax 83730 (ref 1007): caught +chip: 31 checks, 0 failed: PASS +spin-us 0 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached.out new file mode 100644 index 000000000..4e1cd40c8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached.out @@ -0,0 +1,43 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 20 reps ran +ok: A deterministic over 20 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 20 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 20 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 20 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3904.1 us <= chip 3992.0 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 12.4 us qkv x2 146.0 us attn x2 144.6 us o_proj x2 115.5 us res_add x2 9.9 us router x2 49.4 us gate_up x2 289.1 us swiglu x2 6.8 us down x2 174.1 us combine_norm x2 20.3 us lm_head x1 2920.9 us argmax x2 15.2 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 20, 2 layers): A host-glue 13 launches 4993.0 us | C one list 22 launches 3938.7 us (chip 3929.9 us, record 3.7 us) | B per-launch submits 22 launches 5422.3 us (chip sum 5405.8 us) +chip: 13 checks, 0 failed: PASS +GPU_DECODE_GRAPH_CHIP_CACHED: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/SHA256SUMS new file mode 100644 index 000000000..f3f210c3e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/SHA256SUMS @@ -0,0 +1,7 @@ +2196d202e1cb82b203e929bee535db79757a3b91fa71890c13607425a03d3de3 receipt-cached.json +7e4f4ac3efc235011f399b32ea4aae78bb40b65dd155c7ae5f94aad771cae31d build.log +7e72e7ad042df585f05a96d32be8b7289626e838b983414db8ec7bdbac7dbed9 cached.log +48404021ba78c42c25154059e1c0ade4707433c5051df230c720f51db4f98fcc host-only.log +226f4d26cc928f5d9ab8cfdb50c216f1b115ffb34d9de4b7540be4124545d450 device.txt +e7fc66ed904eaa7cb69d81bc5a753a461829c6260f2d8b6e6dab9d12593abad5 worktree.diff +2985f370300ac01949c1b3d9c15ef32339728c28b7cce08de16a52556dfc3853 binaries.sha256 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/binaries.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/binaries.sha256 new file mode 100644 index 000000000..0ff4de815 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/binaries.sha256 @@ -0,0 +1,2 @@ +7c87078f2b57177b054402d3416afff55761bd8f81c8d17b83bc3a9bebd45c94 ./build/gpu_decode_graph_test +8b7c0678b056075242427d846cef5f782ce81a6a7f1077178043aa2d85f64a73 build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/build.log new file mode 100644 index 000000000..64d7b06c9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/build.log @@ -0,0 +1 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o build/gpu_decode_graph_test tests/gpu_decode_graph_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/cached.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/cached.log new file mode 100644 index 000000000..c56282a40 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/cached.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 1 +model built in 1.4 s (layers 2, vocab 151936, pos 300) +ok: A (baseline, host glue) 20 reps ran +ok: A deterministic over 20 reps (token 62700) +A: token 62700 logit 5.820572, runner-up 107672 logit 5.779164 (gap 0.0414) +ok: C (one list per token) 20 reps ran: 22 launches in 1 submission(s) +ok: C deterministic over 20 reps (token 62700) +A vs C: token 62700 vs 62700, logits max |d| 1.19e-06 (scale 6.03, rel 1.98e-07, tol 1e-04), x max rel 1.4e-07, hidden max rel 1.57e-07 +ok: argmax token identical: A 62700, C 62700 +ok: logits A vs C within 1e-04 of max|logit| (max |d| 1.19e-06, scale 6.03) +ok: B (one launch per submission) 20 reps ran: 22 launches in 22 submissions +ok: B bit-identical to C (x, hidden, logits, token) in every rep +ok: negative control: SWIGLU mutant fails the comparison (token 107672 vs 62700, max |d| 1.35 = 0.223 of scale) +ok: negative control: COMBINE mutant fails the comparison (token 62700 vs 62700, max |d| 0.124 = 0.0205 of scale) +ok: C after the mutants bit-identical to the first C +ok: timeline: rc 0, 22 stamps for 22 launches, monotonic 1, span 3904.1 us <= chip 3992.0 us, token and logits unchanged +TIMELINE (2 layers, pos 300): norm x1 12.4 us qkv x2 146.0 us attn x2 144.6 us o_proj x2 115.5 us res_add x2 9.9 us router x2 49.4 us gate_up x2 289.1 us swiglu x2 6.8 us down x2 174.1 us combine_norm x2 20.3 us lm_head x1 2920.9 us argmax x2 15.2 us +ok: timeline off: token rc 0, stamps accessor refuses (-1) +PER TOKEN (median of 20, 2 layers): A host-glue 13 launches 4993.0 us | C one list 22 launches 3938.7 us (chip 3929.9 us, record 3.7 us) | B per-launch submits 22 launches 5422.3 us (chip sum 5405.8 us) +chip: 13 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/device.txt new file mode 100644 index 000000000..10e6ac7f4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T01:14:50Z mode=cached omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=fix/457-l2-inval-after-host-write dirty=4 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 67 2 42 105 +end 2026-10-15T01:14:52Z cached_exit=0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/host-only.log new file mode 100644 index 000000000..c60d68363 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/host-only.log @@ -0,0 +1,21 @@ +dgraph prefetch 0 (red 0) +fp8 knobs: variant 1 barrier 0 (wfi+inval_all) cta_budget 0 shape 0/0/0 cached 0 +ok: RES NORM builds (101 instructions, peak 40 registers) +ok: RES ADD builds (45 instructions, peak 28 registers) +ok: RES COMBINE|NORM builds (264 instructions, peak 49 registers) +ok: SWIGLU builds (29 instructions, peak 16 registers) +ok: ARGMAX identity builds (165 instructions, peak 32 registers) +ok: ARGMAX indexed builds (160 instructions, peak 40 registers) +ok: SWIGLU mutant 1 builds (29 instructions, peak 16 registers) +ok: RES COMBINE|NORM mutant 2 builds (246 instructions, peak 49 registers) +ok: RES ADD|COMBINE refused by codegen +ok: fp8 record without a list: BAD_ARGS +ok: bf16 record without a list: BAD_ARGS +ok: router record without a list: BAD_ARGS +ok: decode attn record without a list: BAD_ARGS +ok: fp8 record with tab_va 0: BAD_ARGS +ok: bf16 record with x_va 0: BAD_ARGS +ok: router record with a NULL router: BAD_ARGS +ok: decode attn record with a NULL cache: BAD_ARGS +ok: graph create with an empty config: BAD_ARGS +host-only: 18 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/receipt-cached.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/receipt-cached.json new file mode 100644 index 000000000..1f677a476 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/receipt-cached.json @@ -0,0 +1 @@ +{"layers":2,"vocab":151936,"pos":300,"reps":20,"red":0,"cached_weights":1,"A":{"token":62700,"runner_up":107672,"gap":0.0414081,"launches":13},"C":{"token":62700,"launches":22,"submits":1},"A_vs_C":{"tok_same":1,"logit_max_abs":1.19209e-06,"logit_scale":6.03418,"x_max_rel":1.39575e-07,"hidden_max_rel":1.56806e-07,"tol_rel":0.0001},"mutant1":{"rc":0,"token":107672,"logit_max_abs":1.34508,"caught":1},"mutant2":{"rc":0,"token":62700,"logit_max_abs":0.123506,"caught":1},"C0_token":62700,"C0_logits_fnv":"77e35a29071d8fa7","timeline":{"launches":22,"span_ns":3904128,"chip_ns":3992005,"per_kind_ns":{"norm":[1,12416],"qkv":[2,145984],"attn":[2,144576],"o_proj":[2,115456],"res_add":[2,9920],"router":[2,49408],"gate_up":[2,289056],"swiglu":[2,6784],"down":[2,174144],"combine_norm":[2,20288],"lm_head":[1,2920896],"argmax":[2,15200]}},"median_ns":{"A_total":4992991,"C_total":3938724,"C_chip":3929876,"C_record":3744,"B_total":5422322,"B_chip":5405810},"B":{"launches":22,"submits":22,"identical":1},"checks":13,"failed":0,"verdict":"PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/worktree.diff b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/worktree.diff new file mode 100644 index 000000000..6b277f907 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/decode_graph_cached/worktree.diff @@ -0,0 +1,107 @@ +diff --git a/Makefile b/Makefile +index 6a406f72..455c492b 100644 +--- a/Makefile ++++ b/Makefile +@@ -2462,6 +2462,12 @@ test-gpu-fp8: $(GPU_FP8_TEST) + ./$(GPU_FP8_TEST) --host-only + ./$(GPU_FP8_TEST) --sim + ++# omega #457 (2026-10-15): host rewrite of a GPU-cached buffer must be visible to the next launch. Chip only; the gate ++# is tools/run_gpu_l2_stale_chip.sh. ++GPU_L2_STALE_TEST = $(OUT_DIR)/gpu_l2_stale_test ++$(GPU_L2_STALE_TEST): tests/gpu_l2_stale_test.c src/omega_gpu_fp8_api.h src/omega_gpu_session.h $(OUT_DIR)/libomega_gpu.a ++ $(CC) $(CFLAGS) -ffp-contract=off -o $@ tests/gpu_l2_stale_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm ++ + # OWN-30B cut 8 (2026-10-13): one-launch decode attention (omega_gpu_decode_attn_api.h). test-gpu-decode-attn is + # host-only + simulator; the chip gate is tools/run_gpu_decode_attn_chip.sh. + .PHONY: test-gpu-decode-attn +diff --git a/src/omega_gpu_platform_linux.c b/src/omega_gpu_platform_linux.c +index dc02aab4..620b7137 100644 +--- a/src/omega_gpu_platform_linux.c ++++ b/src/omega_gpu_platform_linux.c +@@ -31,6 +31,8 @@ typedef struct { + OmegaGpuHandleTable t; + NvrmMem mem[OMEGA_GPU_HANDLE_SLOTS]; + uint32_t rights[OMEGA_GPU_HANDLE_SLOTS]; ++ uint8_t gpu_cached[OMEGA_GPU_HANDLE_SLOTS]; /* allocated GPU-cached (nvrm_alloc), omega #457 */ ++ int l2_inval_pending; /* a host sync into a GPU-cached buffer since the last submission, omega #457 */ + M16NativeContext m16; + OmegaGpuDeviceHandle dev; /* generation 0 = closed */ + OmegaGpuQueueHandle queue; +@@ -157,6 +159,7 @@ static int ref_device_close(void *ctx, OmegaGpuDeviceHandle dev) { + (void)omega_gpu_handles_close(&r->t, i, r->t.generation[i], r->t.kind[i]); + memset(&r->mem[i], 0, sizeof r->mem[i]); + r->rights[i] = 0; ++ r->gpu_cached[i] = 0; + } + (void)omega_gpu_handles_close(&r->t, dev.index, dev.generation, OMEGA_GPU_HANDLE_DEVICE); + memset(&r->dev, 0, sizeof r->dev); +@@ -198,6 +201,7 @@ static int ref_dma_alloc(void *ctx, OmegaGpuDeviceHandle dev, const OmegaGpuBuff + } + r->mem[idx] = m; + r->rights[idx] = desc->rights; ++ r->gpu_cached[idx] = (uint8_t)cached; + out->index = idx; out->generation = gen; + cpu->ptr = m.cpu; cpu->len = (size_t)m.size; + gpu->va = m.va; +@@ -218,6 +222,7 @@ static int ref_dma_free(void *ctx, OmegaGpuBufferHandle b) { + (void)omega_gpu_handles_close(&r->t, b.index, b.generation, kind); + memset(&r->mem[b.index], 0, sizeof r->mem[b.index]); + r->rights[b.index] = 0; ++ r->gpu_cached[b.index] = 0; + ref_unlock(r); + return OMEGA_GPU_PLAT_OK; + } +@@ -230,18 +235,22 @@ static void barrier(void) { + #endif + } + +-static int ref_sync(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len, const char *stage) { ++static int ref_sync(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len, const char *stage, int to_gpu) { + LinuxRef *r = ctx; + ref_lock(r); + int rc = buf_ok(r, b, NULL); + if (rc == OMEGA_GPU_PLAT_OK) rc = range_ok(r, b, off, len); + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, stage); ++ /* omega #457 (chip, 2026-10-15): after the host rewrites a GPU-cached buffer the GPU already read, every later launch ++ * read the old bytes from L2 (nvos.h:1117 "For system memory this will not be coherent with direct CPU mappings"). ++ * The next submission therefore starts with L2_SYSMEM_NCOH_INVALIDATE (ref_queue_submit). */ ++ else if (to_gpu && r->gpu_cached[b.index]) r->l2_inval_pending = 1; + ref_unlock(r); + if (rc == OMEGA_GPU_PLAT_OK) barrier(); /* uncached system memory: a full barrier is the whole sync */ + return rc; + } +-static int ref_sync_to_gpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_cpu_to_gpu"); } +-static int ref_sync_to_cpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_gpu_to_cpu"); } ++static int ref_sync_to_gpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_cpu_to_gpu", 1); } ++static int ref_sync_to_cpu(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t len) { return ref_sync(ctx, b, off, len, "sync_gpu_to_cpu", 0); } + + static int ref_poll_word(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint32_t expected, uint64_t timeout_ms, uint32_t *observed) { + LinuxRef *r = ctx; +@@ -297,8 +306,24 @@ static int ref_queue_submit(void *ctx, OmegaGpuQueueHandle q, const uint32_t *wo + ref_lock(r); + int rc = queue_ok(r, q); + if (rc == OMEGA_GPU_PLAT_OK && (!words || nwords == 0u)) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; +- if (rc == OMEGA_GPU_PLAT_OK && (uint64_t)nwords * 4u > r->m16.pb_mem.size) rc = OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; +- if (rc == OMEGA_GPU_PLAT_OK && m16_native_submit_methods(&r->m16, words, nwords) != 0) rc = OMEGA_GPU_PLAT_REFUSED_DEVICE; ++ /* omega #457: a host sync into a GPU-cached buffer is pending, so this submission starts with ++ * MEM_OP_A..D = 0, 0, 0, OPERATION L2_SYSMEM_NCOH_INVALIDATE 0x11 in D bits 31:27 (clc96f.h:30-73), the same ++ * method form as the C3 tail's L2_FLUSH_DIRTY. No dirty line is dropped: every earlier submission ended with ++ * L2_FLUSH_DIRTY and the host waited for it. */ ++ const uint32_t pre = r->l2_inval_pending ? 5u : 0u; ++ if (rc == OMEGA_GPU_PLAT_OK && ((uint64_t)nwords + pre) * 4u > r->m16.pb_mem.size) rc = OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; ++ uint32_t *buf = NULL; ++ if (rc == OMEGA_GPU_PLAT_OK && pre) { ++ buf = malloc(((size_t)nwords + pre) * 4u); ++ if (!buf) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; ++ else { ++ buf[0] = (2u << 28) | (4u << 16) | (0x0028u >> 2); buf[1] = 0; buf[2] = 0; buf[3] = 0; buf[4] = 0x11u << 27; ++ memcpy(buf + pre, words, (size_t)nwords * 4u); ++ } ++ } ++ if (rc == OMEGA_GPU_PLAT_OK && m16_native_submit_methods(&r->m16, buf ? buf : words, nwords + pre) != 0) rc = OMEGA_GPU_PLAT_REFUSED_DEVICE; ++ if (rc == OMEGA_GPU_PLAT_OK && pre) r->l2_inval_pending = 0; ++ free(buf); + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, "submit_methods"); + ref_unlock(r); + return rc; diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8.out new file mode 100644 index 000000000..1a8221d1a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8.out @@ -0,0 +1,164 @@ +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 180 kernels built, largest 884 IR instructions, peak 88 GPRs +nvdisasm k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_2685831.sass) +nvdisasm k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_2685831.sass) +nvdisasm k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_2685831.sass) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +nvdisasm v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_2685831.sass) +gpu_fp8_api_test: 1482 checks, 0 failed: PASS +sim one-hot conversion: 256/256 rows exact +sim k256 lb8 r1 w1 rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r1 w1 deep rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r2 w2 rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 deep rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 deep mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 deep mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k768 lb8 r4 w8 (down shape width) rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r4 w8 (down shape width) deep rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r8 rc=0 worst_rel=3.023e-08 bad=0 (9 ms) +sim k2048 lb16 r8 w8 (gate shape width) rc=0 worst_rel=2.818e-08 bad=0 (33 ms) +sim k2048 lb16 r8 w8 (gate shape width) mutant 1: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 2: caught (rc=0 bad=383 worst_rel=1.578e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 4: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r1 rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k2048 lb16 r1 deep rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) deep rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim 4 experts shared x (gate+up) rc=0 worst_rel=2.646e-08 bad=0 (89 ms) +sim 4 experts shared x (gate+up) mutant 1: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 4 experts shared x (gate+up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.503e-01) +sim 4 experts shared x (gate+up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.976e-01) +sim 4 experts shared x (gate+up) mutant 4: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) deep mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 2 groups per-group x rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim 2 groups per-group x deep rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim k768 w7: partial staging round (deep) rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim k768 w7: partial staging round (deep) deep rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim battery: worst relative error 7.101e-08 over 11 points, 12579824 warp issues +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) rc=0 worst_rel=2.463e-08 bad=0 identical_to_v1=1 (26 ms) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 1: caught (rc=0 bad=256 worst_rel=2.218e-01, identity check differs=1) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 2: caught (rc=0 bad=256 worst_rel=1.690e-01, identity check differs=1) +sim v2 k2048 lb16 r2 w8 (128 B per lane) rc=0 worst_rel=2.578e-08 bad=0 identical_to_v1=1 (24 ms) +sim v2 k4096 lb16 r1 w8 (o_proj width) rc=0 worst_rel=1.878e-08 bad=0 identical_to_v1=1 (51 ms) +sim v2 k768 lb8 r1 w8 (down width) rc=0 worst_rel=2.677e-08 bad=0 identical_to_v1=1 (11 ms) +sim v2 k768 lb8 r4 w8 rc=0 worst_rel=3.253e-08 bad=0 identical_to_v1=1 (10 ms) +sim v2 k768 w7: partial staging round rc=0 worst_rel=3.262e-08 bad=0 identical_to_v1=1 (23 ms) +sim v2 4 experts shared x (gate_up) rc=0 worst_rel=2.472e-08 bad=0 identical_to_v1=1 (104 ms) +sim v2 4 experts shared x (gate_up) mutant 1: caught (rc=0 bad=1022 worst_rel=2.155e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.745e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.980e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.875e-08 bad=0 identical_to_v1=1 (83 ms) +sim v2 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2048 worst_rel=3.773e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=5.105e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=1.327e+00, identity check differs=1) +sim v2 2 groups per-group x, r8 k256 rc=0 worst_rel=5.595e-08 bad=0 identical_to_v1=1 (4 ms) +sim v2 k512 w3 (odd warps, tail row groups) rc=0 worst_rel=4.233e-08 bad=0 identical_to_v1=1 (7 ms) +sim v2 battery: 10/10 points bit-identical to variant 1 +gpu_fp8_api_test: 70 checks, 0 failed: PASS +PASS timing 1x2048x8192 upload_ms=239.7 ok_calls=100 median_ms=0.412 p90_ms=0.413 min_ms=0.368 max_ms=0.943 chip_ns_mean=409572 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=106.9 ok_calls=100 median_ms=0.719 p90_ms=0.820 min_ms=0.715 max_ms=1.246 chip_ns_mean=757070 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=17.0us (1.9 GB/s) call_med=23.0us (1.4 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=21.9us (9.0 GB/s) call_med=31.4us (6.3 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=29.2us (27.0 GB/s) call_med=44.9us (17.5 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=39.8us (39.5 GB/s) call_med=55.6us (28.3 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.5ms chip_med=40.6us (77.4 GB/s) call_med=57.4us (54.8 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=46.8us (33.6 GB/s) call_med=59.4us (26.5 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=62.4us (134.6 GB/s) call_med=69.1us (121.4 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=23.4us (44.8 GB/s) call_med=39.3us (26.7 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.6ms chip_med=69.1us (121.4 GB/s) call_med=74.8us (112.1 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.5ms chip_med=67.6us (155.2 GB/s) call_med=74.9us (140.0 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=10.9ms chip_med=146.6us (171.7 GB/s) call_med=155.0us (162.4 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.4ms chip_med=90.4us (139.2 GB/s) call_med=102.8us (122.4 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=21.7ms chip_med=147.6us (170.5 GB/s) call_med=156.1us (161.3 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.5ms chip_med=190.1us (176.6 GB/s) call_med=201.2us (166.8 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=15.5us (2.1 GB/s) call_med=21.7us (1.5 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.2ms chip_med=22.0us (8.9 GB/s) call_med=31.4us (6.3 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=27.3us (28.8 GB/s) call_med=43.0us (18.3 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=45.0us (35.0 GB/s) call_med=61.2us (25.7 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.4ms chip_med=52.7us (59.8 GB/s) call_med=70.1us (44.9 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=47.6us (33.0 GB/s) call_med=60.6us (26.0 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.5ms chip_med=66.2us (126.7 GB/s) call_med=73.1us (114.9 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.5ms chip_med=35.8us (29.3 GB/s) call_med=52.0us (20.2 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.5ms chip_med=82.9us (101.3 GB/s) call_med=87.8us (95.5 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.5ms chip_med=71.0us (147.7 GB/s) call_med=78.0us (134.5 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=10.9ms chip_med=120.4us (209.1 GB/s) call_med=129.3us (194.6 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.4ms chip_med=94.2us (133.6 GB/s) call_med=106.2us (118.5 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=21.5ms chip_med=131.4us (191.5 GB/s) call_med=140.0us (179.8 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.4ms chip_med=161.0us (208.5 GB/s) call_med=172.1us (195.0 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +no-evict exit 0 (informational) +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=0 bytes=32776 upload=0.1ms chip_med=15.7us (2.1 GB/s) call_med=16.8us (1.9 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=0 bytes=196656 upload=0.3ms chip_med=24.4us (8.1 GB/s) call_med=25.8us (7.6 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=0 bytes=786624 upload=0.5ms chip_med=34.0us (23.1 GB/s) call_med=36.1us (21.8 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=40.6us (38.7 GB/s) call_med=43.4us (36.3 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=0 bytes=3146496 upload=1.5ms chip_med=41.8us (75.3 GB/s) call_med=46.0us (68.4 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=35.3us (44.6 GB/s) call_med=40.4us (38.9 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.6ms chip_med=61.2us (137.0 GB/s) call_med=66.6us (125.9 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=0 bytes=1048832 upload=0.6ms chip_med=38.8us (27.0 GB/s) call_med=41.2us (25.5 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.6ms chip_med=64.8us (129.4 GB/s) call_med=70.2us (119.5 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.6ms chip_med=71.3us (147.0 GB/s) call_med=78.0us (134.5 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.0ms chip_med=145.4us (173.1 GB/s) call_med=153.9us (163.6 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.4ms chip_med=92.2us (136.5 GB/s) call_med=104.1us (120.9 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=21.6ms chip_med=148.5us (169.5 GB/s) call_med=157.1us (160.2 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.3ms chip_med=187.1us (179.4 GB/s) call_med=198.4us (169.1 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +depth 0 exit 0 (informational) +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=192x8 lb=16 rows=1 warps=8 depth=0 bytes=25171968 upload=11.0ms chip_med=150.9us (166.8 GB/s) call_med=159.6us (157.7 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=256x8 lb=8 rows=1 warps=8 depth=0 bytes=12585984 upload=5.5ms chip_med=179.5us (70.1 GB/s) call_med=191.2us (65.8 GB/s) reps=50 +gpu_fp8_api_test: 7 checks, 0 failed: PASS +grouped-old exit 0 (control) +GPU_FP8_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/SHA256SUMS new file mode 100644 index 000000000..786daf87d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/SHA256SUMS @@ -0,0 +1,14 @@ +ec5cc7fdb271705be442d85d50e9a5b2d6fa7c92ce00fff5eddd1db7fe8264cb receipt-baseline-matmul.json +430a91af97fa5514ed73ebd8ab5cca1e6567cb43e25db7fa8a65fd3c6ef0c1bc receipt-depth0.json +a6b4e1f8510c4fca58d9e34ba22b111796a1121cdaf9d120d6fd533c2a828f12 receipt-grouped-old.json +477dfe611bde58293f74de56a50789583e554d5b1486b71dc101124c926bc86f receipt-main.json +84b97340a9c3b358f175163fe96e8a1e4ae199e39c7a76bd46d76ce280f69e67 receipt-noevict.json +12641abdc6478ebeb7b3b4d3be9f351d2749f1d9d352bd7764827cb2f5bfcbaf baseline-matmul.log +3bebff182d270e3c7408da472646424164128b7a01722d58a71bb424a99ce194 build.log +72d5065a1f3c1034038b849d40ae9a37b87f1790ce5c19314c07ba21afcef46e depth0.log +de0e3f30509f0491e9a2ad8e22005f758a8e4e2723906cd0986f0c3a61b53945 grouped-old.log +caeab5a3cdebfa0910e2a449141b573071298a47743f9a862efba72b89d8a61e host-only.log +f1c664cb187c634d474a1a648c73cec7c6db50ddd9d364a40e5bc45ddc3cbec9 main.log +fb56057322fa8530da8477186ea04b8a1fb8cc196f1922426d1977bf2161ab21 noevict.log +a8618d6c326a481c2801fcfa1dfc1ded3a49dd94128a4d732137079d4ae2d687 sim.log +82bd94a62cd4c240ee6911b0e6ab020f12dd3ce386a532e1012fecc927d94726 device.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/baseline-matmul.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/baseline-matmul.log new file mode 100644 index 000000000..806a5eea9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/baseline-matmul.log @@ -0,0 +1,4 @@ +PASS timing 1x2048x8192 upload_ms=239.7 ok_calls=100 median_ms=0.412 p90_ms=0.413 min_ms=0.368 max_ms=0.943 chip_ns_mean=409572 grid=64x1 e2e_first=2.36603e-07 e2e_last=2.36603e-07 repeat_mismatch=0 +PASS timing 1x8192x2048 upload_ms=106.9 ok_calls=100 median_ms=0.719 p90_ms=0.820 min_ms=0.715 max_ms=1.246 chip_ns_mean=757070 grid=64x1 e2e_first=5.21488e-07 e2e_last=5.21488e-07 repeat_mismatch=0 +PASS: 4 checks, 0 failed +baseline exit 0 (recorded) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/build.log new file mode 100644 index 000000000..55337cc2e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/build.log @@ -0,0 +1,2 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o build/gpu_fp8_api_test tests/gpu_fp8_api_test.c build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -o build/gpu_matmul_api_test tests/gpu_matmul_api_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/depth0.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/depth0.log new file mode 100644 index 000000000..1c5b2bb3f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/depth0.log @@ -0,0 +1,24 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=0 bytes=32776 upload=0.1ms chip_med=15.7us (2.1 GB/s) call_med=16.8us (1.9 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=0 bytes=196656 upload=0.3ms chip_med=24.4us (8.1 GB/s) call_med=25.8us (7.6 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=0 bytes=786624 upload=0.5ms chip_med=34.0us (23.1 GB/s) call_med=36.1us (21.8 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=40.6us (38.7 GB/s) call_med=43.4us (36.3 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=0 bytes=3146496 upload=1.5ms chip_med=41.8us (75.3 GB/s) call_med=46.0us (68.4 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=0 bytes=1573248 upload=0.8ms chip_med=35.3us (44.6 GB/s) call_med=40.4us (38.9 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.6ms chip_med=61.2us (137.0 GB/s) call_med=66.6us (125.9 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=0 bytes=1048832 upload=0.6ms chip_med=38.8us (27.0 GB/s) call_med=41.2us (25.5 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.6ms chip_med=64.8us (129.4 GB/s) call_med=70.2us (119.5 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.6ms chip_med=71.3us (147.0 GB/s) call_med=78.0us (134.5 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=11.0ms chip_med=145.4us (173.1 GB/s) call_med=153.9us (163.6 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.4ms chip_med=92.2us (136.5 GB/s) call_med=104.1us (120.9 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=21.6ms chip_med=148.5us (169.5 GB/s) call_med=157.1us (160.2 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.3ms chip_med=187.1us (179.4 GB/s) call_med=198.4us (169.1 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +depth 0 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/device.txt new file mode 100644 index 000000000..59603e848 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T01:14:38Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=fix/457-l2-inval-after-host-write dirty=4 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 14 68 2 42 107 +end 2026-10-15T01:14:50Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/grouped-old.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/grouped-old.log new file mode 100644 index 000000000..802de0ef9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/grouped-old.log @@ -0,0 +1,9 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=192x8 lb=16 rows=1 warps=8 depth=0 bytes=25171968 upload=11.0ms chip_med=150.9us (166.8 GB/s) call_med=159.6us (157.7 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=256x8 lb=8 rows=1 warps=8 depth=0 bytes=12585984 upload=5.5ms chip_med=179.5us (70.1 GB/s) call_med=191.2us (65.8 GB/s) reps=50 +gpu_fp8_api_test: 7 checks, 0 failed: PASS +grouped-old exit 0 (control) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/host-only.log new file mode 100644 index 000000000..91580b2e0 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/host-only.log @@ -0,0 +1,17 @@ +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 180 kernels built, largest 884 IR instructions, peak 88 GPRs +nvdisasm k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_2685831.sass) +nvdisasm k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_2685831.sass) +nvdisasm k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_2685831.sass) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +nvdisasm v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_2685831.sass) +gpu_fp8_api_test: 1482 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/main.log new file mode 100644 index 000000000..521250d5b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/main.log @@ -0,0 +1,23 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=17.0us (1.9 GB/s) call_med=23.0us (1.4 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.3ms chip_med=21.9us (9.0 GB/s) call_med=31.4us (6.3 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=29.2us (27.0 GB/s) call_med=44.9us (17.5 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=39.8us (39.5 GB/s) call_med=55.6us (28.3 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.5ms chip_med=40.6us (77.4 GB/s) call_med=57.4us (54.8 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=46.8us (33.6 GB/s) call_med=59.4us (26.5 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.7ms chip_med=62.4us (134.6 GB/s) call_med=69.1us (121.4 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.6ms chip_med=23.4us (44.8 GB/s) call_med=39.3us (26.7 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.6ms chip_med=69.1us (121.4 GB/s) call_med=74.8us (112.1 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.5ms chip_med=67.6us (155.2 GB/s) call_med=74.9us (140.0 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=10.9ms chip_med=146.6us (171.7 GB/s) call_med=155.0us (162.4 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.4ms chip_med=90.4us (139.2 GB/s) call_med=102.8us (122.4 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=21.7ms chip_med=147.6us (170.5 GB/s) call_med=156.1us (161.3 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.5ms chip_med=190.1us (176.6 GB/s) call_med=201.2us (166.8 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/noevict.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/noevict.log new file mode 100644 index 000000000..fe1dfad04 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/noevict.log @@ -0,0 +1,24 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip k256 n128 variant=1 rc=OK bad=0 worst_rel=3.713e-08 grid=16x1 lb=8 rows=1 warps=8 depth=1 bytes=32776 upload=0.1ms chip_med=15.5us (2.1 GB/s) call_med=21.7us (1.5 GB/s) reps=50 +chip k768 n256 variant=1 rc=OK bad=0 worst_rel=2.681e-08 grid=32x1 lb=8 rows=1 warps=8 depth=3 bytes=196656 upload=0.2ms chip_med=22.0us (8.9 GB/s) call_med=31.4us (6.3 GB/s) reps=50 +chip k2048 n384 variant=1 rc=OK bad=0 worst_rel=2.689e-08 grid=48x1 lb=16 rows=1 warps=8 depth=4 bytes=786624 upload=0.5ms chip_med=27.3us (28.8 GB/s) call_med=43.0us (18.3 GB/s) reps=50 +chip gate 768x2048 variant=1 rc=OK bad=0 worst_rel=3.011e-08 grid=96x1 lb=16 rows=1 warps=8 depth=4 bytes=1573248 upload=0.8ms chip_med=45.0us (35.0 GB/s) call_med=61.2us (25.7 GB/s) reps=50 +chip gate+up 1536x2048 variant=1 rc=OK bad=0 worst_rel=2.434e-08 grid=192x1 lb=16 rows=1 warps=8 depth=4 bytes=3146496 upload=1.4ms chip_med=52.7us (59.8 GB/s) call_med=70.1us (44.9 GB/s) reps=50 +chip gate+up 1536x2048 mutant 1: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip gate+up 1536x2048 mutant 2: caught (rc=OK bad=1535 worst_rel=1.913e-01) +chip gate+up 1536x2048 mutant 4: caught (rc=OK bad=1536 worst_rel=2.507e-01) +chip down 2048x768 variant=1 rc=OK bad=0 worst_rel=4.271e-08 grid=256x1 lb=8 rows=1 warps=8 depth=3 bytes=1573248 upload=0.8ms chip_med=47.6us (33.0 GB/s) call_med=60.6us (26.0 GB/s) reps=50 +chip q_proj 4096x2048 variant=1 rc=OK bad=0 worst_rel=2.705e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.5ms chip_med=66.2us (126.7 GB/s) call_med=73.1us (114.9 GB/s) reps=50 +chip k_proj 512x2048 variant=1 rc=OK bad=0 worst_rel=2.309e-08 grid=64x1 lb=16 rows=1 warps=8 depth=4 bytes=1048832 upload=0.5ms chip_med=35.8us (29.3 GB/s) call_med=52.0us (20.2 GB/s) reps=50 +chip o_proj 2048x4096 variant=1 rc=OK bad=0 worst_rel=2.168e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=8390656 upload=3.5ms chip_med=82.9us (101.3 GB/s) call_med=87.8us (95.5 GB/s) reps=50 +chip qkv fused 5120x2048 variant=1 rc=OK bad=0 worst_rel=3.281e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=10488320 upload=4.5ms chip_med=71.0us (147.7 GB/s) call_med=78.0us (134.5 GB/s) reps=50 +chip 8 experts gate+up shared x variant=1 rc=OK bad=0 worst_rel=3.010e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=10.9ms chip_med=120.4us (209.1 GB/s) call_med=129.3us (194.6 GB/s) reps=50 +chip 8 experts gate+up shared x mutant 1: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts gate+up shared x mutant 2: caught (rc=OK bad=12287 worst_rel=2.790e-01) +chip 8 experts gate+up shared x mutant 3: caught (rc=OK bad=12288 worst_rel=4.290e-01) +chip 8 experts gate+up shared x mutant 4: caught (rc=OK bad=12288 worst_rel=2.601e-01) +chip 8 experts down per-group x variant=1 rc=OK bad=0 worst_rel=4.885e-08 grid=6x8 lb=8 rows=1 warps=32 depth=0 bytes=12585984 upload=5.4ms chip_med=94.2us (133.6 GB/s) call_med=106.2us (118.5 GB/s) reps=50 +chip 8 of 16 experts gate+up variant=1 rc=OK bad=0 worst_rel=3.255e-08 grid=6x8 lb=16 rows=1 warps=32 depth=0 bytes=25171968 upload=21.5ms chip_med=131.4us (191.5 GB/s) call_med=140.0us (179.8 GB/s) reps=50 +chip large 16384x2048 variant=1 rc=OK bad=0 worst_rel=3.250e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=33562624 upload=14.4ms chip_med=161.0us (208.5 GB/s) call_med=172.1us (195.0 GB/s) reps=50 +gpu_fp8_api_test: 22 checks, 0 failed: PASS +no-evict exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-baseline-matmul.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-baseline-matmul.json new file mode 100644 index 000000000..926c5405d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-baseline-matmul.json @@ -0,0 +1 @@ +{"schema":"OMEGA_GPU_MATMUL_API_TIMING_V1","cta_budget":64,"spin_us":0,"calls":100,"shapes":[{"m":1,"k":2048,"n":8192,"pass":true,"upload_ms":239.736,"ok_calls":100,"median_ms":0.4116,"p90_ms":0.4131,"min_ms":0.3677,"max_ms":0.9428,"chip_ns_mean":409572,"grid_x":64,"grid_y":1,"e2e_first":2.36603e-07,"e2e_last":2.36603e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0},{"m":1,"k":8192,"n":2048,"pass":true,"upload_ms":106.911,"ok_calls":100,"median_ms":0.7189,"p90_ms":0.8205,"min_ms":0.7149,"max_ms":1.2462,"chip_ns_mean":757070,"grid_x":64,"grid_y":1,"e2e_first":5.21488e-07,"e2e_last":5.21488e-07,"e2e_bad_first":0,"e2e_bad_last":0,"repeat_mismatch":0}],"blocked":false,"checks":4,"failed":0,"verdict":"OMEGA_GPU_MATMUL_TIMING_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-depth0.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-depth0.json new file mode 100644 index 000000000..d675a9f4f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-depth0.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":1,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":32776,"upload_ms":0.10,"chip_median_ns":15744,"gbps_chip":2.08,"call_median_ns":16832,"gbps_call":1.95,"reps":50,"marker":1145324612,"evict":1},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":1,"grid_x":32,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":196656,"upload_ms":0.33,"chip_median_ns":24352,"gbps_chip":8.08,"call_median_ns":25792,"gbps_call":7.62,"reps":50,"marker":1145324612,"evict":1},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":1,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":786624,"upload_ms":0.50,"chip_median_ns":34049,"gbps_chip":23.10,"call_median_ns":36128,"gbps_call":21.77,"reps":50,"marker":1145324612,"evict":1},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":1,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":1573248,"upload_ms":0.82,"chip_median_ns":40624,"gbps_chip":38.73,"call_median_ns":43376,"gbps_call":36.27,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":3146496,"upload_ms":1.50,"chip_median_ns":41809,"gbps_chip":75.26,"call_median_ns":46016,"gbps_call":68.38,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":1573248,"upload_ms":0.80,"chip_median_ns":35296,"gbps_chip":44.57,"call_median_ns":40432,"gbps_call":38.91,"reps":50,"marker":1145324612,"evict":1},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.59,"chip_median_ns":61233,"gbps_chip":137.03,"call_median_ns":66625,"gbps_call":125.94,"reps":50,"marker":1145324612,"evict":1},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":1,"grid_x":64,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":1048832,"upload_ms":0.61,"chip_median_ns":38832,"gbps_chip":27.01,"call_median_ns":41184,"gbps_call":25.47,"reps":50,"marker":1145324612,"evict":1},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.56,"chip_median_ns":64848,"gbps_chip":129.39,"call_median_ns":70224,"gbps_call":119.48,"reps":50,"marker":1145324612,"evict":1},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":10488320,"upload_ms":4.56,"chip_median_ns":71344,"gbps_chip":147.01,"call_median_ns":78001,"gbps_call":134.46,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":11.05,"chip_median_ns":145409,"gbps_chip":173.11,"call_median_ns":153857,"gbps_call":163.61,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":12585984,"upload_ms":5.40,"chip_median_ns":92209,"gbps_chip":136.49,"call_median_ns":104097,"gbps_call":120.91,"reps":50,"marker":1145324612,"evict":1},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":21.57,"chip_median_ns":148497,"gbps_chip":169.51,"call_median_ns":157137,"gbps_call":160.19,"reps":50,"marker":1145324612,"evict":1},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":33562624,"upload_ms":14.34,"chip_median_ns":187122,"gbps_chip":179.36,"call_median_ns":198434,"gbps_call":169.14,"reps":50,"marker":1145324612,"evict":1}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-grouped-old.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-grouped-old.json new file mode 100644 index 000000000..2d000e029 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-grouped-old.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":25171968,"upload_ms":11.01,"chip_median_ns":150913,"gbps_chip":166.80,"call_median_ns":159617,"gbps_call":157.70,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":12585984,"upload_ms":5.45,"chip_median_ns":179538,"gbps_chip":70.10,"call_median_ns":191250,"gbps_call":65.81,"reps":50,"marker":1145324612,"evict":1}],"checks":7,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-main.json new file mode 100644 index 000000000..270926687 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-main.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":1,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":1,"bytes":32776,"upload_ms":0.10,"chip_median_ns":17008,"gbps_chip":1.93,"call_median_ns":23024,"gbps_call":1.42,"reps":50,"marker":1145324612,"evict":1},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":1,"grid_x":32,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":196656,"upload_ms":0.32,"chip_median_ns":21904,"gbps_chip":8.98,"call_median_ns":31392,"gbps_call":6.26,"reps":50,"marker":1145324612,"evict":1},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":1,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":786624,"upload_ms":0.51,"chip_median_ns":29168,"gbps_chip":26.97,"call_median_ns":44896,"gbps_call":17.52,"reps":50,"marker":1145324612,"evict":1},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":1,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1573248,"upload_ms":0.81,"chip_median_ns":39809,"gbps_chip":39.52,"call_median_ns":55600,"gbps_call":28.30,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":3146496,"upload_ms":1.47,"chip_median_ns":40641,"gbps_chip":77.42,"call_median_ns":57377,"gbps_call":54.84,"reps":50,"marker":1145324612,"evict":1},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":1573248,"upload_ms":0.79,"chip_median_ns":46801,"gbps_chip":33.62,"call_median_ns":59361,"gbps_call":26.50,"reps":50,"marker":1145324612,"evict":1},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.69,"chip_median_ns":62353,"gbps_chip":134.57,"call_median_ns":69105,"gbps_call":121.42,"reps":50,"marker":1145324612,"evict":1},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":1,"grid_x":64,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1048832,"upload_ms":0.61,"chip_median_ns":23392,"gbps_chip":44.84,"call_median_ns":39329,"gbps_call":26.67,"reps":50,"marker":1145324612,"evict":1},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.56,"chip_median_ns":69137,"gbps_chip":121.36,"call_median_ns":74848,"gbps_call":112.10,"reps":50,"marker":1145324612,"evict":1},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":10488320,"upload_ms":4.53,"chip_median_ns":67585,"gbps_chip":155.19,"call_median_ns":74913,"gbps_call":140.01,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":10.85,"chip_median_ns":146594,"gbps_chip":171.71,"call_median_ns":155010,"gbps_call":162.39,"reps":50,"marker":1145324612,"evict":1},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":12585984,"upload_ms":5.43,"chip_median_ns":90417,"gbps_chip":139.20,"call_median_ns":102833,"gbps_call":122.39,"reps":50,"marker":1145324612,"evict":1},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":21.68,"chip_median_ns":147601,"gbps_chip":170.54,"call_median_ns":156065,"gbps_call":161.29,"reps":50,"marker":1145324612,"evict":1},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":33562624,"upload_ms":14.46,"chip_median_ns":190082,"gbps_chip":176.57,"call_median_ns":201233,"gbps_call":166.78,"reps":50,"marker":1145324612,"evict":1}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-noevict.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-noevict.json new file mode 100644 index 000000000..ac962b907 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/receipt-noevict.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"k256 n128","experts":1,"n":128,"k":256,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.713e-08,"second_call_identical":1,"variant":1,"grid_x":16,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":1,"bytes":32776,"upload_ms":0.10,"chip_median_ns":15537,"gbps_chip":2.11,"call_median_ns":21696,"gbps_call":1.51,"reps":50,"marker":1145324612,"evict":0},{"name":"k768 n256","experts":1,"n":256,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.681e-08,"second_call_identical":1,"variant":1,"grid_x":32,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":196656,"upload_ms":0.25,"chip_median_ns":22033,"gbps_chip":8.93,"call_median_ns":31424,"gbps_call":6.26,"reps":50,"marker":1145324612,"evict":0},{"name":"k2048 n384","experts":1,"n":384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.689e-08,"second_call_identical":1,"variant":1,"grid_x":48,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":786624,"upload_ms":0.47,"chip_median_ns":27280,"gbps_chip":28.84,"call_median_ns":43025,"gbps_call":18.28,"reps":50,"marker":1145324612,"evict":0},{"name":"gate 768x2048","experts":1,"n":768,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.011e-08,"second_call_identical":1,"variant":1,"grid_x":96,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1573248,"upload_ms":0.77,"chip_median_ns":44960,"gbps_chip":34.99,"call_median_ns":61233,"gbps_call":25.69,"reps":50,"marker":1145324612,"evict":0},{"name":"gate+up 1536x2048","experts":1,"n":1536,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.434e-08,"second_call_identical":1,"variant":1,"grid_x":192,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":3146496,"upload_ms":1.44,"chip_median_ns":52656,"gbps_chip":59.76,"call_median_ns":70144,"gbps_call":44.86,"reps":50,"marker":1145324612,"evict":0},{"name":"gate+up 1536x2048 mutant 1","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"gate+up 1536x2048 mutant 2","caught":1,"rc":"OK","bad":1535,"worst_rel":1.913e-01},{"name":"gate+up 1536x2048 mutant 4","caught":1,"rc":"OK","bad":1536,"worst_rel":2.507e-01},{"name":"down 2048x768","experts":1,"n":2048,"k":768,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":4.271e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":8,"depth":3,"bytes":1573248,"upload_ms":0.76,"chip_median_ns":47616,"gbps_chip":33.04,"call_median_ns":60625,"gbps_call":25.95,"reps":50,"marker":1145324612,"evict":0},{"name":"q_proj 4096x2048","experts":1,"n":4096,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.705e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.54,"chip_median_ns":66209,"gbps_chip":126.73,"call_median_ns":73057,"gbps_call":114.85,"reps":50,"marker":1145324612,"evict":0},{"name":"k_proj 512x2048","experts":1,"n":512,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.309e-08,"second_call_identical":1,"variant":1,"grid_x":64,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":4,"bytes":1048832,"upload_ms":0.54,"chip_median_ns":35792,"gbps_chip":29.30,"call_median_ns":52000,"gbps_call":20.17,"reps":50,"marker":1145324612,"evict":0},{"name":"o_proj 2048x4096","experts":1,"n":2048,"k":4096,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":2.168e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":8390656,"upload_ms":3.52,"chip_median_ns":82865,"gbps_chip":101.26,"call_median_ns":87825,"gbps_call":95.54,"reps":50,"marker":1145324612,"evict":0},{"name":"qkv fused 5120x2048","experts":1,"n":5120,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.281e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":10488320,"upload_ms":4.47,"chip_median_ns":71009,"gbps_chip":147.70,"call_median_ns":77953,"gbps_call":134.55,"reps":50,"marker":1145324612,"evict":0},{"name":"8 experts gate+up shared x","experts":8,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.010e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":10.86,"chip_median_ns":120386,"gbps_chip":209.09,"call_median_ns":129329,"gbps_call":194.64,"reps":50,"marker":1145324612,"evict":0},{"name":"8 experts gate+up shared x mutant 1","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts gate+up shared x mutant 2","caught":1,"rc":"OK","bad":12287,"worst_rel":2.790e-01},{"name":"8 experts gate+up shared x mutant 3","caught":1,"rc":"OK","bad":12288,"worst_rel":4.290e-01},{"name":"8 experts gate+up shared x mutant 4","caught":1,"rc":"OK","bad":12288,"worst_rel":2.601e-01},{"name":"8 experts down per-group x","experts":8,"n":2048,"k":768,"groups":8,"x_rows":8,"rc":"OK","bad":0,"worst_rel":4.885e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":8,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":12585984,"upload_ms":5.36,"chip_median_ns":94209,"gbps_chip":133.60,"call_median_ns":106193,"gbps_call":118.52,"reps":50,"marker":1145324612,"evict":0},{"name":"8 of 16 experts gate+up","experts":16,"n":1536,"k":2048,"groups":8,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.255e-08,"second_call_identical":1,"variant":1,"grid_x":6,"grid_y":8,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":32,"depth":0,"bytes":25171968,"upload_ms":21.47,"chip_median_ns":131441,"gbps_chip":191.51,"call_median_ns":139969,"gbps_call":179.84,"reps":50,"marker":1145324612,"evict":0},{"name":"large 16384x2048","experts":1,"n":16384,"k":2048,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.250e-08,"second_call_identical":1,"variant":1,"grid_x":256,"grid_y":1,"lane_bytes":16,"rows_per_warp":1,"warps_per_cta":8,"depth":0,"bytes":33562624,"upload_ms":14.37,"chip_median_ns":160994,"gbps_chip":208.47,"call_median_ns":172097,"gbps_call":195.02,"reps":50,"marker":1145324612,"evict":0}],"checks":22,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/sim.log new file mode 100644 index 000000000..a97a310cb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/fixgates/fp8/sim.log @@ -0,0 +1,62 @@ +sim one-hot conversion: 256/256 rows exact +sim k256 lb8 r1 w1 rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r1 w1 deep rc=0 worst_rel=4.868e-08 bad=0 (2 ms) +sim k256 lb8 r2 w2 rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 deep rc=0 worst_rel=3.955e-08 bad=0 (4 ms) +sim k256 lb8 r2 w2 deep mutant 1: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k256 lb8 r2 w2 mutant 2: one K step, control not applicable +sim k256 lb8 r2 w2 deep mutant 4: caught (rc=0 bad=256 worst_rel=4.659e-01) +sim k768 lb8 r4 w8 (down shape width) rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r4 w8 (down shape width) deep rc=0 worst_rel=3.352e-08 bad=0 (10 ms) +sim k768 lb8 r8 rc=0 worst_rel=3.023e-08 bad=0 (9 ms) +sim k2048 lb16 r8 w8 (gate shape width) rc=0 worst_rel=2.818e-08 bad=0 (33 ms) +sim k2048 lb16 r8 w8 (gate shape width) mutant 1: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 2: caught (rc=0 bad=383 worst_rel=1.578e-01) +sim k2048 lb16 r8 w8 (gate shape width) mutant 4: caught (rc=0 bad=384 worst_rel=2.819e-01) +sim k2048 lb16 r1 rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k2048 lb16 r1 deep rc=0 worst_rel=2.044e-08 bad=0 (13 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim k512 lb16 r2 w3 (odd warps, tail row groups) deep rc=0 worst_rel=4.748e-08 bad=0 (7 ms) +sim 4 experts shared x (gate+up) rc=0 worst_rel=2.646e-08 bad=0 (89 ms) +sim 4 experts shared x (gate+up) mutant 1: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 4 experts shared x (gate+up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.503e-01) +sim 4 experts shared x (gate+up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.976e-01) +sim 4 experts shared x (gate+up) mutant 4: caught (rc=0 bad=1024 worst_rel=2.538e-01) +sim 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep rc=0 worst_rel=4.441e-08 bad=0 (77 ms) +sim 8 groups per-group x, repeated ids (down) deep mutant 1: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 2: caught (rc=0 bad=2048 worst_rel=6.440e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 3: caught (rc=0 bad=2048 worst_rel=8.668e-01) +sim 8 groups per-group x, repeated ids (down) deep mutant 4: caught (rc=0 bad=2047 worst_rel=5.011e-01) +sim 2 groups per-group x rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim 2 groups per-group x deep rc=0 worst_rel=7.101e-08 bad=0 (4 ms) +sim k768 w7: partial staging round (deep) rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim k768 w7: partial staging round (deep) deep rc=0 worst_rel=2.724e-08 bad=0 (23 ms) +sim battery: worst relative error 7.101e-08 over 11 points, 12579824 warp issues +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) rc=0 worst_rel=2.463e-08 bad=0 identical_to_v1=1 (26 ms) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 1: caught (rc=0 bad=256 worst_rel=2.218e-01, identity check differs=1) +sim v2 k2048 lb16 r1 w8 (gate_up/qkv width) mutant 2: caught (rc=0 bad=256 worst_rel=1.690e-01, identity check differs=1) +sim v2 k2048 lb16 r2 w8 (128 B per lane) rc=0 worst_rel=2.578e-08 bad=0 identical_to_v1=1 (24 ms) +sim v2 k4096 lb16 r1 w8 (o_proj width) rc=0 worst_rel=1.878e-08 bad=0 identical_to_v1=1 (51 ms) +sim v2 k768 lb8 r1 w8 (down width) rc=0 worst_rel=2.677e-08 bad=0 identical_to_v1=1 (11 ms) +sim v2 k768 lb8 r4 w8 rc=0 worst_rel=3.253e-08 bad=0 identical_to_v1=1 (10 ms) +sim v2 k768 w7: partial staging round rc=0 worst_rel=3.262e-08 bad=0 identical_to_v1=1 (23 ms) +sim v2 4 experts shared x (gate_up) rc=0 worst_rel=2.472e-08 bad=0 identical_to_v1=1 (104 ms) +sim v2 4 experts shared x (gate_up) mutant 1: caught (rc=0 bad=1022 worst_rel=2.155e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 2: caught (rc=0 bad=1024 worst_rel=1.745e-01, identity check differs=1) +sim v2 4 experts shared x (gate_up) mutant 3: caught (rc=0 bad=1024 worst_rel=3.980e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) rc=0 worst_rel=4.875e-08 bad=0 identical_to_v1=1 (83 ms) +sim v2 8 groups per-group x, repeated ids (down) mutant 1: caught (rc=0 bad=2048 worst_rel=3.773e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 2: caught (rc=0 bad=2048 worst_rel=5.105e-01, identity check differs=1) +sim v2 8 groups per-group x, repeated ids (down) mutant 3: caught (rc=0 bad=2048 worst_rel=1.327e+00, identity check differs=1) +sim v2 2 groups per-group x, r8 k256 rc=0 worst_rel=5.595e-08 bad=0 identical_to_v1=1 (4 ms) +sim v2 k512 w3 (odd warps, tail row groups) rc=0 worst_rel=4.233e-08 bad=0 identical_to_v1=1 (7 ms) +sim v2 battery: 10/10 points bit-identical to variant 1 +gpu_fp8_api_test: 70 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix.out new file mode 100644 index 000000000..186793050 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix.out @@ -0,0 +1,21 @@ +r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +GPU_L2_STALE_CHIP: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/SHA256SUMS new file mode 100644 index 000000000..2020a529d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/SHA256SUMS @@ -0,0 +1,23 @@ +a6863b8625f32304fc05a97cb55402c280fa6b6186a52fe0d12cab9f0e845f00 device.txt +83b85db14440e60ad84555bd82aa6c4b420b813da4cdfc09c4440fe8f5198169 build.log +501f702d5de67982912675275b30d652e54fc3b769eb7605a82ac820707dabc2 summary.txt +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r5.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r1.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r2.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r3.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r4.log +dffbc4ce16748ecea740ac274529dfee15c305072665cda78d6b9e069511c38b rewrite-c1-r5.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/build.log new file mode 100644 index 000000000..fc3605d85 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/build.log @@ -0,0 +1 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o build/gpu_l2_stale_test tests/gpu_l2_stale_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/device.txt new file mode 100644 index 000000000..df9587fb1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/device.txt @@ -0,0 +1,5 @@ +start 2026-10-15T01:14:34Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=fix/457-l2-inval-after-host-write dirty=4 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 14 68 2 42 106 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r1.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r1.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r2.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r2.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r3.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r3.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r4.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r4.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r5.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c0-r5.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r1.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r1.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r2.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r2.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r3.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r3.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r4.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r4.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r5.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/realloc-c1-r5.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r1.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r1.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r2.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r2.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r3.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r3.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r4.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r4.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r5.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c0-r5.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r1.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r1.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r2.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r2.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r3.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r3.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r4.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r4.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r5.log new file mode 100644 index 000000000..c90d78246 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/rewrite-c1-r5.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/summary.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/summary.txt new file mode 100644 index 000000000..e6a3ed79c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-fix/summary.txt @@ -0,0 +1,20 @@ +r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red.out new file mode 100644 index 000000000..78d332b1d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red.out @@ -0,0 +1,21 @@ +r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +GPU_L2_STALE_CHIP: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/SHA256SUMS new file mode 100644 index 000000000..cc43dcdfc --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/SHA256SUMS @@ -0,0 +1,23 @@ +3b89ed0e0581a9a87227134bb4094df5356b3d1941c329512c3b13190cc4ac15 device.txt +0e3e4f03ecd6a9373ba320704324922eefe449429fdb05f59e6db330b76c52d3 build.log +4b73fc935a2ca80ba2876b9fe33a18ff3cf25cf0826bcc7becf1877b9cc5ff97 summary.txt +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r1.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r2.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r3.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r4.log +2845d38a8c1afb6e5374949340188c9c16c1bb2174ead5bd7df5852dcff88105 realloc-c0-r5.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r1.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r2.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r3.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r4.log +3063b9c84fd2460a2cac7c717a13a9aae9bd67ee3487add7f2ade15be2faef70 realloc-c1-r5.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r1.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r2.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r3.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r4.log +ea214d38c9e19d3a330cf7dd60a8b08ac172f479d7eb3bb5dcc5b0ef65132ec4 rewrite-c0-r5.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 rewrite-c1-r1.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 rewrite-c1-r2.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 rewrite-c1-r3.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 rewrite-c1-r4.log +0909f3a52017a587205d2fa29a585127d218d02a4be4e94d1a8755fc472a08d4 rewrite-c1-r5.log diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/build.log new file mode 100644 index 000000000..555cbf8f1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/build.log @@ -0,0 +1,79 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/sha256.c -o build/sha256.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_canonical.c -o build/omega_canonical.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_validate.c -o build/omega_validate.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_core.c -o build/omega_core.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_codec.c -o build/omega_codec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_encoder.c -o build/aarch64_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_decoder.c -o build/aarch64_decoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize.c -o build/omega_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_exec.c -o build/omega_exec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_self_host.c -o build/omega_self_host.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_verify.c -o build/omega_verify.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program.c -o build/omega_program.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_synthesis.c -o build/omega_synthesis.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_library.c -o build/omega_library.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_discovery.c -o build/omega_discovery.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_machine.c -o build/omega_machine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize_synth.c -o build/omega_realize_synth.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_matvec.c -o build/omega_matvec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator.c -o build/omega_accelerator.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator_world.c -o build/omega_accelerator_world.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vector.c -o build/omega_vector.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_encoder.c -o build/omega_blackwell_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_qmd.c -o build/omega_blackwell_qmd.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_realize.c -o build/omega_blackwell_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_submit.c -o build/omega_blackwell_submit.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o build/omega_blackwell_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_engine.c -o build/omega_gpu_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_matmul.c -o build/omega_blackwell_matmul.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen.c -o build/omega_blackwell_codegen.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_session.c -o build/omega_gpu_session.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform.c -o build/omega_gpu_platform.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform_linux.c -o build/omega_gpu_platform_linux.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fmt.c -o build/omega_gpu_fmt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_matmul_api.c -o build/omega_gpu_matmul_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_elementwise_api.c -o build/omega_gpu_elementwise_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_attention_api.c -o build/omega_gpu_attention_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_serving.c -o build/omega_gpu_serving.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_wait.c -o build/omega_gpu_wait.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_evidence.c -o build/omega_evidence.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/m16/m16_native.c -o build/m16_native.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/nvrm/nvrm.c -o build/nvrm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_moe_api.c -o build/omega_gpu_moe_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe.c -o build/omega_blackwell_codegen_moe.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_pack.c -o build/omega_gpu_fp8_pack.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_api.c -o build/omega_gpu_fp8_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe2.c -o build/omega_blackwell_codegen_moe2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_attn.c -o build/omega_blackwell_codegen_attn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_attn_api.c -o build/omega_gpu_decode_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_hostmath.c -o build/omega_gpu_hostmath.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_router.c -o build/omega_blackwell_codegen_router.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_router_api.c -o build/omega_gpu_router_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_cmdlist.c -o build/omega_gpu_cmdlist.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_dec.c -o build/omega_blackwell_codegen_dec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_mem_cached.c -o build/omega_gpu_mem_cached.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_graph.c -o build/omega_gpu_decode_graph.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_bf16.c -o build/omega_blackwell_codegen_bf16.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_bf16_gemv_api.c -o build/omega_gpu_bf16_gemv_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_gemm.c -o build/omega_blackwell_codegen_gemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8gemm_api.c -o build/omega_gpu_fp8gemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc.c -o build/omega_blackwell_codegen_tc.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_tcgemm_api.c -o build/omega_gpu_tcgemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pattn.c -o build/omega_blackwell_codegen_pattn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill_attn_api.c -o build/omega_gpu_prefill_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pf.c -o build/omega_blackwell_codegen_pf.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill.c -o build/omega_gpu_prefill.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc2.c -o build/omega_blackwell_codegen_tc2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfgemm.c -o build/omega_gpu_pfgemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qmma.c -o build/omega_blackwell_codegen_qmma.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qg.c -o build/omega_blackwell_codegen_qg.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pfhost.c -o build/omega_blackwell_codegen_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfhost.c -o build/omega_gpu_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program_ir.c -o build/omega_program_ir.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vc_bridge.c -o build/omega_vc_bridge.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_resolve.c -o build/omega_resolve.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_receipt.c -o build/omega_receipt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blake3.c -o build/omega_blake3.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vcstore.c -o build/omega_vcstore.o +ar rcs build/libomega_gpu.a build/sha256.o build/omega_canonical.o build/omega_validate.o build/omega_core.o build/omega_codec.o build/aarch64_encoder.o build/aarch64_decoder.o build/omega_realize.o build/omega_exec.o build/omega_self_host.o build/omega_verify.o build/omega_program.o build/omega_synthesis.o build/omega_library.o build/omega_discovery.o build/omega_machine.o build/omega_realize_synth.o build/omega_matvec.o build/omega_accelerator.o build/omega_accelerator_world.o build/omega_vector.o build/omega_blackwell_encoder.o build/omega_blackwell_qmd.o build/omega_blackwell_realize.o build/omega_blackwell_submit.o build/omega_blackwell_engine.o build/omega_gpu_engine.o build/omega_blackwell_matmul.o build/omega_blackwell_codegen.o build/omega_gpu_session.o build/omega_gpu_platform.o build/omega_gpu_platform_linux.o build/omega_gpu_fmt.o build/omega_gpu_matmul_api.o build/omega_gpu_elementwise_api.o build/omega_gpu_attention_api.o build/omega_gpu_serving.o build/omega_gpu_wait.o build/omega_evidence.o build/m16_native.o build/nvrm.o build/omega_gpu_moe_api.o build/omega_blackwell_codegen_moe.o build/omega_gpu_fp8_pack.o build/omega_gpu_fp8_api.o build/omega_blackwell_codegen_moe2.o build/omega_blackwell_codegen_attn.o build/omega_gpu_decode_attn_api.o build/omega_gpu_hostmath.o build/omega_blackwell_codegen_router.o build/omega_gpu_router_api.o build/omega_gpu_cmdlist.o build/omega_blackwell_codegen_dec.o build/omega_gpu_mem_cached.o build/omega_gpu_decode_graph.o build/omega_blackwell_codegen_bf16.o build/omega_gpu_bf16_gemv_api.o build/omega_blackwell_codegen_gemm.o build/omega_gpu_fp8gemm_api.o build/omega_blackwell_codegen_tc.o build/omega_gpu_tcgemm_api.o build/omega_blackwell_codegen_pattn.o build/omega_gpu_prefill_attn_api.o build/omega_blackwell_codegen_pf.o build/omega_gpu_prefill.o build/omega_blackwell_codegen_tc2.o build/omega_gpu_pfgemm.o build/omega_blackwell_codegen_qmma.o build/omega_blackwell_codegen_qg.o build/omega_blackwell_codegen_pfhost.o build/omega_gpu_pfhost.o build/omega_program_ir.o build/omega_vc_bridge.o build/omega_resolve.o build/omega_receipt.o build/omega_blake3.o build/omega_vcstore.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o build/gpu_l2_stale_test tests/gpu_l2_stale_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/device.txt new file mode 100644 index 000000000..5ffe1b75f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/device.txt @@ -0,0 +1,5 @@ +start 2026-10-15T01:14:28Z omega=710d438cac6c1159b4ca2b39af49812ce08f554b branch=HEAD dirty=3 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf physics_lock=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 14 68 2 42 106 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r1.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r1.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r2.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r2.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r3.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r3.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r4.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r4.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r5.log new file mode 100644 index 000000000..59fbe3e10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c0-r5.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r1.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r1.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r2.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r2.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r3.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r3.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r4.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r4.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r5.log new file mode 100644 index 000000000..8ac292ff5 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/realloc-c1-r5.log @@ -0,0 +1,8 @@ +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r1.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r1.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r2.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r2.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r3.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r3.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r4.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r4.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r5.log new file mode 100644 index 000000000..7515e3afd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c0-r5.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r1.log new file mode 100644 index 000000000..66a807a45 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r1.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 1 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r2.log new file mode 100644 index 000000000..66a807a45 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r2.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 1 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r3.log new file mode 100644 index 000000000..66a807a45 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r3.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 1 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r4.log new file mode 100644 index 000000000..66a807a45 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r4.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 1 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r5.log new file mode 100644 index 000000000..66a807a45 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/rewrite-c1-r5.log @@ -0,0 +1,8 @@ +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 1 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/summary.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/summary.txt new file mode 100644 index 000000000..63ed2af8c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/gate-red/summary.txt @@ -0,0 +1,20 @@ +r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ exit=1 +r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 +r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH exit=0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/ground.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/ground.txt new file mode 100644 index 000000000..4b0424e04 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/ground.txt @@ -0,0 +1,248 @@ +# ground check 2026-10-15T00:49:42Z +== physics +e95e3ed Merge pull request #18 from aien-dev/feat/gate34-receipt +== omega +ce42e62f gpu-engine: GB10-1 chip qualification receipt at candidate 2eb912d (M17 18/18, M18 36/36, GPU_ENGINE PASS) +M .github/workflows/host-suites-2.yml +M .github/workflows/host-suites-3.yml +M .github/workflows/host-suites.yml +M .gitignore +M CONTRIBUTORS.md +== queue +quiet flag: CLEAR +queue: 0 job(s) flush lock: none +workers (task dir /tmp/claude-1000/-home-drakestapleton/294ea9b6-30d4-4265-b77f-085ab4d95397/tasks): +a3f3321afa2a46899|builder|C3-FENCE-FIX|completed (no output yet) +== docs-read +== 2026-10-07-qwen3-decode-matmul +2026-10-07T07:12:27Z CUDA Programming Guide, Writing CUDA Kernels > Coalesced Global Memory Access Global memory is accessed via 32-byte memory transactions. To maximize efficiency, all threads within a warp should utilize the data fetched in a single memory transaction. +2026-10-07T07:50:07Z nvcc 13.0.88 -arch=sm_121 SASS oracle (oracle/frag_plain.sass) + CUDA PTX ISA mma.m16n8k16 fragment table dependent HMMA.16816 chain: HMMA ctrl 0x004fde00 (stall 15) then NOP 0x000fdc00 (stall 14); LDG.E.64 w2 0x0c1e1b00, LDG.E.128 0x0c1e1d00, offset at bits 40..63 | DOCS SILENT on scoreboard counter depth (16 loads on SB2) +== CHIPWAIT +2026-10-04T01:04:38Z physics third_party/nvidia-open-580.173.02 .../sdk/nvidia/inc/nvos.h:1114-1118 (read 2026-10-04 via Read tool, helper 69f80259) NVOS32_ATTR2_GPU_CACHEABLE: GPU-cacheable system memory is not coherent with CPU mappings; completion words must be allocated GPU-uncached (nvrm_alloc_gpu_uncached), which is what the CHIPWAIT stack and the M19R qualification exercise +== F277 +2026-10-08T14:18:26Z n/a: no driver or chip call touched; only the env-switch policy and docs/tests, host CPU only DOCS SILENT on env-switch policy (not a hardware matter) +== G286 +2026-10-08T15:08:32Z linux-headers-7.0.0-1019-nvidia include/acpi/actbl2.h:1837-1843 (ACPI MCFG allocation) u64 address; /* Base address, processor-relative */ u16 pci_segment; /* PCI segment group number */ u8 start_bus_number; u8 end_bus_number; | NVIDIA docs SILENT on GB10 MCFG segment layout +2026-10-08T17:27:33Z native/kernel/core/ipc.h + docs/GB10_NATIVE_ACCELERATOR_BOUNDARY.md Mapping MMIO is a separate, capability-gated kernel service; Accelerator MMIO region: read/write of a bounded BAR window; ipc.h: Pure logic... generation-checked handles, attenuating derive, cascading revoke +2026-10-08T19:02:30Z native/kernel/mm/pt.h + mm/mmu.c tlb_sync (in-repo) pt.h: 'Live: only fills invalid entries (or accepts identical ones), else CK_PT_ELIVE'; mmu.c ck_mm_mmio_try_map: 'if (pt.live) tlb_sync();' after changing entries (dsb ishst; tlbi vmalle1is; dsb ish; isb). Arm ARM not read: DOCS SILENT on formal BBM text, using repo pattern only +2026-10-08T20:03:32Z ~/workspace/hive/G286/docs/GB10_PLATFORM_TOPOLOGY.md:47-62 Segments 0 to 14 use base 0xF300000000 plus a 0x10000000 stride and cover buses 0 to 15; NVMe BDF/segment not recorded there (DOCS SILENT on Spark NVMe location) +== G31-crash +2026-10-08T20:03:32Z ~/workspace/hive/G286/docs/GB10_PLATFORM_TOPOLOGY.md:47-62 Segment 15, the GB10 segment, has ECAM base 0x29000000 and covers buses 0 to 1; DOCS SILENT on Spark NVMe BDF +== Q277 +2026-10-08T12:25:13Z docs/design/gb10-weight-ownership.md:308-309 The default refusal in omega_model_refusal_with stays until the verdict is PASS and merged. Flipping it is a separate PR that cites the verdict. +== a2 +2026-10-07T05:44:57Z nvidia-open-580.173.02 nvstatuscodes.h:110 + Context7 /nvidia/open-gpu-kernel-modules errors.md NV_ERR_NO_MEMORY 0x00000051 "Out of memory"; can be triggered by exhausted system RAM or resource pressure during session and device creation; DOCS SILENT on RM page-cache reclaim policy +== aien-architecture +2026-10-11T16:33:51Z spark-hardware-manual SKILL.md section 0 + nvidia-open-580.173.02 nvos.h DOCS SILENT on reading /proc/locks for the /tmp/aien-gb10.lock holder (aien-test status display only, no chip or driver call) +== aien-platform-linux +2026-10-04T11:09:44Z https://docs.nvidia.com/cuda/cuda-programming-guide/02-basics/understanding-memory.html (Unified Memory) + omega src/omega_gpu_attention_api.c:525 at 3d4648c On systems with Heterogeneous Memory Management (HMM) or Unified Address Translation Services (ATS), all system memory is implicitly managed memory, requiring no special allocation. | OUR LAYER: omega copies the KV pool into its own nvrm session scratch (memcpy line 525) before launch, so the platform buffer is never read by the chip directly +== aien-sovereign-core +2026-10-14T00:55:35Z nvidia-open-580.173.02 nvos.h:1113-1118 (NVOS32_ATTR2_GPU_CACHEABLE) YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | W-L1G-C gate recorder: device reads only via GPU-uncached HOST buffers +2026-10-14T05:23:54Z physics-own30b nvos.h:1117 YES - Enable gpu caching if supported on this hardware. For system memory this will not be coherent with direct CPU mappings. +2026-10-14T12:47:37Z nvidia-open 580.173.02: kernel-open/nvidia/nv-reg.h:181-198 InitializeSystemMemoryAllocations; arch/nvalloc/unix/src/os.c:1013 nv_alloc_pages(zeroed=PDB_PROP_SYS_INITIALIZE_SYSTEM_MEMORY_ALLOCATIONS); nvidia/nv-vm.c:263 __GFP_ZERO; mem_desc.c:802 ADDR_SYSMEM->osAllocPages; live /proc/driver/nvidia/params InitializeSystemMemoryAllocations: 1; physics nvrm.c:527 memset(cpu,0,size) The NVIDIA Linux driver normally clears system memory it allocates for use with GPUs ... 1 = zero out system memory allocations (default) +2026-10-14T21:47:22Z docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark) the cudaMemGetInfo API may report less memory than is actually allocatable ... sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches' | DOCS SILENT on two processes sharing one KV store dir +2026-10-15T00:49:39Z physics 6d7cf0d third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1114-1118 + class/clc96f.h:72-73 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | clc96f.h:73 NVC96F_MEM_OP_D_OPERATION_L2_SYSMEM_NCOH_INVALIDATE 0x11 exists (no comment). DOCS SILENT on whether a host write to a GPU-cached sysmem buffer is seen by the next launch without an L2 invalidate (omega #457, measured here); DOCS SILENT on whether RM invalidates L2 on nvrm_free +== aienos +2026-10-13T21:17:33Z raspberrypi/linux rpi-6.12.y drivers/clk/clk-rp1.c:1846-1860,1920-1940,2079-2095,997-1070,1101-1170; include/dt-bindings/clock/rp1.h [RP1_CLK_ETH] = REGISTER_CLK(.name = "clk_eth", .parents = {"pll_sys_sec", ...}, .ctrl_reg = CLK_ETH_CTRL, .div_int_reg = CLK_ETH_DIV_INT, .sel_reg = CLK_ETH_SEL, .max_freq = 125 * MHz +2026-10-13T21:17:33Z raspberrypi/linux rpi-6.12.y drivers/pinctrl/pinctrl-rp1.c:44-46,101,123-125,292-296,702-780; bcm2712-rpi-5-b.dts:169-173 phy-reset-gpios = <&rp1_gpio 32 GPIO_ACTIVE_LOW>; phy-reset-duration = <5>; { 28, 6, 0x4000, 0x411c, 0x4124, 0x4000, 0x4004 } +2026-10-13T21:17:33Z raspberrypi/linux rpi-6.12.y drivers/net/ethernet/cadence/macb_main.c:344-366 macb_mdio_read_c22, :500-508 macb_mdio_reset; macb.h GEM_CLK macb_writel(bp, MAN, (MACB_BF(SOF, MACB_MAN_C22_SOF) | MACB_BF(RW, MACB_MAN_C22_READ) | MACB_BF(PHYA, mii_id) | MACB_BF(REGA, regnum) | MACB_BF(CODE, MACB_MAN_C22_CODE))); +2026-10-13T21:17:33Z RP1 peripherals datasheet RP-008370-DS-1 section 2.2 Address map, 7.1 ETH_CFG 0x00.0000.0000 512G n/a PCIe Outbound direct mapped space; 7 Ethernet: Cadence GEM_GXL, RGMII, SRAM based packet buffer DMA 64-bit address +2026-10-14T15:40:12Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h:1116-1118 Typically this is gpu cached for video memory and gpu uncached for system memory. ... For system memory this will not be coherent with direct CPU mappings. +== aienos-git +2026-10-12T12:01:27Z open-gpu-kernel-modules 580.173.02 src/nvidia/generated/g_bindata_kgspGetBinArchiveGspRmFmcGfwProdSigned_GB10B.c:3,25,31-37 SPDX-License-Identifier: MIT / THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT! / FILE NAME: kernel/inc/gspcc/bin/g_gsp_gb10b_dyn_prd_gfw_image.bin FILE TYPE: BINARY COMPRESSION: NO COMPLEX_STRUCT: NO DATA SIZE (bytes): 195912 +== aienos-i286-b5 +2026-10-10T04:12:19Z Arm IHI 0070 H.a SMMUv3 architecture spec, ~/docs/arm/IHI0070H_a.txt line 1903 Arm recommends that StreamID be a dense namespace starting at 0. The StreamID namespace is per-SMMU. +2026-10-10T04:12:19Z Arm IHI 0070 H.a, line 2306 Or, the SMMU_GBPA register might be configured to abort all transactions. +== allen-gb10 +2026-10-08T12:31:51Z omega 03d2820 src/omega_gpu_session seat: rx_gpu_seat_kill comment Destroying the channel under a spinning seat makes the driver's stop request time out (NV_ERR_TIMEOUT on STOP_CHANNEL) until the seat's own countdown ends; a process that dies stops the lease. DOCS SILENT on a daemon-side session-close log line +== crates +2026-10-03T16:19:23Z docs.nvidia.com/dgx/dgx-spark (Context7 /websites/nvidia_dgx_dgx-spark), GB10 spec; same read as sc-kv-admission this session Blackwell GPU (compute capability SM 12.1, which differs from datacenter Blackwell) +== cta1024 +2026-10-12T09:25:35Z DGX Spark User Guide (Context7 /websites/nvidia_dgx_dgx-spark), hardware overview; spark-hardware-manual skill section 1 128 GB LPDDR5x unified (one pool shared by CPU and GPU), 273 GB/s. DOCS SILENT on host-vs-GPU dispatch of small per-token vector ops (norms, rope): no driver flag involved, host arrays stay host arrays. +== drakestapleton +2026-10-06T11:23:02Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1116 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. +2026-10-08T11:38:21Z nvos.h:1114-1119 (nvidia-open-580.173.02) read; this lane launches the daemon only, no allocation flag changes DEFAULT - Highest performance cache policy... gpu uncached for system memory. DOCS SILENT on RM sysmem allocation vs page-cache state. +2026-10-11T03:57:48Z n/a: CLI banner text edit in crates/aien-cli/src/ui.rs (hook matched the word GB10 in a string) DOCS SILENT on chip/driver: this edit changes a printed string only, no chip, driver or launch code +2026-10-11T13:59:22Z aienos docs/GB10_IORT_DECODE.md section 10 (B7b expected output; docs-only task, no chip action) B7b itself (the attended hardware boot) is not authorized and was not run +2026-10-12T11:25:59Z /usr/share/doc/nvidia-firmware-580-580.173.02/copyright (NVIDIA Driver License Agreement 1.1(d), 2.1-2.3, 2.6) 1.1(d) Distribute the SOFTWARE provided for use with operating system kernels distributed under the terms of an OSI-approved open source license ... provided that (i) the binary files thereof are not modified in any way ... and (ii) this Agreement is provided to each SOFTWARE recipient. 2.1 You may only use firmware in NVIDIA Platforms. You may not translate firmware ... into any other architecture or language. 2.2 You may not reverse engineer, decompile, or disassemble the SOFTWARE provided in binary form. 2.6 You may not bypass ... authentication mechanism. +== fastload-omega +2026-10-14T12:47:37Z nvidia-open 580.173.02: kernel-open/nvidia/nv-reg.h:181-198 InitializeSystemMemoryAllocations; arch/nvalloc/unix/src/os.c:1013 nv_alloc_pages(zeroed=PDB_PROP_SYS_INITIALIZE_SYSTEM_MEMORY_ALLOCATIONS); nvidia/nv-vm.c:263 __GFP_ZERO; mem_desc.c:802 ADDR_SYSMEM->osAllocPages; live /proc/driver/nvidia/params InitializeSystemMemoryAllocations: 1; physics nvrm.c:527 memset(cpu,0,size) The NVIDIA Linux driver normally clears system memory it allocates for use with GPUs ... 1 = zero out system memory allocations (default) +== fastload-sc +2026-10-14T12:47:37Z nvidia-open 580.173.02: kernel-open/nvidia/nv-reg.h:181-198 InitializeSystemMemoryAllocations; arch/nvalloc/unix/src/os.c:1013 nv_alloc_pages(zeroed=PDB_PROP_SYS_INITIALIZE_SYSTEM_MEMORY_ALLOCATIONS); nvidia/nv-vm.c:263 __GFP_ZERO; mem_desc.c:802 ADDR_SYSMEM->osAllocPages; live /proc/driver/nvidia/params InitializeSystemMemoryAllocations: 1; physics nvrm.c:527 memset(cpu,0,size) The NVIDIA Linux driver normally clears system memory it allocates for use with GPUs ... 1 = zero out system memory allocations (default) +== gpu +2026-10-06T15:40:34Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1118 GPU_CACHEABLE_YES: For system memory this will not be coherent with direct CPU mappings. (np1-v5 worker: running pinned omega 62b6a28 campaign only, no chip/driver edits; physics nvrm.c:474 provides GPU_CACHEABLE_NO path) +== interplane +2026-10-07T22:59:49Z nvos.h:1113-1119 (nvidia-open-580.173.02) YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. (Relevance: this run uses the CPU-only stub build with the GPU engine NOT linked, no chip allocation is made.) +== investigations +2026-10-05T18:46:26Z https://docs.nvidia.com/cuda/cuda-programming-guide/03-advanced/advanced-kernel-programming.html (Independent Thread Scheduling) via Context7 /websites/nvidia_cuda_cuda-programming-guide Independent thread scheduling, available on GPUs with compute capability 7.0 and later, maintains execution state per thread, including a program counter and call stack. | DOCS SILENT on SASS encodings and control-word (stall/scoreboard/yield) fields; own layer omega src/omega_gpu_elementwise_api.c:9-18 +== lock-link +2026-10-07T04:33:06Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvstatuscodes.h:110 NV_STATUS_CODE(NV_ERR_NO_MEMORY, 0x00000051, "Out of memory") (linked sc#268 test run; GB10 tests open one session each) +== m311 +2026-10-08T04:28:30Z https://docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark) DGX Spark systems utilize a unified memory architecture (UMA) where the GPU shares system DRAM with the CPU ... cudaMemGetInfo API may report less memory than is actually allocatable; DOCS SILENT on RM allocation failure thresholds under low MemFree +== memory +2026-10-06T19:56:00Z nvos.h:1114-1119 (nvidia-open 580.173.02) YES: Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. (Lane S only runs the existing engine unchanged; no chip code edited) +== nvopen-580 +2026-10-12T11:28:14Z /usr/share/doc/nvidia-firmware-580-580.173.02/copyright (NVIDIA Driver License Agreement 2.2, 1.1(d)) + open-gpu-kernel-modules tag 580.173.02 kernel-open/common/inc/nv-firmware.h 2.2 You may not reverse engineer, decompile, or disassemble the SOFTWARE provided in binary form. 1.1(d) Distribute ... provided that (i) the binary files thereof are not modified in any way. Reading the open-source driver (MIT/GPL dual licensed kernel-open and src/nvidia) is reading, not disassembly: inventory only, no loading. +== odysseus +2026-10-13T16:56:40Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. +2026-10-14T02:03:58Z mesa clca6f.h NVCA6F_SEM_EXECUTE + clcec0qmd.h; CUDA programming guide device graph launch/grid.sync (Context7) NVCA6F_SEM_EXECUTE_OPERATION_ACQUIRE 0x0 / RELEASE 0x1; GP_ENTRY0_FETCH_CONDITIONAL; QMDV05 DEPENDENT_QMD0_ACTION_QMD_DECREMENT_DEPENDENCE +== omega +2026-10-14T12:47:37Z nvidia-open 580.173.02: kernel-open/nvidia/nv-reg.h:181-198 InitializeSystemMemoryAllocations; arch/nvalloc/unix/src/os.c:1013 nv_alloc_pages(zeroed=PDB_PROP_SYS_INITIALIZE_SYSTEM_MEMORY_ALLOCATIONS); nvidia/nv-vm.c:263 __GFP_ZERO; mem_desc.c:802 ADDR_SYSMEM->osAllocPages; live /proc/driver/nvidia/params InitializeSystemMemoryAllocations: 1; physics nvrm.c:527 memset(cpu,0,size) The NVIDIA Linux driver normally clears system memory it allocates for use with GPUs ... 1 = zero out system memory allocations (default) +2026-10-14T12:49:38Z NVIDIA Floating Point guide section 2.2 https://docs.nvidia.com/cuda/archive/12.2.2/floating-point/index.html Here, the order in which operations are executed affects the accuracy of the result. DOCS SILENT on Omega split invariance. +2026-10-14T22:04:23Z nvidia-open-580.173.02 nvos.h:1117-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. (read-only code review of PR 439, no chip runs) +2026-10-14T22:04:24Z code review only, PR sc#510 read-only, no chip launch or alloc edits DOCS SILENT on FFI signature review (no hardware change made) +2026-10-15T00:49:39Z physics 6d7cf0d third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1114-1118 + class/clc96f.h:72-73 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | clc96f.h:73 NVC96F_MEM_OP_D_OPERATION_L2_SYSMEM_NCOH_INVALIDATE 0x11 exists (no comment). DOCS SILENT on whether a host write to a GPU-cached sysmem buffer is seen by the next launch without an L2 invalidate (omega #457, measured here); DOCS SILENT on whether RM invalidates L2 on nvrm_free +== omega-0a +2026-10-04T19:24:19Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117-1118,961 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. / GPU_CACHE_SNOOPABLE: Only applies to fully coherent platforms. +== omega-233 +2026-10-04T01:04:38Z physics third_party/nvidia-open-580.173.02 .../sdk/nvidia/inc/nvos.h:1114-1118 (read 2026-10-04 via Read tool, helper 69f80259) NVOS32_ATTR2_GPU_CACHEABLE: GPU-cacheable system memory is not coherent with CPU mappings; completion words must be allocated GPU-uncached (nvrm_alloc_gpu_uncached), which is what the CHIPWAIT stack and the M19R qualification exercise +== omega-frag +2026-10-07T07:50:07Z nvcc 13.0.88 -arch=sm_121 SASS oracle (oracle/frag_plain.sass) + CUDA PTX ISA mma.m16n8k16 fragment table dependent HMMA.16816 chain: HMMA ctrl 0x004fde00 (stall 15) then NOP 0x000fdc00 (stall 14); LDG.E.64 w2 0x0c1e1b00, LDG.E.128 0x0c1e1d00, offset at bits 40..63 | DOCS SILENT on scoreboard counter depth (16 loads on SB2) +== omega-lib +2026-10-08T01:37:47Z omega src/omega_gpu_matmul_api.h:138 + src/omega_gpu_session.h (own layer); NVIDIA open-gpu-kernel-modules RM docs DOCS SILENT on a per-kernel code-buffer allocation limit; own header: 'From then on a call that fits never allocates' (only true for cached shapes) +== omega-m18-uncached +2026-10-03T16:18:05Z docs.nvidia.com/dgx/dgx-spark (Context7 /websites/nvidia_dgx_dgx-spark), GB10 spec; nvos.h:1115-1118 already read this session (#239) Blackwell GPU (compute capability SM 12.1); GPU_CACHEABLE_YES on system memory is not coherent with CPU mappings +== omega-main +2026-10-04T02:45:01Z nvidia-open-580.173.02 nvos.h: NVOS32_ATTR2_GPU_CACHEABLE_YES: Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. +== omega-own30b-a +2026-10-13T17:10:31Z physics-own30b/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | DOCS SILENT on column-window addressing of a resident matmul B tensor; own layer: omega src/omega_blackwell_codegen.h:253 fragment-major B, column tile nt occupies kp*8 contiguous bf16 +== omega-own30b-a16 +2026-10-14T03:57:10Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h:1117-1118 (NVOS32_ATTR2_GPU_CACHEABLE) YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | W8A16 kernels use only the existing omega_gpu_prefill buffer policy (device-private GPU-cached buffers filled by GPU writes; host buffers uncached); HMMA.16816 fragment layout per PTX ISA mma.m16n8k16 as cited in omega_blackwell_codegen_tc.h; DOCS SILENT on MUFU.EX2/RCP exact rounding (modelled as exp2f/1/x, chip-checked as in the W8A8 SwiGLU) +== omega-own30b-a16b +2026-10-14T04:59:24Z nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | DOCS SILENT on HMMA bf16 rounding of Q/P; own layer omega codegen_pattn.h:20-26 (Q bf16, P F2FP bf16, l from f32 P) +== omega-own30b-decode +2026-10-14T01:50:39Z CUDA Programming Guide 04-special-topics/programmatic-dependent-launch (Context7 /websites/nvidia_cuda_cuda-programming-guide) + Mesa clcec0qmd.h QMDV05 fields The driver can initiate the secondary kernel once all primary thread blocks have executed a programmatic trigger or have exited ... cudaGridDependencySynchronize: Will block until all primary kernels ... have completed and flushed results to global memory | DOCS SILENT on QMD semantics of ENABLE_PROGRAM_PRE_EXIT(639)/PRE_EXIT_AT_LAST_CTA_LAUNCH(638)/WAIT_ON_LATCH/ARRIVE_AT_LATCH/HOLD_CTA_LAUNCH_UNTIL_PARENT_LATCH_ACQUIRE_AND_CTA_COMPLETE (names only, no comments, unused by Mesa) +2026-10-14T02:08:11Z CUDA programming guide 05-appendices/device-callable-apis.html (Grid Synchronization, Launch Cooperative Kernel) via Context7 /websites/nvidia_cuda_cuda-programming-guide Launch a kernel ensuring co-residency by launching as many blocks as there are SMs ... grid = multiProcessorCount*numBlocksPerSm (cudaOccupancyMaxActiveBlocksPerMultiprocessor) | compute-capabilities.html: registers per SM 64K across 7.5 through 12.x | DOCS SILENT on GB10 SM count and 12.x resident blocks/warps per SM (measure with on-chip co-residency probe); own layer: attn codegen membar+bar.sync+ATOMG pattern (omega_blackwell_codegen_attn.c:464-476), L2e strong-sys poll + CCTL.IVALL (codegen_moe.c wait) +2026-10-14T02:27:23Z mesa nak_private.h:133 + PTX ISA 10.28 (page too long for fetch: body unread) + nvcc 13.0.88 sm_121 oracle /tmp/wl2g-oracle NAK_SV_CLOCK_LO = 0x50; oracle: CS2R.32 Rd, SR_GLOBALTIMERLO = 0x7805|Rd<<16, w2 0x5200, no scoreboard; DOCS SILENT on %globaltimer resolution and cross-SM sync for GB10 (measure it) +2026-10-14T02:44:09Z docs/own30b/resident-control-block.md + nvos.h:1117 (nvidia-open-580.173.02) For system memory this will not be coherent with direct CPU mappings | control block uncached, stage table + barrier word GPU-cached never host-polled; DOCS SILENT on GB10 co-resident CTA count (chip probe: 192) +2026-10-14T03:11:16Z CUDA Programming Guide 02-basics/writing-cuda-kernels (Kernel Launch and Occupancy) + 03-advanced Hardware Multithreading via Context7 /websites/nvidia_cuda_cuda-programming-guide limiting registers can sometimes increase occupancy by allowing more thread blocks to be scheduled, potentially leading to a net performance gain | The number of blocks and warps that can run concurrently on an SM is constrained by the kernel's resource usage (registers and shared memory) | DOCS SILENT on GB10 loads-in-flight per SM needed to saturate LPDDR5X (measure) +== omega-own30b-k +2026-10-13T17:44:36Z physics-own30b-k/nvrm/nvos.h:1117 Host-polled or host-rewritten memory stays GPU-uncached (NVOS32 attr); existing session release sequence, no new allocation flags +2026-10-13T23:54:23Z omega src/omega_gpu_session.h:192-195 (our layer, launch timing) + nvidia-smi --help-query-gpu clocks.sm elapsed_ns (submit to second marker) | DOCS SILENT on GB10 idle-clock ramp (SM clock read 208 MHz idle, max 3003 MHz) +== omega-own30b-rc3 +2026-10-14T05:23:54Z physics-own30b nvos.h:1117 YES - Enable gpu caching if supported on this hardware. For system memory this will not be coherent with direct CPU mappings. +2026-10-14T11:46:49Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1113-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | host-written per-round tables (GEMM segments, row maps) and every verify buffer use omega_gpu_session_alloc (uncached). DOCS SILENT on SASS kernel numerics (own layer: omega src/omega_blackwell_codegen_dec.h, omega_blackwell_codegen_gemm.h) +== omega-own30b-spec +2026-10-14T03:30:04Z src/omega_blackwell_codegen_attn.h (own layer) the last CTA of the KV head combines the partials with the usual max rescale +2026-10-14T03:40:33Z handoffs/own30b-L4d-report.md Next (own layer) DOCS SILENT on speculative verify on GB10 (own algorithm; no vendor doc) +== omega-own30b-specbatch +2026-10-14T11:46:49Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1113-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | host-written per-round tables (GEMM segments, row maps) and every verify buffer use omega_gpu_session_alloc (uncached). DOCS SILENT on SASS kernel numerics (own layer: omega src/omega_blackwell_codegen_dec.h, omega_blackwell_codegen_gemm.h) +== omega-own30b-tc +2026-10-13T21:52:38Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 + Context7 /websites/nvidia_cuda_parallel-thread-execution (mma) YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | DOCS SILENT on HMMA/mma internal rounding, accumulation order and subnormal input handling (Context7 PTX ISA returned no semantics); measured on the chip instead +2026-10-13T22:42:01Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1116-1118; class/clc96f.h:72-73 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | clc96f.h: L2_FLUSH_DIRTY 0x10, L2_SYSMEM_NCOH_INVALIDATE 0x11. Plan: GPU-cached buffers only for GPU-written/GPU-read data; host inputs stay uncached; weights reach cached memory via a GPU copy so no stale L2 line can exist +== omega-reconv +2026-10-05T23:14:36Z NVIDIA CUDA PTX ISA / NAK sm120 BSSY/BSYNC; omega docs/gpu-reconvergence nvcc 13.0.88 oracle DOCS: BSSY/BSYNC encodings MEASURED from nvcc oracle cf.sass, per cc-0016 golden values; no new chip/driver edits, running existing launchers only +== omega-requal-main +2026-10-15T00:49:39Z physics 6d7cf0d third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1114-1118 + class/clc96f.h:72-73 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | clc96f.h:73 NVC96F_MEM_OP_D_OPERATION_L2_SYSMEM_NCOH_INVALIDATE 0x11 exists (no comment). DOCS SILENT on whether a host write to a GPU-cached sysmem buffer is seen by the next launch without an L2 invalidate (omega #457, measured here); DOCS SILENT on whether RM invalidates L2 on nvrm_free +== open-model-qwen3 +2026-10-07T08:31:00Z /usr/src/nvidia-580.173.02/nvidia/nv-vm.c:236-261 (driver 580.173.02) gfp_mask |= __GFP_RETRY_MAYFAIL; (page allocations may fail under memory pressure instead of retrying) | DOCS SILENT on GR context buffer contiguity (omega#327 trigger) +2026-10-09T13:16:50Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1114-1116 DEFAULT - Highest performance cache policy that is coherent with the highest performance CPU mapping. Typically this is gpu cached for video memory and gpu uncached for system memory. (Running the pinned frozen build unchanged; no chip/driver code edited; host-polled words are uncached per omega#225/#230.) +2026-10-12T00:59:33Z evidence-v7/run/records/nvrm-*.txt (recorded kernel-log line counts, read-only; no chip or driver code touched) DOCS SILENT on reading recorded NVRM log line counts from campaign evidence files +== oq3-v2-records +2026-10-07T11:50:11Z /usr/src/nvidia-580.173.02/nvidia/nv-vm.c:236-261 (driver 580.173.02) gfp_mask |= __GFP_RETRY_MAYFAIL; (page allocations may fail under memory pressure instead of retrying) | DOCS SILENT on GR context buffer contiguity (omega#327 trigger) +== oq3-v5-real +2026-10-09T13:18:09Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1114-1116 DEFAULT - Highest performance cache policy that is coherent with the highest performance CPU mapping. Typically this is gpu cached for video memory and gpu uncached for system memory. (Launch scripts for the pinned frozen build only; no chip/driver code edited.) +== overnight-1005 +2026-10-05T03:22:32Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. +== physics +2026-10-14T01:25:56Z ~/workspace/.ref/mesa/src/nouveau/vulkan/nvk_cmd_buffer.c:633-644,819-830 This is also implicitly a WFI: INVALIDATE_SHADER_CACHES {data, flush_data} for storage writes; INVALIDATE_SHADER_CACHES_NO_WFI {global_data, constant} for storage/uniform reads; no instruction invalidate between dispatches +2026-10-14T11:46:49Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1113-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | host-written per-round tables (GEMM segments, row maps) and every verify buffer use omega_gpu_session_alloc (uncached). DOCS SILENT on SASS kernel numerics (own layer: omega src/omega_blackwell_codegen_dec.h, omega_blackwell_codegen_gemm.h) +2026-10-14T12:47:37Z nvidia-open 580.173.02: kernel-open/nvidia/nv-reg.h:181-198 InitializeSystemMemoryAllocations; arch/nvalloc/unix/src/os.c:1013 nv_alloc_pages(zeroed=PDB_PROP_SYS_INITIALIZE_SYSTEM_MEMORY_ALLOCATIONS); nvidia/nv-vm.c:263 __GFP_ZERO; mem_desc.c:802 ADDR_SYSMEM->osAllocPages; live /proc/driver/nvidia/params InitializeSystemMemoryAllocations: 1; physics nvrm.c:527 memset(cpu,0,size) The NVIDIA Linux driver normally clears system memory it allocates for use with GPUs ... 1 = zero out system memory allocations (default) +2026-10-14T22:04:23Z nvidia-open-580.173.02 nvos.h:1117-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. (read-only code review) +2026-10-15T00:49:39Z physics 6d7cf0d third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1114-1118 + class/clc96f.h:72-73 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | clc96f.h:73 NVC96F_MEM_OP_D_OPERATION_L2_SYSMEM_NCOH_INVALIDATE 0x11 exists (no comment). DOCS SILENT on whether a host write to a GPU-cached sysmem buffer is seen by the next launch without an L2 invalidate (omega #457, measured here); DOCS SILENT on whether RM invalidates L2 on nvrm_free +== physics-own30b +2026-10-14T12:47:37Z nvidia-open 580.173.02: kernel-open/nvidia/nv-reg.h:181-198 InitializeSystemMemoryAllocations; arch/nvalloc/unix/src/os.c:1013 nv_alloc_pages(zeroed=PDB_PROP_SYS_INITIALIZE_SYSTEM_MEMORY_ALLOCATIONS); nvidia/nv-vm.c:263 __GFP_ZERO; mem_desc.c:802 ADDR_SYSMEM->osAllocPages; live /proc/driver/nvidia/params InitializeSystemMemoryAllocations: 1; physics nvrm.c:527 memset(cpu,0,size) The NVIDIA Linux driver normally clears system memory it allocates for use with GPUs ... 1 = zero out system memory allocations (default) +== primes-race +2026-10-05T21:42:54Z ~/workspace/.ref/mesa/src/nouveau/headers/nvidia/classes/clcdc0qmd.h:252 #define NVCDC0_QMDV05_00_SHARED_MEMORY_SIZE_SHIFTED7 MW(1162:1152) (word 36, the per-CTA shared size the staged kernel sets; min/max/target SM config at :253-254 unchanged). DOCS SILENT on the runtime cost of staging vs global loads after lane reconvergence. +== qk-chip +2026-10-07T04:28:08Z Context7 /nvidia/open-gpu-kernel-modules _autodocs/errors.md NV_ERR_NO_MEMORY + local dmesg 04:25:16Z NV_ERR_NO_MEMORY ... can be triggered by exhausted ... system RAM, insufficient internal driver memory, or resource pressure during session and device creation; DOCS SILENT on whether kgrctxAllocMainCtxBuffer needs physically contiguous system memory +== qual-omega-f523edd +2026-10-03T16:42:55Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h ~1112 NVOS32_ATTR2_GPU_CACHEABLE_YES: For system memory this will not be coherent with direct CPU mappings. +== records +2026-10-09T13:56:07Z spark-hardware-manual skill section 0 (read) DOCS SILENT on copying read-only run records into a docs folder: no chip, driver or launcher code touched +== reserve +2026-10-08T03:02:32Z https://docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark) DGX Spark systems utilize a unified memory architecture (UMA) where the GPU shares system DRAM with the CPU ... cudaMemGetInfo API may report less memory than is actually allocatable; DOCS SILENT on RM allocation failure thresholds under low MemFree +== sc +2026-10-07T23:25:50Z nvos.h:1113-1119 (nvidia-open-580.173.02), read this session YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. (Relevance: CPU-reference build, GPU engine not linked, no chip allocation.) +2026-10-08T00:35:19Z docs/DAEMON_GENERATION_RECORD.md at 12c1a5f A verifier must treat an absent record as an absent claim, not as a pass. +2026-10-08T22:06:25Z https://docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark) On iGPU platforms, nvidia-smi may report Memory-Usage as Not Supported. This is expected behavior because iGPUs do not utilize dedicated framebuffer memory. | DGX Spark systems utilize a unified memory architecture (UMA) where the GPU shares system DRAM with the CPU. +2026-10-14T11:46:49Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1113-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | host-written per-round tables (GEMM segments, row maps) and every verify buffer use omega_gpu_session_alloc (uncached). DOCS SILENT on SASS kernel numerics (own layer: omega src/omega_blackwell_codegen_dec.h, omega_blackwell_codegen_gemm.h) +== sc-277 +2026-10-07T06:36:51Z /usr/src/nvidia-580.173.02/nvidia/nv-vm.c:236-261 (driver 580.173.02) unsigned int gfp_mask = NV_GFP_KERNEL; ... gfp_mask |= __GFP_RETRY_MAYFAIL; DOCS SILENT on GR context buffer contiguity +== sc-fb1-cut6 +2026-10-04T10:45:59Z docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark) + nvos.h:1114-1119 already recorded for omega this session DGX Spark systems utilize a unified memory architecture (UMA) where the GPU shares system DRAM with the CPU. Cut 6 removes cudart/cudaMallocManaged from the host side; the KV pool is only read by the CPU (omega gathers on host and stages into its own GPU-uncached buffers), so plain host memory needs no CUDA allocator. DOCS SILENT on ATS access to plain malloc memory from our own kernels (not used by this cut). +== sc-i369 +2026-10-10T02:51:05Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:471 (GPU engine run via omega pinned 6c6180cf, test release_golden_path_records_whether_gb10_ran) } NVOS21_PARAMETERS; +== sc-kv-admission +2026-10-03T16:08:02Z docs.nvidia.com/dgx/dgx-spark (Context7 /websites/nvidia_dgx_dgx-spark), GB10 spec; skill spark-hardware-manual s.1 Blackwell GPU (compute capability SM 12.1, which differs from datacenter Blackwell); 128 GB LPDDR5x unified memory +== sc-np2 +2026-10-06T16:28:06Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h:1112-1123 (GPU_CACHEABLE comment block) + spark-hardware-manual skill DOCS SILENT on CPU-only compose daemon: this build links the GPU STUB (aien-omega-gpu: no AIEN_OMEGA_DIR or AIEN_OMEGA_GPU_LIB, building the CPU stub); no chip, driver or allocation is touched; GPU runs will be under quietlock only +== sc-np2v3 +2026-10-06T16:28:06Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h:1112-1123 (GPU_CACHEABLE comment block) + spark-hardware-manual skill DOCS SILENT on CPU-only compose daemon: this build links the GPU STUB (aien-omega-gpu: no AIEN_OMEGA_DIR or AIEN_OMEGA_GPU_LIB, building the CPU stub); no chip, driver or allocation is touched; GPU runs will be under quietlock only +== sc-own30b +2026-10-13T17:43:59Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | OWN-30B F: no new allocation flags; weights and KV use the existing resident/paged allocators +== sc-own30b-a16b +2026-10-14T04:59:24Z nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | DOCS SILENT on numerics; own layer omega codegen_pattn.h, codegen_attn.h +== sc-own30b-lm +2026-10-13T21:52:38Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. +== sc-own30b-rc3 +2026-10-14T05:23:54Z physics-own30b nvos.h:1117 YES - Enable gpu caching if supported on this hardware. For system memory this will not be coherent with direct CPU mappings. +2026-10-14T11:46:49Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1113-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | host-written per-round tables (GEMM segments, row maps) and every verify buffer use omega_gpu_session_alloc (uncached). DOCS SILENT on SASS kernel numerics (own layer: omega src/omega_blackwell_codegen_dec.h, omega_blackwell_codegen_gemm.h) +== sc-own30b-resident +2026-10-14T03:40:21Z handoffs/own30b-L2h-report.md Gate + scripts/own30b-resident-gate.sh header (own layer); CUDA Programming Guide occupancy as recorded by W-L2i Runs ONLY in a pause window: loads the 30 GB model four times (one at a time, under /tmp/aien-gb10.lock); it refuses when less than 70 GB is available. DOCS SILENT on full-model resident behaviour (no vendor doc for our resident kernel) +== sc-own30b-spec-wp +2026-10-14T03:40:21Z handoffs/own30b-L4d-report.md Next (own layer) DOCS SILENT on speculative verify on GB10 (own algorithm; no vendor doc) +== sc-own30b-specbatch +2026-10-14T11:46:49Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1113-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | host-written per-round tables (GEMM segments, row maps) and every verify buffer use omega_gpu_session_alloc (uncached). DOCS SILENT on SASS kernel numerics (own layer: omega src/omega_blackwell_codegen_dec.h, omega_blackwell_codegen_gemm.h) +== sc-own30b-specwp +2026-10-14T03:40:33Z handoffs/own30b-L4d-report.md Next (own layer) DOCS SILENT on speculative verify on GB10 (own algorithm; no vendor doc) +2026-10-14T05:23:54Z physics-own30b nvos.h:1117 YES - Enable gpu caching if supported on this hardware. For system memory this will not be coherent with direct CPU mappings. +== sc-own30b-wp +2026-10-14T00:55:35Z nvidia-open-580.173.02 nvos.h:1113-1118 (NVOS32_ATTR2_GPU_CACHEABLE) YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | recorder reads device buffers only through a GPU-uncached HOST buffer (omega_gpu_pf_alloc_host) +== sc-q3camp +2026-10-07T06:46:13Z /usr/src/nvidia-580.173.02/nvidia/nv-vm.c:236-261 (driver 580.173.02) unsigned int gfp_mask = NV_GFP_KERNEL; ... gfp_mask |= __GFP_RETRY_MAYFAIL; DOCS SILENT on GR context buffer contiguity +== sc-q3v2 +2026-10-07T12:09:47Z /usr/src/nvidia-580.173.02/nvidia/nv-vm.c:236-261 (driver 580.173.02) gfp_mask |= __GFP_RETRY_MAYFAIL; (page allocations may fail under memory pressure instead of retrying) | DOCS SILENT on GR context buffer contiguity (omega#327 trigger) +== sc-qknorm +2026-10-07T04:43:53Z nvidia-open-580.173.02 nvstatuscodes.h:110 + DGX Spark user guide known issues (via spark-hardware-manual s1) NV_ERR_NO_MEMORY 0x00000051 "Out of memory"; Spark: one unified LPDDR5x pool, cudaMemGetInfo may under-report free memory because the CPU can swap pages; DOCS SILENT on RM ctx-buffer reclaim policy +== sc-r6 +2026-10-11T01:08:15Z https://docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark), Guidance for reporting memory resources with UMA DGX Spark systems utilize a unified memory architecture (UMA) where the GPU shares system DRAM with the CPU. Because the CPU can dynamically manage memory by swapping pages between DRAM and SWAP, the cudaMemGetInfo API may report less memory than is actually allocatable. | DOCS SILENT on per-process chip-call counters (R6 reads chip_calls only; no launcher or allocation change) +== sc-requal-main +2026-10-15T00:49:39Z physics 6d7cf0d third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1114-1118 + class/clc96f.h:72-73 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | clc96f.h:73 NVC96F_MEM_OP_D_OPERATION_L2_SYSMEM_NCOH_INVALIDATE 0x11 exists (no comment). DOCS SILENT on whether a host write to a GPU-cached sysmem buffer is seen by the next launch without an L2 invalidate (omega #457, measured here); DOCS SILENT on whether RM invalidates L2 on nvrm_free +== sc-spin +2026-10-07T07:25:57Z omega src/omega_gpu_session.c:41-44 (our layer, marker wait) With spin_us, the host first re-reads the uncached marker word back to back (with the ARM yield hint) so a launch that finishes inside the window is seen within about one read, instead of after a 50 us sleep that Linux timer slack stretches further. +== sc-strict +2026-10-03T16:23:52Z docs.nvidia.com/dgx/dgx-spark (Context7 /websites/nvidia_dgx_dgx-spark), GB10 spec; same read as sc-kv-admission this session Blackwell GPU (compute capability SM 12.1, which differs from datacenter Blackwell) +== sc-v12 +2026-10-11T01:08:15Z https://docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark), Guidance for reporting memory resources with UMA DGX Spark systems utilize a unified memory architecture (UMA) where the GPU shares system DRAM with the CPU. Because the CPU can dynamically manage memory by swapping pages between DRAM and SWAP, the cudaMemGetInfo API may report less memory than is actually allocatable. | DOCS SILENT on per-process chip-call counters (R6 reads chip_calls only; no launcher or allocation change) +== sc94 +2026-10-10T02:51:47Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:471 (GPU engine build+run via omega pinned 6c6180cf for sc#94 golden path) } NVOS21_PARAMETERS; +== smollm2-qualification +2026-10-06T23:56:54Z https://docs.nvidia.com/dgx/dgx-spark/known-issues.html (Guidance for reporting memory resources with unified memory architecture; Estimate available memory on UMA systems) Because the CPU can dynamically manage memory by swapping pages between DRAM and SWAP, the cudaMemGetInfo API may report less memory than is actually allocatable ... parse /proc/meminfo (MemAvailable, SwapFree, HugePages_Total/Free, Hugepagesize); nvidia-smi Memory-Usage Not Supported is expected on iGPU +== sovereign-core +2026-10-04T01:39:27Z skill spark-hardware-manual section 2 + nvos.h:1112 DOCS SILENT on release-workflow artifact bookkeeping (reading .github/workflows/release.yml and a Rust test name only, no chip or driver code is touched) +2026-10-07T04:27:02Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvstatuscodes.h:110 NV_STATUS_CODE(NV_ERR_NO_MEMORY, 0x00000051, "Out of memory") +2026-10-07T16:32:50Z nvos.h:1117 (nvidia-open-580.173.02) YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. (We run only the existing uncached-flag launcher; no chip/driver edits) +2026-10-08T22:06:25Z https://docs.nvidia.com/dgx/dgx-spark/known-issues.html (Context7 /websites/nvidia_dgx_dgx-spark) On iGPU platforms, nvidia-smi may report Memory-Usage as Not Supported. This is expected behavior because iGPUs do not utilize dedicated framebuffer memory. | DGX Spark systems utilize a unified memory architecture (UMA) where the GPU shares system DRAM with the CPU. +== spin +2026-10-07T07:25:57Z omega src/omega_gpu_session.c:41-44 (our layer, marker wait) With spin_us, the host first re-reads the uncached marker word back to back (with the ARM yield hint) so a launch that finishes inside the window is seen within about one read, instead of after a 50 us sleep that Linux timer slack stretches further. +== t4 +2026-10-06T22:08:39Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. +== v7 +2026-10-06T23:36:21Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h:1112-1118 (NVOS32_ATTR2_GPU_CACHEABLE); our layer physics 6d7cf0d nvrm/nvrm.c:473-474,631 (fifo + flags via nvrm_alloc_gpu_uncached) GPU_CACHEABLE_YES: For system memory this will not be coherent with direct CPU mappings. v7 changes no chip/driver code; it runs the reviewed stack (omega c0369e6, physics 6d7cf0d) whose host-polled words use GPU_CACHEABLE_NO +== v7check +2026-10-06T22:08:39Z nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. (DOCS SILENT on per-token decode latency; read-only investigation of host decode loop) +== workspace +2026-10-03T17:16:08Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h ~1112 NVOS32_ATTR2_GPU_CACHEABLE_YES: For system memory this will not be coherent with direct CPU mappings. +2026-10-05T18:46:26Z https://docs.nvidia.com/cuda/cuda-programming-guide/03-advanced/advanced-kernel-programming.html (Independent Thread Scheduling) via Context7 /websites/nvidia_cuda_cuda-programming-guide Independent thread scheduling, available on GPUs with compute capability 7.0 and later, maintains execution state per thread, including a program counter and call stack. | DOCS SILENT on SASS encodings and control-word (stall/scoreboard/yield) fields; own layer omega src/omega_gpu_elementwise_api.c:9-18 +== wt-305 +2026-10-05T20:11:10Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1117-1118 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. +== wt-C1-omega +2026-10-05T04:29:00Z physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc/nvos.h:1116 YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | DOCS SILENT on Omega op shape limits; own layer: omega src/omega_gpu_elementwise_api.c:527 dim % OMEGA_GPU_EW_THREADS(128), omega_gpu_attention_api.c:603 head_dim != 64 -> TOO_LARGE +== wt-C1e-arch-cand1 +2026-10-05T06:11:55Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h: NVOS32_ATTR2_GPU_CACHEABLE_YES: For system memory this will not be coherent with direct CPU mappings. DOCS SILENT on aien-runtime e2e test assertions (test logic, not driver) +2026-10-05T06:12:03Z nvidia-open-580.173.02 src/common/sdk/nvidia/inc/nvos.h:1116-1118 DEFAULT: gpu uncached for system memory; YES: for system memory this will not be coherent with direct CPU mappings. DOCS SILENT on aien-runtime e2e test assertions +== wt-r15d +2026-10-05T19:57:18Z nvidia-open-580.173.02 nvos.h:1113-1118 (NVOS32_ATTR2_GPU_CACHEABLE); clc96f.h:72 L2_FLUSH_DIRTY YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | DOCS SILENT on whether SEM_EXECUTE RELEASE_WFI flushes GPU L2 (clc96f.h:85 only names the WFI bit) +== wt-sec2 +2026-10-05T19:57:18Z nvidia-open-580.173.02 nvos.h:1113-1118 (NVOS32_ATTR2_GPU_CACHEABLE); clc96f.h:72 L2_FLUSH_DIRTY YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings. | DOCS SILENT on whether SEM_EXECUTE RELEASE_WFI flushes GPU L2 (clc96f.h:85 only names the WFI bit) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/lib.sha256 b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/lib.sha256 new file mode 100644 index 000000000..f5691757a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/lib.sha256 @@ -0,0 +1 @@ +6a6cb4df479ddbcc5cd4ef0fda1aea968832b2b70be2ff3312051c3e9921aad5 /home/drakestapleton/workspace/omega-requal-main/build/libomega_gpu.a diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/plan.md b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/plan.md new file mode 100644 index 000000000..fe902f695 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/plan.md @@ -0,0 +1,30 @@ +# Plan (omega #457) +DOCS READ: nvos.h:1117-1118 "YES - Enable gpu caching if supported on this surface type. For system memory this will not be coherent with direct CPU mappings." clc96f.h:73 L2_SYSMEM_NCOH_INVALIDATE 0x11 (no comment). DOCS SILENT on whether the next launch sees a host write to a GPU-cached sysmem buffer without an L2 invalidate. +QUESTION (one line): after the host rewrites a GPU-cached (CPU_WRITE|GPU_READ) buffer the GPU already read, does the next launch read the old bytes from L2? +OUR CODE: omega src/omega_gpu_mem_cached.c (alloc GPU_CACHED), omega_gpu_platform_linux.c:180-187 (comment: written once before any GPU read), ref_sync = dsb sy only (:233-241). Only user: omega_gpu_fp8_api.c:268 (AIEN_OMEGA_FP8_WEIGHT_CACHE=1). +SMALLEST REPRO: src/l2_stale_test.c on the real FP8 GEMV path. Tensor 1 expert x 256 x 2048 (512 KB, L2-sized), scales 1.0, x = 1.0. + A = all weights e4m3 +1.0 (0x38) -> y = +2048 per row. B = all -1.0 (0xB8) -> y = -2048. + CAMERA: y decodes exactly into stale 128-byte lines per row: stale_lines = (y + 2048) / 256 (16 lines per row). +VARIANTS (one variable: cache policy; each run is one process): + rewrite: upload A, GEMV (GPU reads A), host memcpy B into the same buffer + sync_to_gpu (what upload does), GEMV, decode. + realloc: upload A, GEMV, free, upload B (new buffer, VA printed, same-VA noted), GEMV, decode. + each run under cached=0 (NEGATIVE CONTROL: uncached mapping, must read 0 stale) and cached=1; 5 runs each. + Instrument-can-say-yes check: the first GEMV on A must give +2048 (if the decode is broken it cannot show A). +RULES: candidate untouched (repro lives here, links the frozen build/libomega_gpu.a); no chip kill; GB10 lock + quiet hold. +## Deviations +- PINS first recorded scaffold defaults; corrected (appended) to omega-requal-main 710d438c clean, physics 6d7cf0d4 clean. +- After the answer (YES) a fix candidate was built in a separate worktree (~/workspace/omega-457-fix, branch fix/457-l2-inval-after-host-write) + and measured as one variable (variant=fix). It is proposed, not merged here. +## Result +ANSWER: YES. A host rewrite of a GPU-cached buffer the GPU already read is NOT seen by later launches. +BASELINE (variant=baseline, lib 6a6cb4df = omega main archive, runs/summary.txt): + rewrite cached=1: STALE_READ 5/5, 4096 of 4096 lines stale on each of 3 launches after the rewrite (y = +2048, want -2048) [OBSERVED runs/rewrite-c1-r*.log] + rewrite cached=0 (negative control): FRESH 5/5. realloc cached=0|1: FRESH 5/5 each (same VA 0x1004133000 reused; phys UNKNOWN). + Instrument can say yes: gemv-A read +2048 on all 256 rows in every run. +VARIANT fix (lib 8b7c0678, fix-variant.diff: pending L2_SYSMEM_NCOH_INVALIDATE at the start of the next submission after + sync_cpu_to_gpu on a GPU-cached buffer): 20/20 FRESH, incl. rewrite cached=1 5/5 (runs/summary-fix.txt). +REGRESSION GATE tools/run_gpu_l2_stale_chip.sh: red on unfixed 710d438c = FAIL (rewrite c1 STALE_READ 5/5, others FRESH 15/15, + gate-red/); green on fix = PASS 20/20 (gate-fix/). Same base 710d438c, one variable (platform change). +NO-REGRESSION on fix: fp8, decode_graph cached, cmdlist chip gates PASS (fixgates/). +LIMITS: one tensor shape (512 KB, L2-sized); fp8 GEMV path only; production code today writes cached weights once before any + GPU read, so no live corruption was observed; realloc FRESH does not prove RM invalidates at free (DOCS SILENT). diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r1.log new file mode 100644 index 000000000..d0a63aa4b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:25Z ./l2_stale_test_fix --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r2.log new file mode 100644 index 000000000..775759496 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:26Z ./l2_stale_test_fix --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r3.log new file mode 100644 index 000000000..75c14a349 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:27Z ./l2_stale_test_fix --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r4.log new file mode 100644 index 000000000..75c14a349 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:27Z ./l2_stale_test_fix --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r5.log new file mode 100644 index 000000000..9fab39dfe --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c0-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:28Z ./l2_stale_test_fix --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r1.log new file mode 100644 index 000000000..c5f0a2f62 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:25Z ./l2_stale_test_fix --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r2.log new file mode 100644 index 000000000..748ac9ce2 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:26Z ./l2_stale_test_fix --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r3.log new file mode 100644 index 000000000..52aeb6342 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:27Z ./l2_stale_test_fix --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r4.log new file mode 100644 index 000000000..c5cd52452 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:28Z ./l2_stale_test_fix --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r5.log new file mode 100644 index 000000000..c5cd52452 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-realloc-c1-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:28Z ./l2_stale_test_fix --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r1.log new file mode 100644 index 000000000..d2c0befbb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:25Z ./l2_stale_test_fix --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r2.log new file mode 100644 index 000000000..d2c0befbb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:25Z ./l2_stale_test_fix --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r3.log new file mode 100644 index 000000000..efa630814 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:26Z ./l2_stale_test_fix --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r4.log new file mode 100644 index 000000000..21e04da10 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:27Z ./l2_stale_test_fix --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r5.log new file mode 100644 index 000000000..aac2add7b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c0-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:28Z ./l2_stale_test_fix --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r1.log new file mode 100644 index 000000000..d0071ab21 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:25Z ./l2_stale_test_fix --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r2.log new file mode 100644 index 000000000..eaeb6e3b7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:26Z ./l2_stale_test_fix --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r3.log new file mode 100644 index 000000000..eaeb6e3b7 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:26Z ./l2_stale_test_fix --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r4.log new file mode 100644 index 000000000..4fd120078 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:27Z ./l2_stale_test_fix --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r5.log new file mode 100644 index 000000000..4a943fe74 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/fix-rewrite-c1-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T01:14:28Z ./l2_stale_test_fix --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r1.log new file mode 100644 index 000000000..f7a7a07ed --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:33Z ./l2_stale_test --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r2.log new file mode 100644 index 000000000..20ed4ed00 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:34Z ./l2_stale_test --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r3.log new file mode 100644 index 000000000..52d939a0b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:35Z ./l2_stale_test --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r4.log new file mode 100644 index 000000000..ef17c413e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:36Z ./l2_stale_test --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r5.log new file mode 100644 index 000000000..da3828113 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c0-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:37Z ./l2_stale_test --mode realloc --cached 0 --reps 3 +RUN mode=realloc cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r1.log new file mode 100644 index 000000000..2a256cb95 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:34Z ./l2_stale_test --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r2.log new file mode 100644 index 000000000..2a256cb95 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:34Z ./l2_stale_test --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r3.log new file mode 100644 index 000000000..1c7231fa9 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:35Z ./l2_stale_test --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r4.log new file mode 100644 index 000000000..cb5d4b4bd --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:36Z ./l2_stale_test --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r5.log new file mode 100644 index 000000000..246858e31 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/realloc-c1-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:37Z ./l2_stale_test --mode realloc --cached 1 --reps 3 +RUN mode=realloc cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST freed A (va 0x1004133000), uploaded B at va 0x1004133000 same_va=yes phys=UNKNOWN reason=no physical address in the API +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r1.log new file mode 100644 index 000000000..55da671bb --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:33Z ./l2_stale_test --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r2.log new file mode 100644 index 000000000..afdf4b9b4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:34Z ./l2_stale_test --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r3.log new file mode 100644 index 000000000..afdf4b9b4 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:34Z ./l2_stale_test --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r4.log new file mode 100644 index 000000000..14b3d6c73 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:35Z ./l2_stale_test --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r5.log new file mode 100644 index 000000000..2fcb56180 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c0-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:36Z ./l2_stale_test --mode rewrite --cached 0 --reps 3 +RUN mode=rewrite cached=0 weight_cache_now=0 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=-2048.0 y_max=-2048.0 +STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r1.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r1.log new file mode 100644 index 000000000..4d2e6c41e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r1.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:33Z ./l2_stale_test --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r2.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r2.log new file mode 100644 index 000000000..4b1cdea00 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r2.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:34Z ./l2_stale_test --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r3.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r3.log new file mode 100644 index 000000000..85d67ccda --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r3.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:35Z ./l2_stale_test --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r4.log new file mode 100644 index 000000000..bf5bc8182 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r4.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:36Z ./l2_stale_test --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r5.log new file mode 100644 index 000000000..bf5bc8182 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/rewrite-c1-r5.log @@ -0,0 +1,9 @@ +# 2026-10-15T00:54:36Z ./l2_stale_test --mode rewrite --cached 1 --reps 3 +RUN mode=rewrite cached=1 weight_cache_now=1 n=256 k=2048 reps=3 +SNAP site=gemv-A expected=2048 rows=256 stale_rows=0 stale_lines=0 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +HOST rewrote w (va 0x1004133000) with B and synced +SNAP site=gemv-B-1 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-2 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +SNAP site=gemv-B-3 expected=-2048 rows=256 stale_rows=256 stale_lines=4096 of 4096 undecoded=0 y_min=2048.0 y_max=2048.0 +STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +# exit 0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/run-all.sh b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/run-all.sh new file mode 100755 index 000000000..18e922a00 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/run-all.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# 5 rounds; each round: rewrite/cached0 (baseline, negative control), rewrite/cached1, realloc/cached0, realloc/cached1. One process each. +cd "$(dirname "$0")/.." +for r in 1 2 3 4 5; do + for m in rewrite realloc; do for c in 0 1; do + f=runs/$m-c$c-r$r.log + { echo "# $(date -u +%FT%TZ) ./l2_stale_test --mode $m --cached $c --reps 3"; ./l2_stale_test --mode $m --cached $c --reps 3; echo "# exit $?"; } > $f 2>&1 + grep -h '^STALE\|INVALID\|^FAIL' $f | sed "s|^|r$r |" + done; done +done diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/run-fix.sh b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/run-fix.sh new file mode 100755 index 000000000..9d3460e0c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/run-fix.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# variant=fix (omega-457-fix platform change only), same 4 cases x 5 rounds as run-all.sh +cd "$(dirname "$0")/.." +for r in 1 2 3 4 5; do for m in rewrite realloc; do for c in 0 1; do + f=runs/fix-$m-c$c-r$r.log + { echo "# $(date -u +%FT%TZ) ./l2_stale_test_fix --mode $m --cached $c --reps 3"; ./l2_stale_test_fix --mode $m --cached $c --reps 3; echo "# exit $?"; } > $f 2>&1 + grep -h '^STALE\|INVALID\|^FAIL' $f | sed "s|^|fix r$r |" +done; done; done diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/summary-fix.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/summary-fix.txt new file mode 100644 index 000000000..9b18fc9c3 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/summary-fix.txt @@ -0,0 +1,20 @@ +fix r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +fix r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/summary.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/summary.txt new file mode 100644 index 000000000..8539ceb1e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/runs/summary.txt @@ -0,0 +1,20 @@ +r1 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r1 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +r1 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r1 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +r2 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r2 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +r2 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r2 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +r3 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r3 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +r3 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r3 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +r4 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r4 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +r4 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r4 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH +r5 STALE mode=rewrite cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r5 STALE mode=rewrite cached=1 stale_or_undecoded_lines_total=12288 verdict=STALE_READ +r5 STALE mode=realloc cached=0 stale_or_undecoded_lines_total=0 verdict=FRESH +r5 STALE mode=realloc cached=1 stale_or_undecoded_lines_total=0 verdict=FRESH diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/src/l2_stale_test.c b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/src/l2_stale_test.c new file mode 100644 index 000000000..c37abf778 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/src/l2_stale_test.c @@ -0,0 +1,105 @@ +/* l2_stale_test: omega #457. After the host rewrites a GPU-cached (CPU_WRITE | GPU_READ) buffer that the GPU has + * already read, does the next launch read the old bytes from GPU L2? + * + * Real path only: omega_gpu_fp8_tensor_upload (memcpy into the CPU mapping + omega_gpu_session_sync_to_gpu, which is + * a dsb sy and nothing else) and omega_gpu_fp8_gemv_f32 (one launch, C3 tail, output read back from uncached memory). + * One variable per process: --cached 0|1 (omega_gpu_fp8_set_weight_cache). --cached 0 is the negative control + * (uncached mapping: nvos.h:1117-1118 says only the cached case is not coherent with CPU mappings). + * + * Tensor: 1 expert x N=256 x K=2048 e4m3 (512 KB), scales bf16 1.0, x = 1.0. + * A = every weight +1.0 (0x38) -> every y = +2048. B = every weight -1.0 (0xB8) -> every y = -2048. + * Camera: a row's 2048 bytes are 16 lines of 128 B; a stale line adds +128 instead of -128, so + * stale_lines(row) = (y + 2048) / 256, exact in f32. Any other y is printed as UNDECODED. + * Modes: + * rewrite upload A, GEMV (GPU reads A), host memcpy B into the SAME buffer + sync_to_gpu, then GEMV x reps. + * realloc upload A, GEMV, free A, upload B (fresh buffer: VA printed, same-VA noted), then GEMV x reps. + * The first GEMV on A must read +2048 on every row: that shows the decode can see A's bytes at all. + * Exit 0 = ran (verdict in the STALE line), 1 = API failure, 2 = usage. */ +#include "omega_gpu_fp8_api.h" +#include "omega_gpu_session.h" +#include +#include +#include +#include + +/* Copied verbatim from omega src/omega_gpu_fp8_api.c:20-24 (frozen candidate, not modified). Checked at run time + * against the public omega_gpu_fp8_tensor_entry() VAs; a mismatch aborts. */ +struct OmegaGpuFp8Tensor { + uint32_t experts, n, k; + OmegaGpuMem w; /* experts * n * k e4m3 bytes, row-major */ + OmegaGpuMem s; /* experts * (n/128) * (k/128) f32 (scale * 2^56) */ +}; + +#define N 256u +#define K 2048u + +static int snap(const char *site, const float *y, float expect) { + uint32_t stale_rows = 0, stale_lines = 0, undecoded = 0; float lo = y[0], hi = y[0]; + for (uint32_t r = 0; r < N; r++) { + if (y[r] < lo) lo = y[r]; + if (y[r] > hi) hi = y[r]; + if (expect > 0) { if (y[r] != 2048.0f) undecoded++; continue; } + float s = (y[r] + 2048.0f) / 256.0f; + if (s != (float)(int)s || s < 0 || s > 16) { undecoded++; continue; } + if (s > 0) { stale_rows++; stale_lines += (uint32_t)s; } + } + printf("SNAP site=%s expected=%.0f rows=%u stale_rows=%u stale_lines=%u of %u undecoded=%u y_min=%.1f y_max=%.1f\n", + site, expect, N, stale_rows, stale_lines, N * 16u, undecoded, lo, hi); + if (undecoded) printf("SNAP site=%s y_row0=%.3f interpretation=UNDECODED\n", site, y[0]); + return expect > 0 ? (undecoded ? -1 : 0) : (int)(stale_lines + undecoded); +} + +int main(int argc, char **argv) { + const char *mode = NULL; int cached = -1; uint32_t reps = 3; + for (int i = 1; i < argc; i++) { + if (strcmp(argv[i], "--mode") == 0 && i + 1 < argc) mode = argv[++i]; + else if (strcmp(argv[i], "--cached") == 0 && i + 1 < argc) cached = atoi(argv[++i]); + else if (strcmp(argv[i], "--reps") == 0 && i + 1 < argc) reps = (uint32_t)atoi(argv[++i]); + else { printf("usage: %s --mode rewrite|realloc --cached 0|1 [--reps R]\n", argv[0]); return 2; } + } + if (!mode || (strcmp(mode, "rewrite") && strcmp(mode, "realloc")) || (cached != 0 && cached != 1) || reps == 0 || reps > 64) { + printf("usage: %s --mode rewrite|realloc --cached 0|1 [--reps R]\n", argv[0]); return 2; + } + (void)omega_gpu_session_set_spin_us(2000); + omega_gpu_fp8_set_weight_cache(cached); + printf("RUN mode=%s cached=%d weight_cache_now=%d n=%u k=%u reps=%u\n", mode, cached, omega_gpu_fp8_weight_cache(), N, K, reps); + + uint8_t *wa = malloc((size_t)N * K), *wb = malloc((size_t)N * K); + uint16_t sc[(N / 128) * (K / 128)]; float x[K], y[N]; + memset(wa, 0x38, (size_t)N * K); memset(wb, 0xB8, (size_t)N * K); + for (size_t i = 0; i < sizeof sc / sizeof sc[0]; i++) sc[i] = 0x3F80; + for (uint32_t i = 0; i < K; i++) x[i] = 1.0f; + + OmegaGpuFp8Tensor *t = NULL; + int rc = omega_gpu_fp8_tensor_upload(1, N, K, wa, sc, &t); + if (rc != OMEGA_GPU_FP8_OK) { printf("FAIL upload A: %s\n", omega_gpu_fp8_last_error()); return 1; } + uint64_t wva = 0, sva = 0; + if (omega_gpu_fp8_tensor_entry(t, 0, &wva, &sva) != 0 || wva != t->w.va || sva != t->s.va || !t->w.cpu) { + printf("FAIL mirror struct does not match omega (entry w_va 0x%" PRIx64 " vs mirror 0x%" PRIx64 ")\n", wva, t->w.va); return 1; + } + const uint64_t va_a = t->w.va; + memset(y, 0, sizeof y); + if ((rc = omega_gpu_fp8_gemv_f32(t, 0, x, y, NULL)) != OMEGA_GPU_FP8_OK) { printf("FAIL gemv A: %s\n", omega_gpu_fp8_last_error()); return 1; } + if (snap("gemv-A", y, 2048.0f) != 0) { printf("STALE verdict=INVALID reason=first read of A is not +2048 (decode cannot see A)\n"); return 1; } + + if (strcmp(mode, "rewrite") == 0) { + memcpy(t->w.cpu, wb, (size_t)N * K); /* what omega_gpu_fp8_tensor_upload does, on the same buffer */ + if (omega_gpu_session_sync_to_gpu(&t->w) != 0) { printf("FAIL sync: %s\n", omega_gpu_session_last_error()); return 1; } + printf("HOST rewrote w (va 0x%" PRIx64 ") with B and synced\n", va_a); + } else { + omega_gpu_fp8_tensor_free(t); t = NULL; + if ((rc = omega_gpu_fp8_tensor_upload(1, N, K, wb, sc, &t)) != OMEGA_GPU_FP8_OK) { printf("FAIL upload B: %s\n", omega_gpu_fp8_last_error()); return 1; } + printf("HOST freed A (va 0x%" PRIx64 "), uploaded B at va 0x%" PRIx64 " same_va=%s phys=UNKNOWN reason=no physical address in the API\n", + va_a, t->w.va, t->w.va == va_a ? "yes" : "no"); + } + uint32_t total = 0; + for (uint32_t r = 0; r < reps; r++) { + char site[32]; snprintf(site, sizeof site, "gemv-B-%u", r + 1); + for (uint32_t i = 0; i < N; i++) y[i] = 12345.0f; + if ((rc = omega_gpu_fp8_gemv_f32(t, 0, x, y, NULL)) != OMEGA_GPU_FP8_OK) { printf("FAIL gemv B: %s\n", omega_gpu_fp8_last_error()); return 1; } + total += (uint32_t)snap(site, y, -2048.0f); + } + printf("STALE mode=%s cached=%d stale_or_undecoded_lines_total=%u verdict=%s\n", mode, cached, total, total ? "STALE_READ" : "FRESH"); + omega_gpu_fp8_tensor_free(t); free(wa); free(wb); + return 0; +} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/state-after.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/state-after.txt new file mode 100644 index 000000000..49e0ce51c --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/omega457/state-after.txt @@ -0,0 +1,4 @@ +sealed=2026-10-15T01:15:39Z +physics=e95e3ed dirty=0 +omega=ce42e62f dirty=127 +queue=quiet flag: HELD by 'OWN30B quietlock OWN-30B_requal_check-full' pid=2690278 alive=yes minutes_left=19 queue: 0 job(s) flush lock: none workers (task dir /tmp/claude-1000/-home-drakestapleton/294ea9b6-30d4-4265-b77f-085ab4d95397/tasks): diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn.out b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn.out new file mode 100644 index 000000000..74ceaca82 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn.out @@ -0,0 +1,270 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +gpu_prefill_attn_test: 69 checks, 0 failed: PASS +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +sim one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 5 tokens from 0 (partial CTA) W=8: ok bad=0 worst=0.257 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.112 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, sharp q (x4) W=8: ok bad=0 worst=0.107 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 64 tokens from 100 (full chunk) W=8: ok bad=0 worst=0.067 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 70 tokens from 0 (two chunks) W=8: ok bad=0 worst=0.291 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 33 tokens from 200, warps 4 W=4: ok bad=0 worst=0.051 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 5 tokens from 0 W=8: ok bad=0 worst=0.255 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.108 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 70 tokens from 0 W=8: ok bad=0 worst=0.276 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.117 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 5 tokens from 0 W=8: ok bad=0 worst=0.227 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.095 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.126 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 45 tokens from 300 W=8: ok bad=0 worst=0.042 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim fused mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim fused mutant 2 at 24 tokens from 40: caught (bad=65059 worst=33.577 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim fused mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim fused mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim split mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim split mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim mirror mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim mirror mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim: 10233092 warp issues in total +gpu_prefill_attn_test: 97 checks, 0 failed: PASS +cache alloc (1 layer, 32768 positions): rc=OK 338.6 ms () +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.1ms chip_med=81.2us (25.8 GB/s) call_med=83.8us reps=3 +gpu_decode_attn_test: 4 checks, 0 failed: PASS +baseline exit 0 (recorded) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x256 thr; chip 0.221 ms call 11.390 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.106 ms call 0.341 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 3x4 x256 thr; chip 0.285 ms call 4.131 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.966 ms call 2.055 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.214 ms call 1.889 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.208 0.208 0.207 0.207 0.207 0.207 0.207 0.206 + slowest rep, per launch ms (2 launches): 0.106 0.103 + timing prefill pos0 0 m 64: chip median 0.207 ms (min 0.206) call median 0.396 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.696 ms call 6.856 ms + speed: prefill 0.207 ms vs decode loop 6.696 ms chip time: 32.4x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 9x4 x256 thr; chip 0.311 ms call 1.926 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.338 ms call 7.517 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.280 ms call 1.069 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.727 ms call 6.883 ms +chip pos0 0 m 512: parity bad=0 worst=0.237; rows vs emulation k 2 (max 1 ulp) v 0; chunks 2 grid 64x4 x256 thr; chip 0.522 ms call 8.243 ms + reps chip ms (in order, 0 untimed warm calls first): 0.416 0.414 0.516 0.414 0.413 0.413 0.413 0.413 0.516 + slowest rep, per launch ms (2 launches): 0.107 0.410 + timing prefill pos0 0 m 512: chip median 0.414 ms (min 0.413) call median 2.277 ms; 5.19 useful TFLOPS on chip time + gate 2 vs 512 decode steps: rows k 0 v 0 differ; outputs worst 0.237 of tol; decode loop chip 52.947 ms call 55.995 ms + speed: prefill 0.414 ms vs decode loop 52.947 ms chip time: 127.8x +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.554 ms call 5.496 ms + reps chip ms (in order, 0 untimed warm calls first): 0.414 0.413 0.413 0.411 0.415 0.414 0.411 0.412 0.411 + slowest rep, per launch ms (2 launches): 0.108 0.308 + timing prefill pos0 4032 m 64: chip median 0.413 ms (min 0.411) call median 0.603 ms; 10.33 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.011 of tol; decode loop chip 19.885 ms call 20.109 ms + speed: prefill 0.413 ms vs decode loop 19.885 ms chip time: 48.2x +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.061 ms call 24.678 ms + reps chip ms (in order, 0 untimed warm calls first): 2.171 2.157 2.154 2.669 2.153 2.053 2.152 3.171 2.256 + slowest rep, per launch ms (4 launches): 0.105 0.715 0.207 2.144 + timing prefill pos0 0 m 2048: chip median 2.157 ms (min 2.053) call median 9.765 ms; 15.94 useful TFLOPS on chip time +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 9x4; chip 0.271 ms call 0.757 ms +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 2.024 ms call 3.696 ms + dev reps chip ms: 2.064 2.041 1.939 2.045 2.041 1.937 2.036 2.241 1.938 + timing dev pos0 0 m 2048: chip median 2.041 ms (min 1.937) call median 2.042 ms; 16.84 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.726 ms call 6.700 ms + dev reps chip ms: 3.597 3.466 3.465 3.465 3.463 3.465 3.466 3.463 3.437 + timing dev pos0 4096 m 1500: chip median 3.465 ms (min 3.437) call median 3.466 ms; 34.38 useful TFLOPS on chip time +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 164 checks, 0 failed: PASS +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 4, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x128 thr; chip 0.222 ms call 11.383 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.105 ms call 0.353 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 5x4 x128 thr; chip 0.281 ms call 4.119 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.964 ms call 2.047 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.213 ms call 1.783 ms + reps chip ms (in order, 0 untimed warm calls first): 0.210 0.207 0.207 0.208 0.207 0.207 0.208 0.207 0.207 + slowest rep, per launch ms (2 launches): 0.105 0.105 + timing prefill pos0 0 m 64: chip median 0.207 ms (min 0.207) call median 0.394 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.549 ms call 6.700 ms + speed: prefill 0.207 ms vs decode loop 6.549 ms chip time: 31.6x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 18x4 x128 thr; chip 0.285 ms call 1.704 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.670 ms call 7.884 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.278 ms call 1.095 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.623 ms call 6.803 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 18x4; chip 0.271 ms call 0.797 ms +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 0 failed: PASS +warps 4 exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 1x4 x256 thr; chip 0.218 ms call 0.532 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.107 ms call 0.316 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 3x4 x256 thr; chip 0.108 ms call 0.451 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.944 ms call 2.023 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.208 ms call 0.901 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.106 0.106 0.106 0.105 0.105 0.105 0.105 0.189 + slowest rep, per launch ms (1 launches): 0.209 + timing prefill pos0 0 m 64: chip median 0.106 ms (min 0.105) call median 0.295 ms; 0.32 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.545 ms call 6.886 ms + speed: prefill 0.106 ms vs decode loop 6.545 ms chip time: 61.9x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.315 ms call 0.717 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.191 ms call 7.521 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.208 ms call 0.568 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.622 ms call 6.983 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.312 ms call 0.314 ms +FAIL: continuation: mirror view valid 0 (want 369) stride 0 +FAIL: negative control: a foreign rewrite without invalidate must show (stale mirror), 0 outputs differ +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 0; outputs differ mirror vs none: 0; stale control 0 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 2 failed: FAIL +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 6.434 ms call 20.709 ms + reps chip ms (in order, 0 untimed warm calls first): 7.202 7.007 6.792 6.707 7.228 6.395 6.689 6.608 6.599 6.612 7.107 6.611 6.504 7.098 6.506 + slowest rep, per launch ms (32 launches): 0.105 0.105 0.105 0.105 0.105 0.104 0.206 0.207 0.205 0.212 0.207 0.206 0.207 0.206 0.206 0.206 0.205 0.206 0.206 0.206 0.206 0.206 0.307 0.409 0.308 0.309 0.309 0.410 0.310 0.307 0.308 0.318 + timing prefill pos0 0 m 2048: chip median 6.689 ms (min 6.395) call median 13.286 ms; 5.14 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.292 ms call 7.309 ms + dev reps chip ms: 6.874 6.848 6.853 6.855 6.832 7.397 6.925 6.814 7.738 6.860 6.967 7.171 7.062 7.071 7.750 + timing dev pos0 0 m 2048: chip median 6.925 ms (min 6.814) call median 6.943 ms; 4.96 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 12.244 ms call 12.256 ms + dev reps chip ms: 12.278 12.237 12.863 13.053 12.346 12.250 12.162 12.763 12.960 11.959 12.056 12.158 12.353 12.952 12.035 + timing dev pos0 4096 m 1500: chip median 12.278 ms (min 11.959) call median 12.293 ms; 9.70 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.934 ms call 1.357 ms + reps chip ms (in order, 0 untimed warm calls first): 0.415 0.410 0.413 0.411 0.410 0.411 0.410 0.410 0.410 0.410 0.410 0.409 0.410 0.410 0.411 + slowest rep, per launch ms (1 launches): 0.415 + timing prefill pos0 4032 m 64: chip median 0.410 ms (min 0.409) call median 0.596 ms; 10.39 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.419 ms call 0.420 ms + dev reps chip ms: 0.420 0.410 0.410 0.412 0.410 0.411 0.410 0.410 0.412 0.410 0.410 0.410 0.409 0.411 0.409 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.409) call median 0.411 ms; 10.56 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-cold exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 7.140 ms call 21.731 ms + reps chip ms (in order, 5 untimed warm calls first): 6.930 6.713 6.712 7.221 6.511 7.060 6.802 6.809 6.790 7.121 6.800 7.006 6.812 6.808 6.710 + slowest rep, per launch ms (32 launches): 0.105 0.104 0.104 0.110 0.105 0.206 0.208 0.205 0.206 0.207 0.206 0.206 0.205 0.207 0.206 0.210 0.207 0.207 0.206 0.208 0.208 0.207 0.206 0.307 0.409 0.308 0.307 0.308 0.411 0.308 0.307 0.310 + timing prefill pos0 0 m 2048: chip median 6.808 ms (min 6.511) call median 13.459 ms; 5.05 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.376 ms call 7.392 ms + dev reps chip ms: 6.767 7.479 6.872 6.871 6.973 6.947 6.796 6.968 6.870 6.866 6.970 7.783 7.579 6.975 6.972 + timing dev pos0 0 m 2048: chip median 6.968 ms (min 6.767) call median 6.983 ms; 4.93 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 12.476 ms call 12.487 ms + dev reps chip ms: 12.271 12.853 12.266 12.311 13.206 12.190 12.476 12.986 12.294 12.464 11.957 12.060 13.216 12.126 12.547 + timing dev pos0 4096 m 1500: chip median 12.311 ms (min 11.957) call median 12.326 ms; 9.67 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.634 ms call 1.108 ms + reps chip ms (in order, 5 untimed warm calls first): 0.409 0.405 0.410 0.410 0.410 0.409 0.410 0.410 0.410 0.411 0.409 0.410 0.409 0.410 0.411 + slowest rep, per launch ms (1 launches): 0.411 + timing prefill pos0 4032 m 64: chip median 0.410 ms (min 0.405) call median 0.598 ms; 10.40 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.419 ms call 0.420 ms + dev reps chip ms: 0.409 0.409 0.410 0.413 0.410 0.411 0.408 0.409 0.409 0.410 0.412 0.409 0.412 0.410 0.409 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.408) call median 0.410 ms; 10.56 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-warm5 exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.068 ms call 30.827 ms + reps chip ms (in order, 0 untimed warm calls first): 2.171 2.058 2.157 2.253 2.049 3.584 2.156 2.158 2.154 2.048 2.149 2.049 2.046 2.128 2.144 + slowest rep, per launch ms (4 launches): 0.209 2.043 0.105 1.228 + timing prefill pos0 0 m 2048: chip median 2.149 ms (min 2.046) call median 9.310 ms; 16.00 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.954 ms call 3.324 ms + dev reps chip ms: 1.953 2.041 1.940 2.045 2.038 1.937 1.938 1.941 1.938 1.937 1.929 2.040 2.037 2.036 2.138 + timing dev pos0 0 m 2048: chip median 1.953 ms (min 1.929) call median 1.955 ms; 17.60 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.927 ms call 6.602 ms + dev reps chip ms: 3.793 3.567 3.464 3.450 3.567 3.668 3.565 3.466 3.466 3.466 3.529 3.871 3.665 3.464 3.523 + timing dev pos0 4096 m 1500: chip median 3.529 ms (min 3.450) call median 3.530 ms; 33.75 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 1.915 ms call 6.864 ms + reps chip ms (in order, 0 untimed warm calls first): 0.415 0.414 0.411 0.411 0.412 0.411 0.412 0.411 0.413 0.411 0.412 0.415 0.411 0.413 0.413 + slowest rep, per launch ms (2 launches): 0.106 0.309 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.411) call median 0.604 ms; 10.35 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.560 ms call 2.908 ms + dev reps chip ms: 0.418 0.412 0.410 0.410 0.410 0.411 0.411 0.411 0.410 0.410 0.411 0.410 0.410 0.410 0.411 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.410) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-cold exit 0 (informational) +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.060 ms call 30.460 ms + reps chip ms (in order, 5 untimed warm calls first): 2.052 2.156 2.050 2.053 2.152 3.888 2.359 2.116 2.153 2.162 2.224 2.151 2.054 2.139 2.157 + slowest rep, per launch ms (4 launches): 0.105 0.716 0.210 2.858 + timing prefill pos0 0 m 2048: chip median 2.152 ms (min 2.050) call median 9.329 ms; 15.97 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 2.050 ms call 3.434 ms + dev reps chip ms: 2.085 2.218 1.998 2.132 2.039 2.038 2.038 1.940 1.938 2.041 2.135 2.260 1.951 2.156 2.101 + timing dev pos0 0 m 2048: chip median 2.041 ms (min 1.938) call median 2.042 ms; 16.85 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.773 ms call 6.720 ms + dev reps chip ms: 3.498 3.590 3.491 3.506 3.721 3.668 3.483 3.522 3.593 3.487 3.822 3.567 3.555 3.548 3.484 + timing dev pos0 4096 m 1500: chip median 3.548 ms (min 3.483) call median 3.552 ms; 33.57 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.661 ms call 6.531 ms + reps chip ms (in order, 5 untimed warm calls first): 0.413 0.414 0.415 0.413 0.411 0.412 0.412 0.411 0.412 0.411 0.412 0.414 0.410 0.412 0.412 + slowest rep, per launch ms (2 launches): 0.107 0.308 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.410) call median 0.604 ms; 10.35 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.560 ms call 3.324 ms + dev reps chip ms: 0.410 0.411 0.411 0.412 0.411 0.411 0.411 0.411 0.410 0.410 0.411 0.409 0.409 0.411 0.411 + timing dev pos0 4096 m 64: chip median 0.411 ms (min 0.409) call median 0.412 ms; 10.54 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-warm5 exit 0 (informational) +GPU_PREFILL_ATTN_CHIP: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/SHA256SUMS b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/SHA256SUMS new file mode 100644 index 000000000..dd8f70eed --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/SHA256SUMS @@ -0,0 +1,18 @@ +d79ea50c813482db28da13eaaeabac57e4ca00e09b4d5e5d64e805689455d7cd receipt-baseline-decode.json +ab569c7105b701dfaa41fa76dde363d17b37a84a09a7de4d93e8275bd2bd6439 receipt-main-fused.json +a67d1ad5fc75048f11b6b1168d8e54eb358bd487e687898846c399d8653b5e98 receipt-main.json +676b55e72b2a946af8718440fac707d5e984b76c5b266829488b518a2d7b742c receipt-warps4.json +0e3ff5ddf3dc25e4aee44fdfd3f25f17691e791251c2eaa2b9bd26567aac72f2 baseline-decode.log +404e788aaefae7f3317cd637108d0579b6206976f4c4379b8bb708cbd41e09cf build.log +ce142f06e62b3f9c6d0db635a95537911cea4cb4ec6511e6785e24200ae0405c host-only.log +c1a82f2bc593e3538cb215014f7fff1b8bd2dfe5ef1ec3156af2d9855b749be7 main-fused.log +09c48c8d9dc913b281850ffbaed0fb58eb167f7a54f8b2298152f2e16588ea45 main.log +a560e622fbe2abfd582d2e47d3c9faac3f1e747d69af861c369529c51d2ee2e3 sim.log +8fa81f72f303dc3dc341409f7de955dfa220e04153e07829661b7ccf5483224f spread-fused-cold.log +8fbfc6993cc94b71dec0b26aa1b33ff7d3a1debe7f33b7ed67e649a6eb9bb4e7 spread-fused-warm5.log +63e30b13ae5c440aa721220825479569ea56a6ec1402840521c03320a87ddbe5 spread-split-cold.log +aca0a0cd6740f8a7dd13dbb74461a747b083a5a486513175489116056b56c756 spread-split-warm5.log +4004563ddc22f43ff36d9fe280bb3f6244fd679b3b22f2bc206de4502076f214 warps4.log +72343fa4009a0f76fdb07c3313789a851694b1ea6c2facd9073ea9963fc31d4f clocks.csv +02a75f42591096459f8e3783886d7cf03ccf45d35ef9a0fad43eb0825ba621b5 device.txt +9361dfac1326f20ca56c4cf6ac932b82e61e933954fb72dbec5e13f54eaf4764 spread-marks.txt diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/baseline-decode.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/baseline-decode.log new file mode 100644 index 000000000..219861069 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/baseline-decode.log @@ -0,0 +1,4 @@ +cache alloc (1 layer, 32768 positions): rc=OK 338.6 ms () +chip context 1024 rc=OK bad=0 worst=0.000 rows=ok (0 one-ulp k flips) grid=4x4 per_split=256 depth=4 kv_bytes=2097152 fill=0.1ms chip_med=81.2us (25.8 GB/s) call_med=83.8us reps=3 +gpu_decode_attn_test: 4 checks, 0 failed: PASS +baseline exit 0 (recorded) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/build.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/build.log new file mode 100644 index 000000000..349a1bde8 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/build.log @@ -0,0 +1,80 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/sha256.c -o build/sha256.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_canonical.c -o build/omega_canonical.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_validate.c -o build/omega_validate.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_core.c -o build/omega_core.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_codec.c -o build/omega_codec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_encoder.c -o build/aarch64_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/aarch64_decoder.c -o build/aarch64_decoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize.c -o build/omega_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_exec.c -o build/omega_exec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_self_host.c -o build/omega_self_host.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_verify.c -o build/omega_verify.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program.c -o build/omega_program.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_synthesis.c -o build/omega_synthesis.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_library.c -o build/omega_library.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_discovery.c -o build/omega_discovery.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_machine.c -o build/omega_machine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_realize_synth.c -o build/omega_realize_synth.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_matvec.c -o build/omega_matvec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator.c -o build/omega_accelerator.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_accelerator_world.c -o build/omega_accelerator_world.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vector.c -o build/omega_vector.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_encoder.c -o build/omega_blackwell_encoder.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_qmd.c -o build/omega_blackwell_qmd.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_realize.c -o build/omega_blackwell_realize.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_submit.c -o build/omega_blackwell_submit.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o build/omega_blackwell_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_engine.c -o build/omega_gpu_engine.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_matmul.c -o build/omega_blackwell_matmul.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen.c -o build/omega_blackwell_codegen.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_session.c -o build/omega_gpu_session.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform.c -o build/omega_gpu_platform.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_platform_linux.c -o build/omega_gpu_platform_linux.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fmt.c -o build/omega_gpu_fmt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_matmul_api.c -o build/omega_gpu_matmul_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_elementwise_api.c -o build/omega_gpu_elementwise_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_attention_api.c -o build/omega_gpu_attention_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_serving.c -o build/omega_gpu_serving.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_wait.c -o build/omega_gpu_wait.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_evidence.c -o build/omega_evidence.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/m16/m16_native.c -o build/m16_native.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c /home/drakestapleton/workspace/pkv514-pins/physics/nvrm/nvrm.c -o build/nvrm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_moe_api.c -o build/omega_gpu_moe_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe.c -o build/omega_blackwell_codegen_moe.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_pack.c -o build/omega_gpu_fp8_pack.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8_api.c -o build/omega_gpu_fp8_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_moe2.c -o build/omega_blackwell_codegen_moe2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_attn.c -o build/omega_blackwell_codegen_attn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_attn_api.c -o build/omega_gpu_decode_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_hostmath.c -o build/omega_gpu_hostmath.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_router.c -o build/omega_blackwell_codegen_router.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_router_api.c -o build/omega_gpu_router_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_cmdlist.c -o build/omega_gpu_cmdlist.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_dec.c -o build/omega_blackwell_codegen_dec.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_mem_cached.c -o build/omega_gpu_mem_cached.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_decode_graph.c -o build/omega_gpu_decode_graph.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_bf16.c -o build/omega_blackwell_codegen_bf16.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_bf16_gemv_api.c -o build/omega_gpu_bf16_gemv_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_gemm.c -o build/omega_blackwell_codegen_gemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_fp8gemm_api.c -o build/omega_gpu_fp8gemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc.c -o build/omega_blackwell_codegen_tc.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_tcgemm_api.c -o build/omega_gpu_tcgemm_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pattn.c -o build/omega_blackwell_codegen_pattn.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill_attn_api.c -o build/omega_gpu_prefill_attn_api.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pf.c -o build/omega_blackwell_codegen_pf.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_prefill.c -o build/omega_gpu_prefill.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_tc2.c -o build/omega_blackwell_codegen_tc2.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfgemm.c -o build/omega_gpu_pfgemm.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qmma.c -o build/omega_blackwell_codegen_qmma.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_qg.c -o build/omega_blackwell_codegen_qg.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_codegen_pfhost.c -o build/omega_blackwell_codegen_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_gpu_pfhost.c -o build/omega_gpu_pfhost.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_program_ir.c -o build/omega_program_ir.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vc_bridge.c -o build/omega_vc_bridge.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_resolve.c -o build/omega_resolve.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_receipt.c -o build/omega_receipt.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blake3.c -o build/omega_blake3.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_vcstore.c -o build/omega_vcstore.o +ar rcs build/libomega_gpu.a build/sha256.o build/omega_canonical.o build/omega_validate.o build/omega_core.o build/omega_codec.o build/aarch64_encoder.o build/aarch64_decoder.o build/omega_realize.o build/omega_exec.o build/omega_self_host.o build/omega_verify.o build/omega_program.o build/omega_synthesis.o build/omega_library.o build/omega_discovery.o build/omega_machine.o build/omega_realize_synth.o build/omega_matvec.o build/omega_accelerator.o build/omega_accelerator_world.o build/omega_vector.o build/omega_blackwell_encoder.o build/omega_blackwell_qmd.o build/omega_blackwell_realize.o build/omega_blackwell_submit.o build/omega_blackwell_engine.o build/omega_gpu_engine.o build/omega_blackwell_matmul.o build/omega_blackwell_codegen.o build/omega_gpu_session.o build/omega_gpu_platform.o build/omega_gpu_platform_linux.o build/omega_gpu_fmt.o build/omega_gpu_matmul_api.o build/omega_gpu_elementwise_api.o build/omega_gpu_attention_api.o build/omega_gpu_serving.o build/omega_gpu_wait.o build/omega_evidence.o build/m16_native.o build/nvrm.o build/omega_gpu_moe_api.o build/omega_blackwell_codegen_moe.o build/omega_gpu_fp8_pack.o build/omega_gpu_fp8_api.o build/omega_blackwell_codegen_moe2.o build/omega_blackwell_codegen_attn.o build/omega_gpu_decode_attn_api.o build/omega_gpu_hostmath.o build/omega_blackwell_codegen_router.o build/omega_gpu_router_api.o build/omega_gpu_cmdlist.o build/omega_blackwell_codegen_dec.o build/omega_gpu_mem_cached.o build/omega_gpu_decode_graph.o build/omega_blackwell_codegen_bf16.o build/omega_gpu_bf16_gemv_api.o build/omega_blackwell_codegen_gemm.o build/omega_gpu_fp8gemm_api.o build/omega_blackwell_codegen_tc.o build/omega_gpu_tcgemm_api.o build/omega_blackwell_codegen_pattn.o build/omega_gpu_prefill_attn_api.o build/omega_blackwell_codegen_pf.o build/omega_gpu_prefill.o build/omega_blackwell_codegen_tc2.o build/omega_gpu_pfgemm.o build/omega_blackwell_codegen_qmma.o build/omega_blackwell_codegen_qg.o build/omega_blackwell_codegen_pfhost.o build/omega_gpu_pfhost.o build/omega_program_ir.o build/omega_vc_bridge.o build/omega_resolve.o build/omega_receipt.o build/omega_blake3.o build/omega_vcstore.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=256 -Itests -o build/gpu_prefill_attn_test tests/gpu_prefill_attn_test.c build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/pkv514-pins/physics/m16 -I/home/drakestapleton/workspace/pkv514-pins/physics/nvrm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/pkv514-pins/physics/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o build/gpu_decode_attn_test tests/gpu_decode_attn_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/clocks.csv b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/clocks.csv new file mode 100644 index 000000000..8337d323b --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/clocks.csv @@ -0,0 +1,496 @@ +timestamp, clocks.current.sm [MHz], clocks.current.memory [MHz], utilization.gpu [%], power.draw [W], pstate +2026/10/14 20:13:33.524, 572 MHz, [N/A], 0 %, 6.14 W, P0 +2026/10/14 20:13:33.638, 572 MHz, [N/A], 0 %, 6.14 W, P0 +2026/10/14 20:13:33.738, 572 MHz, [N/A], 0 %, 6.14 W, P0 +2026/10/14 20:13:33.839, 572 MHz, [N/A], 0 %, 6.14 W, P0 +2026/10/14 20:13:33.939, 572 MHz, [N/A], 0 %, 6.14 W, P0 +2026/10/14 20:13:34.039, 572 MHz, [N/A], 0 %, 6.14 W, P0 +2026/10/14 20:13:34.139, 390 MHz, [N/A], 0 %, 5.74 W, P0 +2026/10/14 20:13:34.240, 390 MHz, [N/A], 0 %, 5.74 W, P0 +2026/10/14 20:13:34.340, 390 MHz, [N/A], 0 %, 5.74 W, P0 +2026/10/14 20:13:34.440, 390 MHz, [N/A], 0 %, 5.74 W, P0 +2026/10/14 20:13:34.540, 390 MHz, [N/A], 0 %, 5.74 W, P0 +2026/10/14 20:13:34.640, 208 MHz, [N/A], 0 %, 5.02 W, P8 +2026/10/14 20:13:34.740, 208 MHz, [N/A], 0 %, 5.02 W, P8 +2026/10/14 20:13:34.841, 208 MHz, [N/A], 0 %, 5.02 W, P8 +2026/10/14 20:13:34.941, 208 MHz, [N/A], 0 %, 5.02 W, P8 +2026/10/14 20:13:35.041, 208 MHz, [N/A], 0 %, 5.02 W, P8 +2026/10/14 20:13:35.141, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.242, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.342, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.442, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.542, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.642, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.743, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.843, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:35.943, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:36.043, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:36.143, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:36.244, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:36.344, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:36.444, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:36.544, 208 MHz, [N/A], 0 %, 4.69 W, P8 +2026/10/14 20:13:36.645, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:36.745, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:36.845, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:36.945, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:37.046, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:37.146, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:37.246, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:37.346, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:37.447, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:37.547, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:13:37.647, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:37.747, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:37.847, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:37.947, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:38.048, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:38.148, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:38.248, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:38.348, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:38.448, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:38.548, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:38.649, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:38.749, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:38.849, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:38.949, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:39.049, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:39.150, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:39.250, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:39.350, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:39.450, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:39.551, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:39.651, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:39.751, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:39.851, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:39.952, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:40.052, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:40.153, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:40.253, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:40.353, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:40.453, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:40.553, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:40.653, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:40.753, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:40.854, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:40.954, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:41.054, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:41.154, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:41.255, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:41.355, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:41.455, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:41.555, 208 MHz, [N/A], 0 %, 4.55 W, P8 +2026/10/14 20:13:41.656, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:41.756, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:41.856, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:41.956, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:42.057, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:42.157, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:42.257, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:42.357, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:42.458, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:42.558, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:13:42.658, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:42.758, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:42.858, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:42.959, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:43.059, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:43.159, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:43.259, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:43.359, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:43.460, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:43.560, 208 MHz, [N/A], 0 %, 4.39 W, P8 +2026/10/14 20:13:43.660, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:13:43.760, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:13:43.861, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:13:43.961, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:13:44.061, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:13:44.161, 2216 MHz, [N/A], 0 %, 8.38 W, P0 +2026/10/14 20:13:44.261, 2216 MHz, [N/A], 0 %, 8.38 W, P0 +2026/10/14 20:13:44.362, 2216 MHz, [N/A], 0 %, 8.38 W, P0 +2026/10/14 20:13:44.462, 2216 MHz, [N/A], 0 %, 8.38 W, P0 +2026/10/14 20:13:44.562, 2216 MHz, [N/A], 0 %, 8.38 W, P0 +2026/10/14 20:13:44.662, 1677 MHz, [N/A], 1 %, 15.94 W, P0 +2026/10/14 20:13:44.762, 1677 MHz, [N/A], 1 %, 15.94 W, P0 +2026/10/14 20:13:44.863, 1677 MHz, [N/A], 1 %, 15.94 W, P0 +2026/10/14 20:13:44.963, 1677 MHz, [N/A], 1 %, 15.94 W, P0 +2026/10/14 20:13:45.063, 1677 MHz, [N/A], 1 %, 15.94 W, P0 +2026/10/14 20:13:45.163, 630 MHz, [N/A], 1 %, 12.12 W, P0 +2026/10/14 20:13:45.264, 630 MHz, [N/A], 1 %, 12.12 W, P0 +2026/10/14 20:13:45.364, 630 MHz, [N/A], 1 %, 12.12 W, P0 +2026/10/14 20:13:45.464, 630 MHz, [N/A], 1 %, 12.12 W, P0 +2026/10/14 20:13:45.564, 630 MHz, [N/A], 1 %, 12.12 W, P0 +2026/10/14 20:13:45.665, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:45.765, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:45.865, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:45.965, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:46.065, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:46.166, 780 MHz, [N/A], 0 %, 5.62 W, P0 +2026/10/14 20:13:46.266, 780 MHz, [N/A], 0 %, 5.62 W, P0 +2026/10/14 20:13:46.366, 780 MHz, [N/A], 0 %, 5.62 W, P0 +2026/10/14 20:13:46.466, 780 MHz, [N/A], 0 %, 5.62 W, P0 +2026/10/14 20:13:46.566, 780 MHz, [N/A], 0 %, 5.62 W, P0 +2026/10/14 20:13:46.667, 455 MHz, [N/A], 0 %, 5.76 W, P0 +2026/10/14 20:13:46.767, 455 MHz, [N/A], 0 %, 5.76 W, P0 +2026/10/14 20:13:46.867, 455 MHz, [N/A], 0 %, 5.76 W, P0 +2026/10/14 20:13:46.967, 455 MHz, [N/A], 0 %, 5.76 W, P0 +2026/10/14 20:13:47.068, 455 MHz, [N/A], 0 %, 5.76 W, P0 +2026/10/14 20:13:47.168, 208 MHz, [N/A], 0 %, 5.05 W, P0 +2026/10/14 20:13:47.268, 208 MHz, [N/A], 0 %, 5.05 W, P0 +2026/10/14 20:13:47.368, 208 MHz, [N/A], 0 %, 5.05 W, P0 +2026/10/14 20:13:47.469, 208 MHz, [N/A], 0 %, 5.05 W, P0 +2026/10/14 20:13:47.569, 208 MHz, [N/A], 0 %, 5.05 W, P0 +2026/10/14 20:13:47.669, 208 MHz, [N/A], 0 %, 4.81 W, P0 +2026/10/14 20:13:47.769, 208 MHz, [N/A], 0 %, 4.81 W, P0 +2026/10/14 20:13:47.869, 208 MHz, [N/A], 0 %, 4.81 W, P0 +2026/10/14 20:13:47.969, 208 MHz, [N/A], 0 %, 4.81 W, P0 +2026/10/14 20:13:48.069, 208 MHz, [N/A], 0 %, 4.81 W, P0 +2026/10/14 20:13:48.169, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.270, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.370, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.470, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.570, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.670, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.770, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.870, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:48.971, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:49.071, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:49.172, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:49.272, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:49.372, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:49.473, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:49.573, 208 MHz, [N/A], 0 %, 4.89 W, P8 +2026/10/14 20:13:49.673, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:49.774, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:49.874, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:49.974, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:50.074, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:50.174, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:50.274, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:50.374, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:50.475, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:50.575, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:50.675, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:50.775, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:50.875, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:50.975, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:51.075, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:51.176, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:51.276, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:51.376, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:51.476, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:51.576, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:51.676, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:51.776, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:51.877, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:51.977, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:52.077, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:52.177, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:52.277, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:52.377, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:52.477, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:52.577, 208 MHz, [N/A], 0 %, 4.49 W, P8 +2026/10/14 20:13:52.678, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:52.778, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:52.878, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:52.978, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:53.079, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:53.179, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:53.279, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:53.379, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:53.479, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:53.579, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:13:53.680, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:53.780, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:53.881, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:53.981, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:54.081, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:54.181, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:54.282, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:54.382, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:54.482, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:54.582, 208 MHz, [N/A], 0 %, 4.56 W, P8 +2026/10/14 20:13:54.682, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:54.783, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:54.883, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:54.983, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:55.083, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:55.184, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:55.284, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:55.384, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:55.484, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:55.584, 208 MHz, [N/A], 0 %, 4.57 W, P8 +2026/10/14 20:13:55.684, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:55.785, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:55.885, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:55.985, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:56.085, 208 MHz, [N/A], 0 %, 4.54 W, P8 +2026/10/14 20:13:56.185, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:13:56.285, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:13:56.386, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:13:56.486, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:13:56.586, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:13:56.686, 2535 MHz, [N/A], 60 %, 10.62 W, P0 +2026/10/14 20:13:56.787, 2535 MHz, [N/A], 60 %, 10.62 W, P0 +2026/10/14 20:13:56.887, 2535 MHz, [N/A], 60 %, 10.62 W, P0 +2026/10/14 20:13:56.987, 2535 MHz, [N/A], 60 %, 10.62 W, P0 +2026/10/14 20:13:57.088, 2535 MHz, [N/A], 60 %, 10.62 W, P0 +2026/10/14 20:13:57.188, 1417 MHz, [N/A], 60 %, 22.38 W, P0 +2026/10/14 20:13:57.288, 1417 MHz, [N/A], 60 %, 22.38 W, P0 +2026/10/14 20:13:57.388, 1417 MHz, [N/A], 60 %, 22.38 W, P0 +2026/10/14 20:13:57.488, 1417 MHz, [N/A], 60 %, 22.38 W, P0 +2026/10/14 20:13:57.588, 1417 MHz, [N/A], 60 %, 22.38 W, P0 +2026/10/14 20:13:57.688, 598 MHz, [N/A], 0 %, 15.46 W, P0 +2026/10/14 20:13:57.789, 598 MHz, [N/A], 0 %, 15.46 W, P0 +2026/10/14 20:13:57.889, 598 MHz, [N/A], 0 %, 15.46 W, P0 +2026/10/14 20:13:57.989, 598 MHz, [N/A], 0 %, 15.46 W, P0 +2026/10/14 20:13:58.089, 598 MHz, [N/A], 0 %, 15.46 W, P0 +2026/10/14 20:13:58.189, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:58.289, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:58.390, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:58.490, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:58.590, 630 MHz, [N/A], 0 %, 5.12 W, P0 +2026/10/14 20:13:58.690, 630 MHz, [N/A], 9 %, 5.76 W, P0 +2026/10/14 20:13:58.791, 630 MHz, [N/A], 9 %, 5.76 W, P0 +2026/10/14 20:13:58.891, 630 MHz, [N/A], 9 %, 5.76 W, P0 +2026/10/14 20:13:58.991, 630 MHz, [N/A], 9 %, 5.76 W, P0 +2026/10/14 20:13:59.092, 630 MHz, [N/A], 9 %, 5.76 W, P0 +2026/10/14 20:13:59.192, 728 MHz, [N/A], 9 %, 5.97 W, P0 +2026/10/14 20:13:59.292, 728 MHz, [N/A], 9 %, 5.97 W, P0 +2026/10/14 20:13:59.392, 728 MHz, [N/A], 9 %, 5.97 W, P0 +2026/10/14 20:13:59.492, 728 MHz, [N/A], 9 %, 5.97 W, P0 +2026/10/14 20:13:59.592, 728 MHz, [N/A], 9 %, 5.97 W, P0 +2026/10/14 20:13:59.692, 806 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 20:13:59.793, 806 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 20:13:59.893, 806 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 20:13:59.993, 806 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 20:14:00.093, 806 MHz, [N/A], 0 %, 5.30 W, P0 +2026/10/14 20:14:00.193, 806 MHz, [N/A], 0 %, 5.17 W, P0 +2026/10/14 20:14:00.293, 806 MHz, [N/A], 0 %, 5.17 W, P0 +2026/10/14 20:14:00.393, 806 MHz, [N/A], 0 %, 5.17 W, P0 +2026/10/14 20:14:00.494, 806 MHz, [N/A], 0 %, 5.17 W, P0 +2026/10/14 20:14:00.594, 806 MHz, [N/A], 0 %, 5.17 W, P0 +2026/10/14 20:14:00.694, 806 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 20:14:00.794, 806 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 20:14:00.894, 806 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 20:14:00.994, 806 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 20:14:01.094, 806 MHz, [N/A], 0 %, 5.14 W, P0 +2026/10/14 20:14:01.194, 208 MHz, [N/A], 0 %, 5.01 W, P0 +2026/10/14 20:14:01.295, 208 MHz, [N/A], 0 %, 5.01 W, P0 +2026/10/14 20:14:01.395, 208 MHz, [N/A], 0 %, 5.01 W, P0 +2026/10/14 20:14:01.495, 208 MHz, [N/A], 0 %, 5.01 W, P0 +2026/10/14 20:14:01.595, 208 MHz, [N/A], 0 %, 5.01 W, P0 +2026/10/14 20:14:01.695, 208 MHz, [N/A], 0 %, 4.84 W, P0 +2026/10/14 20:14:01.795, 208 MHz, [N/A], 0 %, 4.84 W, P0 +2026/10/14 20:14:01.895, 208 MHz, [N/A], 0 %, 4.84 W, P0 +2026/10/14 20:14:01.996, 208 MHz, [N/A], 0 %, 4.84 W, P0 +2026/10/14 20:14:02.096, 208 MHz, [N/A], 0 %, 4.84 W, P0 +2026/10/14 20:14:02.196, 208 MHz, [N/A], 0 %, 4.87 W, P0 +2026/10/14 20:14:02.296, 208 MHz, [N/A], 0 %, 4.87 W, P0 +2026/10/14 20:14:02.396, 208 MHz, [N/A], 0 %, 4.87 W, P0 +2026/10/14 20:14:02.496, 208 MHz, [N/A], 0 %, 4.87 W, P0 +2026/10/14 20:14:02.596, 208 MHz, [N/A], 0 %, 4.87 W, P0 +2026/10/14 20:14:02.697, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:02.797, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:02.897, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:02.998, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:03.098, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:03.198, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:03.298, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:03.398, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:03.499, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:03.599, 208 MHz, [N/A], 0 %, 4.91 W, P8 +2026/10/14 20:14:03.699, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:03.799, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:03.899, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.000, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.100, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.200, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.300, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.400, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.500, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.600, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:04.701, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:04.801, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:04.901, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.001, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.101, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.201, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.302, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.402, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.502, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.602, 208 MHz, [N/A], 0 %, 4.48 W, P8 +2026/10/14 20:14:05.703, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:05.804, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:05.904, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.004, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.104, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.205, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.305, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.406, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.506, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.606, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.706, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.807, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:06.907, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.007, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.107, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.207, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.307, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.407, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.508, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.608, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:07.708, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:07.808, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:07.908, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.008, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.109, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.209, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.309, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.409, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.510, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.610, 208 MHz, [N/A], 0 %, 4.66 W, P8 +2026/10/14 20:14:08.710, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:14:08.810, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:14:08.910, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:14:09.010, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:14:09.110, 208 MHz, [N/A], 0 %, 4.50 W, P8 +2026/10/14 20:14:09.211, 500 MHz, [N/A], 0 %, 6.63 W, P0 +2026/10/14 20:14:09.311, 500 MHz, [N/A], 0 %, 6.63 W, P0 +2026/10/14 20:14:09.411, 500 MHz, [N/A], 0 %, 6.63 W, P0 +2026/10/14 20:14:09.511, 500 MHz, [N/A], 0 %, 6.63 W, P0 +2026/10/14 20:14:09.611, 500 MHz, [N/A], 0 %, 6.63 W, P0 +2026/10/14 20:14:09.711, 968 MHz, [N/A], 0 %, 11.75 W, P0 +2026/10/14 20:14:09.812, 968 MHz, [N/A], 0 %, 11.75 W, P0 +2026/10/14 20:14:09.912, 968 MHz, [N/A], 0 %, 11.75 W, P0 +2026/10/14 20:14:10.012, 968 MHz, [N/A], 0 %, 11.75 W, P0 +2026/10/14 20:14:10.113, 968 MHz, [N/A], 0 %, 11.75 W, P0 +2026/10/14 20:14:10.213, 208 MHz, [N/A], 0 %, 9.94 W, P0 +2026/10/14 20:14:10.313, 208 MHz, [N/A], 0 %, 9.94 W, P0 +2026/10/14 20:14:10.414, 208 MHz, [N/A], 0 %, 9.94 W, P0 +2026/10/14 20:14:10.514, 208 MHz, [N/A], 0 %, 9.94 W, P0 +2026/10/14 20:14:10.614, 208 MHz, [N/A], 0 %, 9.94 W, P0 +2026/10/14 20:14:10.714, 208 MHz, [N/A], 0 %, 5.06 W, P0 +2026/10/14 20:14:10.815, 208 MHz, [N/A], 0 %, 5.06 W, P0 +2026/10/14 20:14:10.915, 208 MHz, [N/A], 0 %, 5.06 W, P0 +2026/10/14 20:14:11.015, 208 MHz, [N/A], 0 %, 5.06 W, P0 +2026/10/14 20:14:11.115, 208 MHz, [N/A], 0 %, 5.06 W, P0 +2026/10/14 20:14:11.215, 299 MHz, [N/A], 0 %, 5.41 W, P0 +2026/10/14 20:14:11.315, 299 MHz, [N/A], 0 %, 5.41 W, P0 +2026/10/14 20:14:11.416, 299 MHz, [N/A], 0 %, 5.41 W, P0 +2026/10/14 20:14:11.516, 299 MHz, [N/A], 0 %, 5.41 W, P0 +2026/10/14 20:14:11.616, 299 MHz, [N/A], 0 %, 5.41 W, P0 +2026/10/14 20:14:11.716, 299 MHz, [N/A], 0 %, 5.16 W, P8 +2026/10/14 20:14:11.816, 299 MHz, [N/A], 0 %, 5.16 W, P8 +2026/10/14 20:14:11.916, 299 MHz, [N/A], 0 %, 5.16 W, P8 +2026/10/14 20:14:12.016, 299 MHz, [N/A], 0 %, 5.16 W, P8 +2026/10/14 20:14:12.116, 299 MHz, [N/A], 0 %, 5.16 W, P8 +2026/10/14 20:14:12.217, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:12.317, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:12.417, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:12.517, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:12.617, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:12.717, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:12.817, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:12.918, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.018, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.118, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.218, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.318, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.418, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.518, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.619, 208 MHz, [N/A], 0 %, 4.74 W, P8 +2026/10/14 20:14:13.719, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:13.819, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:13.919, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.019, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.119, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.219, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.319, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.420, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.520, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.620, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.720, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.820, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:14.920, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.020, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.121, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.221, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.321, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.421, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.521, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.621, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:15.721, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:15.822, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:15.922, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.022, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.122, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.222, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.322, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.422, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.523, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.623, 208 MHz, [N/A], 0 %, 4.53 W, P8 +2026/10/14 20:14:16.723, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:16.823, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:16.923, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.023, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.123, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.223, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.324, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.424, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.524, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.624, 208 MHz, [N/A], 0 %, 4.60 W, P8 +2026/10/14 20:14:17.725, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:17.825, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:17.925, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.025, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.125, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.225, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.326, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.426, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.526, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.626, 208 MHz, [N/A], 0 %, 4.72 W, P8 +2026/10/14 20:14:18.726, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:18.826, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:18.926, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.027, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.127, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.227, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.327, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.427, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.528, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.628, 208 MHz, [N/A], 0 %, 4.63 W, P8 +2026/10/14 20:14:19.728, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:19.828, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:19.928, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.028, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.128, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.229, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.329, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.429, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.529, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.629, 208 MHz, [N/A], 0 %, 4.51 W, P8 +2026/10/14 20:14:20.729, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:14:20.829, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:14:20.929, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:14:21.030, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:14:21.130, 208 MHz, [N/A], 0 %, 4.46 W, P8 +2026/10/14 20:14:21.230, 208 MHz, [N/A], 0 %, 5.61 W, P8 +2026/10/14 20:14:21.330, 208 MHz, [N/A], 0 %, 5.61 W, P8 +2026/10/14 20:14:21.430, 208 MHz, [N/A], 0 %, 5.61 W, P8 +2026/10/14 20:14:21.530, 208 MHz, [N/A], 0 %, 5.61 W, P8 +2026/10/14 20:14:21.630, 208 MHz, [N/A], 0 %, 5.61 W, P8 +2026/10/14 20:14:21.731, 929 MHz, [N/A], 68 %, 13.82 W, P0 +2026/10/14 20:14:21.831, 929 MHz, [N/A], 68 %, 13.82 W, P0 +2026/10/14 20:14:21.931, 929 MHz, [N/A], 68 %, 13.82 W, P0 +2026/10/14 20:14:22.031, 929 MHz, [N/A], 68 %, 13.82 W, P0 +2026/10/14 20:14:22.131, 929 MHz, [N/A], 68 %, 13.82 W, P0 +2026/10/14 20:14:22.231, 448 MHz, [N/A], 68 %, 14.38 W, P0 +2026/10/14 20:14:22.331, 448 MHz, [N/A], 68 %, 14.38 W, P0 +2026/10/14 20:14:22.432, 448 MHz, [N/A], 68 %, 14.38 W, P0 +2026/10/14 20:14:22.532, 448 MHz, [N/A], 68 %, 14.38 W, P0 +2026/10/14 20:14:22.632, 448 MHz, [N/A], 68 %, 14.38 W, P0 +2026/10/14 20:14:22.732, 208 MHz, [N/A], 0 %, 4.94 W, P0 +2026/10/14 20:14:22.833, 208 MHz, [N/A], 0 %, 4.94 W, P0 +2026/10/14 20:14:22.933, 208 MHz, [N/A], 0 %, 4.94 W, P0 +2026/10/14 20:14:23.033, 208 MHz, [N/A], 0 %, 4.94 W, P0 diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/device.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/device.txt new file mode 100644 index 000000000..fa409cd4d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/device.txt @@ -0,0 +1,6 @@ +start 2026-10-15T01:13:05Z omega=d0889a944b02066f84fec71af7b9bbb92f5c986f branch=HEAD dirty=0 physics=/home/drakestapleton/workspace/pkv514-pins/physics physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +Linux spark-b87b 7.0.0-1019-nvidia #19~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux +NVIDIA GB10, 580.173.02 + total used free shared buff/cache available +Mem: 121 15 68 2 42 106 +end 2026-10-15T01:14:23Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/host-only.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/host-only.log new file mode 100644 index 000000000..33442c005 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/host-only.log @@ -0,0 +1,8 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +gpu_prefill_attn_test: 69 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/main-fused.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/main-fused.log new file mode 100644 index 000000000..cf391ed05 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/main-fused.log @@ -0,0 +1,31 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 1x4 x256 thr; chip 0.218 ms call 0.532 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.107 ms call 0.316 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 3x4 x256 thr; chip 0.108 ms call 0.451 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.944 ms call 2.023 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.208 ms call 0.901 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.106 0.106 0.106 0.105 0.105 0.105 0.105 0.189 + slowest rep, per launch ms (1 launches): 0.209 + timing prefill pos0 0 m 64: chip median 0.106 ms (min 0.105) call median 0.295 ms; 0.32 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.545 ms call 6.886 ms + speed: prefill 0.106 ms vs decode loop 6.545 ms chip time: 61.9x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.315 ms call 0.717 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.191 ms call 7.521 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.208 ms call 0.568 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.622 ms call 6.983 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.312 ms call 0.314 ms +FAIL: continuation: mirror view valid 0 (want 369) stride 0 +FAIL: negative control: a foreign rewrite without invalidate must show (stale mirror), 0 outputs differ +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 0; outputs differ mirror vs none: 0; stale control 0 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 2 failed: FAIL diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/main.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/main.log new file mode 100644 index 000000000..175153413 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/main.log @@ -0,0 +1,51 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x256 thr; chip 0.221 ms call 11.390 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.106 ms call 0.341 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 3x4 x256 thr; chip 0.285 ms call 4.131 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.966 ms call 2.055 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.214 ms call 1.889 ms + reps chip ms (in order, 0 untimed warm calls first): 0.209 0.208 0.208 0.207 0.207 0.207 0.207 0.207 0.206 + slowest rep, per launch ms (2 launches): 0.106 0.103 + timing prefill pos0 0 m 64: chip median 0.207 ms (min 0.206) call median 0.396 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.696 ms call 6.856 ms + speed: prefill 0.207 ms vs decode loop 6.696 ms chip time: 32.4x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 9x4 x256 thr; chip 0.311 ms call 1.926 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.338 ms call 7.517 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.280 ms call 1.069 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.727 ms call 6.883 ms +chip pos0 0 m 512: parity bad=0 worst=0.237; rows vs emulation k 2 (max 1 ulp) v 0; chunks 2 grid 64x4 x256 thr; chip 0.522 ms call 8.243 ms + reps chip ms (in order, 0 untimed warm calls first): 0.416 0.414 0.516 0.414 0.413 0.413 0.413 0.413 0.516 + slowest rep, per launch ms (2 launches): 0.107 0.410 + timing prefill pos0 0 m 512: chip median 0.414 ms (min 0.413) call median 2.277 ms; 5.19 useful TFLOPS on chip time + gate 2 vs 512 decode steps: rows k 0 v 0 differ; outputs worst 0.237 of tol; decode loop chip 52.947 ms call 55.995 ms + speed: prefill 0.414 ms vs decode loop 52.947 ms chip time: 127.8x +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.554 ms call 5.496 ms + reps chip ms (in order, 0 untimed warm calls first): 0.414 0.413 0.413 0.411 0.415 0.414 0.411 0.412 0.411 + slowest rep, per launch ms (2 launches): 0.108 0.308 + timing prefill pos0 4032 m 64: chip median 0.413 ms (min 0.411) call median 0.603 ms; 10.33 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.011 of tol; decode loop chip 19.885 ms call 20.109 ms + speed: prefill 0.413 ms vs decode loop 19.885 ms chip time: 48.2x +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.061 ms call 24.678 ms + reps chip ms (in order, 0 untimed warm calls first): 2.171 2.157 2.154 2.669 2.153 2.053 2.152 3.171 2.256 + slowest rep, per launch ms (4 launches): 0.105 0.715 0.207 2.144 + timing prefill pos0 0 m 2048: chip median 2.157 ms (min 2.053) call median 9.765 ms; 15.94 useful TFLOPS on chip time +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 9x4; chip 0.271 ms call 0.757 ms +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 2.024 ms call 3.696 ms + dev reps chip ms: 2.064 2.041 1.939 2.045 2.041 1.937 2.036 2.241 1.938 + timing dev pos0 0 m 2048: chip median 2.041 ms (min 1.937) call median 2.042 ms; 16.84 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.726 ms call 6.700 ms + dev reps chip ms: 3.597 3.466 3.465 3.465 3.463 3.465 3.466 3.463 3.437 + timing dev pos0 4096 m 1500: chip median 3.465 ms (min 3.437) call median 3.466 ms; 34.38 useful TFLOPS on chip time +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 164 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-baseline-decode.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-baseline-decode.json new file mode 100644 index 000000000..03fedea3d --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-baseline-decode.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_DECODE_ATTN_V1","reps":3,"evict":1,"points":[{"name":"context 1024","pos":1023,"rc":"OK","bad":0,"worst_of_tol":0.000,"rows":"ok (0 one-ulp k flips)","second_call_identical":1,"grid_x":4,"grid_y":4,"per_split":256,"depth":4,"kv_bytes":2097152,"fill_ms":0.1,"chip_median_ns":81201,"gb_per_s":25.8,"call_median_ns":83777,"reps":3}],"checks":4,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_DECODE_ATTN_PASS"} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-main-fused.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-main-fused.json new file mode 100644 index 000000000..3e60cba5e --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-main-fused.json @@ -0,0 +1,9 @@ +{"test": "gpu_prefill_attn", "points": [ + {"pos0": 0, "m": 1, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0000, "decode_loop_chip_ms": 0.1072, "decode_loop_call_ms": 0.3161}, + {"pos0": 37, "m": 19, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.1339, "decode_loop_chip_ms": 1.9441, "decode_loop_call_ms": 2.0226}, + {"pos0": 0, "m": 64, "prefill_chip_ms_median": 0.1057, "prefill_call_ms_median": 0.2950, "useful_tflops": 0.322}, + {"pos0": 0, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2307, "decode_loop_chip_ms": 6.5446, "decode_loop_call_ms": 6.8859}, + {"pos0": 100, "m": 70, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0862, "decode_loop_chip_ms": 7.1908, "decode_loop_call_ms": 7.5214}, + {"pos0": 200, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0613, "decode_loop_chip_ms": 6.6225, "decode_loop_call_ms": 6.9829}, + {} +], "checks": 127, "failed": 2} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-main.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-main.json new file mode 100644 index 000000000..1bc565c36 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-main.json @@ -0,0 +1,16 @@ +{"test": "gpu_prefill_attn", "points": [ + {"pos0": 0, "m": 1, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0000, "decode_loop_chip_ms": 0.1058, "decode_loop_call_ms": 0.3411}, + {"pos0": 37, "m": 19, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.1339, "decode_loop_chip_ms": 1.9657, "decode_loop_call_ms": 2.0552}, + {"pos0": 0, "m": 64, "prefill_chip_ms_median": 0.2070, "prefill_call_ms_median": 0.3957, "useful_tflops": 0.165}, + {"pos0": 0, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2307, "decode_loop_chip_ms": 6.6956, "decode_loop_call_ms": 6.8564}, + {"pos0": 100, "m": 70, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0862, "decode_loop_chip_ms": 7.3381, "decode_loop_call_ms": 7.5174}, + {"pos0": 200, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0613, "decode_loop_chip_ms": 6.7270, "decode_loop_call_ms": 6.8832}, + {"pos0": 0, "m": 512, "prefill_chip_ms_median": 0.4143, "prefill_call_ms_median": 2.2768, "useful_tflops": 5.193}, + {"pos0": 0, "m": 512, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2374, "decode_loop_chip_ms": 52.9471, "decode_loop_call_ms": 55.9947}, + {"pos0": 4032, "m": 64, "prefill_chip_ms_median": 0.4125, "prefill_call_ms_median": 0.6033, "useful_tflops": 10.331}, + {"pos0": 4032, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0109, "decode_loop_chip_ms": 19.8855, "decode_loop_call_ms": 20.1091}, + {"pos0": 0, "m": 2048, "prefill_chip_ms_median": 2.1571, "prefill_call_ms_median": 9.7651, "useful_tflops": 15.936}, + {"dev": 1, "pos0": 0, "m": 2048, "chip_ms_median": 2.0410, "chip_ms_min": 1.9367, "call_ms_median": 2.0419, "out_diff": 0, "rows_diff": 0}, + {"dev": 1, "pos0": 4096, "m": 1500, "chip_ms_median": 3.4648, "chip_ms_min": 3.4366, "call_ms_median": 3.4658, "out_diff": 0, "rows_diff": 0}, + {} +], "checks": 164, "failed": 0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-warps4.json b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-warps4.json new file mode 100644 index 000000000..3c9eee049 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/receipt-warps4.json @@ -0,0 +1,9 @@ +{"test": "gpu_prefill_attn", "points": [ + {"pos0": 0, "m": 1, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0000, "decode_loop_chip_ms": 0.1045, "decode_loop_call_ms": 0.3527}, + {"pos0": 37, "m": 19, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.1339, "decode_loop_chip_ms": 1.9642, "decode_loop_call_ms": 2.0473}, + {"pos0": 0, "m": 64, "prefill_chip_ms_median": 0.2073, "prefill_call_ms_median": 0.3939, "useful_tflops": 0.164}, + {"pos0": 0, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.2307, "decode_loop_chip_ms": 6.5494, "decode_loop_call_ms": 6.7000}, + {"pos0": 100, "m": 70, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0862, "decode_loop_chip_ms": 7.6704, "decode_loop_call_ms": 7.8841}, + {"pos0": 200, "m": 64, "gate2_rows_k_diff": 0, "gate2_rows_v_diff": 0, "gate2_out_worst": 0.0613, "decode_loop_chip_ms": 6.6234, "decode_loop_call_ms": 6.8032}, + {} +], "checks": 127, "failed": 0} diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/sim.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/sim.log new file mode 100644 index 000000000..e2bed939f --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/sim.log @@ -0,0 +1,37 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +sim one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 5 tokens from 0 (partial CTA) W=8: ok bad=0 worst=0.257 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.112 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 19 tokens from 37, sharp q (x4) W=8: ok bad=0 worst=0.107 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 64 tokens from 100 (full chunk) W=8: ok bad=0 worst=0.067 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 70 tokens from 0 (two chunks) W=8: ok bad=0 worst=0.291 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim 33 tokens from 200, warps 4 W=4: ok bad=0 worst=0.051 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: one token at position 0 W=8: ok bad=0 worst=0.000 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 5 tokens from 0 W=8: ok bad=0 worst=0.255 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.108 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 70 tokens from 0 W=8: ok bad=0 worst=0.276 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim split: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.117 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 5 tokens from 0 W=8: ok bad=0 worst=0.227 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 19 tokens from 37, warps 4 W=4: ok bad=0 worst=0.095 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 141 tokens from 37, sharp q W=8: ok bad=0 worst=0.126 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim mirror: 45 tokens from 300 W=8: ok bad=0 worst=0.042 rows: k 0 v 0 words differ from the emulation (max 0 ulp) +sim fused mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim fused mutant 2 at 24 tokens from 40: caught (bad=65059 worst=33.577 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim fused mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim fused mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim split mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim split mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim split mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 1 at 24 tokens from 40: caught (bad=1083432 worst=41.538 rows: k 7851 v 0 words differ from the emulation (max 34162 ulp)) +sim mirror mutant 2 at 24 tokens from 40: caught (bad=75048 worst=66.804 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim mirror mutant 3 at 24 tokens from 40: caught (bad=1000000 worst=0.083 rows: k 12288 v 12288 words differ from the emulation (max 49195 ulp)) +sim mirror mutant 4 at 24 tokens from 40: caught (bad=53792 worst=183.288 rows: k 0 v 0 words differ from the emulation (max 0 ulp)) +sim: 10233092 warp issues in total +gpu_prefill_attn_test: 97 checks, 0 failed: PASS diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-fused-cold.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-fused-cold.log new file mode 100644 index 000000000..0083b94aa --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-fused-cold.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 6.434 ms call 20.709 ms + reps chip ms (in order, 0 untimed warm calls first): 7.202 7.007 6.792 6.707 7.228 6.395 6.689 6.608 6.599 6.612 7.107 6.611 6.504 7.098 6.506 + slowest rep, per launch ms (32 launches): 0.105 0.105 0.105 0.105 0.105 0.104 0.206 0.207 0.205 0.212 0.207 0.206 0.207 0.206 0.206 0.206 0.205 0.206 0.206 0.206 0.206 0.206 0.307 0.409 0.308 0.309 0.309 0.410 0.310 0.307 0.308 0.318 + timing prefill pos0 0 m 2048: chip median 6.689 ms (min 6.395) call median 13.286 ms; 5.14 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.292 ms call 7.309 ms + dev reps chip ms: 6.874 6.848 6.853 6.855 6.832 7.397 6.925 6.814 7.738 6.860 6.967 7.171 7.062 7.071 7.750 + timing dev pos0 0 m 2048: chip median 6.925 ms (min 6.814) call median 6.943 ms; 4.96 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 12.244 ms call 12.256 ms + dev reps chip ms: 12.278 12.237 12.863 13.053 12.346 12.250 12.162 12.763 12.960 11.959 12.056 12.158 12.353 12.952 12.035 + timing dev pos0 4096 m 1500: chip median 12.278 ms (min 11.959) call median 12.293 ms; 9.70 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.934 ms call 1.357 ms + reps chip ms (in order, 0 untimed warm calls first): 0.415 0.410 0.413 0.411 0.410 0.411 0.410 0.410 0.410 0.410 0.410 0.409 0.410 0.410 0.411 + slowest rep, per launch ms (1 launches): 0.415 + timing prefill pos0 4032 m 64: chip median 0.410 ms (min 0.409) call median 0.596 ms; 10.39 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.419 ms call 0.420 ms + dev reps chip ms: 0.420 0.410 0.410 0.412 0.410 0.411 0.410 0.410 0.412 0.410 0.410 0.410 0.409 0.411 0.409 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.409) call median 0.411 ms; 10.56 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-cold exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-fused-warm5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-fused-warm5.log new file mode 100644 index 000000000..7726f1ece --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-fused-warm5.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: fused 64-token chunks, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 32 grid 8x4 x256 thr; chip 7.140 ms call 21.731 ms + reps chip ms (in order, 5 untimed warm calls first): 6.930 6.713 6.712 7.221 6.511 7.060 6.802 6.809 6.790 7.121 6.800 7.006 6.812 6.808 6.710 + slowest rep, per launch ms (32 launches): 0.105 0.104 0.104 0.110 0.105 0.206 0.208 0.205 0.206 0.207 0.206 0.206 0.205 0.207 0.206 0.210 0.207 0.207 0.206 0.208 0.208 0.207 0.206 0.307 0.409 0.308 0.307 0.308 0.411 0.308 0.307 0.310 + timing prefill pos0 0 m 2048: chip median 6.808 ms (min 6.511) call median 13.459 ms; 5.05 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 32 grid 8x4; chip 7.376 ms call 7.392 ms + dev reps chip ms: 6.767 7.479 6.872 6.871 6.973 6.947 6.796 6.968 6.870 6.866 6.970 7.783 7.579 6.975 6.972 + timing dev pos0 0 m 2048: chip median 6.968 ms (min 6.767) call median 6.983 ms; 4.93 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 24 grid 8x4; chip 12.476 ms call 12.487 ms + dev reps chip ms: 12.271 12.853 12.266 12.311 13.206 12.190 12.476 12.986 12.294 12.464 11.957 12.060 13.216 12.126 12.547 + timing dev pos0 4096 m 1500: chip median 12.311 ms (min 11.957) call median 12.326 ms; 9.67 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 1 grid 8x4 x256 thr; chip 0.634 ms call 1.108 ms + reps chip ms (in order, 5 untimed warm calls first): 0.409 0.405 0.410 0.410 0.410 0.409 0.410 0.410 0.410 0.411 0.409 0.410 0.409 0.410 0.411 + slowest rep, per launch ms (1 launches): 0.411 + timing prefill pos0 4032 m 64: chip median 0.410 ms (min 0.405) call median 0.598 ms; 10.40 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 1 grid 8x4; chip 0.419 ms call 0.420 ms + dev reps chip ms: 0.409 0.409 0.410 0.413 0.410 0.411 0.408 0.409 0.409 0.410 0.412 0.409 0.412 0.410 0.409 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.408) call median 0.410 ms; 10.56 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +fused-warm5 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-marks.txt b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-marks.txt new file mode 100644 index 000000000..92108fc1a --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-marks.txt @@ -0,0 +1,8 @@ +variant fused-cold start 2026-10-15T01:13:33.512Z +variant fused-cold end 2026-10-15T01:13:45.961Z +variant fused-warm5 start 2026-10-15T01:13:45.962Z +variant fused-warm5 end 2026-10-15T01:13:58.661Z +variant split-cold start 2026-10-15T01:13:58.662Z +variant split-cold end 2026-10-15T01:14:10.836Z +variant split-warm5 start 2026-10-15T01:14:10.838Z +variant split-warm5 end 2026-10-15T01:14:23.122Z diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-split-cold.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-split-cold.log new file mode 100644 index 000000000..6fd270617 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-split-cold.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 0, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.068 ms call 30.827 ms + reps chip ms (in order, 0 untimed warm calls first): 2.171 2.058 2.157 2.253 2.049 3.584 2.156 2.158 2.154 2.048 2.149 2.049 2.046 2.128 2.144 + slowest rep, per launch ms (4 launches): 0.209 2.043 0.105 1.228 + timing prefill pos0 0 m 2048: chip median 2.149 ms (min 2.046) call median 9.310 ms; 16.00 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 1.954 ms call 3.324 ms + dev reps chip ms: 1.953 2.041 1.940 2.045 2.038 1.937 1.938 1.941 1.938 1.937 1.929 2.040 2.037 2.036 2.138 + timing dev pos0 0 m 2048: chip median 1.953 ms (min 1.929) call median 1.955 ms; 17.60 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.927 ms call 6.602 ms + dev reps chip ms: 3.793 3.567 3.464 3.450 3.567 3.668 3.565 3.466 3.466 3.466 3.529 3.871 3.665 3.464 3.523 + timing dev pos0 4096 m 1500: chip median 3.529 ms (min 3.450) call median 3.530 ms; 33.75 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 1.915 ms call 6.864 ms + reps chip ms (in order, 0 untimed warm calls first): 0.415 0.414 0.411 0.411 0.412 0.411 0.412 0.411 0.413 0.411 0.412 0.415 0.411 0.413 0.413 + slowest rep, per launch ms (2 launches): 0.106 0.309 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.411) call median 0.604 ms; 10.35 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.560 ms call 2.908 ms + dev reps chip ms: 0.418 0.412 0.410 0.410 0.410 0.411 0.411 0.411 0.410 0.410 0.411 0.410 0.410 0.410 0.411 + timing dev pos0 4096 m 64: chip median 0.410 ms (min 0.410) call median 0.411 ms; 10.55 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-cold exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-split-warm5.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-split-warm5.log new file mode 100644 index 000000000..64db01cba --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/spread-split-warm5.log @@ -0,0 +1,27 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 8, warm 5, dev buffers session (uncached) +chip pos0 0 m 2048: parity bad=0 worst=0.247; rows vs emulation k 8 (max 1 ulp) v 0; chunks 4 grid 128x4 x256 thr; chip 2.060 ms call 30.460 ms + reps chip ms (in order, 5 untimed warm calls first): 2.052 2.156 2.050 2.053 2.152 3.888 2.359 2.116 2.153 2.162 2.224 2.151 2.054 2.139 2.157 + slowest rep, per launch ms (4 launches): 0.105 0.716 0.210 2.858 + timing prefill pos0 0 m 2048: chip median 2.152 ms (min 2.050) call median 9.329 ms; 15.97 useful TFLOPS on chip time +chip dev pos0 0 m 2048: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 256x4; chip 2.050 ms call 3.434 ms + dev reps chip ms: 2.085 2.218 1.998 2.132 2.039 2.038 2.038 1.940 1.938 2.041 2.135 2.260 1.951 2.156 2.101 + timing dev pos0 0 m 2048: chip median 2.041 ms (min 1.938) call median 2.042 ms; 16.85 useful TFLOPS on chip time +chip dev pos0 4096 m 1500: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 188x4; chip 3.773 ms call 6.720 ms + dev reps chip ms: 3.498 3.590 3.491 3.506 3.721 3.668 3.483 3.522 3.593 3.487 3.822 3.567 3.555 3.548 3.484 + timing dev pos0 4096 m 1500: chip median 3.548 ms (min 3.483) call median 3.552 ms; 33.57 useful TFLOPS on chip time +chip pos0 4032 m 64: parity bad=0 worst=0.011; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 8x4 x256 thr; chip 0.661 ms call 6.531 ms + reps chip ms (in order, 5 untimed warm calls first): 0.413 0.414 0.415 0.413 0.411 0.412 0.412 0.411 0.412 0.411 0.412 0.414 0.410 0.412 0.412 + slowest rep, per launch ms (2 launches): 0.107 0.308 + timing prefill pos0 4032 m 64: chip median 0.412 ms (min 0.410) call median 0.604 ms; 10.35 useful TFLOPS on chip time +chip dev pos0 4096 m 64: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 8x4; chip 0.560 ms call 3.324 ms + dev reps chip ms: 0.410 0.411 0.411 0.412 0.411 0.411 0.411 0.411 0.410 0.410 0.411 0.409 0.409 0.411 0.411 + timing dev pos0 4096 m 64: chip median 0.411 ms (min 0.409) call median 0.412 ms; 10.54 useful TFLOPS on chip time +gpu_prefill_attn_test: 103 checks, 0 failed: PASS +split-warm5 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/warps4.log b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/warps4.log new file mode 100644 index 000000000..a0a5086a1 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/rc-d0889a94/prefill_attn/warps4.log @@ -0,0 +1,30 @@ +codegen warps 4 mode 0: 917 instructions, 120 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 4 mode 1: 174 instructions, 56 registers (declared 64, 128 threads -> 8192 of 65536), 0 placeholders patched +codegen warps 4 mode 2: 782 instructions, 124 registers (declared 128, 128 threads -> 16384 of 65536), 16 placeholders patched +codegen warps 8 mode 0: 866 instructions, 120 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 mode 1: 174 instructions, 56 registers (declared 64, 256 threads -> 16384 of 65536), 0 placeholders patched +codegen warps 8 mode 2: 731 instructions, 124 registers (declared 128, 256 threads -> 32768 of 65536), 16 placeholders patched +codegen warps 8 APPEND + mirror: 187 instructions, 56 registers +path: split APPEND + ATTEND, ATTEND reads the GPU-cached K/V mirror, warps 4, warm 0, dev buffers session (uncached) +chip pos0 0 m 1: parity bad=0 worst=0.000; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 1x4 x128 thr; chip 0.222 ms call 11.383 ms + gate 2 vs 1 decode steps: rows k 0 v 0 differ; outputs worst 0.000 of tol; decode loop chip 0.105 ms call 0.353 ms +chip pos0 37 m 19: parity bad=0 worst=0.134; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 5x4 x128 thr; chip 0.281 ms call 4.119 ms + gate 2 vs 19 decode steps: rows k 0 v 0 differ; outputs worst 0.134 of tol; decode loop chip 1.964 ms call 2.047 ms +chip pos0 0 m 64: parity bad=0 worst=0.231; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.213 ms call 1.783 ms + reps chip ms (in order, 0 untimed warm calls first): 0.210 0.207 0.207 0.208 0.207 0.207 0.208 0.207 0.207 + slowest rep, per launch ms (2 launches): 0.105 0.105 + timing prefill pos0 0 m 64: chip median 0.207 ms (min 0.207) call median 0.394 ms; 0.16 useful TFLOPS on chip time + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.231 of tol; decode loop chip 6.549 ms call 6.700 ms + speed: prefill 0.207 ms vs decode loop 6.549 ms chip time: 31.6x +chip pos0 100 m 70: parity bad=0 worst=0.086; rows vs emulation k 1 (max 1 ulp) v 0; chunks 2 grid 18x4 x128 thr; chip 0.285 ms call 1.704 ms + gate 2 vs 70 decode steps: rows k 0 v 0 differ; outputs worst 0.086 of tol; decode loop chip 7.670 ms call 7.884 ms +chip pos0 200 m 64: parity bad=0 worst=0.061; rows vs emulation k 0 (max 0 ulp) v 0; chunks 2 grid 16x4 x128 thr; chip 0.278 ms call 1.095 ms + gate 2 vs 64 decode steps: rows k 0 v 0 differ; outputs worst 0.061 of tol; decode loop chip 6.623 ms call 6.803 ms +chip dev pos0 100 m 70: outputs vs host entry: 0 unwritten, 0 differ; rows k 0 v 0 differ; launches 2 grid 18x4; chip 0.271 ms call 0.797 ms +chip continuation (prefill 300, decode 5, prefill 64, rewrite, prefill 32): mirror valid 369; outputs differ mirror vs none: 0; stale control 32768 differ (must be > 0); after invalidate 0 differ +chip mutant 1: caught (rc OK, bad 83432, worst 41.54, rows k 7851 v 0) +chip mutant 2: caught (rc OK, bad 75048, worst 66.80, rows k 0 v 0) +chip mutant 3: caught (rc OK, bad 0, worst 0.08, rows k 12288 v 12288) +chip mutant 4: caught (rc OK, bad 53792, worst 183.29, rows k 0 v 0) +gpu_prefill_attn_test: 127 checks, 0 failed: PASS +warps 4 exit 0 (informational) diff --git a/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/stage2.sh b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/stage2.sh new file mode 100755 index 000000000..27ec88541 --- /dev/null +++ b/evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/stage2.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Stage 2: #457 fix variant (build + chip, one variable: the platform change), then OWN-30B gates. +set -u +# reconv rerun: tools/run_gpu_reconv_chip.sh is committed mode 100644 (rc 126 Permission denied in the series), so run it through sh +( cd $HOME/workspace/omega-requal-main && quietlock hold --owner OWN30B --minutes 20 --reason "omega gate reconv at omega main (sh)" -- flock /tmp/aien-gb10.lock env PHYSICS_DIR=$HOME/workspace/pkv514-pins/physics sh tools/run_gpu_reconv_chip.sh $HOME/workspace/requal-0c63/omega-gates/reconv ) > $HOME/workspace/requal-0c63/omega-gates/reconv-sh.out 2>&1; echo "reconv-sh rc=$? $(grep -E "PASS|FAIL" $HOME/workspace/requal-0c63/omega-gates/reconv-sh.out | tail -1)" | tee -a $HOME/workspace/requal-0c63/omega-gates/summary.txt +# cross-base: the prefill_attn gate at the pre-merge RC d0889a94 (gate, test and src byte-identical to main for these files) +RC=$HOME/workspace/omega-rc-d0889a94; ER=$HOME/workspace/requal-0c63/omega-gates-rc; mkdir -p $ER +( cd $RC && quietlock hold --owner OWN30B --minutes 20 --reason "omega prefill_attn gate at pre-merge RC" -- flock /tmp/aien-gb10.lock tools/run_gpu_prefill_attn_chip.sh $ER/prefill_attn $HOME/workspace/pkv514-pins/physics ) > $ER/prefill_attn.out 2>&1; echo "rc prefill_attn rc=$? $(tail -1 $ER/prefill_attn.out)" +I=$HOME/workspace/investigations/2026-10-15-omega457-l2-stale; F=$HOME/workspace/omega-457-fix +P=$HOME/workspace/pkv514-pins/physics; NV=$P/third_party/nvidia-open-580.173.02 +quietlock hold --owner OWN30B --minutes 20 --reason "omega #457 fix variant build" -- sh -c " + cd $F && make PHYSICS_DIR=$P -j10 build/libomega_gpu.a > $I/fix-build.log 2>&1 && git -C $F diff > $I/fix-variant.diff && sha256sum build/libomega_gpu.a > $I/fix-lib.sha256 && + cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -I$F/src -I$P/m16 -I$P/nvrm -I$NV/src/common/sdk/nvidia/inc -I$NV/kernel-open/common/inc -I$NV/kernel-open/nvidia-uvm -I$NV/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o $I/l2_stale_test_fix $I/src/l2_stale_test.c $F/build/libomega_gpu.a -lpthread -lm >> $I/fix-build.log 2>&1" ; echo "fix build rc=$?" +cat > $I/runs/run-fix.sh <<'EOS' +#!/bin/bash +# variant=fix (omega-457-fix platform change only), same 4 cases x 5 rounds as run-all.sh +cd "$(dirname "$0")/.." +for r in 1 2 3 4 5; do for m in rewrite realloc; do for c in 0 1; do + f=runs/fix-$m-c$c-r$r.log + { echo "# $(date -u +%FT%TZ) ./l2_stale_test_fix --mode $m --cached $c --reps 3"; ./l2_stale_test_fix --mode $m --cached $c --reps 3; echo "# exit $?"; } > $f 2>&1 + grep -h '^STALE\|INVALID\|^FAIL' $f | sed "s|^|fix r$r |" +done; done; done +EOS +chmod +x $I/runs/run-fix.sh +[ -x $I/l2_stale_test_fix ] && quietlock hold --owner OWN30B --minutes 20 --reason "omega #457 fix variant chip" -- flock /tmp/aien-gb10.lock $I/runs/run-fix.sh > $I/runs/summary-fix.txt 2>&1; echo "fix chip rc=$?" +for v in red fix; do W=$HOME/workspace/omega-457-$v; ( cd $W && quietlock hold --owner OWN30B --minutes 20 --reason "omega #457 regression gate $v" -- flock /tmp/aien-gb10.lock tools/run_gpu_l2_stale_chip.sh $I/gate-$v $P ) > $I/gate-$v.out 2>&1; echo "gate $v rc=$? $(tail -1 $I/gate-$v.out)"; done +for g in "fp8 tools/run_gpu_fp8_chip.sh $I/fixgates/fp8 $P" "decode_graph_cached tools/run_gpu_decode_graph_chip.sh $I/fixgates/decode_graph_cached cached $P" "cmdlist tools/run_gpu_cmdlist_chip.sh $I/fixgates/cmdlist $P"; do set -- $g; n=$1; shift; mkdir -p $I/fixgates; ( cd $F && quietlock hold --owner OWN30B --minutes 20 --reason "omega #457 fix no-regression $n" -- flock /tmp/aien-gb10.lock "$@" ) > $I/fixgates/$n.out 2>&1; echo "fixgate $n rc=$? $(tail -1 $I/fixgates/$n.out)"; done +EV=$HOME/workspace/sc-requal-main/docs/inference/evidence/own30b-requal-main-20261015 bash $HOME/workspace/requal-0c63/own30b-gates.sh +echo "stage2 end $(date -u +%FT%TZ)"