Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/patches/68e4b8ae1b845421 # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers ## desk block: 6 PRs (#484, #487, #490, #494, #496, #498) closed `68e4b8ae1b845421` #620 · opened 2026-10-22 19:04 UTC · closed 2026-10-23 10:58 UTC Imported from GitHub aien-dev/omega-mv#620, by drakestapleton Base `a8ffd2b912c84197d08f963b05f9c7d8b30a3f8a` · Head `7bc3f0b6ff41a83e5ac932d72b5544aaae8a8b52` drakestapleton wrote on 2026-10-22 19:04 UTC Desk block built by renda-harness: one judge run for 6 pull requests instead of 6 (Drake 2026-10-20: do the shared work once, in blocks). When this merges, each carried PR is closed with a link here. If the judge fails, the block is split and retried in halves; nothing is waived. Carries #484 (train/encoder-r5@`ce7fdce7`): encoder R5: native SHFL.BFLY and F2FP.BF16 (patch step removed), f32 global atomic add Carries #487 (train/tgemm-cut1@`d0ffdd3c`): tgemm cut 1: device-resident bf16 training GEMM (NN, f32 out) on the tensor cores Carries #490 (tern/kt1-speed@`16d862d1`): kt1: coalesced output and prefetched first weight loads (3 of 4 cold gates now pass) Carries #494 (fix/471-fp8-libm-free@`f1c4be2f`): gpu: libomega_gpu.a no longer references libm (FP8 packer ldexpf) (#471) Carries #496 (fix/470-attention-hd128-host@`4e9cfbe7`): gpu attention: fix the hd 128 host-only tier, run the attention host tiers in CI (#470) Carries #498 (fix/404-visor-scan-energy-verdict@`aa563a7d`): gates: visor evidence walk keeps every file; RX-HOST-REFERENCE accepts the measured energy verdict (#404) github-advanced-security[bot] commented on `src/omega_blackwell_codegen_tgemm.c` line 21 on 2026-10-22 19:09 UTC ## CodeQL / Multiplication result converted to larger type Multiplication result may overflow 'unsigned int' before it is converted to 'unsigned long'. Show more details github-advanced-security[bot] commented on `tests/visor/test_visor_evidence.c` line 31 on 2026-10-22 19:09 UTC ## CodeQL / File created without restricting permissions A file may be created here with mode 0666, which would make it world-writable. Show more details github-advanced-security[bot] commented on `tests/visor/test_visor_evidence.c` line 39 on 2026-10-22 19:09 UTC ## CodeQL / File created without restricting permissions A file may be created here with mode 0666, which would make it world-writable. Show more details github-advanced-security[bot] reviewed (COMMENTED) on 2026-10-22 19:09 UTC drakestapleton wrote on 2026-10-23 10:58 UTC Judge failure on the block head (operator verdict FAIL OMEGA-M19:rc_nonzero). Splitting the block in halves; each half is judged on its own. ### Fetch it A git bundle of the pull request's head, 171970 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/68e4b8ae1b845421.bundle -o 68e4b8ae1b845421.bundle git fetch 68e4b8ae1b845421.bundle refs/pull/620/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 620 7bc3f0b6ff41a83e5ac932d72b5544aaae8a8b52 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":620,"url":"https://github.com/aien-dev/omega-mv/pull/620","export_sha256":"7319147b350ad908bf0b731068ec3be7b8dee848041dc862f71455e8e4680140","imported_utc":"2026-11-18T16:35:48Z"} ``` ### Changes ``` diff --git a/.crumb b/.crumb index d121d2dad..f11e9bedb 100644 --- a/.crumb +++ b/.crumb @@ -77,33 +77,33 @@ "purpose": "Directory spec. Purpose not yet described by a human." }, { - "digest": "dfa36de2ac8649f66f80587abea51a7f166285ee0b92e0e09774c98689055250", - "last_commit": "333091a6", + "digest": "0d836578d779b8de2cf573e7cbeb11cebabfff155b442bf97420c9a30e418cc4", + "last_commit": "0e96f975", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", - "last_commit": "88e24bdd", + "digest": "aaffa2a1a2469c129bbc1b7cc7b8481bb42ed7d9f2cf1b94465c4700c20887ca", + "last_commit": "0e96f975", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { - "digest": "566a123ba248da906e3c42430b73decd7c3ec030a4fd26c909d265aa9bf67db9", - "last_commit": "88e24bdd", + "digest": "90e568e8d1e3e3fbb010a6ef9b019df68d360a469f9414b2d29950b557850b18", + "last_commit": "c35bafb4", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:e1a8c008214ad5dbc33a3e184d7e882dc56d1d50f9bd14c58f8773992961557e", - "compiled_at": "2026-10-18T21:10:38Z", + "children_root": "sha256:af91931c1592f39bf575c7db9a763bc244ef42db818906334739ac27eecc4bb3", + "compiled_at": "2026-10-22T19:04:33Z", "compiler": "crumb-compile/1", - "digest": "sha256:be7220db494238bb4c33023d1df17286c35f947336bee5fc2e0405c136ec3e73", - "evidence_files": 11127, - "evidence_root": "sha256:4528085ec1661c442b64fb5dc8def65067ea2620ff88e42bcf52d58b7642ea6e", - "files": 14100, - "generated_at_commit": "f4a9849fb127f8d2d664dfc56890752ad180c507", - "source_tree": "sha256:21f93defce6c9ba159a4bd31083db787e156dfaa4afb80c3427cf88f732f8258" + "digest": "sha256:74e9b1c13c9e2d8f27fed900d6dfbbece25494a319c757e3caab65009fac61ff", + "evidence_files": 11292, + "evidence_root": "sha256:08d02609f034524556b9677f46acc7b12aa3bc6b6c1f0eca83b3d505570bda9a", + "files": 14278, + "generated_at_commit": "0e96f97506f8599807622dda20c18db52c00c84e", + "source_tree": "sha256:12a6c1600632e9367efcd6a6d8ce144cdacdbdf81e22a1fe6fce5f89263a0d16" }, "owner_lane": "", "provenance": { diff --git a/Makefile b/Makefile index 3551fea3f..8971a935b 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,8 @@ SRCS += src/omega_gpu_tcgemm_api.c SRCS += src/omega_blackwell_codegen_pattn.c src/omega_gpu_prefill_attn_api.c # OWN-30B T3b (2026-10-13): device-resident prefill (omega_gpu_prefill.h), new files only SRCS += src/omega_blackwell_codegen_pf.c src/omega_gpu_prefill.c src/omega_blackwell_codegen_tc2.c src/omega_gpu_pfgemm.c +# trainer lane E1 (2026-10-16): device-resident bf16 training GEMM (omega_gpu_tgemm_api.h), new files only +SRCS += src/omega_blackwell_codegen_tgemm.c src/omega_gpu_tgemm_api.c # OWN-30B L1 GEMM (W-L1G, 2026-10-14): native FP8 QMMA, new files only SRCS += src/omega_blackwell_codegen_qmma.c src/omega_blackwell_codegen_qg.c # OWN-30B W-L1G-D (2026-10-14): router logits + MoE combine for the whole-prompt prefill, new files only @@ -2472,6 +2474,32 @@ test-gpu-fp8: $(GPU_FP8_TEST) ./$(GPU_FP8_TEST) --host-only ./$(GPU_FP8_TEST) --sim +# omega#471: libomega_gpu.a links without -lm (Makefile:35). Two halves, host-only: +# 1. symbol check: no undefined symbol of the archive (one not defined by another member) may be a name that the +# toolchain's libm.so.6 exports. libm's own export table is the denylist, so nothing is hand-maintained; a missing +# libm.so.6 is a FAIL, never a silent pass. glibc also resolves some libm names from libc (ldexpf did), which is +# why a plain link without -lm cannot catch this. +# 2. tests/gpu_libm_free_test.c (links -lm): the libm-free replacements are bit-identical to the libm calls they +# replaced over every relevant input (all exponents, all 256 e4m3 bytes, all 65536 bf16 codes, all 2^32 f32). +.PHONY: test-gpu-libm-free +GPU_LIBM_FREE_TEST = $(OUT_DIR)/gpu_libm_free_test +$(GPU_LIBM_FREE_TEST): tests/gpu_libm_free_test.c src/omega_gpu_fp8_api.h src/omega_gpu_hostmath.h src/omega_blackwell_codegen_moe.h $(OUT_DIR)/libomega_gpu.a + $(CC) $(CFLAGS) -o $@ tests/gpu_libm_free_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +test-gpu-libm-free: $(OUT_DIR)/libomega_gpu.a $(GPU_LIBM_FREE_TEST) + @set -e; libm=$$($(CC) -print-file-name=libm.so.6); \ + if [ ! -f "$$libm" ]; then echo "test-gpu-libm-free: FAIL (libm.so.6 not found: '$$libm')"; exit 1; fi; \ + nm -D --defined-only "$$libm" | awk 'NF>=3{print $$NF}' | sed 's/@.*//' | sort -u > $(OUT_DIR)/libm.exports; \ + nm $(OUT_DIR)/libomega_gpu.a | awk '$$1=="U"{print $$2}' | sort -u > $(OUT_DIR)/libomega_gpu.undef; \ + nm --defined-only $(OUT_DIR)/libomega_gpu.a | awk 'NF==3{print $$3}' | sort -u > $(OUT_DIR)/libomega_gpu.def; \ + test -s $(OUT_DIR)/libm.exports && test -s $(OUT_DIR)/libomega_gpu.undef && test -s $(OUT_DIR)/libomega_gpu.def; \ + hits=$$(comm -23 $(OUT_DIR)/libomega_gpu.undef $(OUT_DIR)/libomega_gpu.def | comm -12 - $(OUT_DIR)/libm.exports); \ + if [ -n "$$hits" ]; then \ + echo "test-gpu-libm-free: FAIL, libomega_gpu.a references libm:"; \ + for s in $$hits; do nm -A $(OUT_DIR)/libomega_gpu.a | grep -w "U $$s" | sed 's/^/ /'; done; exit 1; fi; \ + echo "PASS libomega_gpu.a: 0 of $$(comm -23 $(OUT_DIR)/libomega_gpu.undef $(OUT_DIR)/libomega_gpu.def | wc -l) external symbols are libm exports ($$(wc -l < $(OUT_DIR)/libm.exports) names in $$libm)" + ./$(GPU_LIBM_FREE_TEST) + @echo "test-gpu-libm-free: PASS" + # 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 @@ -2511,7 +2539,7 @@ test-gpu-bf16-gemv: $(GPU_BF16_TEST) # Ternary engine T0 (2026-10-15): KT1 W2A8 ternary GEMV (omega_gpu_tern_api.h). test-gpu-tern is host-only (word # arithmetic, packing, segments, budgets, refusals) plus the warp simulator (bit-equal to oma_rz_oracle, f32 segment -# epilogue, mutants 1-3 caught); the chip gate is tools/run_gpu_tern_chip.sh with the quiet flag held. +# epilogue, three warp orders, mutants 1 to 5 caught); the chip gate is tools/run_gpu_tern_chip.sh with the quiet flag held. .PHONY: test-gpu-tern GPU_TERN_TEST = $(OUT_DIR)/gpu_tern_test $(GPU_TERN_TEST): tests/gpu_tern_test.c tests/bw_warp_sim_k.h src/omega_gpu_tern_api.h src/omega_blackwell_codegen_tern.h $(OMA_RZ_SRCS) $(OMA_RZ_HDRS) $(OUT_DIR)/libomega_gpu.a @@ -2555,6 +2583,14 @@ GPU_TC_PEAK_TEST = $(OUT_DIR)/gpu_tc_peak_test $(GPU_TC_PEAK_TEST): tests/gpu_tc_peak_test.c tests/bw_hmma_model.h tests/bw_warp_sim_tc.h src/omega_blackwell_codegen_tc.h $(OUT_DIR)/libomega_gpu.a $(CC) $(CFLAGS) -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o $@ tests/gpu_tc_peak_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +# Training R5 part 2 (2026-10-15): f32 global atomic add probe. --host-only is the simulator; the chip run is one short window. +GPU_ATOMF32_PROBE_TEST = $(OUT_DIR)/gpu_atomf32_probe_test +$(GPU_ATOMF32_PROBE_TEST): tests/gpu_atomf32_probe_test.c tests/bw_warp_sim_tc.h src/omega_bw_em.h src/omega_blackwell_codegen.h $(OUT_DIR)/libomega_gpu.a + $(CC) $(CFLAGS) -ffp-contract=off -DWS_MAX_THREADS=256 -Itests -o $@ tests/gpu_atomf32_probe_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +.PHONY: test-atomf32-probe-host +test-atomf32-probe-host: $(GPU_ATOMF32_PROBE_TEST) + $(GPU_ATOMF32_PROBE_TEST) --host-only + # OWN-30B L1 attention (2026-10-13): tensor-core causal prefill attention. --host-only and --sim are host proofs; # the chip gate is tools/run_gpu_prefill_attn_chip.sh. GPU_PATTN_TEST = $(OUT_DIR)/gpu_prefill_attn_test @@ -2567,6 +2603,12 @@ $(GPU_PF_MEM_TEST): tests/gpu_pf_mem_test.c tests/bw_warp_sim_tc.h src/omega_gpu GPU_PFGEMM_TEST = $(OUT_DIR)/gpu_pfgemm_test $(GPU_PFGEMM_TEST): tests/gpu_pfgemm_test.c tests/bw_hmma_model.h tests/bw_warp_sim_tc.h src/omega_gpu_prefill.h src/omega_blackwell_codegen_tc2.h $(OUT_DIR)/libomega_gpu.a $(CC) $(CFLAGS) -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o $@ tests/gpu_pfgemm_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +# trainer lane E1 (2026-10-16): bf16 training GEMM. --host-only and --sim are host proofs; the chip gate is tools/run_gpu_tgemm_chip.sh +GPU_TGEMM_TEST = $(OUT_DIR)/gpu_tgemm_test +$(GPU_TGEMM_TEST): tests/gpu_tgemm_test.c tests/bw_hmma_model.h tests/bw_warp_sim_tc.h src/omega_gpu_tgemm_api.h src/omega_blackwell_codegen_tgemm.h $(OUT_DIR)/libomega_gpu.a + $(CC) $(CFLAGS) -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o $@ tests/gpu_tgemm_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +test-gpu-tgemm: $(GPU_TGEMM_TEST) + $(GPU_TGEMM_TEST) --host-only && $(GPU_TGEMM_TEST) --sim GPU_QMMA_PROBE_TEST = $(OUT_DIR)/gpu_qmma_probe_test $(GPU_QMMA_PROBE_TEST): tests/gpu_qmma_probe_test.c tests/bw_qmma_model.h src/omega_blackwell_codegen_qmma.h $(OUT_DIR)/libomega_gpu.a $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ tests/gpu_qmma_probe_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm diff --git a/calibration/.crumb b/calibration/.crumb index 7a4f08dbb..8345c9ab0 100644 --- a/calibration/.crumb +++ b/calibration/.crumb @@ -64,13 +64,13 @@ } ], "children_root": "sha256:e58b9cc78de81a51c7ed21c725616ddb80bd3d24d171b24a189e8f7132499433", - "compiled_at": "2026-10-14T21:46:29Z", + "compiled_at": "2026-10-22T14:49:25Z", "compiler": "crumb-compile/1", "digest": "sha256:fb7cc6e608fdbe68a9735a1313285782b9717ff12bde17343f8ce635de3644f6", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 110, - "generated_at_commit": "2a6d6d7b9091bd2184b15dcde893035dbcca40d3", + "generated_at_commit": "147b1d686412737e9d377a90dd6fa3b1e3fbd79f", "source_tree": "sha256:b39f40915ce2ed4092ade2a38665d99f6daab78fd462433177cdd0aec5f00bd7" }, "owner_lane": "", diff --git a/docs/.crumb b/docs/.crumb index ca5d5ec00..6a02f0528 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -124,13 +124,13 @@ } ], "children_root": "sha256:ac7f7ea4b00d4620a993c6dd88a0267f2d49008d415162976e45fa4341e43407", - "compiled_at": "2026-10-16T09:04:56Z", + "compiled_at": "2026-10-22T14:49:25Z", "compiler": "crumb-compile/1", "digest": "sha256:d2eb8967a939ebdb0b54e15fe5d849dd5af71c23b812941e4ba86ad2b0f21d39", "evidence_files": 34, "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc", "files": 127, - "generated_at_commit": "9d368679f13ea58c46bf7580899aee92e39f5885", + "generated_at_commit": "147b1d686412737e9d377a90dd6fa3b1e3fbd79f", "source_tree": "sha256:29d159b6950500f96de859834fd2c5a9e9ba037f9bc88fd97a8ed47a1688233b" }, "owner_lane": "", diff --git a/docs/estimation/.crumb b/docs/estimation/.crumb index f45a9743b..7058bcfc8 100644 --- a/docs/estimation/.crumb +++ b/docs/estimation/.crumb @@ -24,13 +24,13 @@ } ], "children_root": "sha256:35cd3af03e079556db7f3ebcfd7590fa68659e84dd603795ae6b5b048dc2af0d", - "compiled_at": "2026-10-14T21:46:29Z", + "compiled_at": "2026-10-22T14:49:25Z", "compiler": "crumb-compile/1", "digest": "sha256:56a5a999ce726e90d89c1c88b9e20c81857c8e6ee82af8d651ac80ea70e2c46d", "evidence_files": 34, "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc", "files": 47, - "generated_at_commit": "2a6d6d7b9091bd2184b15dcde893035dbcca40d3", + "generated_at_commit": "147b1d686412737e9d377a90dd6fa3b1e3fbd79f", "source_tree": "sha256:67ae8d20aca3ae36b8cf0d75c6939058cc9ff8762c977f70d6963c545e3215d8" }, "owner_lane": "", diff --git a/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/SHA256SUMS b/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/SHA256SUMS new file mode 100644 index 000000000..a88df52a4 --- /dev/null +++ b/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/SHA256SUMS @@ -0,0 +1,2 @@ +5894569b85825c5d836dd1f7b05bbcea8e3b2ca65a1d26872e7648e6c0dfbe30 probe.log +55b422c45c52a92dcedc1f72b0ba50f0d360b2102826fa887b7f4695b7fe99fb nvdisasm_decode.txt diff --git a/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/nvdisasm_decode.txt b/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/nvdisasm_decode.txt new file mode 100644 index 000000000..bb3004518 --- /dev/null +++ b/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/nvdisasm_decode.txt @@ -0,0 +1,13 @@ +nvdisasm release 13.0, V13.0.85 -b SM121; words written by omega_blackwell_encode_one at dd8ccc74 (scope dst addr data ureg -> w0 w1 w2 w3 -> text) +sys 4 2 5 6 -> 0x020479a3 0x80000005 0x0c1f5306 0x00321e00 -> ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS PT, R4, desc[UR6][R2.64], R5 ; +sys 9 10 7 4 -> 0x0a0979a3 0x80000007 0x0c1f5304 0x00321e00 -> ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS PT, R9, desc[UR4][R10.64], R7 ; +sys -1 2 5 6 -> 0x02ff79a3 0x80000005 0x0c1f5306 0x00321e00 -> ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS PT, RZ, desc[UR6][R2.64], R5 ; +gpu 4 2 5 6 -> 0x020479a3 0x80000005 0x0c1ef306 0x00321e00 -> ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, R4, desc[UR6][R2.64], R5 ; +gpu 9 10 7 4 -> 0x0a0979a3 0x80000007 0x0c1ef304 0x00321e00 -> ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, R9, desc[UR4][R10.64], R7 ; +gpu -1 2 5 6 -> 0x02ff79a3 0x80000005 0x0c1ef306 0x00321e00 -> ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, RZ, desc[UR6][R2.64], R5 ; +gpu -1 40 33 12 -> 0x28ff79a3 0x80000021 0x0c1ef30c 0x00321e00 -> ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, RZ, desc[UR12][R40.64], R33 ; +rejected candidates (Mesa sm90 REDG f32 layout, opcode 0x9a6), each: Unrecognized operation +0x020079a6 0x00000005 0x0c10f306 -> nvdisasm error : Unrecognized operation for functional uni +0x020079a6 0x00000005 0x0c115306 -> nvdisasm error : Unrecognized operation for functional uni +0x020079a6 0x00000005 0x0810f306 -> nvdisasm error : Unrecognized operation for functional uni +0x020079a6 0x00000005 0x0c1ef306 -> nvdisasm error : Unrecognized operation for functional uni diff --git a/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/probe.log b/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/probe.log new file mode 100644 index 000000000..f4205e71c --- /dev/null +++ b/evidence/R5-ATOMF32-PROBE-dd8ccc74-20261016T0301Z/probe.log @@ -0,0 +1,91 @@ +commit dd8ccc746d6a5a146ab0f216cdf2a657636fb5d0 (tree 5c9e71056868c3e01195b138f68554e9c2aa843a) physics 6d7cf0d driver 580.173.02 build/ cleaned at 0db0f0ad (src/ identical at dd8ccc74) 2026-10-16T03:01:40Z +== run 1 +sim SYS add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim SYS add -0.25 from 0 x 128: word 0xc2000000 = -32 (want 0xc2000000, a no-op would leave 0x00000000), 0 faults +sim SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +sim SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +sim GPU add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim GPU add 1.0 from 0, no destination (RZ) x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim CONTROL integer ATOMG.ADD of 1.0f bits x 128: word 0xc0000000 = -2 (want 0x43000000, a no-op would leave 0x00000000), 128 faults + control ok: the check caught the wrong arithmetic +chip SYS add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 65331.7 us = 2.01 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add -0.25 from 0 x 131072: word 0xc7000000 = -32768 (want 0xc7000000, a no-op would leave 0x00000000), 0 faults, 65790.4 us = 1.99 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +chip SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +chip GPU add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 64961.2 us = 2.02 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip GPU add 1.0 from 0, no destination (RZ) x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 65587.3 us = 2.00 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip CONTROL integer ATOMG.ADD of 1.0f bits x 131072: word 0x00000000 = 0 (want 0x48000000, a no-op would leave 0x00000000), 131072 faults, 51005.8 us = 2.57 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) + control ok: the check caught the wrong arithmetic +GPU_ATOMF32_PROBE: PASS +== run 2 +sim SYS add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim SYS add -0.25 from 0 x 128: word 0xc2000000 = -32 (want 0xc2000000, a no-op would leave 0x00000000), 0 faults +sim SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +sim SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +sim GPU add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim GPU add 1.0 from 0, no destination (RZ) x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim CONTROL integer ATOMG.ADD of 1.0f bits x 128: word 0xc0000000 = -2 (want 0x43000000, a no-op would leave 0x00000000), 128 faults + control ok: the check caught the wrong arithmetic +chip SYS add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 64059.1 us = 2.05 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add -0.25 from 0 x 131072: word 0xc7000000 = -32768 (want 0xc7000000, a no-op would leave 0x00000000), 0 faults, 63325.3 us = 2.07 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +chip SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +chip GPU add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 63543.4 us = 2.06 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip GPU add 1.0 from 0, no destination (RZ) x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 63275.4 us = 2.07 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip CONTROL integer ATOMG.ADD of 1.0f bits x 131072: word 0x00000000 = 0 (want 0x48000000, a no-op would leave 0x00000000), 131072 faults, 51676.8 us = 2.54 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) + control ok: the check caught the wrong arithmetic +GPU_ATOMF32_PROBE: PASS +== run 3 +sim SYS add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim SYS add -0.25 from 0 x 128: word 0xc2000000 = -32 (want 0xc2000000, a no-op would leave 0x00000000), 0 faults +sim SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +sim SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +sim GPU add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim GPU add 1.0 from 0, no destination (RZ) x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim CONTROL integer ATOMG.ADD of 1.0f bits x 128: word 0xc0000000 = -2 (want 0x43000000, a no-op would leave 0x00000000), 128 faults + control ok: the check caught the wrong arithmetic +chip SYS add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 62273.9 us = 2.10 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add -0.25 from 0 x 131072: word 0xc7000000 = -32768 (want 0xc7000000, a no-op would leave 0x00000000), 0 faults, 65020.0 us = 2.02 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +chip SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +chip GPU add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 62518.3 us = 2.10 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip GPU add 1.0 from 0, no destination (RZ) x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 64690.4 us = 2.03 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip CONTROL integer ATOMG.ADD of 1.0f bits x 131072: word 0x00000000 = 0 (want 0x48000000, a no-op would leave 0x00000000), 131072 faults, 62054.2 us = 2.11 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) + control ok: the check caught the wrong arithmetic +GPU_ATOMF32_PROBE: PASS +== run 4 +sim SYS add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim SYS add -0.25 from 0 x 128: word 0xc2000000 = -32 (want 0xc2000000, a no-op would leave 0x00000000), 0 faults +sim SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +sim SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +sim GPU add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim GPU add 1.0 from 0, no destination (RZ) x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim CONTROL integer ATOMG.ADD of 1.0f bits x 128: word 0xc0000000 = -2 (want 0x43000000, a no-op would leave 0x00000000), 128 faults + control ok: the check caught the wrong arithmetic +chip SYS add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 63822.7 us = 2.05 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add -0.25 from 0 x 131072: word 0xc7000000 = -32768 (want 0xc7000000, a no-op would leave 0x00000000), 0 faults, 64916.0 us = 2.02 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +chip SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +chip GPU add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 63621.5 us = 2.06 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip GPU add 1.0 from 0, no destination (RZ) x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 63671.8 us = 2.06 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip CONTROL integer ATOMG.ADD of 1.0f bits x 131072: word 0x00000000 = 0 (want 0x48000000, a no-op would leave 0x00000000), 131072 faults, 64174.9 us = 2.04 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) + control ok: the check caught the wrong arithmetic +GPU_ATOMF32_PROBE: PASS +== run 5 +sim SYS add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim SYS add -0.25 from 0 x 128: word 0xc2000000 = -32 (want 0xc2000000, a no-op would leave 0x00000000), 0 faults +sim SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +sim SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +sim GPU add 1.0 from 0 x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim GPU add 1.0 from 0, no destination (RZ) x 128: word 0x43000000 = 128 (want 0x43000000, a no-op would leave 0x00000000), 0 faults +sim CONTROL integer ATOMG.ADD of 1.0f bits x 128: word 0xc0000000 = -2 (want 0x43000000, a no-op would leave 0x00000000), 128 faults + control ok: the check caught the wrong arithmetic +chip SYS add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 66878.0 us = 1.96 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add -0.25 from 0 x 131072: word 0xc7000000 = -32768 (want 0xc7000000, a no-op would leave 0x00000000), 0 faults, 64006.5 us = 2.05 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip SYS add 2^-125 to subnormal 2^-140 (FTZ) x 32: word 0x03800000 = 7.52316385e-37 (want 0x03800000, no-FTZ would be 0x03800008, a no-op would leave 0x00000200), 0 faults +chip SYS add 1.0 to 2^24+2 (round to nearest even) x 32: word 0x4b800002 = 16777220 (want 0x4b800002, a no-op would leave 0x4b800001), 0 faults +chip GPU add 1.0 from 0 x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 66554.9 us = 1.97 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip GPU add 1.0 from 0, no destination (RZ) x 131072: word 0x48000000 = 131072 (want 0x48000000, a no-op would leave 0x00000000), 0 faults, 63885.9 us = 2.05 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) +chip CONTROL integer ATOMG.ADD of 1.0f bits x 131072: word 0x00000000 = 0 (want 0x48000000, a no-op would leave 0x00000000), 131072 faults, 66583.1 us = 1.97 M adds/s, all on one word in uncached host-visible memory (contention, not a ceiling) + control ok: the check caught the wrong arithmetic +GPU_ATOMF32_PROBE: PASS diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/README.md b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/README.md new file mode 100644 index 000000000..859aa4c14 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/README.md @@ -0,0 +1,84 @@ +# KT1 speed: why the ternary GEMV missed its bandwidth gates, and what the fix moved + +Follow-up to `../TERN-T0-KT1-18185404-20261016T0151Z/` (KT1 correct, 0 of 4 shapes at the cold bandwidth gate). +Investigation folder: `investigation/` (the plan with every prediction and verdict, the run scripts, every run +receipt; method `~/.claude/skills/investigate`, one variable per run, negative control before every speed run). + +Pins: omega d58a46a0 (branch tern/kt1-speed, clean: `device.txt`), physics 6d7cf0d4, driver 580.173.02, GB10. Every chip +run held the quiet flag (`quietlock hold --owner kt1-speed-fable`, windows of 6 to 10 minutes). +Script: `tools/run_gpu_tern_chip.sh base|red|main `, then five `gpu_tern_test --bw-only --reps 5` runs +(`receipt-cold-{1..5}.json`). Speeds are fractions of the physical limit (273 GB/s spec, 237.2 GB/s practical). + +## Cause, with evidence + +1. **Per-row 4-byte stores to GPU-uncached memory** (the main cost). A probe that parked the results in shared memory + instead of storing them (`investigation/probe-nostore-1.json`, results unchecked, diagnostic only) cut per-launch + time 25.1 -> 15.7 us at 3840x2560, 53.2 -> 42.0 at 13824x2560, 30.4 -> 25.1 at 2560x6912, 16.2 -> 13.5 at 2560x2560. + The lead came from a per-CTA timeline camera whose own 640 stamp stores slowed launches by 5 to 10 us + (`timeline-1` against `timeline-nostore-1`). +2. **The x round trip ran before any weight moved**: x staging took 2.3 to 3.2 us of every CTA (timeline camera), and a + probe that skipped the x load (`probe-nox-1.json`) saved 0.6 to 2.6 us. +3. **Not the GPU clock.** An in-kernel camera (SR_CLOCKLO against the global timer, `clockcam-1-cam.csv`) read about + 2560 MHz during every launch, including the 8x256 floor launches; nvidia-smi's 208 MHz is a slow sample that misses + microsecond bursts. Longer command lists did not change the fractions. Astra's clock-ramp lead is closed. + +## The fix (commit d58a46a0) + +Single-chunk kernels write each round's 2RW results into shared slots (two slot sets alternating by round, one CTA +barrier per round) and warp 0 stores the round with one coalesced STG. The warp's first unit's weight loads are issued +before the x load, which no longer waits for them; the K loop skips its loads once. Row-major weight loads use LDG.E +immediate offsets (the encoder's LDG.E.64/128 offset field, identical words when 0; simulator mirrors it), so the +register count stays at 54 peak / 56 declared. Host battery 56/56, simulator 34/34 (mutants 1, 2, 3 caught). + +## Verdicts + +| gate | result | receipt | +|---|---|---| +| KT1 bit-equal to `oma_rz_oracle`: 20,000 random rows, MA grid (49,932 rows), 4 BitNet shapes x 2 layouts | PASS, 0 rows differ of 115,500 | `receipt-main.json` | +| f32 q\|k\|v segments | PASS, 0 rows differ | `receipt-main.json` | +| Negative controls: mutants 1, 3, 2 forced | each exits FAIL | `receipt-red-mutant{1,3,2}.json` | +| Cold bandwidth, L2 defeated, floor taken out | 3 of 4 shapes PASS; 2560x2560 FAIL | `receipt-main.json`, `receipt-cold-{1..5}.json` | +| Word table, bf16 and FP8 GEMVs; launch floor; attention refusal | as before (PASS, PASS, recorded) | `receipt-table-*.json`, `receipt-launch-cost.json`, `receipt-attn-20-5.json` | + +Cold fractions of 237.2, in-list launch floor taken out (3.4 to 3.7 us). Before = the 18185404 receipt (main, repeats 2, 3). + +| shape | before | after: five cold runs | gate | +|---|---|---|---| +| 3840 x 2560 (q\|k\|v) | 0.480, 0.463, 0.504 | 0.820, 0.907, 0.899, 0.854, 0.822 | PASS (0.759) | +| 2560 x 2560 (o) | 0.540, 0.533, 0.574 | 0.722, 0.732, 0.717, 0.712, 0.705 | FAIL (0.759) | +| 13824 x 2560 (gate\|up) | 0.766, 0.744, 0.764 | 0.955, 0.952, 0.944, 0.969, 0.946 | PASS (0.843) | +| 2560 x 6912 (down) | 0.718, 0.715, 0.707 | 0.813, 0.768, 0.841, 0.851, 0.856 | PASS (0.759) | + +Store fix alone (prefetch not yet in): 0.816 / 0.687 / 0.933 / 0.738 (`investigation/fix-1.json`); the prefetch added +0.7 to 0.9 us per launch on three shapes and nothing at 2560x2560 (prediction P10 partly wrong, recorded in the plan). + +## Gate measurement: a proposal, not a change + +The present gate judges one launch with the in-list floor subtracted. At 2560x2560 that launch is a single burst +(1280 units over 1280 warps, every warp issues its ten loads at once); 9.7 us remain for 1.64 MB where the practical +limit needs 6.9 us, and the floor itself is 3.7 of 13.4 us. Real decode runs about 150 GEMVs back to back in one +command list, each one's x the previous output (GPU-produced, so it may live in GPU-cached memory), so the honest +figure is the time of that list. Proposal: a decode-like receipt, 150 launches in layer order (q|k|v, o, gate|up, +down) with weights rotated past L2, timed as one list and stated as bytes moved over list time against 237.2, floor +counted (in a dependent chain the floor is real cost), beside the design-doc end-to-end gate of 170 tok/s. The +180 / 200 GB/s single-launch thresholds stay as they are until that receipt exists; this folder does not move them. + +## UNKNOWN + +- The 2.8 us left at 2560x2560 (1.3 us at 3840, 1.8 us at 13824): mechanism not identified (one-burst fill and drain, + first-touch translation, or other). Removing the x round trip did not move it. +- 2560 x 6912 runs in waves (CTA start spread about 20 us in the timeline camera; shared 13.9 KB per CTA) and swings + 0.77 to 0.86 between runs. The launch descriptor's SM shared-memory carveout fields (word 36, kept from a captured + descriptor) were not touched; the documentation for them was not read. Next variable, not this PR. +- Resident CTA capacity and SM count were not measured; the 16x-list camera run failed its oracle check (cause not found). +- Why uncached 4-byte stores cost 9 to 11 us per launch (measured, mechanism not). + +## Added after review (omega#490) + +- `investigation/clockcam-1-cam.csv`: the in-kernel clock camera's raw stamps (SR_CLOCKLO against the global timer per + CTA), the 2560 MHz evidence behind the closed clock lead. +- The warp simulator now visits warps in a chosen order per barrier phase (ascending, descending, or a seeded shuffle; + `WsSim.warp_sched`). Test mutant 4 (one output slot set) is hidden by the ascending order and caught by the other two + (30 and 18 rows wrong of 64); test mutant 5 (no unit clamp) is refused on a partial last round with two K iterations. + `make test-gpu-tern` (host battery plus simulator, no chip) runs in the smoke workflow. +- `SHA256SUMS`: every file in this folder. diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/SHA256SUMS b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/SHA256SUMS new file mode 100644 index 000000000..b8a932de8 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/SHA256SUMS @@ -0,0 +1,141 @@ +960e9944634a3f5ea43f85a0e2f5f25366dce174acfb8c55e53f0dd7e74f470a ./attn-20-5.log +bbc78a8b9f9c722b4a8f579b8ceb60a59ae5c04a33e1f4884d4aab02ab70e00e ./build-base.log +bbc78a8b9f9c722b4a8f579b8ceb60a59ae5c04a33e1f4884d4aab02ab70e00e ./build-main.log +bbc78a8b9f9c722b4a8f579b8ceb60a59ae5c04a33e1f4884d4aab02ab70e00e ./build-red.log +40c451583fb0b0e519c5a604631ba6661f2943126283ee991ac6f1b923f5db8a ./cold-1.log +64496e6bfe38a066bed842961d0f7c4b2c6b54e32ae783983c9e33a0cead4f78 ./cold-2.log +5a55724c6e7c27311e23f0a50395fbbe6c1cceef652f502d9be264122ce17889 ./cold-3.log +d3a1e8490d8a7c4694e91841aa3e765be91cea62beb4b5ca720c60905ffc3db4 ./cold-4.log +4e12bc6b564af360992e51c6b32bf73c9ba01228626c6e9d8fb52304c49c7ac0 ./cold-5.log +0a3caa290de2055f9d6e1f1af0bef60ba1d430c99af401085b792230ced35c35 ./device.txt +2cb9e8adff61b26a1d4cfec2934e019059c22b4802897f945f4c50a6482608fe ./host-only.log +4fd6959376803f936311aa12d59e4999182c5a05cfa4149f5622b9484f29946c ./investigation/baseline-1.json +053dd4e26d346048c54808104e48999bde7af2ab3c7f6cb5065e96079228a75c ./investigation/baseline-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/baseline-1-negative.json +415a356c39f77b8d50490624ff3c4d995d36369c91b7267796bf4c1487c66e5c ./investigation/baseline-2.json +fcd45a185760939f3a1ef5c470650f5430bb45f4ff75828b266fd8bb2fde8874 ./investigation/baseline-2.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/baseline-2-negative.json +6bf4e4258f670ec9590769f0e87f1f8ade8b750597231ab28de7ff7ae42c3aaf ./investigation/baseline-3.json +466b92f0abf60df9f1e2bf5c4c46b7b980cc9cc6506fb877667a660e82374762 ./investigation/baseline-3.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/baseline-3-negative.json +8fd99402b5c5dcc3c8c0c911cb075d41e2c879928a800756709ea6b3340c0d30 ./investigation/baseline-4.json +8df44b9e96b3def8671725907902e64a6e8c84073f02c03966f051d768c87d0f ./investigation/baseline-4.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/baseline-4-negative.json +d4312db6c9e08cde43c86b7d51626ff14f4b7ea517142e6116db428588d7f3a4 ./investigation/baseline-5.json +1542777627b7c4844c9a1c0422611cef0eed44143a5701b1f84b7cddfa895bca ./investigation/baseline-5.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/baseline-5-negative.json +62f0d0ff608358b2cd8aa9e0ca6df2c4efd3ca8c2c5db21ce50fc8922d8437eb ./investigation/baseline-6.json +57b62ca1f7b7ef391e7abea17d3d0f79cf902c08a89240dd095109d0900eab46 ./investigation/baseline-6.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/baseline-6-negative.json +b9249a4ac6fee48fbbec1e4130577ebbf333feb90ff45ce1dab89d6a562120ab ./investigation/block-4.json +41565d5dd02e29284f0db056516e4b40ef8fdf75a0412133a3ea5e6788075414 ./investigation/block-4.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/block-4-negative.json +8b9ae0e6731e4ba3e54f88655ea1bf00c8beb6e245466862452151bcffa81e6e ./investigation/clockcam-1-cam.csv +2533abc9ff263d10a67950fffbdeb134916f7419c0af703a389c21701968d80f ./investigation/clockcam-1.json +dd752474cdf5382dde7dc7f080a4307435e95a78e7801d5bab7bdafd502ff69f ./investigation/clockcam-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/clockcam-1-negative.json +933caf4b354995577f4edfba1b065637bc93ddb1ed67197d69a75a0a9c7667e3 ./investigation/clockcam-m16.json +685ec35d15d502ba39b584c795e04e0a3704116fe08850f4bfb3023e9b7e0dfb ./investigation/clockcam-m16.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/clockcam-m16-negative.json +c4d46e9cd6d10fd3b666ce41c75311f6fa8319323d738a1a918a5780098765d1 ./investigation/ctas-240.json +33a4e965aa53687bc586eb68bbecde9f695ec6a2c956f5280444680080578c9d ./investigation/ctas-240.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/ctas-240-negative.json +d4fce6a8fc858eee38b2e7447c598d81d53c7db99784c0205cc9a140483aabb7 ./investigation/ctas-320.json +9e5228e0e7e26d4cd368b350afcc6d53937d17f3de8e068225047646b1dbd4bf ./investigation/ctas-320.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/ctas-320-negative.json +2fa330cea91b45e4608c7ede56139c66161825f81aecdb5a31764e985f2f1b63 ./investigation/ctas-640.json +f71876af39ef842339158d6e3ef8d55b67ff60f025f90a9da69726171e60daf3 ./investigation/ctas-640.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/ctas-640-negative.json +ea042ac97f34b0105ecfd522a392824a19bee760168be4f195d0a7ef1cf81692 ./investigation/ctas-96.json +0c5141a6d8c3134abd8be112b222ce32ae44e62de6715cddfa6e37628d09e911 ./investigation/ctas-96.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/ctas-96-negative.json +8dd2399c7ee5691b72ac466f2926a7c062ee33a6f6264f747b0734da9bf8cc2b ./investigation/depth-1.json +80b3fc06880b3693d2c9cae4eabf25e0d316da33fc22f6abfa7d5fc8cc6ce7a7 ./investigation/depth-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/depth-1-negative.json +03ec5c6c24f9c43c6bc1062423bec549d347b1a9b6040489dac8d3fe557abcfc ./investigation/depth-2.json +3d94def8020b62d9aff5c912a47cc297809fc005005354b9d0eae0fea0bc4aac ./investigation/depth-2.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/depth-2-negative.json +5fd39c502668c9eb50dd88620b0befcfbb1e193927a38e0457cc0e6e5a765812 ./investigation/depth-3.json +f97cc78fb8b439090420873e2667148b762927f22e9f2eaf96fb7779bc68d297 ./investigation/depth-3.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/depth-3-negative.json +101bcfa674aa821fca538bfb8b73677b15cc85b93c3bf5f0215f83c75b091f1c ./investigation/depth-4.json +44c35b1e7f08f99c8cf15a4136a660a83862a912c0929bf73f0a05372e84f00f ./investigation/depth-4.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/depth-4-negative.json +57110008888e5b1b543b095a4f3565b8d1f0e867bd5be0e5e6f924f3027af74b ./investigation/depth-5.json +60f244dc18c85f04277964ecb179c9a61942040112bb84071c39a28815a58e72 ./investigation/depth-5.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/depth-5-negative.json +24001f874a2e1799f2c5b8831bf6ee5c82f37475be3cab1a8ad9df891fd80e0a ./investigation/fix-1.json +b7e4550e7084d2a5c42a02d91994ce181759e253fbb1201bf2a9cce35aed3de8 ./investigation/fix-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/fix-1-negative.json +6a8df864e4551a5f0f078e6702cabe0db0dc843d2b3739128b96e82fb0d134cc ./investigation/fix2-1.json +6e5cbc491ea45aa7a443c80e859d277f6036c624695c3b87fac3584e025ad574 ./investigation/fix2-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/fix2-1-negative.json +e8276746ac9d837764264991f3ae7fd7fa7d2ae5a0548381c3d058fcc8d82c17 ./investigation/hot-baseline.json +0bf0f81b3984cd40a5998338a3ae8bbaf32ede121132f9db3b7831c0961f2ff1 ./investigation/hot-baseline.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/hot-baseline-negative.json +aa9197672ac832aaa5301c55674b3171ce49562bef310ff3ae7b4d4e3c81e831 ./investigation/load-probe-1.json +f0c855773b41c4d3bb11df810199597ec8cca6b0b72976d2589f4dbada3ab9b3 ./investigation/load-probe-1.meta +67e53b7552d2809b3058ad48470b1137942bfbc9fa0cc77ecadf070e70413be3 ./investigation/load-probe-1-negative.json +a825eae55ffb70a7f1ebace4bb596a00a669876cf0dac79e09c062c1f2e204f4 ./investigation/no-readwait-1.json +41cc5f23d396281c6210efac5474e54d5e48f5a19d6ab5b0ef31c0186bebab74 ./investigation/no-readwait-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/no-readwait-1-negative.json +0d14693aff90ddabe230e534cb5f7a055913256ee33bdc9ed2f51624d844266f ./investigation/no-readwait-hot.json +746b6226b3f58e25e4e7cbda1c03ff5fd27c89e97af5413d520e12790f475acb ./investigation/no-readwait-hot.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/no-readwait-hot-negative.json +f44c90e6df2fae45d38a8250f70e34e87f1bf8cd75eebca7e212e2328238b5c1 ./investigation/plan.md +8f81df78535cc4608704d96de67e7ba2317d429767de9cb2441f9528d8258cfc ./investigation/prefetch-dirty-tree-main.log +a49080609433fbfc7bd7adb0e78d78b7c5f3a9780e3e193624dc3dc5b51c4b4a ./investigation/probe-nostore-1.json +7de35e00c340d15e192f8acc113959ab154cd130b694c63b6b8e4485cd31e46d ./investigation/probe-nostore-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/probe-nostore-1-negative.json +13aba8663d70c3ec478129e62c7ed69352738edea38961f1b159965bd02ae68e ./investigation/probe-nox-1.json +7a8532d2e7d86adcd0f8f81b2b1f40785600d097b7e36a66cc10e7903b9f255d ./investigation/probe-nox-1.meta +f78b053e3aeb08a7b5289b088afbdb990010ce977565ca097941b4ccc96e424e ./investigation/probe-nox-1-negative.json +034c2d3107fab50638949ceca3f3179192cd4fddd21bc5b3b36856158f326742 ./investigation/rows-2.json +037ab23adafa19b621080ef31b4b3bfa7bbf444b223197c2a5c280669d9f11ee ./investigation/rows-2.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/rows-2-negative.json +e67004d584e7226a9720692542cf89c7aeea41cb5474fea5c447d8e0bbeead25 ./investigation/run-cam.sh +5b803ea28476c681d558c2884517e3695c246732b956460f1386a0b9d24ac1f5 ./investigation/run-one.sh +42dae031d30e2be5484b44020e8d58d5744b609ac7888acf31307888b48ead0f ./investigation/shared-output-1.json +db8f1671abed92c129fe78502983cbfdbced0ddc39be0b3df8b39c21062e8cc9 ./investigation/shared-output-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/shared-output-1-negative.json +ae7bed9e3d7e734a63029051ccd5c0161cd3fc10ef1c8bd629d7d303a9259cff ./investigation/stamps-1.json +30576aa478e9092a75a8e798609a0e3346f6953d402cf622cc974161633f4039 ./investigation/stamps-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/stamps-1-negative.json +4ebbdbe05389a9c582f784308ae5edbe0e5b3cd328341b985754ce9f1395fbaa ./investigation/store-fix-only-main.log +40be1ddc247802fa985700515f095572ccf79266ec299ebb9fca9b206ae130ab ./investigation/timeline-1.json +d6edd639658565d8bf1b8963608820717be2a622acaa655afaa33e44c7499d3f ./investigation/timeline-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/timeline-1-negative.json +5c7bb0ed144599d0e0a0b32ae27672421bd812a6038dd4c32e7dbe19d83ff4a0 ./investigation/timeline-hot.json +c3d05bd3ef8f16f0d601554501742bea397e215d8fde803bac2016932437459c ./investigation/timeline-hot.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/timeline-hot-negative.json +3fc0fa018efaa529eb399dd58b5fb29441e6cfdd8b7bb1fa7626536ee41d6e3b ./investigation/timeline-nostore-1.json +5e85f7417bed4e017d0af040c094c70966a41f5c2e9e18039c10ee7050ae6ab1 ./investigation/timeline-nostore-1.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/timeline-nostore-1-negative.json +b5a2ac0aff9a549a2db15e14ade7409082762985125430e07baa32078765a486 ./investigation/warps-16.json +362288892b16968a3d9b98c4ea72ba87196cc3c4aa51e9488c8bc3cd58eb173f ./investigation/warps-16.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/warps-16-negative.json +790709839dae14ab0ab33e7f9a9e1532681551e5a29666a1da5ab525b1a4da3a ./investigation/warps-4.json +86ca8903258a2c893a3c7ea416f1a93c607d99b38a2ce6fe9cb8181d4ac78aeb ./investigation/warps-4.meta +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./investigation/warps-4-negative.json +b8d397bd7c5587f1b860f9dd4d102ece4ddc6f18e6ca156face5a18173ed90fe ./launch-cost.log +cbde8ae6e1d197ce247bce7c97c024cfd5304d094c81415441e25870455fe69c ./main.log +f48478852934c8dc6bb0d4d01fce6189423f5515bee726e144c9411606df3a77 ./README.md +818cc3d21793406ecdec335f951568f423403f3ac63581d9b93d1c2dc68d1c8c ./receipt-attn-20-5.json +f249761b0dfb685b0b3610f9c09e1bdebbfec175a7a99a7cb1fbd55067ed299f ./receipt-cold-1.json +e109072923ca46d40b12e01aeb850f307650de5f626be18b5a85266d4303c7ce ./receipt-cold-2.json +15031af0fb3b7efe432ac8921c9ddc9d0fddf05a6b3663927883cd165f42f4b6 ./receipt-cold-3.json +aad78c8b7d897584fc063680f05f181685f27bb5811648c8dc34197edf6e9b0e ./receipt-cold-4.json +8ebee506886e7ee203887e29a77ffacc2be57e215bd4fc23455b3ca34b774ba0 ./receipt-cold-5.json +2a5f4a5b78838d7b317177dc7d9c6ccce48d8a836d497f5db0b749938b75b699 ./receipt-launch-cost.json +7ae3ad7daec0bc4ccd86074a04793ba45e7c210d3465a7d8f5dda43341ff6d81 ./receipt-main.json +4a59ab69dcc471be6edffe1259a841524979c346cd11f916d242b005e6e8217e ./receipt-red-mutant1.json +0392aa7a526354865398e8c905ab762150443bee7fae08d0d067bceb8cd03089 ./receipt-red-mutant2.json +cd375745ef7a42726d9ea816be42776d178ede95b58373950f27ff67e90b1895 ./receipt-red-mutant3.json +0a3ec90c2bdb0018ae4e5a7ebbcb93f6b430110d3eaf04033d6c9c79ebebb05e ./receipt-table-bf16.json +eb6bf964c1672a85b4317541318eaa2dc676fc361fbdae874a89e20a40356ac4 ./receipt-table-fp8.json +0508ca04ffca29492af93bd4912bfeab04f5e6011b3dc9f7dab4564878d3d45f ./red-mutant1.log +8f769e56517a5587c32cfe4cda7416c8db95a20a6a1148346f4b0dea5694928b ./red-mutant2.log +2ed8785238df7175d6661d1162a35e42d41bcc8aad26d76b1a076546b0e061d9 ./red-mutant3.log +0fc0a25356f76257cb0ad1b92061eca1ff05afa5225e4d3438d0a7e3d3ec453f ./sim.log +3d69045c918bb18218644dd0bc372edffd01ba33dc31d2d0d5fd7b56c25aa99b ./table-bf16.log +216f1f44e839a9e07df1e8104eaa7d21b41bd8e58cf6b3bdf51e1573308859e2 ./table-fp8.log diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/attn-20-5.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/attn-20-5.log new file mode 100644 index 000000000..670672c51 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/attn-20-5.log @@ -0,0 +1,7 @@ +REFUSED: decode attention at 20 query / 5 KV heads, head dim 128 + reason 1: head layout fixed at 32 query / 4 KV heads (8 per KV head); asked 20 / 5 (4 per KV head) + reason 2: fused q|k|v input fixed at 5120 words; the asked layout needs 3840 + reason 3: per-head q_norm / k_norm is built in (Qwen3); a model without QK norm needs a kernel without it + needed: a decode attention kernel for this geometry (ternary engine design KT3) +gpu_decode_attn_test: REFUSED (geometry 20/5/128 not built) +attn-20-5 exit 3 (3 = recorded refusal) diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-base.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-base.log new file mode 100644 index 000000000..49b68201b --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-base.log @@ -0,0 +1,4 @@ +make: 'build/gpu_bf16_gemv_test' is up to date. +make: 'build/gpu_fp8_api_test' is up to date. +make: 'build/gpu_decode_attn_test' is up to date. +make: 'build/gpu_launch_cost_test' is up to date. diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-main.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-main.log new file mode 100644 index 000000000..49b68201b --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-main.log @@ -0,0 +1,4 @@ +make: 'build/gpu_bf16_gemv_test' is up to date. +make: 'build/gpu_fp8_api_test' is up to date. +make: 'build/gpu_decode_attn_test' is up to date. +make: 'build/gpu_launch_cost_test' is up to date. diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-red.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-red.log new file mode 100644 index 000000000..49b68201b --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/build-red.log @@ -0,0 +1,4 @@ +make: 'build/gpu_bf16_gemv_test' is up to date. +make: 'build/gpu_fp8_api_test' is up to date. +make: 'build/gpu_decode_attn_test' is up to date. +make: 'build/gpu_launch_cost_test' is up to date. diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-1.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-1.log new file mode 100644 index 000000000..8fb4558a2 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-1.log @@ -0,0 +1,8 @@ +chip: in-list launch floor (8 x 256, 512 B) median 3.68 us, min 3.49 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 16.32 us per launch -> 150.6 GB/s = 0.552 of 273 spec, 0.635 of 237.2 practical; minus the launch floor 12.64 us -> 194.4 GB/s (0.820 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 13.25 us per launch -> 123.7 GB/s = 0.453 of 273 spec, 0.521 of 237.2 practical; minus the launch floor 9.57 us -> 171.2 GB/s (0.722 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 171.2 (123.7 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 42.72 us per launch -> 207.1 GB/s = 0.759 of 273 spec, 0.873 of 237.2 practical; minus the launch floor 39.04 us -> 226.6 GB/s (0.955 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 26.62 us per launch -> 166.2 GB/s = 0.609 of 273 spec, 0.700 of 237.2 practical; minus the launch floor 22.94 us -> 192.8 GB/s (0.813 of 237.2) +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-1.json +gpu_tern_test: 9 checks, 1 failed: FAIL diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-2.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-2.log new file mode 100644 index 000000000..7d66730c6 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-2.log @@ -0,0 +1,8 @@ +chip: in-list launch floor (8 x 256, 512 B) median 3.84 us, min 3.46 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 15.26 us per launch -> 161.0 GB/s = 0.590 of 273 spec, 0.679 of 237.2 practical; minus the launch floor 11.42 us -> 215.1 GB/s (0.907 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 13.28 us per launch -> 123.4 GB/s = 0.452 of 273 spec, 0.520 of 237.2 practical; minus the launch floor 9.44 us -> 173.6 GB/s (0.732 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 173.6 (123.4 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 43.04 us per launch -> 205.6 GB/s = 0.753 of 273 spec, 0.867 of 237.2 practical; minus the launch floor 39.20 us -> 225.7 GB/s (0.952 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 28.13 us per launch -> 157.3 GB/s = 0.576 of 273 spec, 0.663 of 237.2 practical; minus the launch floor 24.29 us -> 182.1 GB/s (0.768 of 237.2) +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-2.json +gpu_tern_test: 9 checks, 1 failed: FAIL diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-3.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-3.log new file mode 100644 index 000000000..c3e763c0d --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-3.log @@ -0,0 +1,8 @@ +chip: in-list launch floor (8 x 256, 512 B) median 3.71 us, min 3.42 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 15.23 us per launch -> 161.3 GB/s = 0.591 of 273 spec, 0.680 of 237.2 practical; minus the launch floor 11.52 us -> 213.3 GB/s (0.899 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 13.34 us per launch -> 122.8 GB/s = 0.450 of 273 spec, 0.518 of 237.2 practical; minus the launch floor 9.63 us -> 170.1 GB/s (0.717 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 170.1 (122.8 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 43.23 us per launch -> 204.6 GB/s = 0.750 of 273 spec, 0.863 of 237.2 practical; minus the launch floor 39.52 us -> 223.9 GB/s (0.944 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 25.89 us per launch -> 170.9 GB/s = 0.626 of 273 spec, 0.720 of 237.2 practical; minus the launch floor 22.18 us -> 199.5 GB/s (0.841 of 237.2) +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-3.json +gpu_tern_test: 9 checks, 1 failed: FAIL diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-4.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-4.log new file mode 100644 index 000000000..ceb02a0ce --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-4.log @@ -0,0 +1,8 @@ +chip: in-list launch floor (8 x 256, 512 B) median 3.62 us, min 3.39 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 15.74 us per launch -> 156.1 GB/s = 0.572 of 273 spec, 0.658 of 237.2 practical; minus the launch floor 12.13 us -> 202.6 GB/s (0.854 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 13.31 us per launch -> 123.1 GB/s = 0.451 of 273 spec, 0.519 of 237.2 practical; minus the launch floor 9.70 us -> 169.0 GB/s (0.712 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 169.0 (123.1 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 42.11 us per launch -> 210.1 GB/s = 0.770 of 273 spec, 0.886 of 237.2 practical; minus the launch floor 38.50 us -> 229.8 GB/s (0.969 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 25.54 us per launch -> 173.2 GB/s = 0.635 of 273 spec, 0.730 of 237.2 practical; minus the launch floor 21.92 us -> 201.8 GB/s (0.851 of 237.2) +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-4.json +gpu_tern_test: 9 checks, 1 failed: FAIL diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-5.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-5.log new file mode 100644 index 000000000..e4a954092 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/cold-5.log @@ -0,0 +1,8 @@ +chip: in-list launch floor (8 x 256, 512 B) median 3.58 us, min 3.46 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 16.19 us per launch -> 151.8 GB/s = 0.556 of 273 spec, 0.640 of 237.2 practical; minus the launch floor 12.61 us -> 194.9 GB/s (0.822 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 13.38 us per launch -> 122.5 GB/s = 0.449 of 273 spec, 0.516 of 237.2 practical; minus the launch floor 9.79 us -> 167.3 GB/s (0.705 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 167.3 (122.5 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 43.01 us per launch -> 205.7 GB/s = 0.754 of 273 spec, 0.867 of 237.2 practical; minus the launch floor 39.42 us -> 224.4 GB/s (0.946 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 25.38 us per launch -> 174.3 GB/s = 0.639 of 273 spec, 0.735 of 237.2 practical; minus the launch floor 21.79 us -> 203.0 GB/s (0.856 of 237.2) +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-5.json +gpu_tern_test: 9 checks, 1 failed: FAIL diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/device.txt b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/device.txt new file mode 100644 index 000000000..897f53fb5 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/device.txt @@ -0,0 +1,12 @@ +phase base start 2026-10-16T03:05:15Z omega=d58a46a0ae0efb7a2ad496fd1528418d23925b54 branch=tern/kt1-speed dirty=0 physics=/home/drakestapleton/workspace/physics-own30b-k physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +7.0.0-1019-nvidia +NVIDIA GB10, 580.173.02 +phase base end 2026-10-16T03:05:24Z +phase red start 2026-10-16T03:05:24Z omega=d58a46a0ae0efb7a2ad496fd1528418d23925b54 branch=tern/kt1-speed dirty=0 physics=/home/drakestapleton/workspace/physics-own30b-k physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +7.0.0-1019-nvidia +NVIDIA GB10, 580.173.02 +phase red end 2026-10-16T03:05:30Z +phase main start 2026-10-16T03:05:30Z omega=d58a46a0ae0efb7a2ad496fd1528418d23925b54 branch=tern/kt1-speed dirty=0 physics=/home/drakestapleton/workspace/physics-own30b-k physics_commit=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +7.0.0-1019-nvidia +NVIDIA GB10, 580.173.02 +phase main end 2026-10-16T03:05:34Z diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/host-only.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/host-only.log new file mode 100644 index 000000000..fe430b7fe --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/host-only.log @@ -0,0 +1,22 @@ +host: word arithmetic exact on 434000 words (random, all +1, all -1; x random, -128, 127, -1, 0, alternating) +host: codegen k 2560 layout rowmajor epi i32 rows 1 depth 10 warps 8: 676 instructions, peak 54 registers (declared 56), shared 5248 B +host: stall distances >= 6 cycles hold; 2323 stall cycles in program order; shortened-stall control caught +host: codegen k 2560 layout rowmajor epi f32 rows 1 depth 10 warps 8: 697 instructions, peak 61 registers (declared 64), shared 5248 B +host: stall distances >= 6 cycles hold; 2416 stall cycles in program order; shortened-stall control caught +host: codegen k 2560 layout block epi i32 rows 4 depth 2 warps 8: 589 instructions, peak 70 registers (declared 72), shared 5120 B +host: stall distances >= 6 cycles hold; 1504 stall cycles in program order; shortened-stall control caught +host: codegen k 2560 layout block epi f32 rows 4 depth 2 warps 8: 651 instructions, peak 76 registers (declared 80), shared 5120 B +host: stall distances >= 6 cycles hold; 1796 stall cycles in program order; shortened-stall control caught +host: codegen k 6912 layout rowmajor epi i32 rows 1 depth 9 warps 8: 629 instructions, peak 53 registers (declared 56), shared 13952 B +host: stall distances >= 6 cycles hold; 2184 stall cycles in program order; shortened-stall control caught +host: codegen k 6912 layout rowmajor epi f32 rows 1 depth 9 warps 8: 650 instructions, peak 60 registers (declared 64), shared 13952 B +host: stall distances >= 6 cycles hold; 2277 stall cycles in program order; shortened-stall control caught +host: codegen k 6912 layout block epi i32 rows 4 depth 3 warps 8: 765 instructions, peak 82 registers (declared 88), shared 13824 B +host: stall distances >= 6 cycles hold; 1708 stall cycles in program order; shortened-stall control caught +host: codegen k 6912 layout block epi f32 rows 4 depth 3 warps 8: 827 instructions, peak 88 registers (declared 96), shared 13824 B +host: stall distances >= 6 cycles hold; 2000 stall cycles in program order; shortened-stall control caught +host: codegen k 16384 layout rowmajor epi i32 rows 1 depth 16 warps 8: 912 instructions, peak 57 registers (declared 64), shared 16384 B +host: stall distances >= 6 cycles hold; 2972 stall cycles in program order; shortened-stall control caught +host: codegen k 16384 layout block epi i32 rows 4 depth 4 warps 8: 942 instructions, peak 99 registers (declared 104), shared 16384 B +host: stall distances >= 6 cycles hold; 1930 stall cycles in program order; shortened-stall control caught +gpu_tern_test: 56 checks, 0 failed: PASS diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1.json new file mode 100644 index 000000000..1c0904df2 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.424, "min_us": 3.168}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 25280, "min_ns": 20000, "gbs": 97.22, "of_spec_273": 0.3561, "of_practical_237_2": 0.4098, "minus_floor_ns": 21856, "minus_floor_gbs": 112.45, "minus_floor_of_spec_273": 0.4119, "minus_floor_of_practical_237_2": 0.4741, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16192, "min_ns": 14048, "gbs": 101.19, "of_spec_273": 0.3706, "of_practical_237_2": 0.4266, "minus_floor_ns": 12768, "minus_floor_gbs": 128.32, "minus_floor_of_spec_273": 0.4700, "minus_floor_of_practical_237_2": 0.5410, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 53216, "min_ns": 33504, "gbs": 166.25, "of_spec_273": 0.6090, "of_practical_237_2": 0.7009, "minus_floor_ns": 49792, "minus_floor_gbs": 177.69, "minus_floor_of_spec_273": 0.6509, "minus_floor_of_practical_237_2": 0.7491, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 30400, "min_ns": 25568, "gbs": 145.52, "of_spec_273": 0.5330, "of_practical_237_2": 0.6135, "minus_floor_ns": 26976, "minus_floor_gbs": 163.99, "minus_floor_of_spec_273": 0.6007, "minus_floor_of_practical_237_2": 0.6913, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1.meta new file mode 100644 index 000000000..35684910c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:09:55Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 39, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2.json new file mode 100644 index 000000000..4572e2ff4 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.488, "min_us": 3.264}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 26080, "min_ns": 21888, "gbs": 94.23, "of_spec_273": 0.3452, "of_practical_237_2": 0.3973, "minus_floor_ns": 22592, "minus_floor_gbs": 108.78, "minus_floor_of_spec_273": 0.3985, "minus_floor_of_practical_237_2": 0.4586, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15744, "min_ns": 13728, "gbs": 104.07, "of_spec_273": 0.3812, "of_practical_237_2": 0.4387, "minus_floor_ns": 12256, "minus_floor_gbs": 133.68, "minus_floor_of_spec_273": 0.4897, "minus_floor_of_practical_237_2": 0.5636, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 52864, "min_ns": 50144, "gbs": 167.36, "of_spec_273": 0.6130, "of_practical_237_2": 0.7056, "minus_floor_ns": 49376, "minus_floor_gbs": 179.18, "minus_floor_of_spec_273": 0.6563, "minus_floor_of_practical_237_2": 0.7554, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 30912, "min_ns": 28256, "gbs": 143.11, "of_spec_273": 0.5242, "of_practical_237_2": 0.6033, "minus_floor_ns": 27424, "minus_floor_gbs": 161.31, "minus_floor_of_spec_273": 0.5909, "minus_floor_of_practical_237_2": 0.6800, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2.meta new file mode 100644 index 000000000..a54cf83c8 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-2.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:20Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +279 MHz, [N/A], 40, 37 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3.json new file mode 100644 index 000000000..2248c4b30 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.392, "min_us": 3.168}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 24864, "min_ns": 19392, "gbs": 98.84, "of_spec_273": 0.3621, "of_practical_237_2": 0.4167, "minus_floor_ns": 21472, "minus_floor_gbs": 114.46, "minus_floor_of_spec_273": 0.4193, "minus_floor_of_practical_237_2": 0.4825, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16128, "min_ns": 13856, "gbs": 101.59, "of_spec_273": 0.3721, "of_practical_237_2": 0.4283, "minus_floor_ns": 12736, "minus_floor_gbs": 128.64, "minus_floor_of_spec_273": 0.4712, "minus_floor_of_practical_237_2": 0.5423, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 53536, "min_ns": 37792, "gbs": 165.26, "of_spec_273": 0.6053, "of_practical_237_2": 0.6967, "minus_floor_ns": 50144, "minus_floor_gbs": 176.44, "minus_floor_of_spec_273": 0.6463, "minus_floor_of_practical_237_2": 0.7438, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29728, "min_ns": 25312, "gbs": 148.81, "of_spec_273": 0.5451, "of_practical_237_2": 0.6273, "minus_floor_ns": 26336, "minus_floor_gbs": 167.97, "minus_floor_of_spec_273": 0.6153, "minus_floor_of_practical_237_2": 0.7081, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3.meta new file mode 100644 index 000000000..529f3946d --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-3.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:22Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +643 MHz, [N/A], 41, 69 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4.json new file mode 100644 index 000000000..6c9cac98d --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.424, "min_us": 3.264}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 25248, "min_ns": 20320, "gbs": 97.34, "of_spec_273": 0.3566, "of_practical_237_2": 0.4104, "minus_floor_ns": 21824, "minus_floor_gbs": 112.61, "minus_floor_of_spec_273": 0.4125, "minus_floor_of_practical_237_2": 0.4747, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16576, "min_ns": 14688, "gbs": 98.84, "of_spec_273": 0.3621, "of_practical_237_2": 0.4167, "minus_floor_ns": 13152, "minus_floor_gbs": 124.57, "minus_floor_of_spec_273": 0.4563, "minus_floor_of_practical_237_2": 0.5252, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 55680, "min_ns": 41888, "gbs": 158.90, "of_spec_273": 0.5820, "of_practical_237_2": 0.6699, "minus_floor_ns": 52256, "minus_floor_gbs": 169.31, "minus_floor_of_spec_273": 0.6202, "minus_floor_of_practical_237_2": 0.7138, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29952, "min_ns": 28416, "gbs": 147.69, "of_spec_273": 0.5410, "of_practical_237_2": 0.6226, "minus_floor_ns": 26528, "minus_floor_gbs": 166.76, "minus_floor_of_spec_273": 0.6108, "minus_floor_of_practical_237_2": 0.7030, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4.meta new file mode 100644 index 000000000..27aeea3f1 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-4.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:24Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +1313 MHz, [N/A], 42, 54 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5.json new file mode 100644 index 000000000..dc1674f62 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.616, "min_us": 3.104}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 25088, "min_ns": 20768, "gbs": 97.96, "of_spec_273": 0.3588, "of_practical_237_2": 0.4130, "minus_floor_ns": 21472, "minus_floor_gbs": 114.46, "minus_floor_of_spec_273": 0.4193, "minus_floor_of_practical_237_2": 0.4825, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16416, "min_ns": 14176, "gbs": 99.81, "of_spec_273": 0.3656, "of_practical_237_2": 0.4208, "minus_floor_ns": 12800, "minus_floor_gbs": 128.00, "minus_floor_of_spec_273": 0.4689, "minus_floor_of_practical_237_2": 0.5396, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 54112, "min_ns": 47296, "gbs": 163.50, "of_spec_273": 0.5989, "of_practical_237_2": 0.6893, "minus_floor_ns": 50496, "minus_floor_gbs": 175.21, "minus_floor_of_spec_273": 0.6418, "minus_floor_of_practical_237_2": 0.7387, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 31104, "min_ns": 26496, "gbs": 142.22, "of_spec_273": 0.5210, "of_practical_237_2": 0.5996, "minus_floor_ns": 27488, "minus_floor_gbs": 160.93, "minus_floor_of_spec_273": 0.5895, "minus_floor_of_practical_237_2": 0.6785, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5.meta new file mode 100644 index 000000000..0da48c2f3 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-5.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:26Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +1202 MHz, [N/A], 40, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6.json new file mode 100644 index 000000000..c1dcb0690 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.424, "min_us": 3.200}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 24416, "min_ns": 20448, "gbs": 100.66, "of_spec_273": 0.3687, "of_practical_237_2": 0.4243, "minus_floor_ns": 20992, "minus_floor_gbs": 117.07, "minus_floor_of_spec_273": 0.4288, "minus_floor_of_practical_237_2": 0.4936, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16192, "min_ns": 13536, "gbs": 101.19, "of_spec_273": 0.3706, "of_practical_237_2": 0.4266, "minus_floor_ns": 12768, "minus_floor_gbs": 128.32, "minus_floor_of_spec_273": 0.4700, "minus_floor_of_practical_237_2": 0.5410, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 53760, "min_ns": 32928, "gbs": 164.57, "of_spec_273": 0.6028, "of_practical_237_2": 0.6938, "minus_floor_ns": 50336, "minus_floor_gbs": 175.77, "minus_floor_of_spec_273": 0.6438, "minus_floor_of_practical_237_2": 0.7410, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29984, "min_ns": 24544, "gbs": 147.53, "of_spec_273": 0.5404, "of_practical_237_2": 0.6220, "minus_floor_ns": 26560, "minus_floor_gbs": 166.55, "minus_floor_of_spec_273": 0.6101, "minus_floor_of_practical_237_2": 0.7022, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6.meta new file mode 100644 index 000000000..936f1f06a --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/baseline-6.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:23Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 37, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4.json new file mode 100644 index 000000000..36c2265be --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 1, "rows": 4, "warps": 8, "depth": 2, "ctas": 160}, + "launch_floor_in_list": {"median_us": 4.608, "min_us": 4.416}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 30208, "min_ns": 26592, "gbs": 81.36, "of_spec_273": 0.2980, "of_practical_237_2": 0.3430, "minus_floor_ns": 25600, "minus_floor_gbs": 96.00, "minus_floor_of_spec_273": 0.3516, "minus_floor_of_practical_237_2": 0.4047, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 23840, "min_ns": 19840, "gbs": 68.72, "of_spec_273": 0.2517, "of_practical_237_2": 0.2897, "minus_floor_ns": 19232, "minus_floor_gbs": 85.19, "minus_floor_of_spec_273": 0.3121, "minus_floor_of_practical_237_2": 0.3592, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 82240, "min_ns": 44064, "gbs": 107.58, "of_spec_273": 0.3941, "of_practical_237_2": 0.4535, "minus_floor_ns": 77632, "minus_floor_gbs": 113.97, "minus_floor_of_spec_273": 0.4175, "minus_floor_of_practical_237_2": 0.4805, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 38528, "min_ns": 24960, "gbs": 114.82, "of_spec_273": 0.4206, "of_practical_237_2": 0.4841, "minus_floor_ns": 33920, "minus_floor_gbs": 130.42, "minus_floor_of_spec_273": 0.4777, "minus_floor_of_practical_237_2": 0.5498, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4.meta new file mode 100644 index 000000000..1039ae253 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/block-4.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:39Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +266 MHz, [N/A], 37, 5 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1-cam.csv b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1-cam.csv new file mode 100644 index 000000000..533be394f --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1-cam.csv @@ -0,0 +1,850 @@ +8,256,0,0,7392,2732,1056,2587.1 +8,256,0,1,3904,3029,1184,2558.3 +8,256,0,2,4160,3259,1280,2546.1 +8,256,0,3,3936,3164,1248,2535.3 +8,256,0,4,4096,3041,1184,2568.4 +8,256,0,5,3904,3120,1216,2565.8 +8,256,0,6,4064,3038,1184,2565.9 +8,256,0,7,4096,3176,1216,2611.8 +8,256,0,8,4096,3152,1248,2525.6 +8,256,0,9,4000,3069,1184,2592.1 +8,256,0,10,3872,3032,1184,2560.8 +8,256,0,11,4000,3023,1184,2553.2 +8,256,0,12,4000,2894,1152,2512.2 +8,256,0,13,3936,3030,1184,2559.1 +8,256,0,14,3968,3097,1216,2546.9 +8,256,0,15,5440,6638,2592,2561.0 +8,256,0,16,4096,3139,1216,2581.4 +8,256,0,17,4032,3024,1184,2554.1 +8,256,0,18,4096,3156,1216,2595.4 +8,256,0,19,4128,3209,1248,2571.3 +8,256,0,20,4096,3032,1184,2560.8 +8,256,0,21,3904,3035,1184,2563.3 +8,256,0,22,4064,3131,1216,2574.8 +8,256,0,23,5440,5869,2272,2583.2 +8,256,0,24,4128,3041,1184,2568.4 +8,256,0,25,4096,3116,1216,2562.5 +8,256,0,26,4064,3003,1184,2536.3 +8,256,0,27,4096,3176,1216,2611.8 +8,256,0,28,4096,3021,1152,2622.4 +8,256,0,29,3968,3013,1184,2544.8 +8,256,0,30,3968,3123,1216,2568.3 +8,256,0,31,4096,3163,1248,2534.5 +8,256,1,0,3776,2642,1056,2501.9 +8,256,1,1,3680,2632,1024,2570.3 +8,256,1,2,3712,2638,992,2659.3 +8,256,1,3,3712,2642,1024,2580.1 +8,256,1,4,3808,2636,1024,2574.2 +8,256,1,5,3712,2636,1024,2574.2 +8,256,1,6,3712,2631,1024,2569.3 +8,256,1,7,3712,2629,1024,2567.4 +8,256,1,8,3776,2636,1024,2574.2 +8,256,1,9,3744,2636,1024,2574.2 +8,256,1,10,3712,2637,1024,2575.2 +8,256,1,11,3712,2641,1024,2579.1 +8,256,1,12,3744,2643,1024,2581.1 +8,256,1,13,3712,2639,1024,2577.1 +8,256,1,14,3712,2634,1024,2572.3 +8,256,1,15,3744,2634,1024,2572.3 +8,256,1,16,3776,2635,1024,2573.2 +8,256,1,17,3712,2639,1024,2577.1 +8,256,1,18,3680,2640,1024,2578.1 +8,256,1,19,3712,2644,1024,2582.0 +8,256,1,20,3840,2638,1024,2576.2 +8,256,1,21,3744,2636,1024,2574.2 +8,256,1,22,3712,2612,1024,2550.8 +8,256,1,23,3744,2621,1024,2559.6 +8,256,1,24,3776,2646,1024,2584.0 +8,256,1,25,3712,2604,992,2625.0 +8,256,1,26,3648,2427,960,2528.1 +8,256,1,27,3712,2660,1024,2597.7 +8,256,1,28,3776,2616,1024,2554.7 +8,256,1,29,3712,2642,1056,2501.9 +8,256,1,30,3712,2642,1024,2580.1 +8,256,1,31,3648,2569,1024,2508.8 +8,256,2,0,3776,2721,1056,2576.7 +8,256,2,1,3680,2746,1088,2523.9 +8,256,2,2,3712,2637,992,2658.3 +8,256,2,3,3680,2592,1024,2531.2 +8,256,2,4,3808,2640,1024,2578.1 +8,256,2,5,3712,2636,1024,2574.2 +8,256,2,6,3744,2641,1024,2579.1 +8,256,2,7,3712,2631,1024,2569.3 +8,256,2,8,3776,2637,1024,2575.2 +8,256,2,9,3712,2636,1024,2574.2 +8,256,2,10,3712,2639,1024,2577.1 +8,256,2,11,3744,2637,1024,2575.2 +8,256,2,12,3776,2633,1024,2571.3 +8,256,2,13,3712,2636,1056,2496.2 +8,256,2,14,3680,2635,1056,2495.3 +8,256,2,15,3712,2640,1024,2578.1 +8,256,2,16,3776,2642,1024,2580.1 +8,256,2,17,3712,2638,992,2659.3 +8,256,2,18,3712,2638,1024,2576.2 +8,256,2,19,3712,2638,1024,2576.2 +8,256,2,20,3808,2638,1024,2576.2 +8,256,2,21,3744,2633,1024,2571.3 +8,256,2,22,3744,2639,1024,2577.1 +8,256,2,23,3744,2642,1024,2580.1 +8,256,2,24,3840,2642,1024,2580.1 +8,256,2,25,3744,2635,1024,2573.2 +8,256,2,26,3584,2424,928,2612.1 +8,256,2,27,3744,2640,1056,2500.0 +8,256,2,28,3808,2637,1024,2575.2 +8,256,2,29,3680,2638,1024,2576.2 +8,256,2,30,3712,2640,1024,2578.1 +8,256,2,31,3680,2628,1024,2566.4 +8,256,3,0,3776,2638,1024,2576.2 +8,256,3,1,3680,2635,1024,2573.2 +8,256,3,2,3712,2638,1024,2576.2 +8,256,3,3,3712,2643,1024,2581.1 +8,256,3,4,3776,2636,1024,2574.2 +8,256,3,5,3744,2637,1024,2575.2 +8,256,3,6,3712,2643,1024,2581.1 +8,256,3,7,3744,2629,1024,2567.4 +8,256,3,8,3776,2638,1024,2576.2 +8,256,3,9,3712,2640,1024,2578.1 +8,256,3,10,3712,2641,1024,2579.1 +8,256,3,11,3712,2640,1024,2578.1 +8,256,3,12,3776,2636,1024,2574.2 +8,256,3,13,3712,2636,1024,2574.2 +8,256,3,14,3680,2638,1024,2576.2 +8,256,3,15,3680,2528,992,2548.4 +8,256,3,16,3776,2638,1024,2576.2 +8,256,3,17,3712,2637,1024,2575.2 +8,256,3,18,3712,2638,1024,2576.2 +8,256,3,19,3712,2638,1024,2576.2 +8,256,3,20,3776,2642,1024,2580.1 +8,256,3,21,3744,2640,1024,2578.1 +8,256,3,22,3712,2637,1024,2575.2 +8,256,3,23,3744,2636,1024,2574.2 +8,256,3,24,3808,2638,1024,2576.2 +8,256,3,25,3776,2639,1056,2499.1 +8,256,3,26,3616,2456,960,2558.3 +8,256,3,27,3744,2631,1024,2569.3 +8,256,3,28,3776,2624,1024,2562.5 +8,256,3,29,3712,2634,1024,2572.3 +8,256,3,30,3680,2632,1056,2492.4 +8,256,3,31,3744,2628,1056,2488.6 +8,256,4,0,3776,2634,1056,2494.3 +8,256,4,1,3744,2634,1056,2494.3 +8,256,4,2,3680,2636,1024,2574.2 +8,256,4,3,3712,2637,1024,2575.2 +8,256,4,4,3808,2639,1024,2577.1 +8,256,4,5,3744,2633,992,2654.2 +8,256,4,6,3712,2635,1024,2573.2 +8,256,4,7,3712,2634,1024,2572.3 +8,256,4,8,3808,2641,1024,2579.1 +8,256,4,9,3712,2642,1024,2580.1 +8,256,4,10,3712,2643,1024,2581.1 +8,256,4,11,3680,2638,1024,2576.2 +8,256,4,12,3776,2640,1024,2578.1 +8,256,4,13,3712,2632,1024,2570.3 +8,256,4,14,3712,2640,1024,2578.1 +8,256,4,15,3712,2638,1024,2576.2 +8,256,4,16,3776,2637,1024,2575.2 +8,256,4,17,3712,2655,1056,2514.2 +8,256,4,18,3680,2637,1024,2575.2 +8,256,4,19,3744,2648,1024,2585.9 +8,256,4,20,3808,2635,1024,2573.2 +8,256,4,21,3744,2630,1024,2568.4 +8,256,4,22,3744,2642,1024,2580.1 +8,256,4,23,3744,2640,1024,2578.1 +8,256,4,24,3808,2638,1056,2498.1 +8,256,4,25,3744,2637,1024,2575.2 +8,256,4,26,3584,2446,960,2547.9 +8,256,4,27,3712,2642,1024,2580.1 +8,256,4,28,3808,2640,1056,2500.0 +8,256,4,29,3744,2634,1024,2572.3 +8,256,4,30,3680,2641,1024,2579.1 +8,256,4,31,3744,2634,1024,2572.3 +3840,2560,0,0,40896,12134,22240,545.6 +3840,2560,0,1,25824,28365,12672,2238.4 +3840,2560,0,2,31840,31471,12864,2446.4 +3840,2560,0,3,25344,39564,15584,2538.8 +3840,2560,0,4,32160,28072,11040,2542.8 +3840,2560,0,5,26720,36320,14240,2550.6 +3840,2560,0,6,31168,33141,12992,2550.9 +3840,2560,0,7,27264,31006,12160,2549.8 +3840,2560,0,8,27680,30623,12032,2545.1 +3840,2560,0,9,26432,33465,13088,2556.9 +3840,2560,0,10,27552,31745,12416,2556.8 +3840,2560,0,11,25888,44408,17344,2560.4 +3840,2560,0,12,26048,28387,11136,2549.1 +3840,2560,0,13,25696,39673,15456,2566.8 +3840,2560,0,14,26816,32840,12800,2565.6 +3840,2560,0,15,23264,31059,12192,2547.5 +3840,2560,0,16,26016,31124,12192,2552.8 +3840,2560,0,17,24160,36054,14080,2560.7 +3840,2560,0,18,26560,34057,13344,2552.2 +3840,2560,0,19,31232,48020,18720,2565.2 +3840,2560,0,20,26016,31130,12192,2553.3 +3840,2560,0,21,26464,32847,12832,2559.8 +3840,2560,0,22,27424,32502,12736,2552.0 +3840,2560,0,23,25248,50534,19680,2567.8 +3840,2560,0,24,28384,34762,13600,2556.0 +3840,2560,0,25,27328,29607,11552,2562.9 +3840,2560,0,26,28512,28419,11136,2552.0 +3840,2560,0,27,29184,32445,12672,2560.4 +3840,2560,0,28,28384,29960,11712,2558.1 +3840,2560,0,29,25920,46644,18176,2566.2 +3840,2560,0,30,29984,36428,14208,2563.9 +3840,2560,0,31,28192,30586,12000,2548.8 +3840,2560,0,32,24800,31630,12416,2547.5 +3840,2560,0,33,25408,30699,12032,2551.4 +3840,2560,0,34,24320,27787,10848,2561.5 +3840,2560,0,35,25536,29761,11648,2555.0 +3840,2560,0,36,28416,30455,11904,2558.4 +3840,2560,0,37,29824,35864,14016,2558.8 +3840,2560,0,38,30176,39001,15296,2549.8 +3840,2560,0,39,30816,43621,17056,2557.5 +3840,2560,0,40,42784,89705,34944,2567.1 +3840,2560,1,0,22944,32321,12640,2557.0 +3840,2560,1,1,22496,44733,17472,2560.3 +3840,2560,1,2,27904,40565,15808,2566.1 +3840,2560,1,3,27456,43172,16832,2564.9 +3840,2560,1,4,22400,31475,12256,2568.1 +3840,2560,1,5,24352,34726,13568,2559.4 +3840,2560,1,6,24256,28536,11136,2562.5 +3840,2560,1,7,23840,29741,11584,2567.4 +3840,2560,1,8,24704,34874,13632,2558.2 +3840,2560,1,9,24672,42129,16352,2576.4 +3840,2560,1,10,28288,28829,11360,2537.8 +3840,2560,1,11,25984,47782,18592,2570.0 +3840,2560,1,12,24480,30607,11936,2564.3 +3840,2560,1,13,23584,40779,15872,2569.2 +3840,2560,1,14,26368,35445,13824,2564.0 +3840,2560,1,15,20832,30987,12064,2568.6 +3840,2560,1,16,22656,39182,15264,2567.0 +3840,2560,1,17,22592,32900,12800,2570.3 +3840,2560,1,18,23296,41180,16032,2568.6 +3840,2560,1,19,26048,49293,19168,2571.6 +3840,2560,1,20,21472,40142,15648,2565.3 +3840,2560,1,21,24160,34057,13280,2564.5 +3840,2560,1,22,31136,35568,13888,2561.1 +3840,2560,1,23,25056,42716,16640,2567.1 +3840,2560,1,24,22528,29873,11616,2571.7 +3840,2560,1,25,21952,44614,17376,2567.6 +3840,2560,1,26,24384,46176,17920,2576.8 +3840,2560,1,27,27328,29270,11456,2555.0 +3840,2560,1,28,25952,56520,21984,2571.0 +3840,2560,1,29,25952,44569,17344,2569.7 +3840,2560,1,30,28960,44936,17472,2571.9 +3840,2560,1,31,26048,36608,14240,2570.8 +3840,2560,1,32,23520,45634,17760,2569.5 +3840,2560,1,33,22880,39075,15232,2565.3 +3840,2560,1,34,26688,34521,13536,2550.3 +3840,2560,1,35,24224,36526,14240,2565.0 +3840,2560,1,36,25376,52967,20608,2570.2 +3840,2560,1,37,25536,42077,16352,2573.2 +3840,2560,1,38,30304,40649,15872,2561.1 +3840,2560,1,39,33408,57953,22528,2572.5 +3840,2560,1,40,43040,93892,36448,2576.1 +3840,2560,2,0,24448,35646,13888,2566.7 +3840,2560,2,1,21280,33738,13184,2559.0 +3840,2560,2,2,25792,37041,14400,2572.3 +3840,2560,2,3,28320,35005,13632,2567.9 +3840,2560,2,4,24736,45973,17920,2565.5 +3840,2560,2,5,23552,34501,13472,2560.9 +3840,2560,2,6,23392,37166,14496,2563.9 +3840,2560,2,7,23072,31853,12384,2572.1 +3840,2560,2,8,24032,36804,14336,2567.2 +3840,2560,2,9,22272,30789,12032,2558.9 +3840,2560,2,10,24640,32923,12832,2565.7 +3840,2560,2,11,27424,51957,20224,2569.1 +3840,2560,2,12,26240,31786,12416,2560.1 +3840,2560,2,13,23712,40635,15840,2565.3 +3840,2560,2,14,26912,44153,17184,2569.4 +3840,2560,2,15,22208,32757,12768,2565.6 +3840,2560,2,16,25376,41482,16160,2567.0 +3840,2560,2,17,22464,34767,13504,2574.6 +3840,2560,2,18,23744,41909,16320,2568.0 +3840,2560,2,19,24800,47574,18528,2567.7 +3840,2560,2,20,22784,41831,16288,2568.2 +3840,2560,2,21,25408,40552,15776,2570.5 +3840,2560,2,22,26112,37513,14560,2576.4 +3840,2560,2,23,25504,46657,18144,2571.5 +3840,2560,2,24,27040,27949,10944,2553.8 +3840,2560,2,25,23744,44264,17280,2561.6 +3840,2560,2,26,24128,43148,16800,2568.3 +3840,2560,2,27,28640,30089,11712,2569.1 +3840,2560,2,28,25792,40523,15840,2558.3 +3840,2560,2,29,25568,47253,18368,2572.6 +3840,2560,2,30,29568,38486,14976,2569.8 +3840,2560,2,31,24704,31198,12224,2552.2 +3840,2560,2,32,23264,51450,20000,2572.5 +3840,2560,2,33,22720,32281,12608,2560.4 +3840,2560,2,34,23328,32751,12800,2558.7 +3840,2560,2,35,23648,33512,13056,2566.8 +3840,2560,2,36,22336,44819,17408,2574.6 +3840,2560,2,37,23936,42897,16736,2563.2 +3840,2560,2,38,31488,39774,15488,2568.1 +3840,2560,2,39,28544,54154,21024,2575.8 +3840,2560,2,40,40928,89402,34656,2579.7 +3840,2560,3,0,22784,37593,14656,2565.0 +3840,2560,3,1,22176,36486,14208,2568.0 +3840,2560,3,2,29312,35015,13632,2568.6 +3840,2560,3,3,28960,42197,16448,2565.5 +3840,2560,3,4,24480,41935,16320,2569.5 +3840,2560,3,5,26272,36882,14368,2567.0 +3840,2560,3,6,24160,30926,12096,2556.7 +3840,2560,3,7,23904,27363,10752,2544.9 +3840,2560,3,8,21984,33040,12928,2555.7 +3840,2560,3,9,26400,41260,16064,2568.5 +3840,2560,3,10,23552,27322,10656,2564.0 +3840,2560,3,11,25504,44949,17504,2567.9 +3840,2560,3,12,21856,31093,12160,2557.0 +3840,2560,3,13,24992,39885,15520,2569.9 +3840,2560,3,14,30016,40163,15680,2561.4 +3840,2560,3,15,22848,33980,13248,2564.9 +3840,2560,3,16,23680,43264,16800,2575.2 +3840,2560,3,17,22336,37760,14688,2570.8 +3840,2560,3,18,24480,43345,16896,2565.4 +3840,2560,3,19,23712,38266,14880,2571.6 +3840,2560,3,20,23552,39526,15328,2578.7 +3840,2560,3,21,23456,35604,13888,2563.7 +3840,2560,3,22,23744,33031,12896,2561.3 +3840,2560,3,23,26208,41798,16256,2571.2 +3840,2560,3,24,21504,33666,13120,2566.0 +3840,2560,3,25,21472,40836,15872,2572.8 +3840,2560,3,26,22944,43344,16864,2570.2 +3840,2560,3,27,27968,27952,10912,2561.6 +3840,2560,3,28,25568,38771,15104,2566.9 +3840,2560,3,29,27072,44575,17344,2570.1 +3840,2560,3,30,24320,43384,16864,2572.6 +3840,2560,3,31,26944,41730,16288,2562.0 +3840,2560,3,32,22304,45891,17856,2570.1 +3840,2560,3,33,20352,39546,15360,2574.6 +3840,2560,3,34,23616,37752,14688,2570.3 +3840,2560,3,35,22432,33313,13024,2557.8 +3840,2560,3,36,22784,42470,16512,2572.1 +3840,2560,3,37,23968,43071,16768,2568.6 +3840,2560,3,38,30944,53465,20768,2574.4 +3840,2560,3,39,32032,54321,21120,2572.0 +3840,2560,3,40,42944,88832,34496,2575.1 +3840,2560,4,0,22528,32729,12800,2557.0 +3840,2560,4,1,22048,40272,15712,2563.1 +3840,2560,4,2,27488,38843,15168,2560.9 +3840,2560,4,3,25920,37653,14688,2563.5 +3840,2560,4,4,21600,39424,15328,2572.0 +3840,2560,4,5,22944,32429,12640,2565.6 +3840,2560,4,6,24576,27411,10720,2557.0 +3840,2560,4,7,24864,29434,11488,2562.2 +3840,2560,4,8,23744,37391,14560,2568.1 +3840,2560,4,9,25696,40875,15936,2564.9 +3840,2560,4,10,24672,27009,10560,2557.7 +3840,2560,4,11,25312,48015,18656,2573.7 +3840,2560,4,12,24768,32105,12512,2565.9 +3840,2560,4,13,24096,42123,16384,2571.0 +3840,2560,4,14,28448,37050,14464,2561.5 +3840,2560,4,15,22144,34837,13600,2561.5 +3840,2560,4,16,23008,37882,14752,2567.9 +3840,2560,4,17,24224,41897,16288,2572.3 +3840,2560,4,18,25504,40722,15904,2560.5 +3840,2560,4,19,22048,34578,13440,2572.8 +3840,2560,4,20,22976,38811,15072,2575.0 +3840,2560,4,21,24000,36159,14144,2556.5 +3840,2560,4,22,23360,31645,12352,2561.9 +3840,2560,4,23,25056,40438,15776,2563.3 +3840,2560,4,24,24224,34567,13472,2565.8 +3840,2560,4,25,21248,39205,15264,2568.5 +3840,2560,4,26,24896,46132,17952,2569.7 +3840,2560,4,27,27776,29213,11424,2557.2 +3840,2560,4,28,26912,49101,19136,2565.9 +3840,2560,4,29,24896,45047,17472,2578.2 +3840,2560,4,30,27776,47887,18624,2571.3 +3840,2560,4,31,23968,35066,13696,2560.3 +3840,2560,4,32,23424,50466,19680,2564.3 +3840,2560,4,33,25856,30125,11712,2572.1 +3840,2560,4,34,25408,31912,12448,2563.6 +3840,2560,4,35,25984,35797,13952,2565.7 +3840,2560,4,36,21856,36715,14272,2572.5 +3840,2560,4,37,22048,32474,12672,2562.7 +3840,2560,4,38,30784,44527,17344,2567.3 +3840,2560,4,39,29056,58840,22912,2568.1 +3840,2560,4,40,40896,89507,34752,2575.6 +2560,2560,0,0,22240,19036,7520,2531.4 +2560,2560,0,1,17984,25616,10048,2549.4 +2560,2560,0,2,17088,29585,11584,2554.0 +2560,2560,0,3,21184,28828,11296,2552.1 +2560,2560,0,4,16736,26789,10528,2544.5 +2560,2560,0,5,19104,26563,10400,2554.1 +2560,2560,0,6,15680,24941,9760,2555.4 +2560,2560,0,7,17120,29737,11648,2553.0 +2560,2560,0,8,24576,46855,18304,2559.8 +2560,2560,0,9,20704,25478,9984,2551.9 +2560,2560,0,10,15648,29907,11680,2560.5 +2560,2560,0,11,18176,30134,11744,2565.9 +2560,2560,0,12,19616,25407,9920,2561.2 +2560,2560,0,13,16992,29831,11712,2547.0 +2560,2560,0,14,15584,25343,9920,2554.7 +2560,2560,0,15,18944,28731,11264,2550.7 +2560,2560,0,16,16544,26371,10368,2543.5 +2560,2560,0,17,17280,26342,10304,2556.5 +2560,2560,0,18,18176,26743,10496,2547.9 +2560,2560,0,19,18080,26069,10208,2553.8 +2560,2560,0,20,15488,25166,9856,2553.4 +2560,2560,0,21,17760,31856,12416,2565.7 +2560,2560,0,22,16416,27653,10816,2556.7 +2560,2560,0,23,18432,25457,9952,2558.0 +2560,2560,0,24,18496,28689,11232,2554.2 +2560,2560,0,25,16800,30063,11776,2552.9 +2560,2560,0,26,16768,27344,10688,2558.4 +2560,2560,0,27,16128,25435,9984,2547.6 +2560,2560,0,28,17216,25737,10080,2553.3 +2560,2560,0,29,18496,25912,10176,2546.4 +2560,2560,0,30,18528,28638,11232,2549.7 +2560,2560,0,31,19296,29859,11648,2563.4 +2560,2560,0,32,18656,26603,10432,2550.1 +2560,2560,0,33,15936,25567,10016,2552.6 +2560,2560,0,34,18944,26198,10272,2550.4 +2560,2560,0,35,18336,27840,10912,2551.3 +2560,2560,0,36,19232,26613,10432,2551.1 +2560,2560,0,37,17536,27601,10848,2544.3 +2560,2560,0,38,18208,27358,10688,2559.7 +2560,2560,0,39,17792,26757,10496,2549.3 +2560,2560,0,40,16416,26020,10208,2549.0 +2560,2560,0,41,17792,26383,10336,2552.5 +2560,2560,0,42,18272,27221,10688,2546.9 +2560,2560,0,43,17408,27074,10592,2556.1 +2560,2560,0,44,17984,27692,10848,2552.7 +2560,2560,0,45,14880,27079,10592,2556.6 +2560,2560,0,46,17632,27341,10688,2558.1 +2560,2560,0,47,18240,25765,10112,2548.0 +2560,2560,0,48,15552,23997,9408,2550.7 +2560,2560,0,49,17600,24291,9504,2555.9 +2560,2560,0,50,18624,23521,9216,2552.2 +2560,2560,0,51,15328,25244,9920,2544.8 +2560,2560,0,52,18432,25266,9888,2555.2 +2560,2560,0,53,15936,24811,9760,2542.1 +2560,2560,0,54,16416,26197,10208,2566.3 +2560,2560,0,55,16640,24188,9504,2545.0 +2560,2560,0,56,15968,26935,10560,2550.7 +2560,2560,0,57,16480,30582,11968,2555.3 +2560,2560,0,58,18208,24028,9376,2562.7 +2560,2560,0,59,17504,31422,12288,2557.1 +2560,2560,0,60,22944,33926,13248,2560.8 +2560,2560,0,61,36960,69301,27040,2562.9 +2560,2560,1,0,14944,27868,10912,2553.9 +2560,2560,1,1,16768,31103,12128,2564.6 +2560,2560,1,2,16864,27429,10720,2558.7 +2560,2560,1,3,17280,25790,10080,2558.5 +2560,2560,1,4,15456,26241,10272,2554.6 +2560,2560,1,5,18272,25994,10176,2554.4 +2560,2560,1,6,16096,26606,10432,2550.4 +2560,2560,1,7,16096,26993,10528,2563.9 +2560,2560,1,8,15616,25731,10016,2569.0 +2560,2560,1,9,16608,26673,10400,2564.7 +2560,2560,1,10,15808,27449,10688,2568.2 +2560,2560,1,11,18176,26694,10400,2566.7 +2560,2560,1,12,16544,25659,10016,2561.8 +2560,2560,1,13,15840,31654,12352,2562.7 +2560,2560,1,14,14592,26024,10176,2557.4 +2560,2560,1,15,17472,27645,10784,2563.5 +2560,2560,1,16,14784,28965,11296,2564.2 +2560,2560,1,17,14912,28967,11296,2564.4 +2560,2560,1,18,15712,26353,10272,2565.5 +2560,2560,1,19,17344,26183,10176,2573.0 +2560,2560,1,20,15232,26441,10272,2574.1 +2560,2560,1,21,16064,26798,10432,2568.8 +2560,2560,1,22,15648,27672,10784,2566.0 +2560,2560,1,23,17824,25452,9952,2557.5 +2560,2560,1,24,15104,26780,10464,2559.3 +2560,2560,1,25,16064,25925,10112,2563.8 +2560,2560,1,26,15424,27020,10528,2566.5 +2560,2560,1,27,16224,29673,11584,2561.6 +2560,2560,1,28,16832,28336,11040,2566.7 +2560,2560,1,29,16640,27450,10720,2560.6 +2560,2560,1,30,14848,26923,10496,2565.1 +2560,2560,1,31,17056,28958,11296,2563.6 +2560,2560,1,32,15872,26704,10368,2575.6 +2560,2560,1,33,17216,26105,10176,2565.3 +2560,2560,1,34,16096,26209,10272,2551.5 +2560,2560,1,35,16768,26458,10304,2567.7 +2560,2560,1,36,16000,25186,9824,2563.7 +2560,2560,1,37,15936,27413,10688,2564.8 +2560,2560,1,38,14944,28890,11232,2572.1 +2560,2560,1,39,15808,25915,10080,2570.9 +2560,2560,1,40,15616,26318,10272,2562.1 +2560,2560,1,41,16992,25750,10048,2562.7 +2560,2560,1,42,16192,25597,10016,2555.6 +2560,2560,1,43,16480,26675,10400,2564.9 +2560,2560,1,44,16480,26131,10176,2567.9 +2560,2560,1,45,15200,28768,11200,2568.6 +2560,2560,1,46,16992,26956,10528,2560.4 +2560,2560,1,47,17344,29069,11328,2566.1 +2560,2560,1,48,15616,25649,10016,2560.8 +2560,2560,1,49,15456,24277,9440,2571.7 +2560,2560,1,50,15104,23887,9312,2565.2 +2560,2560,1,51,15520,24927,9728,2562.4 +2560,2560,1,52,14656,24292,9504,2556.0 +2560,2560,1,53,16096,24773,9664,2563.4 +2560,2560,1,54,17280,25642,10016,2560.1 +2560,2560,1,55,15424,24839,9696,2561.8 +2560,2560,1,56,14688,25316,9888,2560.3 +2560,2560,1,57,15808,25555,9984,2559.6 +2560,2560,1,58,14944,24912,9760,2552.5 +2560,2560,1,59,16128,30588,11904,2569.6 +2560,2560,1,60,19168,29149,11328,2573.2 +2560,2560,1,61,32896,68368,26496,2580.3 +2560,2560,2,0,15648,26744,10432,2563.7 +2560,2560,2,1,16704,30668,11968,2562.5 +2560,2560,2,2,15584,27159,10624,2556.4 +2560,2560,2,3,17312,27260,10656,2558.2 +2560,2560,2,4,16320,31300,12160,2574.0 +2560,2560,2,5,16096,29713,11552,2572.1 +2560,2560,2,6,15904,26333,10272,2563.6 +2560,2560,2,7,16992,26864,10464,2567.3 +2560,2560,2,8,15360,25722,10016,2568.1 +2560,2560,2,9,17472,27233,10624,2563.3 +2560,2560,2,10,16064,27086,10560,2565.0 +2560,2560,2,11,16480,27078,10592,2556.5 +2560,2560,2,12,15264,28753,11168,2574.6 +2560,2560,2,13,15872,30152,11776,2560.5 +2560,2560,2,14,14272,26091,10176,2564.0 +2560,2560,2,15,17248,28012,10912,2567.1 +2560,2560,2,16,15584,30710,11968,2566.0 +2560,2560,2,17,15520,28165,10976,2566.1 +2560,2560,2,18,15872,26643,10400,2561.8 +2560,2560,2,19,16448,25817,10048,2569.4 +2560,2560,2,20,15904,26658,10400,2563.3 +2560,2560,2,21,17792,26930,10496,2565.7 +2560,2560,2,22,15104,27271,10656,2559.2 +2560,2560,2,23,15776,26755,10400,2572.6 +2560,2560,2,24,15776,26607,10368,2566.3 +2560,2560,2,25,14720,27585,10752,2565.6 +2560,2560,2,26,15488,25732,10048,2560.9 +2560,2560,2,27,15616,27013,10496,2573.6 +2560,2560,2,28,16864,26233,10272,2553.8 +2560,2560,2,29,18272,26848,10464,2565.7 +2560,2560,2,30,16096,26404,10304,2562.5 +2560,2560,2,31,16480,29161,11360,2567.0 +2560,2560,2,32,15936,31075,12096,2569.0 +2560,2560,2,33,16640,25544,9952,2566.7 +2560,2560,2,34,15424,27023,10528,2566.8 +2560,2560,2,35,17344,26620,10368,2567.5 +2560,2560,2,36,14720,25371,9888,2565.8 +2560,2560,2,37,17120,31508,12256,2570.8 +2560,2560,2,38,16096,25753,10016,2571.2 +2560,2560,2,39,16416,28208,10976,2570.0 +2560,2560,2,40,14720,25623,9984,2566.4 +2560,2560,2,41,15488,25072,9824,2552.1 +2560,2560,2,42,16128,25171,9824,2562.2 +2560,2560,2,43,16064,26558,10400,2553.7 +2560,2560,2,44,15104,25608,9952,2573.2 +2560,2560,2,45,15072,26637,10368,2569.2 +2560,2560,2,46,13920,25956,10080,2575.0 +2560,2560,2,47,16960,27109,10592,2559.4 +2560,2560,2,48,15360,25889,10048,2576.5 +2560,2560,2,49,14944,27209,10624,2561.1 +2560,2560,2,50,16192,23960,9344,2564.2 +2560,2560,2,51,16192,24767,9696,2554.4 +2560,2560,2,52,15136,24524,9568,2563.1 +2560,2560,2,53,15264,24717,9664,2557.6 +2560,2560,2,54,14432,25010,9728,2570.9 +2560,2560,2,55,15904,24466,9536,2565.6 +2560,2560,2,56,15328,23878,9280,2573.1 +2560,2560,2,57,16064,30927,12064,2563.6 +2560,2560,2,58,14624,25458,9920,2566.3 +2560,2560,2,59,15680,30404,11808,2574.9 +2560,2560,2,60,18912,28076,10944,2565.4 +2560,2560,2,61,34240,72167,28032,2574.5 +2560,2560,3,0,15136,26826,10496,2555.8 +2560,2560,3,1,16256,27488,10720,2564.2 +2560,2560,3,2,15200,27987,10912,2564.8 +2560,2560,3,3,18848,26116,10208,2558.4 +2560,2560,3,4,15456,25506,9952,2562.9 +2560,2560,3,5,17632,27087,10592,2557.3 +2560,2560,3,6,15552,25945,10112,2565.8 +2560,2560,3,7,16320,26055,10176,2560.4 +2560,2560,3,8,15168,25574,9984,2561.5 +2560,2560,3,9,17696,26469,10304,2568.8 +2560,2560,3,10,15520,26334,10304,2555.7 +2560,2560,3,11,15840,26611,10368,2566.6 +2560,2560,3,12,16224,26653,10400,2562.8 +2560,2560,3,13,16256,28418,11072,2566.7 +2560,2560,3,14,15456,25795,10080,2559.0 +2560,2560,3,15,17152,27723,10784,2570.8 +2560,2560,3,16,15264,25702,10048,2557.9 +2560,2560,3,17,16928,25587,9984,2562.8 +2560,2560,3,18,15360,26835,10464,2564.5 +2560,2560,3,19,16000,25441,9888,2572.9 +2560,2560,3,20,14208,26621,10400,2559.7 +2560,2560,3,21,16672,33558,12992,2583.0 +2560,2560,3,22,15360,29893,11616,2573.4 +2560,2560,3,23,17312,26400,10304,2562.1 +2560,2560,3,24,15360,27039,10592,2552.8 +2560,2560,3,25,15968,26621,10400,2559.7 +2560,2560,3,26,17280,27676,10816,2558.8 +2560,2560,3,27,15648,27655,10784,2564.4 +2560,2560,3,28,16096,26996,10528,2564.2 +2560,2560,3,29,17248,26674,10400,2564.8 +2560,2560,3,30,14816,26431,10304,2565.1 +2560,2560,3,31,17408,29436,11424,2576.7 +2560,2560,3,32,16704,26517,10336,2565.5 +2560,2560,3,33,16416,27207,10592,2568.6 +2560,2560,3,34,16992,27826,10848,2565.1 +2560,2560,3,35,17536,26084,10176,2563.3 +2560,2560,3,36,16032,25999,10144,2563.0 +2560,2560,3,37,16224,25553,9984,2559.4 +2560,2560,3,38,17152,26803,10464,2561.4 +2560,2560,3,39,16064,26878,10496,2560.8 +2560,2560,3,40,15488,25944,10112,2565.7 +2560,2560,3,41,16768,27188,10624,2559.1 +2560,2560,3,42,16512,25683,9984,2572.4 +2560,2560,3,43,16928,28367,11040,2569.5 +2560,2560,3,44,15936,26146,10208,2561.3 +2560,2560,3,45,14784,27942,10880,2568.2 +2560,2560,3,46,16352,25406,9888,2569.4 +2560,2560,3,47,17152,29782,11584,2571.0 +2560,2560,3,48,16160,25607,9984,2564.8 +2560,2560,3,49,14944,24397,9472,2575.7 +2560,2560,3,50,14112,24187,9408,2570.9 +2560,2560,3,51,15840,24373,9536,2555.9 +2560,2560,3,52,15072,24255,9472,2560.7 +2560,2560,3,53,15776,24851,9664,2571.5 +2560,2560,3,54,14208,25424,9952,2554.7 +2560,2560,3,55,15744,24934,9696,2571.6 +2560,2560,3,56,14304,26184,10208,2565.0 +2560,2560,3,57,15520,30749,11968,2569.3 +2560,2560,3,58,15200,26088,10176,2563.7 +2560,2560,3,59,15904,31004,12064,2570.0 +2560,2560,3,60,20160,29697,11552,2570.7 +2560,2560,3,61,34336,78768,30528,2580.2 +2560,2560,4,0,15232,28001,10912,2566.1 +2560,2560,4,1,16928,30070,11744,2560.5 +2560,2560,4,2,15808,27635,10784,2562.6 +2560,2560,4,3,16000,26082,10144,2571.2 +2560,2560,4,4,14688,26046,10176,2559.6 +2560,2560,4,5,16224,27824,10816,2572.5 +2560,2560,4,6,15776,25414,9920,2561.9 +2560,2560,4,7,15712,26661,10400,2563.6 +2560,2560,4,8,15392,25221,9824,2567.3 +2560,2560,4,9,18656,26169,10176,2571.6 +2560,2560,4,10,16160,27974,10944,2556.1 +2560,2560,4,11,17376,27245,10624,2564.5 +2560,2560,4,12,15584,25898,10080,2569.2 +2560,2560,4,13,15456,29255,11424,2560.8 +2560,2560,4,14,14816,25586,9984,2562.7 +2560,2560,4,15,16704,26096,10208,2556.4 +2560,2560,4,16,14304,27284,10624,2568.1 +2560,2560,4,17,16128,27700,10816,2561.0 +2560,2560,4,18,15680,26852,10464,2566.1 +2560,2560,4,19,16064,26284,10208,2574.8 +2560,2560,4,20,15200,27115,10560,2567.7 +2560,2560,4,21,17440,26520,10336,2565.8 +2560,2560,4,22,14944,27949,10880,2568.8 +2560,2560,4,23,16960,25101,9760,2571.8 +2560,2560,4,24,15392,25577,10016,2553.6 +2560,2560,4,25,16320,30270,11776,2570.5 +2560,2560,4,26,16896,26818,10464,2562.9 +2560,2560,4,27,15456,29342,11456,2561.3 +2560,2560,4,28,17792,26792,10432,2568.3 +2560,2560,4,29,16576,28695,11200,2562.1 +2560,2560,4,30,16448,27127,10528,2576.7 +2560,2560,4,31,17760,32168,12544,2564.4 +2560,2560,4,32,15392,26438,10336,2557.9 +2560,2560,4,33,16608,27174,10560,2573.3 +2560,2560,4,34,16320,27208,10656,2553.3 +2560,2560,4,35,15904,26292,10240,2567.6 +2560,2560,4,36,15808,24999,9728,2569.8 +2560,2560,4,37,16000,31688,12352,2565.4 +2560,2560,4,38,16288,26410,10304,2563.1 +2560,2560,4,39,16192,26536,10336,2567.3 +2560,2560,4,40,16608,26150,10208,2561.7 +2560,2560,4,41,16640,26521,10304,2573.9 +2560,2560,4,42,16832,25491,9952,2561.4 +2560,2560,4,43,17024,26789,10432,2568.0 +2560,2560,4,44,14976,26347,10304,2557.0 +2560,2560,4,45,16128,27809,10816,2571.1 +2560,2560,4,46,15520,25686,10016,2564.5 +2560,2560,4,47,16352,27467,10720,2562.2 +2560,2560,4,48,15424,25272,9856,2564.1 +2560,2560,4,49,15488,24477,9568,2558.2 +2560,2560,4,50,15328,24052,9408,2556.5 +2560,2560,4,51,15584,24148,9440,2558.1 +2560,2560,4,52,14528,24909,9696,2569.0 +2560,2560,4,53,16320,24408,9536,2559.6 +2560,2560,4,54,14016,26681,10432,2557.6 +2560,2560,4,55,15200,24118,9376,2572.3 +2560,2560,4,56,13952,25202,9856,2557.0 +2560,2560,4,57,15840,31443,12224,2572.2 +2560,2560,4,58,14816,24920,9728,2561.7 +2560,2560,4,59,16352,31588,12320,2564.0 +2560,2560,4,60,19008,30724,11936,2574.1 +2560,2560,4,61,32736,65367,25376,2575.9 +13824,2560,0,0,34944,50993,20064,2541.5 +13824,2560,0,1,59680,129400,50528,2561.0 +13824,2560,0,2,64384,132137,51520,2564.8 +13824,2560,0,3,62176,111685,43616,2560.6 +13824,2560,0,4,56416,114618,44608,2569.4 +13824,2560,0,5,59488,141790,55264,2565.7 +13824,2560,0,6,60128,125616,48960,2565.7 +13824,2560,0,7,61472,133145,51904,2565.2 +13824,2560,0,8,59712,124365,48512,2563.6 +13824,2560,0,9,58304,115767,45152,2563.9 +13824,2560,0,10,64352,129016,50304,2564.7 +13824,2560,0,11,74336,158818,61856,2567.5 +13824,2560,1,0,54720,125414,48864,2566.6 +13824,2560,1,1,53120,120660,47008,2566.8 +13824,2560,1,2,53152,124718,48576,2567.5 +13824,2560,1,3,51968,113006,44064,2564.6 +13824,2560,1,4,51072,112047,43680,2565.2 +13824,2560,1,5,56512,128971,50240,2567.1 +13824,2560,1,6,51616,110992,43296,2563.6 +13824,2560,1,7,52256,115154,44896,2564.9 +13824,2560,1,8,50784,106061,41376,2563.3 +13824,2560,1,9,53824,116573,45472,2563.6 +13824,2560,1,10,50848,102097,39808,2564.7 +13824,2560,1,11,60480,136521,53120,2570.0 +13824,2560,2,0,52320,111852,43584,2566.4 +13824,2560,2,1,53344,125120,48704,2569.0 +13824,2560,2,2,51872,112500,43744,2571.8 +13824,2560,2,3,48352,108548,42272,2567.8 +13824,2560,2,4,47808,101898,39680,2568.0 +13824,2560,2,5,55552,124201,48288,2572.1 +13824,2560,2,6,52224,117242,45632,2569.3 +13824,2560,2,7,51648,118017,45920,2570.1 +13824,2560,2,8,51232,107932,41984,2570.8 +13824,2560,2,9,51072,116386,45248,2572.2 +13824,2560,2,10,53056,114088,44384,2570.5 +13824,2560,2,11,54432,123612,48064,2571.8 +13824,2560,3,0,51712,114782,44768,2563.9 +13824,2560,3,1,55488,129241,50240,2572.5 +13824,2560,3,2,52704,116933,45536,2567.9 +13824,2560,3,3,48000,100863,39264,2568.8 +13824,2560,3,4,49344,110182,42880,2569.5 +13824,2560,3,5,56448,128905,50112,2572.3 +13824,2560,3,6,53472,118787,46240,2568.9 +13824,2560,3,7,52512,124594,48448,2571.7 +13824,2560,3,8,50912,110795,43104,2570.4 +13824,2560,3,9,53056,110527,43008,2569.9 +13824,2560,3,10,50016,112433,43744,2570.2 +13824,2560,3,11,55456,111410,43328,2571.3 +13824,2560,4,0,52032,119329,46528,2564.7 +13824,2560,4,1,55232,126680,49312,2568.9 +13824,2560,4,2,50976,111282,43328,2568.4 +13824,2560,4,3,47808,102621,40000,2565.5 +13824,2560,4,4,49600,103305,40160,2572.3 +13824,2560,4,5,55584,127253,49472,2572.2 +13824,2560,4,6,52768,108599,42240,2571.0 +13824,2560,4,7,55008,121956,47424,2571.6 +13824,2560,4,8,50976,108816,42368,2568.4 +13824,2560,4,9,51648,105974,41216,2571.2 +13824,2560,4,10,50304,113083,43968,2571.9 +13824,2560,4,11,50848,106221,41344,2569.2 +2560,6912,0,0,27840,32088,12672,2532.2 +2560,6912,0,1,32128,47941,18976,2526.4 +2560,6912,0,2,32608,39246,15392,2549.8 +2560,6912,0,3,34336,44422,17408,2551.8 +2560,6912,0,4,31584,46928,18336,2559.3 +2560,6912,0,5,33088,44815,17536,2555.6 +2560,6912,0,6,32512,36174,14144,2557.6 +2560,6912,0,7,34624,52261,20416,2559.8 +2560,6912,0,8,32864,42042,16448,2556.1 +2560,6912,0,9,34048,54262,21184,2561.5 +2560,6912,0,10,33632,36168,14144,2557.1 +2560,6912,0,11,32032,43141,16832,2563.0 +2560,6912,0,12,33344,37228,14528,2562.5 +2560,6912,0,13,33472,48688,19040,2557.1 +2560,6912,0,14,32960,38583,15104,2554.5 +2560,6912,0,15,35200,45080,17632,2556.7 +2560,6912,0,16,33568,59317,23200,2556.8 +2560,6912,0,17,31456,41059,16064,2556.0 +2560,6912,0,18,33472,34224,13376,2558.6 +2560,6912,0,19,34176,44344,17312,2561.5 +2560,6912,0,20,31552,37200,14560,2554.9 +2560,6912,0,21,30656,42082,16480,2553.5 +2560,6912,0,22,40064,45020,17600,2558.0 +2560,6912,1,0,31392,40624,15904,2554.3 +2560,6912,1,1,31840,38564,15040,2564.1 +2560,6912,1,2,31040,41840,16384,2553.7 +2560,6912,1,3,33664,42285,16544,2555.9 +2560,6912,1,4,31616,42402,16640,2548.2 +2560,6912,1,5,32448,40671,15936,2552.1 +2560,6912,1,6,31776,42669,16704,2554.4 +2560,6912,1,7,32320,38881,15200,2558.0 +2560,6912,1,8,31008,40914,16032,2552.0 +2560,6912,1,9,33152,44412,17344,2560.7 +2560,6912,1,10,32128,39824,15616,2550.2 +2560,6912,1,11,31104,40968,16000,2560.5 +2560,6912,1,12,31296,39118,15328,2552.1 +2560,6912,1,13,32544,44168,17248,2560.8 +2560,6912,1,14,31232,40765,15904,2563.2 +2560,6912,1,15,31776,45815,17888,2561.2 +2560,6912,1,16,31648,41214,16064,2565.6 +2560,6912,1,17,31552,41721,16256,2566.5 +2560,6912,1,18,31360,40806,15904,2565.8 +2560,6912,1,19,32448,41398,16128,2566.8 +2560,6912,1,20,32832,39984,15584,2565.7 +2560,6912,1,21,31168,41561,16224,2561.7 +2560,6912,1,22,40768,51696,20128,2568.4 +2560,6912,2,0,31104,39623,15488,2558.3 +2560,6912,2,1,32160,39803,15552,2559.3 +2560,6912,2,2,31360,41105,16064,2558.8 +2560,6912,2,3,32896,41132,16032,2565.6 +2560,6912,2,4,29984,42254,16480,2564.0 +2560,6912,2,5,32256,40572,15808,2566.5 +2560,6912,2,6,33120,41470,16128,2571.3 +2560,6912,2,7,31936,38201,14880,2567.3 +2560,6912,2,8,31168,40024,15584,2568.3 +2560,6912,2,9,32480,41482,16192,2561.9 +2560,6912,2,10,37856,39419,15360,2566.3 +2560,6912,2,11,30624,41357,16160,2559.2 +2560,6912,2,12,30272,38983,15200,2564.7 +2560,6912,2,13,32448,42749,16704,2559.2 +2560,6912,2,14,31872,41273,16128,2559.1 +2560,6912,2,15,32448,40329,15744,2561.5 +2560,6912,2,16,31776,41136,16064,2560.8 +2560,6912,2,17,29920,41380,16128,2565.7 +2560,6912,2,18,31200,40665,15872,2562.1 +2560,6912,2,19,32224,41010,16000,2563.1 +2560,6912,2,20,31104,39235,15328,2559.7 +2560,6912,2,21,31072,42200,16480,2560.7 +2560,6912,2,22,41024,45902,17888,2566.1 +2560,6912,3,0,31392,40723,15904,2560.6 +2560,6912,3,1,31232,39647,15456,2565.2 +2560,6912,3,2,31328,43271,16928,2556.2 +2560,6912,3,3,32544,39517,15392,2567.4 +2560,6912,3,4,31456,41568,16256,2557.1 +2560,6912,3,5,31808,39578,15456,2560.7 +2560,6912,3,6,33504,42597,16672,2555.0 +2560,6912,3,7,32352,41443,16160,2564.5 +2560,6912,3,8,32640,41197,16064,2564.6 +2560,6912,3,9,33248,43424,16928,2565.2 +2560,6912,3,10,31360,41322,16096,2567.2 +2560,6912,3,11,31072,41798,16320,2561.2 +2560,6912,3,12,31680,41340,16128,2563.2 +2560,6912,3,13,31872,43366,16896,2566.6 +2560,6912,3,14,31168,40916,15936,2567.5 +2560,6912,3,15,32704,40436,15776,2563.1 +2560,6912,3,16,31040,40666,15840,2567.3 +2560,6912,3,17,32608,41654,16224,2567.4 +2560,6912,3,18,30656,41087,16032,2562.8 +2560,6912,3,19,31872,40709,15904,2559.7 +2560,6912,3,20,31712,37721,14720,2562.6 +2560,6912,3,21,30784,40558,15808,2565.7 +2560,6912,3,22,40576,50587,19680,2570.5 +2560,6912,4,0,31264,40721,15904,2560.4 +2560,6912,4,1,31200,38587,15104,2554.8 +2560,6912,4,2,31232,41402,16160,2562.0 +2560,6912,4,3,33184,40394,15776,2560.5 +2560,6912,4,4,30176,43245,16864,2564.3 +2560,6912,4,5,32448,41543,16192,2565.6 +2560,6912,4,6,32768,40944,15968,2564.1 +2560,6912,4,7,32544,40975,16000,2560.9 +2560,6912,4,8,30816,40961,15968,2565.2 +2560,6912,4,9,33184,42386,16544,2562.0 +2560,6912,4,10,31840,39430,15392,2561.7 +2560,6912,4,11,30912,40657,15904,2556.4 +2560,6912,4,12,30592,40294,15680,2569.8 +2560,6912,4,13,31872,43808,17120,2558.9 +2560,6912,4,14,31360,41439,16192,2559.2 +2560,6912,4,15,31296,36986,14432,2562.8 +2560,6912,4,16,30720,40382,15744,2564.9 +2560,6912,4,17,30784,42964,16768,2562.3 +2560,6912,4,18,32000,40560,15872,2555.4 +2560,6912,4,19,32064,39762,15552,2556.7 +2560,6912,4,20,31488,39561,15456,2559.6 +2560,6912,4,21,31136,39429,15424,2556.3 +2560,6912,4,22,41472,49516,19360,2557.6 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1.json new file mode 100644 index 000000000..94c431316 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.744, "min_us": 3.584}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 25056, "min_ns": 20352, "gbs": 98.08, "of_spec_273": 0.3593, "of_practical_237_2": 0.4135, "minus_floor_ns": 21312, "minus_floor_gbs": 115.32, "minus_floor_of_spec_273": 0.4224, "minus_floor_of_practical_237_2": 0.4862, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16128, "min_ns": 13920, "gbs": 101.59, "of_spec_273": 0.3721, "of_practical_237_2": 0.4283, "minus_floor_ns": 12384, "minus_floor_gbs": 132.30, "minus_floor_of_spec_273": 0.4846, "minus_floor_of_practical_237_2": 0.5578, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 52768, "min_ns": 34944, "gbs": 167.67, "of_spec_273": 0.6142, "of_practical_237_2": 0.7069, "minus_floor_ns": 49024, "minus_floor_gbs": 180.47, "minus_floor_of_spec_273": 0.6611, "minus_floor_of_practical_237_2": 0.7608, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 31872, "min_ns": 27840, "gbs": 138.80, "of_spec_273": 0.5084, "of_practical_237_2": 0.5851, "minus_floor_ns": 28128, "minus_floor_gbs": 157.27, "minus_floor_of_spec_273": 0.5761, "minus_floor_of_practical_237_2": 0.6630, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1.meta new file mode 100644 index 000000000..c5a5f17f9 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:28:09Z +aab7a06828cabd73740a0d3d03f335a331496bbab24edea7be29d18ecd84d195 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/clockcam +208 MHz, [N/A], 38, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16.json new file mode 100644 index 000000000..835445f7e --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.712, "min_us": 3.488}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 0, "copies": 656, "median_ns": 0, "min_ns": 0, "gbs": 0.00, "of_spec_273": 0.0000, "of_practical_237_2": 0.0000, "minus_floor_ns": 0, "minus_floor_gbs": 0.00, "minus_floor_of_spec_273": 0.0000, "minus_floor_of_practical_237_2": 0.0000, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 0, "copies": 992, "median_ns": 0, "min_ns": 0, "gbs": 0.00, "of_spec_273": 0.0000, "of_practical_237_2": 0.0000, "minus_floor_ns": 0, "minus_floor_gbs": 0.00, "minus_floor_of_spec_273": 0.0000, "minus_floor_of_practical_237_2": 0.0000, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 192, "median_ns": 59296, "min_ns": 53600, "gbs": 149.21, "of_spec_273": 0.5465, "of_practical_237_2": 0.6290, "minus_floor_ns": 55584, "minus_floor_gbs": 159.17, "minus_floor_of_spec_273": 0.5830, "minus_floor_of_practical_237_2": 0.6710, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 368, "median_ns": 31264, "min_ns": 28288, "gbs": 141.49, "of_spec_273": 0.5183, "of_practical_237_2": 0.5965, "minus_floor_ns": 27552, "minus_floor_gbs": 160.56, "minus_floor_of_spec_273": 0.5881, "minus_floor_of_practical_237_2": 0.6769, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 6, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16.meta new file mode 100644 index 000000000..e70a62c4e --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/clockcam-m16.meta @@ -0,0 +1,5 @@ +2026-10-16T02:28:11Z +aab7a06828cabd73740a0d3d03f335a331496bbab24edea7be29d18ecd84d195 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/clockcam +208 MHz, [N/A], 38, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240.json new file mode 100644 index 000000000..d63ffd44e --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 240}, + "launch_floor_in_list": {"median_us": 3.520, "min_us": 3.200}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 23360, "min_ns": 17664, "gbs": 105.21, "of_spec_273": 0.3854, "of_practical_237_2": 0.4435, "minus_floor_ns": 19840, "minus_floor_gbs": 123.87, "minus_floor_of_spec_273": 0.4537, "minus_floor_of_practical_237_2": 0.5222, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15840, "min_ns": 13472, "gbs": 103.43, "of_spec_273": 0.3789, "of_practical_237_2": 0.4361, "minus_floor_ns": 12320, "minus_floor_gbs": 132.99, "minus_floor_of_spec_273": 0.4871, "minus_floor_of_practical_237_2": 0.5607, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 58240, "min_ns": 52384, "gbs": 151.91, "of_spec_273": 0.5565, "of_practical_237_2": 0.6404, "minus_floor_ns": 54720, "minus_floor_gbs": 161.68, "minus_floor_of_spec_273": 0.5922, "minus_floor_of_practical_237_2": 0.6816, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 32288, "min_ns": 25312, "gbs": 137.01, "of_spec_273": 0.5019, "of_practical_237_2": 0.5776, "minus_floor_ns": 28768, "minus_floor_gbs": 153.77, "minus_floor_of_spec_273": 0.5633, "minus_floor_of_practical_237_2": 0.6483, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240.meta new file mode 100644 index 000000000..df05b4de6 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-240.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:30Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +253 MHz, [N/A], 40, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320.json new file mode 100644 index 000000000..fedcbbdd4 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 320}, + "launch_floor_in_list": {"median_us": 3.424, "min_us": 3.168}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 22528, "min_ns": 18432, "gbs": 109.09, "of_spec_273": 0.3996, "of_practical_237_2": 0.4599, "minus_floor_ns": 19104, "minus_floor_gbs": 128.64, "minus_floor_of_spec_273": 0.4712, "minus_floor_of_practical_237_2": 0.5423, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15968, "min_ns": 13504, "gbs": 102.61, "of_spec_273": 0.3758, "of_practical_237_2": 0.4326, "minus_floor_ns": 12544, "minus_floor_gbs": 130.61, "minus_floor_of_spec_273": 0.4784, "minus_floor_of_practical_237_2": 0.5506, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 60544, "min_ns": 43232, "gbs": 146.13, "of_spec_273": 0.5353, "of_practical_237_2": 0.6161, "minus_floor_ns": 57120, "minus_floor_gbs": 154.89, "minus_floor_of_spec_273": 0.5674, "minus_floor_of_practical_237_2": 0.6530, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 30400, "min_ns": 26368, "gbs": 145.52, "of_spec_273": 0.5330, "of_practical_237_2": 0.6135, "minus_floor_ns": 26976, "minus_floor_gbs": 163.99, "minus_floor_of_spec_273": 0.6007, "minus_floor_of_practical_237_2": 0.6913, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320.meta new file mode 100644 index 000000000..a397f873c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-320.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:32Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 40, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640.json new file mode 100644 index 000000000..c2f617040 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 640}, + "launch_floor_in_list": {"median_us": 3.392, "min_us": 3.168}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 22112, "min_ns": 17728, "gbs": 111.14, "of_spec_273": 0.4071, "of_practical_237_2": 0.4686, "minus_floor_ns": 18720, "minus_floor_gbs": 131.28, "minus_floor_of_spec_273": 0.4809, "minus_floor_of_practical_237_2": 0.5535, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15520, "min_ns": 13888, "gbs": 105.57, "of_spec_273": 0.3867, "of_practical_237_2": 0.4451, "minus_floor_ns": 12128, "minus_floor_gbs": 135.09, "minus_floor_of_spec_273": 0.4948, "minus_floor_of_practical_237_2": 0.5695, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 68256, "min_ns": 47072, "gbs": 129.62, "of_spec_273": 0.4748, "of_practical_237_2": 0.5465, "minus_floor_ns": 64864, "minus_floor_gbs": 136.40, "minus_floor_of_spec_273": 0.4996, "minus_floor_of_practical_237_2": 0.5750, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 30112, "min_ns": 25184, "gbs": 146.91, "of_spec_273": 0.5381, "of_practical_237_2": 0.6193, "minus_floor_ns": 26720, "minus_floor_gbs": 165.56, "minus_floor_of_spec_273": 0.6064, "minus_floor_of_practical_237_2": 0.6980, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640.meta new file mode 100644 index 000000000..33080550d --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-640.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:34Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 40, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96.json new file mode 100644 index 000000000..5ad0b7399 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 96}, + "launch_floor_in_list": {"median_us": 3.488, "min_us": 3.296}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 25408, "min_ns": 21568, "gbs": 96.73, "of_spec_273": 0.3543, "of_practical_237_2": 0.4078, "minus_floor_ns": 21920, "minus_floor_gbs": 112.12, "minus_floor_of_spec_273": 0.4107, "minus_floor_of_practical_237_2": 0.4727, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 21472, "min_ns": 16608, "gbs": 76.30, "of_spec_273": 0.2795, "of_practical_237_2": 0.3217, "minus_floor_ns": 17984, "minus_floor_gbs": 91.10, "minus_floor_of_spec_273": 0.3337, "minus_floor_of_practical_237_2": 0.3841, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 56032, "min_ns": 30656, "gbs": 157.90, "of_spec_273": 0.5784, "of_practical_237_2": 0.6657, "minus_floor_ns": 52544, "minus_floor_gbs": 168.38, "minus_floor_of_spec_273": 0.6168, "minus_floor_of_practical_237_2": 0.7099, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29152, "min_ns": 24800, "gbs": 151.75, "of_spec_273": 0.5558, "of_practical_237_2": 0.6397, "minus_floor_ns": 25664, "minus_floor_gbs": 172.37, "minus_floor_of_spec_273": 0.6314, "minus_floor_of_practical_237_2": 0.7267, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96.meta new file mode 100644 index 000000000..1d43cd49b --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/ctas-96.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:28Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 40, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1.json new file mode 100644 index 000000000..5bee22396 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 1, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.424, "min_us": 3.200}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 25344, "min_ns": 22272, "gbs": 96.97, "of_spec_273": 0.3552, "of_practical_237_2": 0.4088, "minus_floor_ns": 21920, "minus_floor_gbs": 112.12, "minus_floor_of_spec_273": 0.4107, "minus_floor_of_practical_237_2": 0.4727, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 17984, "min_ns": 15712, "gbs": 91.10, "of_spec_273": 0.3337, "of_practical_237_2": 0.3841, "minus_floor_ns": 14560, "minus_floor_gbs": 112.53, "minus_floor_of_spec_273": 0.4122, "minus_floor_of_practical_237_2": 0.4744, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 62592, "min_ns": 34144, "gbs": 141.35, "of_spec_273": 0.5178, "of_practical_237_2": 0.5959, "minus_floor_ns": 59168, "minus_floor_gbs": 149.53, "minus_floor_of_spec_273": 0.5477, "minus_floor_of_practical_237_2": 0.6304, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 42368, "min_ns": 31648, "gbs": 104.41, "of_spec_273": 0.3825, "of_practical_237_2": 0.4402, "minus_floor_ns": 38944, "minus_floor_gbs": 113.59, "minus_floor_of_spec_273": 0.4161, "minus_floor_of_practical_237_2": 0.4789, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1.meta new file mode 100644 index 000000000..f17d52dcf --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:26Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +279 MHz, [N/A], 37, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2.json new file mode 100644 index 000000000..bcf5048e2 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 2, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.520, "min_us": 3.264}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 22240, "min_ns": 19968, "gbs": 110.50, "of_spec_273": 0.4048, "of_practical_237_2": 0.4659, "minus_floor_ns": 18720, "minus_floor_gbs": 131.28, "minus_floor_of_spec_273": 0.4809, "minus_floor_of_practical_237_2": 0.5535, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 17504, "min_ns": 15072, "gbs": 93.60, "of_spec_273": 0.3429, "of_practical_237_2": 0.3946, "minus_floor_ns": 13984, "minus_floor_gbs": 117.16, "minus_floor_of_spec_273": 0.4292, "minus_floor_of_practical_237_2": 0.4939, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 55456, "min_ns": 32032, "gbs": 159.54, "of_spec_273": 0.5844, "of_practical_237_2": 0.6726, "minus_floor_ns": 51936, "minus_floor_gbs": 170.35, "minus_floor_of_spec_273": 0.6240, "minus_floor_of_practical_237_2": 0.7182, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 43808, "min_ns": 32320, "gbs": 100.98, "of_spec_273": 0.3699, "of_practical_237_2": 0.4257, "minus_floor_ns": 40288, "minus_floor_gbs": 109.80, "minus_floor_of_spec_273": 0.4022, "minus_floor_of_practical_237_2": 0.4629, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2.meta new file mode 100644 index 000000000..94f13bb44 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-2.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:28Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +806 MHz, [N/A], 38, 5 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3.json new file mode 100644 index 000000000..cc5af2f22 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 2, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.456, "min_us": 3.200}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 21888, "min_ns": 19488, "gbs": 112.28, "of_spec_273": 0.4113, "of_practical_237_2": 0.4734, "minus_floor_ns": 18432, "minus_floor_gbs": 133.33, "minus_floor_of_spec_273": 0.4884, "minus_floor_of_practical_237_2": 0.5621, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 17376, "min_ns": 15392, "gbs": 94.29, "of_spec_273": 0.3454, "of_practical_237_2": 0.3975, "minus_floor_ns": 13920, "minus_floor_gbs": 117.70, "minus_floor_of_spec_273": 0.4311, "minus_floor_of_practical_237_2": 0.4962, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 54048, "min_ns": 33824, "gbs": 163.69, "of_spec_273": 0.5996, "of_practical_237_2": 0.6901, "minus_floor_ns": 50592, "minus_floor_gbs": 174.88, "minus_floor_of_spec_273": 0.6406, "minus_floor_of_practical_237_2": 0.7373, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 30176, "min_ns": 26080, "gbs": 146.60, "of_spec_273": 0.5370, "of_practical_237_2": 0.6180, "minus_floor_ns": 26720, "minus_floor_gbs": 165.56, "minus_floor_of_spec_273": 0.6064, "minus_floor_of_practical_237_2": 0.6980, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3.meta new file mode 100644 index 000000000..156c20dc9 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-3.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:31Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 37, 5 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4.json new file mode 100644 index 000000000..cf46d77b7 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 2, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.424, "min_us": 3.200}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 21888, "min_ns": 19392, "gbs": 112.28, "of_spec_273": 0.4113, "of_practical_237_2": 0.4734, "minus_floor_ns": 18464, "minus_floor_gbs": 133.10, "minus_floor_of_spec_273": 0.4876, "minus_floor_of_practical_237_2": 0.5611, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 17248, "min_ns": 15200, "gbs": 94.99, "of_spec_273": 0.3480, "of_practical_237_2": 0.4005, "minus_floor_ns": 13824, "minus_floor_gbs": 118.52, "minus_floor_of_spec_273": 0.4341, "minus_floor_of_practical_237_2": 0.4997, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 54752, "min_ns": 31776, "gbs": 161.59, "of_spec_273": 0.5919, "of_practical_237_2": 0.6812, "minus_floor_ns": 51328, "minus_floor_gbs": 172.37, "minus_floor_of_spec_273": 0.6314, "minus_floor_of_practical_237_2": 0.7267, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29696, "min_ns": 24064, "gbs": 148.97, "of_spec_273": 0.5457, "of_practical_237_2": 0.6280, "minus_floor_ns": 26272, "minus_floor_gbs": 168.38, "minus_floor_of_spec_273": 0.6168, "minus_floor_of_practical_237_2": 0.7099, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4.meta new file mode 100644 index 000000000..8cfedf6dd --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-4.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:33Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 38, 4 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5.json new file mode 100644 index 000000000..9993181bf --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 5, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.392, "min_us": 3.136}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 24640, "min_ns": 21408, "gbs": 99.74, "of_spec_273": 0.3653, "of_practical_237_2": 0.4205, "minus_floor_ns": 21248, "minus_floor_gbs": 115.66, "minus_floor_of_spec_273": 0.4237, "minus_floor_of_practical_237_2": 0.4876, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 21568, "min_ns": 16448, "gbs": 75.96, "of_spec_273": 0.2783, "of_practical_237_2": 0.3203, "minus_floor_ns": 18176, "minus_floor_gbs": 90.14, "minus_floor_of_spec_273": 0.3302, "minus_floor_of_practical_237_2": 0.3800, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 55200, "min_ns": 32256, "gbs": 160.28, "of_spec_273": 0.5871, "of_practical_237_2": 0.6757, "minus_floor_ns": 51808, "minus_floor_gbs": 170.77, "minus_floor_of_spec_273": 0.6255, "minus_floor_of_practical_237_2": 0.7199, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 31584, "min_ns": 26272, "gbs": 140.06, "of_spec_273": 0.5130, "of_practical_237_2": 0.5905, "minus_floor_ns": 28192, "minus_floor_gbs": 156.91, "minus_floor_of_spec_273": 0.5748, "minus_floor_of_practical_237_2": 0.6615, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5.meta new file mode 100644 index 000000000..cc24726cf --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/depth-5.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:35Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +253 MHz, [N/A], 37, 4 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1.json new file mode 100644 index 000000000..f8fceae26 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.488, "min_us": 3.328}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 16192, "min_ns": 14592, "gbs": 151.78, "of_spec_273": 0.5560, "of_practical_237_2": 0.6399, "minus_floor_ns": 12704, "minus_floor_gbs": 193.45, "minus_floor_of_spec_273": 0.7086, "minus_floor_of_practical_237_2": 0.8156, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13536, "min_ns": 12768, "gbs": 121.04, "of_spec_273": 0.4434, "of_practical_237_2": 0.5103, "minus_floor_ns": 10048, "minus_floor_gbs": 163.06, "minus_floor_of_spec_273": 0.5973, "minus_floor_of_practical_237_2": 0.6874, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 43488, "min_ns": 38048, "gbs": 203.44, "of_spec_273": 0.7452, "of_practical_237_2": 0.8577, "minus_floor_ns": 40000, "minus_floor_gbs": 221.18, "minus_floor_of_spec_273": 0.8102, "minus_floor_of_practical_237_2": 0.9325, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 28768, "min_ns": 25888, "gbs": 153.77, "of_spec_273": 0.5633, "of_practical_237_2": 0.6483, "minus_floor_ns": 25280, "minus_floor_gbs": 174.99, "minus_floor_of_spec_273": 0.6410, "minus_floor_of_practical_237_2": 0.7377, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 2, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1.meta new file mode 100644 index 000000000..2724d4d2f --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:46:47Z +5b94c89188932bf45f036daba897c3491069c650612d02cb34c7a5d2b72bea4c /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/fix +208 MHz, [N/A], 52, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1.json new file mode 100644 index 000000000..af79acc00 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.680, "min_us": 3.424}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 15360, "min_ns": 14720, "gbs": 160.00, "of_spec_273": 0.5861, "of_practical_237_2": 0.6745, "minus_floor_ns": 11680, "minus_floor_gbs": 210.41, "minus_floor_of_spec_273": 0.7707, "minus_floor_of_practical_237_2": 0.8871, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13376, "min_ns": 13120, "gbs": 122.49, "of_spec_273": 0.4487, "of_practical_237_2": 0.5164, "minus_floor_ns": 9696, "minus_floor_gbs": 168.98, "minus_floor_of_spec_273": 0.6190, "minus_floor_of_practical_237_2": 0.7124, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 42816, "min_ns": 22720, "gbs": 206.64, "of_spec_273": 0.7569, "of_practical_237_2": 0.8711, "minus_floor_ns": 39136, "minus_floor_gbs": 226.07, "minus_floor_of_spec_273": 0.8281, "minus_floor_of_practical_237_2": 0.9531, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 27904, "min_ns": 21760, "gbs": 158.53, "of_spec_273": 0.5807, "of_practical_237_2": 0.6683, "minus_floor_ns": 24224, "minus_floor_gbs": 182.62, "minus_floor_of_spec_273": 0.6689, "minus_floor_of_practical_237_2": 0.7699, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1.meta new file mode 100644 index 000000000..b0159114c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/fix2-1.meta @@ -0,0 +1,5 @@ +2026-10-16T03:03:07Z +2619f439b5084e72e3e501587b1afcb66a2863ea6100a5cdc163004822b26068 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/fix2 +208 MHz, [N/A], 45, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline.json new file mode 100644 index 000000000..25b3f1040 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.648, "min_us": 3.232}, + "hot_diagnostic": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 18304, "min_ns": 14816, "gbs": 134.27, "of_spec_273": 0.4918, "of_practical_237_2": 0.5660, "minus_floor_ns": 14656, "minus_floor_gbs": 167.69, "minus_floor_of_spec_273": 0.6142, "minus_floor_of_practical_237_2": 0.7069, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 14816, "min_ns": 10944, "gbs": 110.58, "of_spec_273": 0.4051, "of_practical_237_2": 0.4662, "minus_floor_ns": 11168, "minus_floor_gbs": 146.70, "minus_floor_of_spec_273": 0.5374, "minus_floor_of_practical_237_2": 0.6185, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 31488, "min_ns": 28256, "gbs": 280.98, "of_spec_273": 1.0292, "of_practical_237_2": 1.1846, "minus_floor_ns": 27840, "minus_floor_gbs": 317.79, "minus_floor_of_spec_273": 1.1641, "minus_floor_of_practical_237_2": 1.3398, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 23072, "min_ns": 20288, "gbs": 191.73, "of_spec_273": 0.7023, "of_practical_237_2": 0.8083, "minus_floor_ns": 19424, "minus_floor_gbs": 227.74, "minus_floor_of_spec_273": 0.8342, "minus_floor_of_practical_237_2": 0.9601, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 5, "failed": 0, "verdict": "PASS" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline.meta new file mode 100644 index 000000000..63eaa22cd --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/hot-baseline.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:25Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +806 MHz, [N/A], 37, 4 % +negative_exit=1 +exit=0 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1-negative.json new file mode 100644 index 000000000..3d3add2ea --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1920, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1.json new file mode 100644 index 000000000..2ded25f9f --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.360, "min_us": 3.168}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 27456, "min_ns": 23424, "gbs": 89.51, "of_spec_273": 0.3279, "of_practical_237_2": 0.3774, "minus_floor_ns": 24096, "minus_floor_gbs": 101.99, "minus_floor_of_spec_273": 0.3736, "minus_floor_of_practical_237_2": 0.4300, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 23872, "min_ns": 18560, "gbs": 68.63, "of_spec_273": 0.2514, "of_practical_237_2": 0.2893, "minus_floor_ns": 20512, "minus_floor_gbs": 79.88, "minus_floor_of_spec_273": 0.2926, "minus_floor_of_practical_237_2": 0.3367, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 53568, "min_ns": 36480, "gbs": 165.16, "of_spec_273": 0.6050, "of_practical_237_2": 0.6963, "minus_floor_ns": 50208, "minus_floor_gbs": 176.21, "minus_floor_of_spec_273": 0.6455, "minus_floor_of_practical_237_2": 0.7429, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 27616, "min_ns": 24320, "gbs": 160.19, "of_spec_273": 0.5868, "of_practical_237_2": 0.6753, "minus_floor_ns": 24256, "minus_floor_gbs": 182.37, "minus_floor_of_spec_273": 0.6680, "minus_floor_of_practical_237_2": 0.7689, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 3, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1.meta new file mode 100644 index 000000000..813cfcbd1 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/load-probe-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:15:19Z +70270ed3ca2808d25e8829e6208aee00e9ce970c6b36b0f92be989beb3c08f0b /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/load-probe +208 MHz, [N/A], 37, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1.json new file mode 100644 index 000000000..8913096a7 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.456, "min_us": 3.328}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 23040, "min_ns": 19872, "gbs": 106.67, "of_spec_273": 0.3907, "of_practical_237_2": 0.4497, "minus_floor_ns": 19584, "minus_floor_gbs": 125.49, "minus_floor_of_spec_273": 0.4597, "minus_floor_of_practical_237_2": 0.5290, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15776, "min_ns": 12640, "gbs": 103.85, "of_spec_273": 0.3804, "of_practical_237_2": 0.4378, "minus_floor_ns": 12320, "minus_floor_gbs": 132.99, "minus_floor_of_spec_273": 0.4871, "minus_floor_of_practical_237_2": 0.5607, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 52000, "min_ns": 35072, "gbs": 170.14, "of_spec_273": 0.6232, "of_practical_237_2": 0.7173, "minus_floor_ns": 48544, "minus_floor_gbs": 182.25, "minus_floor_of_spec_273": 0.6676, "minus_floor_of_practical_237_2": 0.7684, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 28160, "min_ns": 24416, "gbs": 157.09, "of_spec_273": 0.5754, "of_practical_237_2": 0.6623, "minus_floor_ns": 24704, "minus_floor_gbs": 179.07, "minus_floor_of_spec_273": 0.6559, "minus_floor_of_practical_237_2": 0.7549, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1.meta new file mode 100644 index 000000000..ac010a03d --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:13:34Z +aed1a98750e5bea267a091ca4a0bb44eab1e22b7a47fd3e5be0f70da859c2a85 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/no-readwait +208 MHz, [N/A], 37, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot.json new file mode 100644 index 000000000..f97aff493 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.392, "min_us": 3.232}, + "hot_diagnostic": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 18496, "min_ns": 14432, "gbs": 132.87, "of_spec_273": 0.4867, "of_practical_237_2": 0.5602, "minus_floor_ns": 15104, "minus_floor_gbs": 162.71, "minus_floor_of_spec_273": 0.5960, "minus_floor_of_practical_237_2": 0.6860, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15072, "min_ns": 10144, "gbs": 108.70, "of_spec_273": 0.3982, "of_practical_237_2": 0.4583, "minus_floor_ns": 11680, "minus_floor_gbs": 140.27, "minus_floor_of_spec_273": 0.5138, "minus_floor_of_practical_237_2": 0.5914, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 31648, "min_ns": 28256, "gbs": 279.56, "of_spec_273": 1.0240, "of_practical_237_2": 1.1786, "minus_floor_ns": 28256, "minus_floor_gbs": 313.11, "minus_floor_of_spec_273": 1.1469, "minus_floor_of_practical_237_2": 1.3200, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 22400, "min_ns": 19872, "gbs": 197.49, "of_spec_273": 0.7234, "of_practical_237_2": 0.8326, "minus_floor_ns": 19008, "minus_floor_gbs": 232.73, "minus_floor_of_spec_273": 0.8525, "minus_floor_of_practical_237_2": 0.9811, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 5, "failed": 0, "verdict": "PASS" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot.meta new file mode 100644 index 000000000..24bf04651 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/no-readwait-hot.meta @@ -0,0 +1,5 @@ +2026-10-16T02:13:36Z +aed1a98750e5bea267a091ca4a0bb44eab1e22b7a47fd3e5be0f70da859c2a85 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/no-readwait +253 MHz, [N/A], 37, 4 % +negative_exit=1 +exit=0 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/plan.md b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/plan.md new file mode 100644 index 000000000..374705014 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/plan.md @@ -0,0 +1,81 @@ +# KT1 speed investigation +DOCS READ: NVIDIA Best Practices 13.4 section 10.2.1: "the data access unit is 32-byte regardless of whether global loads are cached in L1 or not." nvos.h:1114-1118: "For system memory this will not be coherent with direct CPU mappings." DOCS SILENT on GB10 SASS scheduling. +SYMPTOM: Four L2-defeated ternary GEMV shapes miss existing bandwidth gates. +1. Freeze original sources and binary from origin/main 8edeab5e; pin physics 6d7cf0d4 and driver 580.173.02. +2. Baseline five runs of existing --bw-only gate, with forced mutant 2 negative control in each run. Same output slices, input seed, allocations and measured path. +3. One-variable experiments: load width/layout, rows/warps/CTA count, depth, staging/compute schedule. Predictions recorded before each experiment; repeat promising variants five times. Hot runs diagnostic only. +4. Fix, host and simulator tests, full chip correctness (115500 rows), mutants, five cold speed runs. Compare both measured floor and original fixed 3424 ns to avoid moving the gate. +5. Archive every variant and receipt, seal this exact folder, publish one PR without merging. +CAMERA: Existing JSON records time, bytes, parity, gate failures after launches; source/binary hashes accompany each experiment. No timing-path logging. +NEGATIVE CONTROL: Forced mutant 2 must exit 1 with 1919/3840 wrong scaled rows; final full suite also exercises mutants 1 and 3. Existing poison before each launch and oracle after each list retained. +RULES: <=20 minute quietlock run windows, yield to other lanes; no killing others; no port 18092; no Python/CUDA/third-party engines. +## Deviations +Initial recursive file discovery was overly broad; narrowed to relevant directories. The scaffold inspects stale ~/workspace/omega, so appended explicit pins of the actual worktree and linked physics. +## Results +Pending. + +Baseline-1 reproduces all four failures (fractions .4741/.5410/.7491/.6913); forced wrong segment map fails as expected. Remaining repeats and shape experiments now use quietlock run -- quietlock hold: discovered run alone checks the flag but does not acquire it, first run had check only and is retained, not used as the five locked baseline repeats. +Ranked predictions before variants: +1. Grid tail: 3840 rows require 240 CTAs at R1/W8 but cap160 forces half the blocks through a second unit; raising just CTA cap improves it if launch work imbalance matters. +2. Memory issue parallelism: D10 at K2560 vs D9 at K6912 issues narrow per-row loads; widening and/or depth changes improve cold if outstanding requests are insufficient. +3. Instruction/staging cost: hot speed sets a compute floor; reducing scalar staging stores or independent instruction stalls helps hot and cold together. +4. Occupancy: lowering warps or registers changes active blocks; results should depend on shape and SM distribution. +5. Output serialization: independent uncached output slices may add a store/translation penalty; diagnostic shared output timing can test this, but cannot replace per-launch verified outputs for the gate. + +First sweeps: CTA, warp, depth and block-layout variants all still fail. Hot baseline misses both smaller gates too, so memory translation alone cannot explain the gap. Next single-variable probe: K_VAR_MORE currently waits for the previous load's source-read barrier before issuing another independent load. Remove only that wait within load groups; keep write/read scoreboard assignment and the final wait. No load group changes its address or reuses a destination before the existing drain. Prediction: faster cold/hot if artificial load serialization matters. Source copy, host/simulator and chip negative controls required before credit. + +no-readwait probe improves only modestly; all gates still fail in first run, no accepted claim yet. Next: replace only the dot/unpack arithmetic with sum-of-packed-word checksum; preserve all global weight loads, activation staging and shared loads, reduction and output topology. Host reference explicitly becomes packed-word checksum for this diagnostic binary only, and its records are NOT ternary correctness evidence. If throughput still misses gates, arithmetic cannot be the dominant limiter. Forced wrong-segment control remains red. Registers may decrease due dead arithmetic temporaries: that biases this probe toward faster execution, so persistent slowness is stronger evidence against arithmetic as main cause. + +Packed checksum probe still misses the small-shape gates and is even slower there; 13824 unchanged, 6912 slightly faster. This is inconsistent with simple instruction count being dominant. Next output-address control restores original ternary arithmetic and shares output addresses (diagnostic ONLY, never gate evidence) to test the reported previous-worker difference. Also sample clocks during the tiny bursts: all pre-run clocks have been 208 MHz, so dynamic ramp-up remains unmeasured, not excluded. + +## Continuation (Fable 5.1, 2026-10-15 21:3x local, after Astra's usage limit) +DOCS READ (added): CUDA Programming Guide appendices, clock()/clock64(): "return a per-multiprocessor counter value that increments each clock cycle". S2R ids SR_CLOCKLO 0x50, SR_GLOBALTIMERLO 0x52 (0x52 already used by src/runtime/rx_resident_gpu.c:141). nvidia-smi -q: P8, SM 208 MHz, applications clock 2418 MHz, max 3003 MHz. DOCS SILENT on GB10 clock ramp policy and ramp time. +Ground re-read: 111 nvidia-smi samples at ~20 ms during the stamps run never read above 227 MHz (runs/clocks-stamps.csv). Per-launch stamps show no trend along a list (lists last ~1 ms). The word table (0.92) is one 657 MB launch of 3 ms, 20 reps back to back: a sustained load, not a 25 us burst. Hot diagnostic fits time = a + b*bytes with a ~ 7.4 us at k 2560 and ~ 9.2 us at k 6912 beyond the launch floor: a per-launch serial cost that grows with k, which is what a slow SM clock would inflate. +Prediction P6 (clock), ranked first now: the SM clock stays near 208 MHz during these lists; the per-launch serial chain (x staging, first load, one unit's arithmetic, store) at 208 MHz is the fixed cost that sinks the small shapes. If true: (i) an in-kernel camera (SR_CLOCKLO delta / SR_GLOBALTIMERLO delta for CTA 0 warp 0) reads 200-300 MHz in the baseline lists; (ii) a list 20x longer shows per-launch time falling along the list as the clock ramps, and the camera shows the MHz rising; (iii) the camera itself must not change the stamps (clockcam at mult 1 within baseline spread). If the camera reads > 1500 MHz in the baseline lists, P6 is dead and the cause is in the kernel. +Negative control for the camera: a value outside [100, 3100] MHz or a poison word prints UNKNOWN; forced mutant 2 stays red in every run. +Variants: clockcam (baseline + camera, diagnostic only, writes 2 words past row n of each output slice; slice stride widened by 8 words in the diagnostic test), then clockcam --copies-mult 20 (one variable: list length). + +### Result: clock camera (clockcam-1, clockcam-m16) +[OBSERVED runs/clockcam-1-cam.csv] In-kernel SR_CLOCKLO/SR_GLOBALTIMERLO ratio for CTA 0: median 2563-2574 MHz on every shape including the 8x256 floor launches (850 launches, 0 UNKNOWN; a few launches read 546-1456 MHz, consistent with CTA 0's warp being time-sliced, as the CUDA docs warn). nvidia-smi at 20 ms sampled 208-273 MHz through the same run. P6 (clock stays idle) is DEAD: the SM runs at ~2.56 GHz during the launches; nvidia-smi's clock reading misses microsecond bursts. Camera cost: clockcam-1 stamps are inside the baseline spread (0.486/0.558/0.761/0.663). +[OBSERVED] CTA 0 lifetime vs stamp interval: 8x256 1.0 of 3.7 us (so ~2.7 us of the floor is outside any CTA); 3840x2560 14.6 of 25.1 us; 2560x2560 10.4 of 16.1; 2560x6912 16.1 of 31.9; 13824x2560 44.9 of 52.7. On 2560x6912 every CTA has identical work, yet CTA 0 covers only half the launch: either CTAs start late (launch ramp) or finish very unevenly. +clockcam-m16 (16x lists): 3840 and 2560x2560 lists of 656/992 launches failed the oracle check (list too long for the cmdlist or the test, UNKNOWN which; not pursued; 13824 at 192 launches ran, 0.671, no speedup from the longer list). Not evidence either way beyond: longer lists do not help. +Next camera (P7, timeline): per CTA, thread 0 records globaltimer at start, after x staging, at end. Prediction: if CTAs start spread over many us, the launch ramp is the fixed cost; if they start together but staging takes several us, x staging is; if lifetimes are very unequal, memory service is unfair. + +### Result: timeline camera (timeline-1, timeline-hot, timeline-nostore-1) +[OBSERVED runs/timeline-1-cam.csv] All 160 CTAs start within 0.3-0.45 us on the k 2560 shapes (no launch ramp). x staging (uncached x load, unpack, STS, bar) takes 2.3-3.2 us median, up to 5-6 us, in every CTA, cold and hot: the first ~3 us of every launch move no weights. CTA lifetimes are very unequal (3840x2560: median 11.8 us, max 25 us): the strided unit map gives 80 CTAs two units per warp and 80 CTAs one. 2560x6912: CTA starts spread over 19-22 us: with 13,824 B shared memory per CTA the 160 CTAs do not all fit at once and run in waves (QMD word 36 keeps the SM shared-memory config fields as they were; resident capacity UNKNOWN). +[OBSERVED] The timeline camera itself slowed every shape by 5-10 us (2560x2560 16.1 -> 26.0 us; hot 14.8 -> 25.0), the clock camera (CTA 0 only) did not. timeline-nostore-1 (same binary minus the four 4-byte uncached camera stores per CTA, registers and S2Rs kept): back to baseline, 24.0/15.3/51.3/31.5 us (0.504/0.585/0.781/0.665). So 640 small uncached stores from 160 CTAs cost ~10 us. [INFERRED, high] Consecutive uncached stores from one thread to one line serialise at the uncached write round trip (~2.5 us each). The kernel's own output path is one 8-byte uncached store per unit per warp (2 adjacent words), 1920 of them for 3840 rows, spread through the launch: cost UNKNOWN until probed. +Next probes (diagnostic, results not checked, API poison check disabled in the probe build only; forced mutant 2 stays checked): P8 probe-nostore (i32 output STG replaced by an STS to shared: upper bound of the output-store cost), P9 probe-nox (x LDG.128 replaced by constants: upper bound of the x round-trip cost). Predictions: if P8 saves >= 5 us on 2560x2560 the output path is the lead and the fix is full-line coalesced stores through shared memory; if P9 saves ~2.5 us the staging round trip must overlap the first weight loads. + +### Result: probes (probe-nostore-1, probe-nox-1; diagnostic, results unchecked) +[OBSERVED runs/probe-nostore-1.json] Output STG replaced by a shared store: 3840x2560 25.1 -> 15.7 us (0.841), 2560x2560 16.2 -> 13.5 (0.687), 13824x2560 53.2 -> 42.0 (0.967), 2560x6912 30.4 -> 25.1 (0.861). The per-row GPU-uncached stores are the main cost on three shapes. +[OBSERVED runs/probe-nox-1.json] x not loaded: 23.6 / 15.6 / 50.4 / 27.4 us: the x round trip is worth 0.6 to 2.6 us, second order. +FIX (worktree tern/kt1-speed, src/omega_blackwell_codegen_tern.c + .h): single-chunk kernels park each round's 2RW results in shared memory (two slot sets alternating by round, one CTA barrier per round; all warps of a CTA take the same rounds, a warp past U recomputes U-1 and its rows are never stored) and warp 0 writes the round with one coalesced STG. Host battery 56/56 and simulator battery 34/34 (bounds-checked, grids and warp orders, mutants 1/2/3 caught) pass on the fixed code. Prediction: cold fractions move toward the probe-nostore figures; the 2560x2560 gate (0.759) may still miss because 1280 units over 1280 warps is one round and the x round trip plus one DRAM round trip remain serial. + +### Result: fix-1 (coalesced output, cold, 5 reps) and evidence-store-fix/ (red + main phases) +[OBSERVED runs/fix-1.json] 3840x2560 16.19 us (0.816 PASS), 2560x2560 13.54 (0.687 FAIL), 13824x2560 43.49 (0.933 PASS), 2560x6912 28.77 (0.738 FAIL). Negative control (forced mutant 2) red. +[OBSERVED evidence-store-fix/main.log] correctness 0 rows differing on every battery (random 20000 rows, MA grid 49932 rows, BitNet shapes x 2 layouts, f32 q|k|v); red phase: mutants 1, 3, 2 each exit 1. Cold in that run: 0.852 / 0.727 / 0.972 / 0.880. The 2560x6912 figure swings 0.74 to 0.88 between runs (waves, see UNKNOWN below); 2560x2560 sits at the probe-nostore ceiling (0.69 to 0.73): the x round trip is now the serial cost there. + +### Prediction P10 (variable 2: overlap the x round trip with the first weight round trip) +Change (worktree): the warp's first unit's weight loads are issued before the x load, which follows without waiting for them +(scoreboard rule: the x arithmetic waits for both); the K loop skips its loads once (predicated region on a flag). To keep +the register count flat the row-major loads use immediate offsets (LDG.E imm, same 24-bit field as the LDG.E.64/128 words +already in the encoder; simulator mirrors it): peak 54 registers, declared 56 (unchanged), 676 instructions (was 658). +The x staging clamps its word index instead of predicating (no lane reads past x). Host 56/56 and simulator 34/34 PASS, +every spec variant generates (/tmp/kt1stats). +Prediction: each shape loses about one memory round trip per CTA (1 to 2.5 us): 2560x2560 11.0 to 12.5 us (0.76 to 0.84), +3840x2560 14 to 15 us, 13824 42 to 43, 2560x6912 unchanged within its swing. If 2560x2560 does not move, the serial cost is +not the x round trip (the pre-launch x arrival or the first-touch of the uncached weights would be the next candidates). +Negative control: forced mutant 2 must stay red; correctness 0 rows differing with the new load encoding. + +### Result: fix2-1 (prefetch + coalesced output, cold, 5 reps) and evidence-fix2/ (red + main) +[OBSERVED runs/fix2-1.json] 3840x2560 15.36 us (0.887 PASS), 2560x2560 13.38 (0.712 FAIL), 13824x2560 42.82 (0.953 PASS), +2560x6912 27.90 (0.770 PASS). Negative control red. evidence-fix2/main.log: 0 rows differing on every battery with the +immediate-offset loads; mutants 1, 3, 2 red. Cold in that run: 0.854 / 0.646 / 0.953 / 0.809. +P10 verdict: PARTLY WRONG. Three shapes gained 0.7 to 0.9 us per launch (3840: 16.19 -> 15.36; 13824: 43.49 -> 42.82; +6912: 28.77 -> 27.90), 2560x2560 did not move (13.54 -> 13.38, within noise; 12.9 to 14.4 across runs). So at +2560x2560 the x round trip is not the serial cost. What remains there, floor taken out: 9.7 us for 1.64 MB where the +practical limit needs 6.9 us; about 2.8 us unexplained, against 1.3 us at 3840 and 1.8 us at 13824. The 2560x2560 +launch is one round (1280 units over 1280 warps): every warp issues its ten loads at once and the whole launch is one +burst with no steady state. UNKNOWN: the mechanism (DRAM pipeline fill and drain for a single burst, address +translation on first touch, or something else). Not pursued further here; two variables are enough for one PR. +Prefetch kept: no regression on any shape, registers flat, correctness proven on the chip. diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/prefetch-dirty-tree-main.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/prefetch-dirty-tree-main.log new file mode 100644 index 000000000..d6a07a68c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/prefetch-dirty-tree-main.log @@ -0,0 +1,17 @@ +chip: random rows 20000, rows differing from oma_rz_oracle 0 +chip: MA grid 36 points (49932 rows), rows differing 0 +chip: BitNet shapes x 2 layouts, rows differing 0 +chip: rows checked against oma_rz_oracle 115500 +chip: mutant 1 caught (512 of 512 rows differ from oma_rz_oracle) +chip: mutant 3 caught (511 of 512 rows differ from oma_rz_oracle) +chip: f32 q|k|v segments, rows differing from the host formula 0 +chip: mutant 2 caught (1919 of 3840 rows take the wrong scale) +chip: in-list launch floor (8 x 256, 512 B) median 3.71 us, min 3.30 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 15.84 us per launch -> 155.2 GB/s = 0.568 of 273 spec, 0.654 of 237.2 practical; minus the launch floor 12.13 us -> 202.6 GB/s (0.854 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 14.40 us per launch -> 113.8 GB/s = 0.417 of 273 spec, 0.480 of 237.2 practical; minus the launch floor 10.69 us -> 153.3 GB/s (0.646 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 153.3 (113.8 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 42.85 us per launch -> 206.5 GB/s = 0.756 of 273 spec, 0.870 of 237.2 practical; minus the launch floor 39.14 us -> 226.1 GB/s (0.953 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 26.75 us per launch -> 165.4 GB/s = 0.606 of 273 spec, 0.697 of 237.2 practical; minus the launch floor 23.04 us -> 192.0 GB/s (0.809 of 237.2) +receipt: /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/evidence-fix2/receipt-main.json +gpu_tern_test: 68 checks, 1 failed: FAIL +main exit 1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1.json new file mode 100644 index 000000000..e6d0a774b --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.424, "min_us": 3.232}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 15744, "min_ns": 14560, "gbs": 156.10, "of_spec_273": 0.5718, "of_practical_237_2": 0.6581, "minus_floor_ns": 12320, "minus_floor_gbs": 199.48, "minus_floor_of_spec_273": 0.7307, "minus_floor_of_practical_237_2": 0.8410, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13472, "min_ns": 12704, "gbs": 121.62, "of_spec_273": 0.4455, "of_practical_237_2": 0.5127, "minus_floor_ns": 10048, "minus_floor_gbs": 163.06, "minus_floor_of_spec_273": 0.5973, "minus_floor_of_practical_237_2": 0.6874, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 42016, "min_ns": 22912, "gbs": 210.57, "of_spec_273": 0.7713, "of_practical_237_2": 0.8877, "minus_floor_ns": 38592, "minus_floor_gbs": 229.25, "minus_floor_of_spec_273": 0.8398, "minus_floor_of_practical_237_2": 0.9665, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 25088, "min_ns": 19136, "gbs": 176.33, "of_spec_273": 0.6459, "of_practical_237_2": 0.7434, "minus_floor_ns": 21664, "minus_floor_gbs": 204.19, "minus_floor_of_spec_273": 0.7480, "minus_floor_of_practical_237_2": 0.8609, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1.meta new file mode 100644 index 000000000..7ff75ece7 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nostore-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:41:42Z +672536718eeaccf735269cfcb5175faeb1d85a891b4f0af9c5d8cf92075f0339 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/probe-nostore +208 MHz, [N/A], 48, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1-negative.json new file mode 100644 index 000000000..107a32523 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 3839, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1.json new file mode 100644 index 000000000..728413f2b --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.136, "min_us": 2.944}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 23648, "min_ns": 19136, "gbs": 103.92, "of_spec_273": 0.3807, "of_practical_237_2": 0.4381, "minus_floor_ns": 20512, "minus_floor_gbs": 119.81, "minus_floor_of_spec_273": 0.4389, "minus_floor_of_practical_237_2": 0.5051, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15616, "min_ns": 12480, "gbs": 104.92, "of_spec_273": 0.3843, "of_practical_237_2": 0.4423, "minus_floor_ns": 12480, "minus_floor_gbs": 131.28, "minus_floor_of_spec_273": 0.4809, "minus_floor_of_practical_237_2": 0.5535, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 50432, "min_ns": 30592, "gbs": 175.43, "of_spec_273": 0.6426, "of_practical_237_2": 0.7396, "minus_floor_ns": 47296, "minus_floor_gbs": 187.06, "minus_floor_of_spec_273": 0.6852, "minus_floor_of_practical_237_2": 0.7886, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 27392, "min_ns": 16832, "gbs": 161.50, "of_spec_273": 0.5916, "of_practical_237_2": 0.6808, "minus_floor_ns": 24256, "minus_floor_gbs": 182.37, "minus_floor_of_spec_273": 0.6680, "minus_floor_of_practical_237_2": 0.7689, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 3, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1.meta new file mode 100644 index 000000000..6d7e557a9 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/probe-nox-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:41:44Z +e5ea1b95afff8efd566c203272d8aaccb8af408445f49302ece1533179d982cf /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/probe-nox +208 MHz, [N/A], 48, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2.json new file mode 100644 index 000000000..7b087b41a --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 2, "warps": 8, "depth": 5, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.904, "min_us": 3.616}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 29504, "min_ns": 23552, "gbs": 83.30, "of_spec_273": 0.3051, "of_practical_237_2": 0.3512, "minus_floor_ns": 25600, "minus_floor_gbs": 96.00, "minus_floor_of_spec_273": 0.3516, "minus_floor_of_practical_237_2": 0.4047, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 22496, "min_ns": 16288, "gbs": 72.83, "of_spec_273": 0.2668, "of_practical_237_2": 0.3070, "minus_floor_ns": 18592, "minus_floor_gbs": 88.12, "minus_floor_of_spec_273": 0.3228, "minus_floor_of_practical_237_2": 0.3715, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 65536, "min_ns": 32416, "gbs": 135.00, "of_spec_273": 0.4945, "of_practical_237_2": 0.5691, "minus_floor_ns": 61632, "minus_floor_gbs": 143.55, "minus_floor_of_spec_273": 0.5258, "minus_floor_of_practical_237_2": 0.6052, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 35712, "min_ns": 25344, "gbs": 123.87, "of_spec_273": 0.4537, "of_practical_237_2": 0.5222, "minus_floor_ns": 31808, "minus_floor_gbs": 139.07, "minus_floor_of_spec_273": 0.5094, "minus_floor_of_practical_237_2": 0.5863, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2.meta new file mode 100644 index 000000000..645387914 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/rows-2.meta @@ -0,0 +1,5 @@ +2026-10-16T02:12:37Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +260 MHz, [N/A], 38, 4 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/run-cam.sh b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/run-cam.sh new file mode 100755 index 000000000..cc2de6284 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/run-cam.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# diagnostic wrapper: run-one.sh with the camera csv prefix set to the run name +set -u +D=/home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed +name=$1; shift +export KT1_DIAG_PREFIX="$D/runs/$name" +nvidia-smi --query-gpu=timestamp,clocks.sm,temperature.gpu,utilization.gpu,power.draw --format=csv,noheader -lms 20 > "$D/runs/$name-smi.csv" 2>&1 & +smi=$! +"$D/run-one.sh" "$name" "$@" +rc=$? +kill $smi 2>/dev/null; wait $smi 2>/dev/null +exit $rc diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/run-one.sh b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/run-one.sh new file mode 100755 index 000000000..f677be534 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/run-one.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -u +D=/home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed +name=$1; bin=$2; shift 2 +out="$D/runs/$name" +test ! -e "$out.json" || exit 2 +{ date -u +%FT%TZ; sha256sum "$bin"; nvidia-smi --query-gpu=clocks.sm,clocks.mem,temperature.gpu,utilization.gpu --format=csv,noheader; } > "$out.meta" +"$bin" --mutant 2 --no-bw --out "$out-negative.json" > "$out-negative.log" 2>&1 +neg=$? +echo "negative_exit=$neg" >> "$out.meta" +[ "$neg" = 1 ] && jq -e '.forced_mutant_2_differing > 0' "$out-negative.json" >/dev/null || exit 3 +"$bin" --bw-only --reps 5 "$@" --out "$out.json" > "$out.log" 2>&1 +rc=$? +echo "exit=$rc" >> "$out.meta" +jq -c '{floor:.launch_floor_in_list, cold:[.cold[]? | {n,k,median_ns,minus_floor_of_practical_237_2,pass}]}' "$out.json" +echo "$name exit=$rc negative=$neg" diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1.json new file mode 100644 index 000000000..55b27d19e --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.456, "min_us": 3.264}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 24288, "min_ns": 19680, "gbs": 101.19, "of_spec_273": 0.3706, "of_practical_237_2": 0.4266, "minus_floor_ns": 20832, "minus_floor_gbs": 117.97, "minus_floor_of_spec_273": 0.4321, "minus_floor_of_practical_237_2": 0.4974, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15776, "min_ns": 13952, "gbs": 103.85, "of_spec_273": 0.3804, "of_practical_237_2": 0.4378, "minus_floor_ns": 12320, "minus_floor_gbs": 132.99, "minus_floor_of_spec_273": 0.4871, "minus_floor_of_practical_237_2": 0.5607, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 55232, "min_ns": 34624, "gbs": 160.19, "of_spec_273": 0.5868, "of_practical_237_2": 0.6753, "minus_floor_ns": 51776, "minus_floor_gbs": 170.88, "minus_floor_of_spec_273": 0.6259, "minus_floor_of_practical_237_2": 0.7204, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29280, "min_ns": 25792, "gbs": 151.08, "of_spec_273": 0.5534, "of_practical_237_2": 0.6369, "minus_floor_ns": 25824, "minus_floor_gbs": 171.30, "minus_floor_of_spec_273": 0.6275, "minus_floor_of_practical_237_2": 0.7222, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1.meta new file mode 100644 index 000000000..56d755752 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/shared-output-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:16:11Z +c2f824b57489d44ed14b5c8e822676bae6545d143632a91fd660d1ab1abc63b5 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/shared-output +208 MHz, [N/A], 38, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1.json new file mode 100644 index 000000000..687f83b47 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.456, "min_us": 3.200}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 24576, "min_ns": 20544, "gbs": 100.00, "of_spec_273": 0.3663, "of_practical_237_2": 0.4216, "minus_floor_ns": 21120, "minus_floor_gbs": 116.36, "minus_floor_of_spec_273": 0.4262, "minus_floor_of_practical_237_2": 0.4906, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16192, "min_ns": 13728, "gbs": 101.19, "of_spec_273": 0.3706, "of_practical_237_2": 0.4266, "minus_floor_ns": 12736, "minus_floor_gbs": 128.64, "minus_floor_of_spec_273": 0.4712, "minus_floor_of_practical_237_2": 0.5423, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 51904, "min_ns": 32000, "gbs": 170.46, "of_spec_273": 0.6244, "of_practical_237_2": 0.7186, "minus_floor_ns": 48448, "minus_floor_gbs": 182.62, "minus_floor_of_spec_273": 0.6689, "minus_floor_of_practical_237_2": 0.7699, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29472, "min_ns": 24288, "gbs": 150.10, "of_spec_273": 0.5498, "of_practical_237_2": 0.6328, "minus_floor_ns": 26016, "minus_floor_gbs": 170.04, "minus_floor_of_spec_273": 0.6228, "minus_floor_of_practical_237_2": 0.7169, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1.meta new file mode 100644 index 000000000..f187ea027 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/stamps-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:16:35Z +8032b98b675322d9063fc149b423490b95917d9f48923b86ac89fee5d0ea4dcc /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/stamps +208 MHz, [N/A], 39, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/store-fix-only-main.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/store-fix-only-main.log new file mode 100644 index 000000000..b232c435c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/store-fix-only-main.log @@ -0,0 +1,17 @@ +chip: random rows 20000, rows differing from oma_rz_oracle 0 +chip: MA grid 36 points (49932 rows), rows differing 0 +chip: BitNet shapes x 2 layouts, rows differing 0 +chip: rows checked against oma_rz_oracle 115500 +chip: mutant 1 caught (512 of 512 rows differ from oma_rz_oracle) +chip: mutant 3 caught (511 of 512 rows differ from oma_rz_oracle) +chip: f32 q|k|v segments, rows differing from the host formula 0 +chip: mutant 2 caught (1919 of 3840 rows take the wrong scale) +chip: in-list launch floor (8 x 256, 512 B) median 3.42 us, min 3.33 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 15.58 us per launch -> 157.7 GB/s = 0.578 of 273 spec, 0.665 of 237.2 practical; minus the launch floor 12.16 us -> 202.1 GB/s (0.852 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 12.93 us per launch -> 126.7 GB/s = 0.464 of 273 spec, 0.534 of 237.2 practical; minus the launch floor 9.50 us -> 172.4 GB/s (0.727 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 172.4 (126.7 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 41.79 us per launch -> 211.7 GB/s = 0.775 of 273 spec, 0.892 of 237.2 practical; minus the launch floor 38.37 us -> 230.6 GB/s (0.972 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 24.61 us per launch -> 179.8 GB/s = 0.658 of 273 spec, 0.758 of 237.2 practical; minus the launch floor 21.18 us -> 208.8 GB/s (0.880 of 237.2) +receipt: /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/evidence-store-fix/receipt-main.json +gpu_tern_test: 68 checks, 1 failed: FAIL +main exit 1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1.json new file mode 100644 index 000000000..b3e0c4b55 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.968, "min_us": 3.648}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 33760, "min_ns": 28320, "gbs": 72.80, "of_spec_273": 0.2667, "of_practical_237_2": 0.3069, "minus_floor_ns": 29792, "minus_floor_gbs": 82.49, "minus_floor_of_spec_273": 0.3022, "minus_floor_of_practical_237_2": 0.3478, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 25984, "min_ns": 20032, "gbs": 63.05, "of_spec_273": 0.2310, "of_practical_237_2": 0.2658, "minus_floor_ns": 22016, "minus_floor_gbs": 74.42, "minus_floor_of_spec_273": 0.2726, "minus_floor_of_practical_237_2": 0.3137, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 61824, "min_ns": 38624, "gbs": 143.11, "of_spec_273": 0.5242, "of_practical_237_2": 0.6033, "minus_floor_ns": 57856, "minus_floor_gbs": 152.92, "minus_floor_of_spec_273": 0.5601, "minus_floor_of_practical_237_2": 0.6447, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 39456, "min_ns": 29472, "gbs": 112.12, "of_spec_273": 0.4107, "of_practical_237_2": 0.4727, "minus_floor_ns": 35488, "minus_floor_gbs": 124.65, "minus_floor_of_spec_273": 0.4566, "minus_floor_of_practical_237_2": 0.5255, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1.meta new file mode 100644 index 000000000..e3d1ed81c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:32:09Z +ea57bbba1c69f6e318cb36b60f058ae23bbcf61f1152d84ddbf764424d740b32 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/timeline +208 MHz, [N/A], 43, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot.json new file mode 100644 index 000000000..b013a898d --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.808, "min_us": 3.648}, + "hot_diagnostic": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 27168, "min_ns": 22624, "gbs": 90.46, "of_spec_273": 0.3314, "of_practical_237_2": 0.3814, "minus_floor_ns": 23360, "minus_floor_gbs": 105.21, "minus_floor_of_spec_273": 0.3854, "minus_floor_of_practical_237_2": 0.4435, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 24992, "min_ns": 19840, "gbs": 65.56, "of_spec_273": 0.2401, "of_practical_237_2": 0.2764, "minus_floor_ns": 21184, "minus_floor_gbs": 77.34, "minus_floor_of_spec_273": 0.2833, "minus_floor_of_practical_237_2": 0.3261, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 36544, "min_ns": 31840, "gbs": 242.10, "of_spec_273": 0.8868, "of_practical_237_2": 1.0207, "minus_floor_ns": 32736, "minus_floor_gbs": 270.26, "minus_floor_of_spec_273": 0.9900, "minus_floor_of_practical_237_2": 1.1394, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 30080, "min_ns": 25216, "gbs": 147.06, "of_spec_273": 0.5387, "of_practical_237_2": 0.6200, "minus_floor_ns": 26272, "minus_floor_gbs": 168.38, "minus_floor_of_spec_273": 0.6168, "minus_floor_of_practical_237_2": 0.7099, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 5, "failed": 0, "verdict": "PASS" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot.meta new file mode 100644 index 000000000..c10b78684 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-hot.meta @@ -0,0 +1,5 @@ +2026-10-16T02:32:11Z +ea57bbba1c69f6e318cb36b60f058ae23bbcf61f1152d84ddbf764424d740b32 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/timeline +279 MHz, [N/A], 43, 0 % +negative_exit=1 +exit=0 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1.json new file mode 100644 index 000000000..7e55654bc --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.488, "min_us": 3.296}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 24032, "min_ns": 20672, "gbs": 102.26, "of_spec_273": 0.3746, "of_practical_237_2": 0.4311, "minus_floor_ns": 20544, "minus_floor_gbs": 119.63, "minus_floor_of_spec_273": 0.4382, "minus_floor_of_practical_237_2": 0.5043, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 15296, "min_ns": 13760, "gbs": 107.11, "of_spec_273": 0.3924, "of_practical_237_2": 0.4516, "minus_floor_ns": 11808, "minus_floor_gbs": 138.75, "minus_floor_of_spec_273": 0.5083, "minus_floor_of_practical_237_2": 0.5850, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 51264, "min_ns": 31424, "gbs": 172.58, "of_spec_273": 0.6322, "of_practical_237_2": 0.7276, "minus_floor_ns": 47776, "minus_floor_gbs": 185.18, "minus_floor_of_spec_273": 0.6783, "minus_floor_of_practical_237_2": 0.7807, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 31520, "min_ns": 29408, "gbs": 140.35, "of_spec_273": 0.5141, "of_practical_237_2": 0.5917, "minus_floor_ns": 28032, "minus_floor_gbs": 157.81, "minus_floor_of_spec_273": 0.5781, "minus_floor_of_practical_237_2": 0.6653, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1.meta new file mode 100644 index 000000000..e12634977 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/timeline-nostore-1.meta @@ -0,0 +1,5 @@ +2026-10-16T02:39:03Z +c5f7d679de4a0e5b3caeda59f7b259f70c59cff339268688c4bc1cfead801d23 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/timeline-nostore +208 MHz, [N/A], 49, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16.json new file mode 100644 index 000000000..ab1930969 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 16, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.488, "min_us": 3.200}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 24416, "min_ns": 19360, "gbs": 100.66, "of_spec_273": 0.3687, "of_practical_237_2": 0.4243, "minus_floor_ns": 20928, "minus_floor_gbs": 117.43, "minus_floor_of_spec_273": 0.4302, "minus_floor_of_practical_237_2": 0.4951, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 16544, "min_ns": 13504, "gbs": 99.03, "of_spec_273": 0.3628, "of_practical_237_2": 0.4175, "minus_floor_ns": 13056, "minus_floor_gbs": 125.49, "minus_floor_of_spec_273": 0.4597, "minus_floor_of_practical_237_2": 0.5290, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 60992, "min_ns": 47584, "gbs": 145.06, "of_spec_273": 0.5313, "of_practical_237_2": 0.6115, "minus_floor_ns": 57504, "minus_floor_gbs": 153.86, "minus_floor_of_spec_273": 0.5636, "minus_floor_of_practical_237_2": 0.6486, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 29984, "min_ns": 27072, "gbs": 147.53, "of_spec_273": 0.5404, "of_practical_237_2": 0.6220, "minus_floor_ns": 26496, "minus_floor_gbs": 166.96, "minus_floor_of_spec_273": 0.6116, "minus_floor_of_practical_237_2": 0.7039, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16.meta new file mode 100644 index 000000000..94b8cdd0a --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-16.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:37Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +208 MHz, [N/A], 39, 5 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4-negative.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4-negative.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4-negative.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4.json new file mode 100644 index 000000000..418dc6aa7 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 4, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.584, "min_us": 3.136}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 29312, "min_ns": 23680, "gbs": 83.84, "of_spec_273": 0.3071, "of_practical_237_2": 0.3535, "minus_floor_ns": 25728, "minus_floor_gbs": 95.52, "minus_floor_of_spec_273": 0.3499, "minus_floor_of_practical_237_2": 0.4027, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 24576, "min_ns": 20736, "gbs": 66.67, "of_spec_273": 0.2442, "of_practical_237_2": 0.2811, "minus_floor_ns": 20992, "minus_floor_gbs": 78.05, "minus_floor_of_spec_273": 0.2859, "minus_floor_of_practical_237_2": 0.3290, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 61056, "min_ns": 56672, "gbs": 144.91, "of_spec_273": 0.5308, "of_practical_237_2": 0.6109, "minus_floor_ns": 57472, "minus_floor_gbs": 153.94, "minus_floor_of_spec_273": 0.5639, "minus_floor_of_practical_237_2": 0.6490, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 39296, "min_ns": 35712, "gbs": 112.57, "of_spec_273": 0.4124, "of_practical_237_2": 0.4746, "minus_floor_ns": 35712, "minus_floor_gbs": 123.87, "minus_floor_of_spec_273": 0.4537, "minus_floor_of_practical_237_2": 0.5222, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false} + ], + "checks": 9, "failed": 4, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4.meta b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4.meta new file mode 100644 index 000000000..b6a7468bc --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/investigation/warps-4.meta @@ -0,0 +1,5 @@ +2026-10-16T02:10:36Z +c31927d7750f944bbed204477b55cda572880eee5793d8b4c6154829875395e8 /home/drakestapleton/workspace/investigations/2026-10-16-kt1-speed/baseline +260 MHz, [N/A], 40, 0 % +negative_exit=1 +exit=1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/launch-cost.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/launch-cost.log new file mode 100644 index 000000000..ea15015fa --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/launch-cost.log @@ -0,0 +1,63 @@ +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=163.7 per_launch_us=168.7 first_launch_us=163.7 elapsed_us=168.7 GB/s=199.0 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=219.8 per_launch_us=112.3 first_launch_us=89.1 elapsed_us=224.7 GB/s=149.4 fixed_per_extra_launch_us=56.02 +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=278.1 per_launch_us=70.8 first_launch_us=62.3 elapsed_us=283.1 GB/s=118.6 fixed_per_extra_launch_us=38.13 +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=373.6 per_launch_us=47.3 first_launch_us=44.7 elapsed_us=378.6 GB/s=88.7 fixed_per_extra_launch_us=29.99 +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=599.5 per_launch_us=37.8 first_launch_us=46.0 elapsed_us=604.4 GB/s=55.5 fixed_per_extra_launch_us=29.05 +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=153.1 per_launch_us=158.1 first_launch_us=153.1 elapsed_us=158.1 GB/s=212.2 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=188.8 per_launch_us=98.3 first_launch_us=97.1 elapsed_us=196.6 GB/s=170.7 fixed_per_extra_launch_us=38.50 +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=260.1 per_launch_us=66.3 first_launch_us=63.7 elapsed_us=265.2 GB/s=126.6 fixed_per_extra_launch_us=35.68 +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=385.9 per_launch_us=48.9 first_launch_us=48.4 elapsed_us=390.9 GB/s=85.9 fixed_per_extra_launch_us=33.25 +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=605.8 per_launch_us=38.2 first_launch_us=46.2 elapsed_us=610.7 GB/s=55.0 fixed_per_extra_launch_us=30.17 +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=163.4 per_launch_us=168.4 first_launch_us=163.4 elapsed_us=168.4 GB/s=199.3 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=192.1 per_launch_us=98.5 first_launch_us=100.9 elapsed_us=197.0 GB/s=170.4 fixed_per_extra_launch_us=28.62 +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=278.4 per_launch_us=70.9 first_launch_us=57.8 elapsed_us=283.4 GB/s=118.4 fixed_per_extra_launch_us=38.35 +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=374.2 per_launch_us=47.4 first_launch_us=45.9 elapsed_us=379.1 GB/s=88.5 fixed_per_extra_launch_us=30.11 +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=599.6 per_launch_us=37.8 first_launch_us=47.1 elapsed_us=604.5 GB/s=55.5 fixed_per_extra_launch_us=29.08 +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=161.0 per_launch_us=165.6 first_launch_us=161.0 elapsed_us=165.6 GB/s=202.7 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=194.3 per_launch_us=99.6 first_launch_us=93.4 elapsed_us=199.2 GB/s=168.5 fixed_per_extra_launch_us=33.62 +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=269.4 per_launch_us=68.6 first_launch_us=61.4 elapsed_us=274.3 GB/s=122.4 fixed_per_extra_launch_us=36.21 +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=389.4 per_launch_us=49.3 first_launch_us=49.3 elapsed_us=394.2 GB/s=85.1 fixed_per_extra_launch_us=32.65 +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=602.0 per_launch_us=37.9 first_launch_us=47.7 elapsed_us=606.9 GB/s=55.3 fixed_per_extra_launch_us=29.42 +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=204.0 first_launch_us=0.0 elapsed_us=204.0 GB/s=164.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=82.0 first_launch_us=0.0 elapsed_us=164.0 GB/s=204.6 fixed_per_extra_launch_us=-40.02 +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=50.2 first_launch_us=0.0 elapsed_us=200.6 GB/s=167.3 fixed_per_extra_launch_us=-1.13 +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=28.3 first_launch_us=0.0 elapsed_us=226.6 GB/s=148.1 fixed_per_extra_launch_us=3.23 +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=14.1 first_launch_us=0.0 elapsed_us=226.3 GB/s=148.3 fixed_per_extra_launch_us=1.48 +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=148.9 per_launch_us=153.8 first_launch_us=148.9 elapsed_us=153.8 GB/s=218.2 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=194.9 per_launch_us=99.9 first_launch_us=102.4 elapsed_us=199.9 GB/s=167.9 fixed_per_extra_launch_us=46.10 +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=247.6 per_launch_us=63.1 first_launch_us=58.6 elapsed_us=252.4 GB/s=132.9 fixed_per_extra_launch_us=32.89 +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=391.9 per_launch_us=49.7 first_launch_us=56.3 elapsed_us=397.4 GB/s=84.5 fixed_per_extra_launch_us=34.80 +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=644.4 per_launch_us=40.6 first_launch_us=46.6 elapsed_us=649.5 GB/s=51.7 fixed_per_extra_launch_us=33.04 +ok: negative control: dropped launch 1 named by submit (rc -1, first_missing 1) +gpu_launch_cost_test: 31 checks, 0 failed: PASS +launch-cost exit 0 (recorded) diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/main.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/main.log new file mode 100644 index 000000000..0509365ef --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/main.log @@ -0,0 +1,17 @@ +chip: random rows 20000, rows differing from oma_rz_oracle 0 +chip: MA grid 36 points (49932 rows), rows differing 0 +chip: BitNet shapes x 2 layouts, rows differing 0 +chip: rows checked against oma_rz_oracle 115500 +chip: mutant 1 caught (512 of 512 rows differ from oma_rz_oracle) +chip: mutant 3 caught (511 of 512 rows differ from oma_rz_oracle) +chip: f32 q|k|v segments, rows differing from the host formula 0 +chip: mutant 2 caught (1919 of 3840 rows take the wrong scale) +chip: in-list launch floor (8 x 256, 512 B) median 3.74 us, min 3.46 us +chip: cold 3840x2560 (2457600 B x 41 launches = 96.1 MiB per list): 15.30 us per launch -> 160.7 GB/s = 0.589 of 273 spec, 0.677 of 237.2 practical; minus the launch floor 11.55 us -> 212.7 GB/s (0.897 of 237.2) +chip: cold 2560x2560 (1638400 B x 62 launches = 96.9 MiB per list): 13.34 us per launch -> 122.8 GB/s = 0.450 of 273 spec, 0.518 of 237.2 practical; minus the launch floor 9.60 us -> 170.7 GB/s (0.720 of 237.2) +FAIL: cold GB/s minus the launch floor at 2560x2560: 170.7 (122.8 with it), gate >= 180 +chip: cold 13824x2560 (8847360 B x 12 launches = 101.2 MiB per list): 42.59 us per launch -> 207.7 GB/s = 0.761 of 273 spec, 0.876 of 237.2 practical; minus the launch floor 38.85 us -> 227.7 GB/s (0.960 of 237.2) +chip: cold 2560x6912 (4423680 B x 23 launches = 97.0 MiB per list): 26.27 us per launch -> 168.4 GB/s = 0.617 of 273 spec, 0.710 of 237.2 practical; minus the launch floor 22.53 us -> 196.4 GB/s (0.828 of 237.2) +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-main.json +gpu_tern_test: 68 checks, 1 failed: FAIL +main exit 1 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-attn-20-5.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-attn-20-5.json new file mode 100644 index 000000000..ad0fe2893 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-attn-20-5.json @@ -0,0 +1 @@ +{"test":"gpu_decode_attn_test","q_heads":20,"kv_heads":5,"head_dim":128,"kernel_q_heads":32,"kernel_kv_heads":4,"reasons":["head layout fixed at 32 query / 4 KV heads (8 per KV head); asked 20 / 5 (4 per KV head)","fused q|k|v input fixed at 5120 words; the asked layout needs 3840","per-head q_norm / k_norm is built in (Qwen3); a model without QK norm needs a kernel without it"],"needed":"KT3 decode attention for this geometry","verdict":"REFUSED"} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-1.json new file mode 100644 index 000000000..eefd12082 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-1.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.680, "min_us": 3.488}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 16320, "min_ns": 15616, "gbs": 150.59, "of_spec_273": 0.5516, "of_practical_237_2": 0.6349, "minus_floor_ns": 12640, "minus_floor_gbs": 194.43, "minus_floor_of_spec_273": 0.7122, "minus_floor_of_practical_237_2": 0.8197, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13248, "min_ns": 12960, "gbs": 123.67, "of_spec_273": 0.4530, "of_practical_237_2": 0.5214, "minus_floor_ns": 9568, "minus_floor_gbs": 171.24, "minus_floor_of_spec_273": 0.6272, "minus_floor_of_practical_237_2": 0.7219, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 42720, "min_ns": 22848, "gbs": 207.10, "of_spec_273": 0.7586, "of_practical_237_2": 0.8731, "minus_floor_ns": 39040, "minus_floor_gbs": 226.62, "minus_floor_of_spec_273": 0.8301, "minus_floor_of_practical_237_2": 0.9554, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 26624, "min_ns": 22752, "gbs": 166.15, "of_spec_273": 0.6086, "of_practical_237_2": 0.7005, "minus_floor_ns": 22944, "minus_floor_gbs": 192.80, "minus_floor_of_spec_273": 0.7062, "minus_floor_of_practical_237_2": 0.8128, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-2.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-2.json new file mode 100644 index 000000000..dc4561ffd --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-2.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.840, "min_us": 3.456}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 15264, "min_ns": 14528, "gbs": 161.01, "of_spec_273": 0.5898, "of_practical_237_2": 0.6788, "minus_floor_ns": 11424, "minus_floor_gbs": 215.13, "minus_floor_of_spec_273": 0.7880, "minus_floor_of_practical_237_2": 0.9069, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13280, "min_ns": 13024, "gbs": 123.37, "of_spec_273": 0.4519, "of_practical_237_2": 0.5201, "minus_floor_ns": 9440, "minus_floor_gbs": 173.56, "minus_floor_of_spec_273": 0.6357, "minus_floor_of_practical_237_2": 0.7317, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 43040, "min_ns": 41760, "gbs": 205.56, "of_spec_273": 0.7530, "of_practical_237_2": 0.8666, "minus_floor_ns": 39200, "minus_floor_gbs": 225.70, "minus_floor_of_spec_273": 0.8267, "minus_floor_of_practical_237_2": 0.9515, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 28128, "min_ns": 25312, "gbs": 157.27, "of_spec_273": 0.5761, "of_practical_237_2": 0.6630, "minus_floor_ns": 24288, "minus_floor_gbs": 182.13, "minus_floor_of_spec_273": 0.6672, "minus_floor_of_practical_237_2": 0.7679, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-3.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-3.json new file mode 100644 index 000000000..30e62b7a8 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-3.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.712, "min_us": 3.424}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 15232, "min_ns": 14464, "gbs": 161.34, "of_spec_273": 0.5910, "of_practical_237_2": 0.6802, "minus_floor_ns": 11520, "minus_floor_gbs": 213.33, "minus_floor_of_spec_273": 0.7814, "minus_floor_of_practical_237_2": 0.8994, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13344, "min_ns": 12928, "gbs": 122.78, "of_spec_273": 0.4498, "of_practical_237_2": 0.5176, "minus_floor_ns": 9632, "minus_floor_gbs": 170.10, "minus_floor_of_spec_273": 0.6231, "minus_floor_of_practical_237_2": 0.7171, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 43232, "min_ns": 23040, "gbs": 204.65, "of_spec_273": 0.7496, "of_practical_237_2": 0.8628, "minus_floor_ns": 39520, "minus_floor_gbs": 223.87, "minus_floor_of_spec_273": 0.8200, "minus_floor_of_practical_237_2": 0.9438, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 25888, "min_ns": 20480, "gbs": 170.88, "of_spec_273": 0.6259, "of_practical_237_2": 0.7204, "minus_floor_ns": 22176, "minus_floor_gbs": 199.48, "minus_floor_of_spec_273": 0.7307, "minus_floor_of_practical_237_2": 0.8410, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-4.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-4.json new file mode 100644 index 000000000..9189fd2c7 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-4.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.616, "min_us": 3.392}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 15744, "min_ns": 15360, "gbs": 156.10, "of_spec_273": 0.5718, "of_practical_237_2": 0.6581, "minus_floor_ns": 12128, "minus_floor_gbs": 202.64, "minus_floor_of_spec_273": 0.7423, "minus_floor_of_practical_237_2": 0.8543, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13312, "min_ns": 13024, "gbs": 123.08, "of_spec_273": 0.4508, "of_practical_237_2": 0.5189, "minus_floor_ns": 9696, "minus_floor_gbs": 168.98, "minus_floor_of_spec_273": 0.6190, "minus_floor_of_practical_237_2": 0.7124, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 42112, "min_ns": 21888, "gbs": 210.09, "of_spec_273": 0.7696, "of_practical_237_2": 0.8857, "minus_floor_ns": 38496, "minus_floor_gbs": 229.83, "minus_floor_of_spec_273": 0.8419, "minus_floor_of_practical_237_2": 0.9689, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 25536, "min_ns": 21312, "gbs": 173.23, "of_spec_273": 0.6346, "of_practical_237_2": 0.7303, "minus_floor_ns": 21920, "minus_floor_gbs": 201.81, "minus_floor_of_spec_273": 0.7392, "minus_floor_of_practical_237_2": 0.8508, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-5.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-5.json new file mode 100644 index 000000000..4408f5b6c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-cold-5.json @@ -0,0 +1,14 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "launch_floor_in_list": {"median_us": 3.584, "min_us": 3.456}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 16192, "min_ns": 15520, "gbs": 151.78, "of_spec_273": 0.5560, "of_practical_237_2": 0.6399, "minus_floor_ns": 12608, "minus_floor_gbs": 194.92, "minus_floor_of_spec_273": 0.7140, "minus_floor_of_practical_237_2": 0.8218, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13376, "min_ns": 13088, "gbs": 122.49, "of_spec_273": 0.4487, "of_practical_237_2": 0.5164, "minus_floor_ns": 9792, "minus_floor_gbs": 167.32, "minus_floor_of_spec_273": 0.6129, "minus_floor_of_practical_237_2": 0.7054, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 43008, "min_ns": 22752, "gbs": 205.71, "of_spec_273": 0.7535, "of_practical_237_2": 0.8673, "minus_floor_ns": 39424, "minus_floor_gbs": 224.42, "minus_floor_of_spec_273": 0.8220, "minus_floor_of_practical_237_2": 0.9461, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 25376, "min_ns": 20704, "gbs": 174.33, "of_spec_273": 0.6386, "of_practical_237_2": 0.7349, "minus_floor_ns": 21792, "minus_floor_gbs": 203.00, "minus_floor_of_spec_273": 0.7436, "minus_floor_of_practical_237_2": 0.8558, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 9, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-launch-cost.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-launch-cost.json new file mode 100644 index 000000000..d15158037 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-launch-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":163680,"first_launch_ns":163680,"elapsed_ns":168673,"gbps":198.98,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi+inval_all","span_ns":219776,"first_launch_ns":89088,"elapsed_ns":224690,"gbps":149.37,"fixed_per_extra_launch_us":56.02,"identical":1},{"m":4,"barrier":"wfi+inval_all","span_ns":278144,"first_launch_ns":62304,"elapsed_ns":283074,"gbps":118.56,"fixed_per_extra_launch_us":38.13,"identical":1},{"m":8,"barrier":"wfi+inval_all","span_ns":373568,"first_launch_ns":44736,"elapsed_ns":378595,"gbps":88.65,"fixed_per_extra_launch_us":29.99,"identical":1},{"m":16,"barrier":"wfi+inval_all","span_ns":599488,"first_launch_ns":46016,"elapsed_ns":604436,"gbps":55.53,"fixed_per_extra_launch_us":29.05,"identical":1},{"m":1,"barrier":"wfi_only","span_ns":153120,"first_launch_ns":153120,"elapsed_ns":158129,"gbps":212.25,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi_only","span_ns":188800,"first_launch_ns":97120,"elapsed_ns":196625,"gbps":170.69,"fixed_per_extra_launch_us":38.50,"identical":1},{"m":4,"barrier":"wfi_only","span_ns":260064,"first_launch_ns":63712,"elapsed_ns":265154,"gbps":126.58,"fixed_per_extra_launch_us":35.68,"identical":1},{"m":8,"barrier":"wfi_only","span_ns":385888,"first_launch_ns":48352,"elapsed_ns":390882,"gbps":85.86,"fixed_per_extra_launch_us":33.25,"identical":1},{"m":16,"barrier":"wfi_only","span_ns":605824,"first_launch_ns":46208,"elapsed_ns":610708,"gbps":54.96,"fixed_per_extra_launch_us":30.17,"identical":1},{"m":1,"barrier":"wfi+inval_data","span_ns":163424,"first_launch_ns":163424,"elapsed_ns":168385,"gbps":199.32,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi+inval_data","span_ns":192096,"first_launch_ns":100864,"elapsed_ns":197009,"gbps":170.36,"fixed_per_extra_launch_us":28.62,"identical":1},{"m":4,"barrier":"wfi+inval_data","span_ns":278432,"first_launch_ns":57760,"elapsed_ns":283426,"gbps":118.42,"fixed_per_extra_launch_us":38.35,"identical":1},{"m":8,"barrier":"wfi+inval_data","span_ns":374176,"first_launch_ns":45888,"elapsed_ns":379123,"gbps":88.53,"fixed_per_extra_launch_us":30.11,"identical":1},{"m":16,"barrier":"wfi+inval_data","span_ns":599552,"first_launch_ns":47072,"elapsed_ns":604533,"gbps":55.52,"fixed_per_extra_launch_us":29.08,"identical":1},{"m":1,"barrier":"flush_data","span_ns":160992,"first_launch_ns":160992,"elapsed_ns":165617,"gbps":202.65,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"flush_data","span_ns":194304,"first_launch_ns":93376,"elapsed_ns":199233,"gbps":168.46,"fixed_per_extra_launch_us":33.62,"identical":1},{"m":4,"barrier":"flush_data","span_ns":269376,"first_launch_ns":61440,"elapsed_ns":274258,"gbps":122.38,"fixed_per_extra_launch_us":36.21,"identical":1},{"m":8,"barrier":"flush_data","span_ns":389376,"first_launch_ns":49280,"elapsed_ns":394194,"gbps":85.14,"fixed_per_extra_launch_us":32.65,"identical":1},{"m":16,"barrier":"flush_data","span_ns":601952,"first_launch_ns":47712,"elapsed_ns":606932,"gbps":55.30,"fixed_per_extra_launch_us":29.42,"identical":1},{"m":1,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":204034,"gbps":164.50,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":164017,"gbps":204.63,"fixed_per_extra_launch_us":-40.02,"identical":1},{"m":4,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":200642,"gbps":167.28,"fixed_per_extra_launch_us":-1.13,"identical":1},{"m":8,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":226641,"gbps":148.09,"fixed_per_extra_launch_us":3.23,"identical":1},{"m":16,"barrier":"none","span_ns":0,"first_launch_ns":0,"elapsed_ns":226289,"gbps":148.32,"fixed_per_extra_launch_us":1.48,"identical":1},{"m":1,"barrier":"wfi+inval_all","span_ns":148864,"first_launch_ns":148864,"elapsed_ns":153793,"gbps":218.23,"fixed_per_extra_launch_us":0.00,"identical":1},{"m":2,"barrier":"wfi+inval_all","span_ns":194944,"first_launch_ns":102368,"elapsed_ns":199889,"gbps":167.91,"fixed_per_extra_launch_us":46.10,"identical":1},{"m":4,"barrier":"wfi+inval_all","span_ns":247616,"first_launch_ns":58560,"elapsed_ns":252450,"gbps":132.95,"fixed_per_extra_launch_us":32.89,"identical":1},{"m":8,"barrier":"wfi+inval_all","span_ns":391904,"first_launch_ns":56320,"elapsed_ns":397379,"gbps":84.46,"fixed_per_extra_launch_us":34.80,"identical":1},{"m":16,"barrier":"wfi+inval_all","span_ns":644416,"first_launch_ns":46624,"elapsed_ns":649461,"gbps":51.68,"fixed_per_extra_launch_us":33.04,"identical":1}],"checks":31,"failed":0,"verdict":"PASS"} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-main.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-main.json new file mode 100644 index 000000000..664ca4e03 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-main.json @@ -0,0 +1,21 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 0, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "random_rows": {"rows": 20000, "differing": 0}, + "ma_grid": {"points": 36, "rows": 49932, "differing": 0}, + "bitnet_shapes": {"layouts": 2, "differing": 0}, + "mutant_1": {"rows": 512, "differing": 512, "caught": true}, + "mutant_3": {"rows": 512, "differing": 511, "caught": true}, + "f32_qkv": {"rows": 3840, "differing": 0}, + "mutant_2": {"rows": 3840, "differing": 1919, "caught": true}, + "launch_floor_in_list": {"median_us": 3.744, "min_us": 3.456}, + "cold": [ + {"n": 3840, "k": 2560, "bytes": 2457600, "copies": 41, "median_ns": 15296, "min_ns": 14752, "gbs": 160.67, "of_spec_273": 0.5885, "of_practical_237_2": 0.6774, "minus_floor_ns": 11552, "minus_floor_gbs": 212.74, "minus_floor_of_spec_273": 0.7793, "minus_floor_of_practical_237_2": 0.8969, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 2560, "bytes": 1638400, "copies": 62, "median_ns": 13344, "min_ns": 13024, "gbs": 122.78, "of_spec_273": 0.4498, "of_practical_237_2": 0.5176, "minus_floor_ns": 9600, "minus_floor_gbs": 170.67, "minus_floor_of_spec_273": 0.6252, "minus_floor_of_practical_237_2": 0.7195, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": false}, + {"n": 13824, "k": 2560, "bytes": 8847360, "copies": 12, "median_ns": 42592, "min_ns": 37760, "gbs": 207.72, "of_spec_273": 0.7609, "of_practical_237_2": 0.8757, "minus_floor_ns": 38848, "minus_floor_gbs": 227.74, "minus_floor_of_spec_273": 0.8342, "minus_floor_of_practical_237_2": 0.9601, "gate_gbs": 200, "gate_on": "minus_floor_gbs", "pass": true}, + {"n": 2560, "k": 6912, "bytes": 4423680, "copies": 23, "median_ns": 26272, "min_ns": 24352, "gbs": 168.38, "of_spec_273": 0.6168, "of_practical_237_2": 0.7099, "minus_floor_ns": 22528, "minus_floor_gbs": 196.36, "minus_floor_of_spec_273": 0.7193, "minus_floor_of_practical_237_2": 0.8278, "gate_gbs": 180, "gate_on": "minus_floor_gbs", "pass": true} + ], + "checks": 68, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant1.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant1.json new file mode 100644 index 000000000..abf7a7ab4 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant1.json @@ -0,0 +1,10 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 1, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "random_rows": {"rows": 20000, "differing": 19999}, + "ma_grid": {"points": 36, "rows": 49932, "differing": 49925}, + "bitnet_shapes": {"layouts": 2, "differing": 45566}, + "checks": 55, "failed": 55, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant2.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant2.json new file mode 100644 index 000000000..a2f51e015 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant2.json @@ -0,0 +1,8 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 2, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "forced_mutant_2_differing": 1919, + "checks": 1, "failed": 1, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant3.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant3.json new file mode 100644 index 000000000..3d1c97427 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant3.json @@ -0,0 +1,10 @@ +{ + "test": "gpu_tern_test", + "stage": "TERN-T0 KT1", + "mutant_forced": 3, + "shape_k2560": {"layout": 0, "rows": 1, "warps": 8, "depth": 10, "ctas": 160}, + "random_rows": {"rows": 20000, "differing": 19992}, + "ma_grid": {"points": 36, "rows": 49932, "differing": 49905}, + "bitnet_shapes": {"layouts": 2, "differing": 45542}, + "checks": 55, "failed": 55, "verdict": "FAIL" +} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-table-bf16.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-table-bf16.json new file mode 100644 index 000000000..58301d8c4 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-table-bf16.json @@ -0,0 +1 @@ +{"receipt":"OMEGA_GPU_BF16_GEMV_V1","n":128256,"k":2560,"reps":20,"evict":1,"spin_us":2000,"points":[{"point":"parity","rows_bad":0,"worst_rel":2.087e-08,"argmax_chip":59784,"argmax_oracle":59784},{"point":"timing","rows":1,"warps":16,"depth":10,"ctas":96,"reps":20,"chip_median_ns":3031445,"call_median_ns":3126326,"weight_bytes":656670720,"chip_gbps":216.62,"call_gbps":210.05,"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/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-table-fp8.json b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-table-fp8.json new file mode 100644 index 000000000..19127102c --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-table-fp8.json @@ -0,0 +1 @@ +{"test":"OMEGA_GPU_FP8_GEMV","points":[{"name":"one-hot conversion","rc":"OK","exact_rows":256,"of":256},{"name":"custom 128256x2560","experts":1,"n":128256,"k":2560,"groups":1,"x_rows":1,"rc":"OK","bad":0,"worst_rel":3.338e-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":328415520,"upload_ms":140.62,"chip_median_ns":1530747,"gbps_chip":214.55,"call_median_ns":1609787,"gbps_call":204.01,"reps":20,"marker":1145324612,"evict":1},{"name":"custom 128256x2560 mutant 1","caught":1,"rc":"OK","bad":128246,"worst_rel":2.492e-01},{"name":"custom 128256x2560 mutant 2","caught":1,"rc":"OK","bad":128234,"worst_rel":2.130e-01},{"name":"custom 128256x2560 mutant 4","caught":1,"rc":"OK","bad":128246,"worst_rel":2.492e-01}],"checks":5,"failed":0,"device_opens":1,"verdict":"OMEGA_GPU_FP8_GEMV_PASS"} diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant1.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant1.log new file mode 100644 index 000000000..15401d4f0 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant1.log @@ -0,0 +1,62 @@ +FAIL: random tensor 0 (2000 x 16384, sparsity 0.378): 1999 rows differ from oma_rz_oracle +FAIL: random tensor 1 (2000 x 5120, sparsity 0.124): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 2 (2000 x 2048, sparsity 0.550): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 3 (2000 x 7168, sparsity 0.384): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 4 (2000 x 4096, sparsity 0.426): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 5 (2000 x 9216, sparsity 0.020): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 6 (2000 x 6144, sparsity 0.750): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 7 (2000 x 11264, sparsity 0.992): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 8 (2000 x 8192, sparsity 0.674): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 9 (2000 x 13312, sparsity 0.108): 2000 rows differ from oma_rz_oracle +chip: random rows 20000, rows differing from oma_rz_oracle 19999 +FAIL: MA grid width 1024 rows 1 sparsity 0.0: 1 rows differ +FAIL: MA grid width 1024 rows 1 sparsity 0.3: 1 rows differ +FAIL: MA grid width 1024 rows 1 sparsity 0.6: 1 rows differ +FAIL: MA grid width 1024 rows 1 sparsity 0.9: 1 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.0: 64 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.3: 64 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.6: 64 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.9: 64 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.0: 4095 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.3: 4095 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.6: 4095 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.9: 4095 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.0: 1 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.3: 1 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.6: 1 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.9: 1 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.0: 64 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.3: 64 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.6: 64 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.9: 64 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.0: 4096 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.3: 4096 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.6: 4095 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.9: 4095 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.0: 1 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.3: 1 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.6: 1 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.9: 1 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.0: 64 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.3: 64 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.6: 64 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.9: 64 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.0: 4095 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.3: 4096 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.6: 4096 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.9: 4096 rows differ +chip: MA grid 36 points (49932 rows), rows differing 49925 +FAIL: BitNet shape 3840x2560 layout 0: 3840 rows differ +FAIL: BitNet shape 2560x2560 layout 0: 2560 rows differ +FAIL: BitNet shape 13824x2560 layout 0: 13823 rows differ +FAIL: BitNet shape 2560x6912 layout 0: 2560 rows differ +FAIL: BitNet shape 3840x2560 layout 1: 3840 rows differ +FAIL: BitNet shape 2560x2560 layout 1: 2560 rows differ +FAIL: BitNet shape 13824x2560 layout 1: 13823 rows differ +FAIL: BitNet shape 2560x6912 layout 1: 2560 rows differ +chip: BitNet shapes x 2 layouts, rows differing 45566 +FAIL: extremes (|y| = 128 * 16384): OK, 32 rows differ +chip: rows checked against oma_rz_oracle 115500 +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant1.json +gpu_tern_test: 55 checks, 55 failed: FAIL +mutant 1 exit 1 (must be 1: FAIL) diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant2.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant2.log new file mode 100644 index 000000000..9074acd04 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant2.log @@ -0,0 +1,4 @@ +FAIL: f32 q|k|v with mutant 2 forced: OK, 1919 of 3840 rows differ from ((float)y * a) * scale[seg] +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant2.json +gpu_tern_test: 1 checks, 1 failed: FAIL +mutant 2 exit 1 (must be 1: FAIL) diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant3.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant3.log new file mode 100644 index 000000000..7b0663dfc --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/red-mutant3.log @@ -0,0 +1,62 @@ +FAIL: random tensor 0 (2000 x 16384, sparsity 0.378): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 1 (2000 x 5120, sparsity 0.124): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 2 (2000 x 2048, sparsity 0.550): 1998 rows differ from oma_rz_oracle +FAIL: random tensor 3 (2000 x 7168, sparsity 0.384): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 4 (2000 x 4096, sparsity 0.426): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 5 (2000 x 9216, sparsity 0.020): 1999 rows differ from oma_rz_oracle +FAIL: random tensor 6 (2000 x 6144, sparsity 0.750): 1997 rows differ from oma_rz_oracle +FAIL: random tensor 7 (2000 x 11264, sparsity 0.992): 1999 rows differ from oma_rz_oracle +FAIL: random tensor 8 (2000 x 8192, sparsity 0.674): 2000 rows differ from oma_rz_oracle +FAIL: random tensor 9 (2000 x 13312, sparsity 0.108): 1999 rows differ from oma_rz_oracle +chip: random rows 20000, rows differing from oma_rz_oracle 19992 +FAIL: MA grid width 1024 rows 1 sparsity 0.0: 1 rows differ +FAIL: MA grid width 1024 rows 1 sparsity 0.3: 1 rows differ +FAIL: MA grid width 1024 rows 1 sparsity 0.6: 1 rows differ +FAIL: MA grid width 1024 rows 1 sparsity 0.9: 1 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.0: 63 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.3: 64 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.6: 64 rows differ +FAIL: MA grid width 1024 rows 64 sparsity 0.9: 64 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.0: 4089 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.3: 4096 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.6: 4090 rows differ +FAIL: MA grid width 1024 rows 4096 sparsity 0.9: 4092 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.0: 1 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.3: 1 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.6: 1 rows differ +FAIL: MA grid width 4096 rows 1 sparsity 0.9: 1 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.0: 64 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.3: 64 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.6: 64 rows differ +FAIL: MA grid width 4096 rows 64 sparsity 0.9: 64 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.0: 4095 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.3: 4096 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.6: 4094 rows differ +FAIL: MA grid width 4096 rows 4096 sparsity 0.9: 4094 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.0: 1 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.3: 1 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.6: 1 rows differ +FAIL: MA grid width 16384 rows 1 sparsity 0.9: 1 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.0: 64 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.3: 64 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.6: 64 rows differ +FAIL: MA grid width 16384 rows 64 sparsity 0.9: 64 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.0: 4096 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.3: 4095 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.6: 4093 rows differ +FAIL: MA grid width 16384 rows 4096 sparsity 0.9: 4096 rows differ +chip: MA grid 36 points (49932 rows), rows differing 49905 +FAIL: BitNet shape 3840x2560 layout 0: 3836 rows differ +FAIL: BitNet shape 2560x2560 layout 0: 2560 rows differ +FAIL: BitNet shape 13824x2560 layout 0: 13816 rows differ +FAIL: BitNet shape 2560x6912 layout 0: 2559 rows differ +FAIL: BitNet shape 3840x2560 layout 1: 3836 rows differ +FAIL: BitNet shape 2560x2560 layout 1: 2560 rows differ +FAIL: BitNet shape 13824x2560 layout 1: 13816 rows differ +FAIL: BitNet shape 2560x6912 layout 1: 2559 rows differ +chip: BitNet shapes x 2 layouts, rows differing 45542 +FAIL: extremes (|y| = 128 * 16384): OK, 32 rows differ +chip: rows checked against oma_rz_oracle 115500 +receipt: evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/receipt-red-mutant3.json +gpu_tern_test: 55 checks, 55 failed: FAIL +mutant 3 exit 1 (must be 1: FAIL) diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/sim.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/sim.log new file mode 100644 index 000000000..1823bbbdd --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/sim.log @@ -0,0 +1,5 @@ +sim: 14 int32 points x 2 orders bit-equal to oma_rz_oracle (211018 warp issues) +sim: mutant 1 caught (16 of 16 rows differ) +sim: mutant 3 caught (16 of 16 rows differ) +sim: mutant 2 caught (24 of 48 rows take the wrong scale) +gpu_tern_test: 34 checks, 0 failed: PASS diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/table-bf16.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/table-bf16.log new file mode 100644 index 000000000..3fef4138d --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/table-bf16.log @@ -0,0 +1,10 @@ +upload 128256 x 2560 bf16 (657 MB): rc=OK 313 ms () +parity: 0 of 128256 rows differ from the f32 emulation (bit compare); worst error vs double oracle 2.09e-08 of the term scale (y 2.346); argmax chip 59784 oracle 59784 +second call: bit-identical +bf16-x entry: bit-identical to the emulation +timing (medians of 20, evict 1): rows 1 warps 16 depth 10 ctas 96: chip 3031.4 us = 216.6 GB/s on 657 MB; call 3126.3 us = 210.0 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 +table-bf16 exit 0 diff --git a/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/table-fp8.log b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/table-fp8.log new file mode 100644 index 000000000..91b4dece0 --- /dev/null +++ b/evidence/TERN-T0-KT1-SPEED-d58a46a0-20261016T0305Z/table-fp8.log @@ -0,0 +1,7 @@ +chip one-hot conversion: rc=OK 256/256 rows exact (subnormal codes 0x01..0x07 included: no flush to zero) +chip custom 128256x2560 variant=1 rc=OK bad=0 worst_rel=3.338e-08 grid=256x1 lb=16 rows=1 warps=8 depth=0 bytes=328415520 upload=140.6ms chip_med=1530.7us (214.5 GB/s) call_med=1609.8us (204.0 GB/s) reps=20 +chip custom 128256x2560 mutant 1: caught (rc=OK bad=128246 worst_rel=2.492e-01) +chip custom 128256x2560 mutant 2: caught (rc=OK bad=128234 worst_rel=2.130e-01) +chip custom 128256x2560 mutant 4: caught (rc=OK bad=128246 worst_rel=2.492e-01) +gpu_fp8_api_test: 5 checks, 0 failed: PASS +table-fp8 exit 0 diff --git a/evidence/TGEMM-CUT1-5b10b824/SHA256SUMS b/evidence/TGEMM-CUT1-5b10b824/SHA256SUMS new file mode 100644 index 000000000..6464a30a2 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/SHA256SUMS @@ -0,0 +1,12 @@ +edf6f8091f2369aa77659c17cb406a04eb3565d0eabaf807f6d81b99e137291a build.log +6b26f0221cbc10cd6e2668605eebcdbf04b1ec884c9ffc44687a9c57a20ce6f2 host-only.log +9f5d94811922b62f06605cfefe1e634092a3140b1b5ade153a3e19564d3d8d00 k50304.log +b4cdd71a7b4ef90a772cd2b500232d7167f7fa4f501757715b2558f1ce106a08 main.log +96afe3614b461111e57a63f29ec70b98ac5a5ae5c15c642cf30605421657d9a4 n2304.log +e82612c2d7427002bacebb779b7193b3b47425b9607367d6e5547c5e7ca8f741 peak.log +f2ad0847bc310fdb18b124e8d12d66d821933b5b1a6f00cb05f9cdba853ee616 peak-window1.log +14416b6d582df6562d1038e18e7ea77e6f08bf0fa18ecaf8c730b09f27f05953 rt2.log +710bdc08fcfb08adfaf566752e1c9219575f710d3708d2aab7447b2c7e469d95 sim.log +2c1c11249d9aae7d903c5fff98fa2292436d423f50dac91445e14d5f5bf4f36c warps8.log +bfbdaa6b61a5933fd2784c4417177b40da2d4dc2c8ba4942ac02a54af523bc1e device.txt +c9270adb061de9dbccaac44b77c8fd49827aa74040bfda7f8ccd50ebf8017739 yardstick.txt diff --git a/evidence/TGEMM-CUT1-5b10b824/build.log b/evidence/TGEMM-CUT1-5b10b824/build.log new file mode 100644 index 000000000..52d025796 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/build.log @@ -0,0 +1 @@ +make: 'build/gpu_tc_peak_test' is up to date. diff --git a/evidence/TGEMM-CUT1-5b10b824/device.txt b/evidence/TGEMM-CUT1-5b10b824/device.txt new file mode 100644 index 000000000..a82a6bcd7 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/device.txt @@ -0,0 +1,6 @@ +start 2026-10-16T02:52:13Z omega=5b10b82445c984ae91e3709bc2151a2ec9abde5c branch=train/tgemm-cut1 dirty=1 physics=/home/drakestapleton/workspace/physics-own30b-k 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, 208 MHz, 3003 MHz, 47 + total used free shared buff/cache available +Mem: 121 15 14 2 96 106 +end 2026-10-16T02:56:02Z diff --git a/evidence/TGEMM-CUT1-5b10b824/host-only.log b/evidence/TGEMM-CUT1-5b10b824/host-only.log new file mode 100644 index 000000000..37a71bb15 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/host-only.log @@ -0,0 +1,9 @@ +spec k 2304 n 768 rt 8 ct 2 warps 16 kc 32 aqn 1: built, 800 instructions, peak 125, declared 128, shared 16384 B -> fits (production) +spec k 768 n 3072 rt 8 ct 2 warps 16 kc 32 aqn 1: built, 800 instructions, peak 125, declared 128, shared 16384 B -> fits (production) +spec k 50304 n 768 rt 4 ct 2 warps 8 kc 32 aqn 1: built, 552 instructions, peak 93, declared 96, shared 8192 B -> fits (production) +spec k 768 n 2304 rt 4 ct 2 warps 16 kc 32 aqn 2: built, 527 instructions, peak 96, declared 104, shared 8192 B -> fits +spec k 768 n 768 rt 4 ct 2 warps 16 kc 32 aqn 1: built, 527 instructions, peak 92, declared 96, shared 8192 B -> fits +spec k 768 n 768 rt 4 ct 2 warps 8 kc 32 aqn 1: built, 552 instructions, peak 93, declared 96, shared 8192 B -> fits +spec k 768 n 768 rt 2 ct 2 warps 8 kc 32 aqn 1: built, 403 instructions, peak 76, declared 80, shared 4096 B -> fits +spec k 768 n 768 rt 8 ct 2 warps 8 kc 32 aqn 1: REFUSED, 0 instructions, peak 0, declared 8, shared 16384 B -> DOES NOT FIT +GPU_TGEMM: PASS diff --git a/evidence/TGEMM-CUT1-5b10b824/k50304.log b/evidence/TGEMM-CUT1-5b10b824/k50304.log new file mode 100644 index 000000000..43477833c --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/k50304.log @@ -0,0 +1,8 @@ +TGEMM 1024x768x50304 uncached rt 8 warps 16 tiles 8 grid_x 3: reference 0 of 786432 outside 1e-5 (worst 4.11e-06), 786432 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 34.4 s) +TGEMM 1024x768x50304 uncached: chip median 5.093 ms (min 5.054) = 15.53 TFLOPS = 13.2% of peak 117.26; whole call median 5.096 ms = 15.52 TFLOPS = 13.2% +TGEMM 1024x768x50304 mutant 4: caught +TGEMM 1024x768x50304 mutant 1: caught +TGEMM 1024x768x50304 cached rt 8 warps 16 tiles 8 grid_x 3: reference 0 of 786432 outside 1e-5 (worst 4.13e-06), 786432 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 33.6 s) +TGEMM 1024x768x50304 cached: chip median 2.498 ms (min 2.485) = 31.67 TFLOPS = 27.0% of peak 117.26; whole call median 2.499 ms = 31.66 TFLOPS = 27.0% +GPU_TGEMM: PASS +--shape 1024x768x50304 exit 0 (informational) diff --git a/evidence/TGEMM-CUT1-5b10b824/main.log b/evidence/TGEMM-CUT1-5b10b824/main.log new file mode 100644 index 000000000..60de933e1 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/main.log @@ -0,0 +1,26 @@ +TGEMM 8192x768x2304 uncached rt 8 warps 16 tiles 64 grid_x 3: reference 0 of 6291456 outside 1e-5 (worst 1.16e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 11.0 s) +TGEMM 8192x768x2304 uncached: chip median 1.715 ms (min 1.708) = 16.90 TFLOPS = 14.4% of peak 117.26; whole call median 1.722 ms = 16.84 TFLOPS = 14.4% +TGEMM 8192x768x2304 mutant 4: caught +TGEMM 8192x768x2304 mutant 1: caught +TGEMM 8192x768x2304 cached rt 8 warps 16 tiles 64 grid_x 3: reference 0 of 6291456 outside 1e-5 (worst 1.12e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 10.7 s) +TGEMM 8192x768x2304 cached: chip median 0.556 ms (min 0.554) = 52.15 TFLOPS = 44.5% of peak 117.26; whole call median 0.556 ms = 52.11 TFLOPS = 44.4% GATE ok +TGEMM 8192x768x768 uncached rt 8 warps 16 tiles 64 grid_x 3: reference 0 of 6291456 outside 1e-5 (worst 6.92e-07), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 3.8 s) +TGEMM 8192x768x768 uncached: chip median 0.519 ms (min 0.516) = 18.63 TFLOPS = 15.9% of peak 117.26; whole call median 0.519 ms = 18.61 TFLOPS = 15.9% +TGEMM 8192x768x768 mutant 4: caught +TGEMM 8192x768x768 mutant 1: caught +TGEMM 8192x768x768 cached rt 8 warps 16 tiles 64 grid_x 3: reference 0 of 6291456 outside 1e-5 (worst 7.32e-07), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 3.8 s) +TGEMM 8192x768x768 cached: chip median 0.277 ms (min 0.276) = 34.90 TFLOPS = 29.8% of peak 117.26; whole call median 0.277 ms = 34.83 TFLOPS = 29.7% GATE ok +TGEMM 8192x768x3072 uncached rt 8 warps 16 tiles 64 grid_x 3: reference 0 of 6291456 outside 1e-5 (worst 1.23e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 14.6 s) +TGEMM 8192x768x3072 uncached: chip median 2.328 ms (min 2.283) = 16.60 TFLOPS = 14.2% of peak 117.26; whole call median 2.337 ms = 16.54 TFLOPS = 14.1% +TGEMM 8192x768x3072 mutant 4: caught +TGEMM 8192x768x3072 mutant 1: caught +TGEMM 8192x768x3072 cached rt 8 warps 16 tiles 64 grid_x 3: reference 0 of 6291456 outside 1e-5 (worst 1.37e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 13.5 s) +TGEMM 8192x768x3072 cached: chip median 0.700 ms (min 0.697) = 55.20 TFLOPS = 47.1% of peak 117.26; whole call median 0.701 ms = 55.14 TFLOPS = 47.0% GATE ok +TGEMM 8192x3072x768 uncached rt 8 warps 16 tiles 64 grid_x 12: reference 0 of 25165824 outside 1e-5 (worst 7.27e-07), 25165824 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 16.4 s) +TGEMM 8192x3072x768 uncached: chip median 2.701 ms (min 2.654) = 14.31 TFLOPS = 12.2% of peak 117.26; whole call median 2.741 ms = 14.10 TFLOPS = 12.0% +TGEMM 8192x3072x768 mutant 4: caught +TGEMM 8192x3072x768 mutant 1: caught +TGEMM 8192x3072x768 cached rt 8 warps 16 tiles 64 grid_x 12: reference 0 of 25165824 outside 1e-5 (worst 7.22e-07), 25165824 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 15.9 s) +TGEMM 8192x3072x768 cached: chip median 1.011 ms (min 1.005) = 38.25 TFLOPS = 32.6% of peak 117.26; whole call median 1.011 ms = 38.23 TFLOPS = 32.6% GATE ok +GPU_TGEMM: PASS +GPU_TGEMM_CHIP: PASS diff --git a/evidence/TGEMM-CUT1-5b10b824/n2304.log b/evidence/TGEMM-CUT1-5b10b824/n2304.log new file mode 100644 index 000000000..9e6a90002 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/n2304.log @@ -0,0 +1,8 @@ +TGEMM 8192x2304x768 uncached rt 8 warps 16 tiles 64 grid_x 9: reference 0 of 18874368 outside 1e-5 (worst 7.14e-07), 18874368 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 12.0 s) +TGEMM 8192x2304x768 uncached: chip median 1.891 ms (min 1.876) = 15.33 TFLOPS = 13.1% of peak 117.26; whole call median 1.895 ms = 15.30 TFLOPS = 13.0% +TGEMM 8192x2304x768 mutant 4: caught +TGEMM 8192x2304x768 mutant 1: caught +TGEMM 8192x2304x768 cached rt 8 warps 16 tiles 64 grid_x 9: reference 0 of 18874368 outside 1e-5 (worst 7.65e-07), 18874368 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 12.2 s) +TGEMM 8192x2304x768 cached: chip median 0.703 ms (min 0.699) = 41.25 TFLOPS = 35.2% of peak 117.26; whole call median 0.704 ms = 41.21 TFLOPS = 35.1% +GPU_TGEMM: PASS +--shape 8192x2304x768 exit 0 (informational) diff --git a/evidence/TGEMM-CUT1-5b10b824/peak-window1.log b/evidence/TGEMM-CUT1-5b10b824/peak-window1.log new file mode 100644 index 000000000..d1aeb52dd --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/peak-window1.log @@ -0,0 +1,18 @@ +start 2026-10-16T02:15:08Z omega=c95ab6d43f5eda6ad7f7835c3e29fff46a9c07b9 branch=train/tgemm-cut1 dirty=0 +208 MHz, 3003 MHz, 37, 0 % +sim chains 8: ran, peak 48 registers, 93 instructions, 0 wrong +sim chains 16: ran, peak 80 registers, 165 instructions, 0 wrong +peak stall 8 chains 16 threads 128 ctas 192 (declared 88): median 1835.2 us, 112.34 TFLOPS, 0 wrong values +peak stall 4 chains 16 threads 128 ctas 192 (declared 88): median 1839.8 us, 112.06 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 128 ctas 192 (declared 88): median 2039.4 us, 101.09 TFLOPS, 0 wrong values +peak stall 2 chains 8 threads 128 ctas 192 (declared 56): median 1017.3 us, 101.33 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 256 ctas 192 (declared 88): median 3670.3 us, 112.34 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 128 ctas 384 (declared 88): median 3467.5 us, 118.91 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 512 ctas 96 (declared 88): median 4083.7 us, 100.97 TFLOPS, 0 wrong values +peak stall 4 chains 8 threads 256 ctas 384 (declared 56): median 3566.1 us, 115.62 TFLOPS, 0 wrong values +peak stall 1 chains 16 threads 256 ctas 384 (declared 88): median 6835.5 us, 120.64 TFLOPS, 0 wrong values +bw distinct bytes per CTA, 1024 KB per CTA, 384 CTAs: median 1738.5 us, 231.6 GB/s delivered (384 MB distinct), 0 wrong +bw SAME bytes for every CTA, 1024 KB per CTA, 384 CTAs: median 1438.3 us, 279.9 GB/s delivered (1 MB distinct), 0 wrong +bw distinct bytes per CTA, 256 KB per CTA, 384 CTAs: median 411.0 us, 244.9 GB/s delivered (96 MB distinct), 0 wrong +bw SAME bytes for every CTA, 256 KB per CTA, 384 CTAs: median 410.3 us, 245.3 GB/s delivered (0 MB distinct), 0 wrong +GPU_TC_PEAK: PASS diff --git a/evidence/TGEMM-CUT1-5b10b824/peak.log b/evidence/TGEMM-CUT1-5b10b824/peak.log new file mode 100644 index 000000000..6dc3c104e --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/peak.log @@ -0,0 +1,16 @@ +sim chains 8: ran, peak 48 registers, 93 instructions, 0 wrong +sim chains 16: ran, peak 80 registers, 165 instructions, 0 wrong +peak stall 8 chains 16 threads 128 ctas 192 (declared 88): median 1938.7 us, 106.34 TFLOPS, 0 wrong values +peak stall 4 chains 16 threads 128 ctas 192 (declared 88): median 1936.7 us, 106.45 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 128 ctas 192 (declared 88): median 1937.0 us, 106.43 TFLOPS, 0 wrong values +peak stall 2 chains 8 threads 128 ctas 192 (declared 56): median 978.5 us, 105.35 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 256 ctas 192 (declared 88): median 3672.0 us, 112.29 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 128 ctas 384 (declared 88): median 3554.4 us, 116.00 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 512 ctas 96 (declared 88): median 4278.6 us, 96.37 TFLOPS, 0 wrong values +peak stall 4 chains 8 threads 256 ctas 384 (declared 56): median 3565.7 us, 115.63 TFLOPS, 0 wrong values +peak stall 1 chains 16 threads 256 ctas 384 (declared 88): median 7032.5 us, 117.26 TFLOPS, 0 wrong values +bw distinct bytes per CTA, 1024 KB per CTA, 384 CTAs: median 1635.2 us, 246.2 GB/s delivered (384 MB distinct), 0 wrong +bw SAME bytes for every CTA, 1024 KB per CTA, 384 CTAs: median 1438.2 us, 280.0 GB/s delivered (1 MB distinct), 0 wrong +bw distinct bytes per CTA, 256 KB per CTA, 384 CTAs: median 409.6 us, 245.8 GB/s delivered (96 MB distinct), 0 wrong +bw SAME bytes for every CTA, 256 KB per CTA, 384 CTAs: median 410.0 us, 245.5 GB/s delivered (0 MB distinct), 0 wrong +GPU_TC_PEAK: PASS diff --git a/evidence/TGEMM-CUT1-5b10b824/rt2.log b/evidence/TGEMM-CUT1-5b10b824/rt2.log new file mode 100644 index 000000000..75889a229 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/rt2.log @@ -0,0 +1,5 @@ +shape 8192x768x2304 setup: CHIP_FAIL (m16_native_create_channel: RM_ALLOC class 0xcec0 status 0x51) +TGEMM 8192x768x2304 cached rt 2 warps 8 tiles 256 grid_x 6: reference 0 of 6291456 outside 1e-5 (worst 1.12e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 13.7 s) +TGEMM 8192x768x2304 cached: chip median 0.822 ms (min 0.818) = 35.28 TFLOPS = 30.1% of peak 117.26; whole call median 0.822 ms = 35.25 TFLOPS = 30.1% +GPU_TGEMM: FAIL +--shape 8192x768x2304 --shape-knob 2 8 1 exit 1 (informational) diff --git a/evidence/TGEMM-CUT1-5b10b824/sim.log b/evidence/TGEMM-CUT1-5b10b824/sim.log new file mode 100644 index 000000000..8faec3694 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/sim.log @@ -0,0 +1,15 @@ +sim case 0 (M 128 N 512 K 256 rt 4 warps 16 aqn 1 blocks 0..1) order 0: ran, 0 of 65536 differ +sim case 0 (M 128 N 512 K 256 rt 4 warps 16 aqn 1 blocks 0..1) order 1: ran, 0 of 65536 differ +sim case 0 mutant 1: caught +sim case 0 mutant 2: caught +sim case 0 mutant 3: caught +sim case 0 mutant 4: caught +sim case 1 (M 64 N 256 K 384 rt 2 warps 8 aqn 1 blocks 1..2) order 0: ran, 0 of 16384 differ +sim case 1 (M 64 N 256 K 384 rt 2 warps 8 aqn 1 blocks 1..2) order 1: ran, 0 of 16384 differ +sim case 2 (M 128 N 256 K 128 rt 4 warps 16 aqn 2 blocks 0..0) order 0: ran, 0 of 32768 differ +sim case 2 (M 128 N 256 K 128 rt 4 warps 16 aqn 2 blocks 0..0) order 1: ran, 0 of 32768 differ +sim case 3 (M 128 N 256 K 256 rt 4 warps 8 aqn 2 blocks 0..1) order 0: ran, 0 of 32768 differ +sim case 3 (M 128 N 256 K 256 rt 4 warps 8 aqn 2 blocks 0..1) order 1: ran, 0 of 32768 differ +sim case 4 (M 256 N 512 K 128 rt 8 warps 16 aqn 1 blocks 0..0) order 0: ran, 0 of 131072 differ +sim case 4 (M 256 N 512 K 128 rt 8 warps 16 aqn 1 blocks 0..0) order 1: ran, 0 of 131072 differ +GPU_TGEMM: PASS diff --git a/evidence/TGEMM-CUT1-5b10b824/warps8.log b/evidence/TGEMM-CUT1-5b10b824/warps8.log new file mode 100644 index 000000000..162f5f816 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/warps8.log @@ -0,0 +1,8 @@ +TGEMM 8192x768x2304 uncached rt 4 warps 8 tiles 128 grid_x 6: reference 0 of 6291456 outside 1e-5 (worst 1.16e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 12.4 s) +TGEMM 8192x768x2304 uncached: chip median 3.174 ms (min 3.132) = 9.14 TFLOPS = 7.8% of peak 117.26; whole call median 3.234 ms = 8.96 TFLOPS = 7.6% +TGEMM 8192x768x2304 mutant 4: caught +TGEMM 8192x768x2304 mutant 1: caught +TGEMM 8192x768x2304 cached rt 4 warps 8 tiles 128 grid_x 6: reference 0 of 6291456 outside 1e-5 (worst 1.12e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 12.9 s) +TGEMM 8192x768x2304 cached: chip median 0.664 ms (min 0.655) = 43.65 TFLOPS = 37.2% of peak 117.26; whole call median 0.665 ms = 43.59 TFLOPS = 37.2% +GPU_TGEMM: PASS +--shape 8192x768x2304 --shape-knob 4 8 1 exit 0 (informational) diff --git a/evidence/TGEMM-CUT1-5b10b824/yardstick.txt b/evidence/TGEMM-CUT1-5b10b824/yardstick.txt new file mode 100644 index 000000000..f06a97f74 --- /dev/null +++ b/evidence/TGEMM-CUT1-5b10b824/yardstick.txt @@ -0,0 +1 @@ +yardstick: bf16 HMMA dense peak 117.26 TFLOPS (best 'peak' line of peak.log) diff --git a/evidence/TGEMM-CUT1-FIX-403d5cf5/SHA256SUMS b/evidence/TGEMM-CUT1-FIX-403d5cf5/SHA256SUMS new file mode 100644 index 000000000..bfc838e60 --- /dev/null +++ b/evidence/TGEMM-CUT1-FIX-403d5cf5/SHA256SUMS @@ -0,0 +1,6 @@ +df0f5393b37f2289da43ab52d5847e328b5cf81d2c29cb34341ea09fdd81fe8d build.log +738ffc4ce041c175d6df20abc31974f0e5c0d89e0545a0ae608ae92185041cb3 n50304.log +de9f2a081e312c7f1c330815efae373612e2743f5ba0debbff75fad18364f1dd peak.log +78babe9837f429907aed330816fe1ccfe41939df1952bbb9830af46ea2c919e3 rt2.log +cebde958ba723d6d52905eac7e02153f5975074d1a83e1db4effb701f4b27005 device.txt +8e449b75ee90911a333252c5f5339722515d5d6dc51676a3ebe8dadeda894134 yardstick.txt diff --git a/evidence/TGEMM-CUT1-FIX-403d5cf5/build.log b/evidence/TGEMM-CUT1-FIX-403d5cf5/build.log new file mode 100644 index 000000000..5666d03e6 --- /dev/null +++ b/evidence/TGEMM-CUT1-FIX-403d5cf5/build.log @@ -0,0 +1,2 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-own30b-k/m16 -I/home/drakestapleton/workspace/physics-own30b-k/nvrm -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o build/gpu_tgemm_test tests/gpu_tgemm_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/physics-own30b-k/m16 -I/home/drakestapleton/workspace/physics-own30b-k/nvrm -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-own30b-k/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o build/gpu_tc_peak_test tests/gpu_tc_peak_test.c build/libomega_gpu.a -lpthread -lm diff --git a/evidence/TGEMM-CUT1-FIX-403d5cf5/device.txt b/evidence/TGEMM-CUT1-FIX-403d5cf5/device.txt new file mode 100644 index 000000000..c1ef92776 --- /dev/null +++ b/evidence/TGEMM-CUT1-FIX-403d5cf5/device.txt @@ -0,0 +1,4 @@ +start 2026-10-16T05:38:19Z omega=403d5cf594568204a37757e174bbb0cff5952e42 branch=train/tgemm-cut1 dirty=0 +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, 208 MHz, 3003 MHz, 44 +end 2026-10-16T05:39:44Z diff --git a/evidence/TGEMM-CUT1-FIX-403d5cf5/n50304.log b/evidence/TGEMM-CUT1-FIX-403d5cf5/n50304.log new file mode 100644 index 000000000..76ca3d1bb --- /dev/null +++ b/evidence/TGEMM-CUT1-FIX-403d5cf5/n50304.log @@ -0,0 +1,8 @@ +TGEMM 1024x50304x768 uncached rt 4 warps 8 tiles 16 grid_x 393: reference 0 of 51511296 outside 1e-5 (worst 7.79e-07), 51511296 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 30.0 s) +TGEMM 1024x50304x768 uncached: chip median 8.725 ms (min 8.585) = 9.07 TFLOPS = 7.5% of peak 120.16; whole call median 8.743 ms = 9.05 TFLOPS = 7.5% +TGEMM 1024x50304x768 mutant 4: caught +TGEMM 1024x50304x768 mutant 1: caught +TGEMM 1024x50304x768 cached rt 4 warps 8 tiles 16 grid_x 393: reference 0 of 51511296 outside 1e-5 (worst 7.42e-07), 51511296 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 30.2 s) +TGEMM 1024x50304x768 cached: chip median 6.962 ms (min 6.858) = 11.36 TFLOPS = 9.5% of peak 120.16; whole call median 6.963 ms = 11.36 TFLOPS = 9.5% +GPU_TGEMM: PASS +exit 0 (informational) diff --git a/evidence/TGEMM-CUT1-FIX-403d5cf5/peak.log b/evidence/TGEMM-CUT1-FIX-403d5cf5/peak.log new file mode 100644 index 000000000..249faf184 --- /dev/null +++ b/evidence/TGEMM-CUT1-FIX-403d5cf5/peak.log @@ -0,0 +1,16 @@ +sim chains 8: ran, peak 48 registers, 93 instructions, 0 wrong +sim chains 16: ran, peak 80 registers, 165 instructions, 0 wrong +peak stall 8 chains 16 threads 128 ctas 192 (declared 88): median 1938.6 us, 106.34 TFLOPS, 0 wrong values +peak stall 4 chains 16 threads 128 ctas 192 (declared 88): median 1930.0 us, 106.82 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 128 ctas 192 (declared 88): median 1856.2 us, 111.07 TFLOPS, 0 wrong values +peak stall 2 chains 8 threads 128 ctas 192 (declared 56): median 1005.4 us, 102.53 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 256 ctas 192 (declared 88): median 3641.6 us, 113.22 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 128 ctas 384 (declared 88): median 3486.8 us, 118.25 TFLOPS, 0 wrong values +peak stall 2 chains 16 threads 512 ctas 96 (declared 88): median 4036.1 us, 102.16 TFLOPS, 0 wrong values +peak stall 4 chains 8 threads 256 ctas 384 (declared 56): median 3552.4 us, 116.07 TFLOPS, 0 wrong values +peak stall 1 chains 16 threads 256 ctas 384 (declared 88): median 6863.0 us, 120.16 TFLOPS, 0 wrong values +bw distinct bytes per CTA, 1024 KB per CTA, 384 CTAs: median 1724.7 us, 233.5 GB/s delivered (384 MB distinct), 0 wrong +bw SAME bytes for every CTA, 1024 KB per CTA, 384 CTAs: median 1028.2 us, 391.6 GB/s delivered (1 MB distinct), 0 wrong +bw distinct bytes per CTA, 256 KB per CTA, 384 CTAs: median 409.6 us, 245.7 GB/s delivered (96 MB distinct), 0 wrong +bw SAME bytes for every CTA, 256 KB per CTA, 384 CTAs: median 422.8 us, 238.1 GB/s delivered (0 MB distinct), 0 wrong +GPU_TC_PEAK: PASS diff --git a/evidence/TGEMM-CUT1-FIX-403d5cf5/rt2.log b/evidence/TGEMM-CUT1-FIX-403d5cf5/rt2.log new file mode 100644 index 000000000..6389816fa --- /dev/null +++ b/evidence/TGEMM-CUT1-FIX-403d5cf5/rt2.log @@ -0,0 +1,8 @@ +TGEMM 8192x768x2304 uncached rt 2 warps 8 tiles 256 grid_x 6: reference 0 of 6291456 outside 1e-5 (worst 1.16e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 11.0 s) +TGEMM 8192x768x2304 uncached: chip median 5.385 ms (min 5.276) = 5.38 TFLOPS = 4.5% of peak 120.16; whole call median 5.390 ms = 5.38 TFLOPS = 4.5% +TGEMM 8192x768x2304 mutant 4: caught +TGEMM 8192x768x2304 mutant 1: caught +TGEMM 8192x768x2304 cached rt 2 warps 8 tiles 256 grid_x 6: reference 0 of 6291456 outside 1e-5 (worst 1.12e-06), 6291456 bit-identical to the emulation, repeats identical yes, poison left 0 (reference 10.8 s) +TGEMM 8192x768x2304 cached: chip median 0.807 ms (min 0.802) = 35.92 TFLOPS = 29.9% of peak 120.16; whole call median 0.808 ms = 35.89 TFLOPS = 29.9% +GPU_TGEMM: PASS +exit 0 (informational) diff --git a/evidence/TGEMM-CUT1-FIX-403d5cf5/yardstick.txt b/evidence/TGEMM-CUT1-FIX-403d5cf5/yardstick.txt new file mode 100644 index 000000000..8eea0d146 --- /dev/null +++ b/evidence/TGEMM-CUT1-FIX-403d5cf5/yardstick.txt @@ -0,0 +1 @@ +yardstick: bf16 HMMA dense peak 120.16 TFLOPS (best 'peak' line of peak.log) diff --git a/research/.crumb b/research/.crumb index df383ba0d..ed06bc6de 100644 --- a/research/.crumb +++ b/research/.crumb @@ -22,7 +22,7 @@ "children": [ { "digest": "fce91110a9847be58e4068fc9c24497369672f3f60ca6c7deb5b0699df0e045c", - "last_commit": "e0abd0b5", + "last_commit": "5901baa5", "name": "atemporal", "purpose": "AT-0 Clock-Free Universe research program: relational (Page-Wootters) quantum models with no ext" }, @@ -34,13 +34,13 @@ } ], "children_root": "sha256:47fde1e530a64eb6f5fbecb27fddf6335c32069f1acb4de243826d601361a138", - "compiled_at": "2026-10-14T01:16:48Z", + "compiled_at": "2026-10-22T14:49:25Z", "compiler": "crumb-compile/1", "digest": "sha256:eccc4aec1037ae222d6370836953732b031b8ed70de28967b7af7ca62c2abe0b", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 538, - "generated_at_commit": "e0abd0b524f5bf8e3ba6960b53868980bdd41b4e", + "generated_at_commit": "147b1d686412737e9d377a90dd6fa3b1e3fbd79f", "source_tree": "sha256:2c362ea1c5900e78486cbe9cfc017bd87b53ab97bd93317cd9be0efb6923d9ea" }, "owner_lane": "", diff --git a/research/atemporal/.crumb b/research/atemporal/.crumb index fc9132860..b5c4016eb 100644 --- a/research/atemporal/.crumb +++ b/research/atemporal/.crumb @@ -10,13 +10,13 @@ } ], "children_root": "sha256:f7bd1d7019a69ef57140cd019f86634f3cb80c1e31ca3063dfdf73ac9deef7c6", - "compiled_at": "2026-10-14T01:16:48Z", + "compiled_at": "2026-10-22T14:49:25Z", "compiler": "crumb-compile/1", "digest": "sha256:fce91110a9847be58e4068fc9c24497369672f3f60ca6c7deb5b0699df0e045c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 392, - "generated_at_commit": "e0abd0b524f5bf8e3ba6960b53868980bdd41b4e", + "generated_at_commit": "147b1d686412737e9d377a90dd6fa3b1e3fbd79f", "source_tree": "sha256:2bdda175595d2ff0ed4424af8e04f326e0c69c0bcac44151aa21771afd647cbe" } }, diff --git a/research/m15/spbm/.crumb b/research/m15/spbm/.crumb index 52b5fb51f..4be9d6d25 100644 --- a/research/m15/spbm/.crumb +++ b/research/m15/spbm/.crumb @@ -13,13 +13,13 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T21:46:29Z", + "compiled_at": "2026-10-22T14:49:25Z", "compiler": "crumb-compile/1", "digest": "sha256:baf4a6094854fe437a8880b2c90733bbf9048212af7f7b45381db4050d8e128c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 129, - "generated_at_commit": "2a6d6d7b9091bd2184b15dcde893035dbcca40d3", + "generated_at_commit": "147b1d686412737e9d377a90dd6fa3b1e3fbd79f", "source_tree": "sha256:4b183d9ff80e7d0e7c8ab2925b20c1a8072ffbfa3c6d14d3c1024c1796eb3f5c" }, "owner_lane": "", diff --git a/src/.crumb b/src/.crumb index 4fe5298a4..3fee33605 100644 --- a/src/.crumb +++ b/src/.crumb @@ -175,21 +175,21 @@ "purpose": "Directory src/turing. Purpose not yet described by a human." }, { - "digest": "daf5e5e90c1ccb4c089220a6545844dbe4078a233f1777e8145b74f1bf5dd5fe", - "last_commit": "40d1ea37", + "digest": "11575b0cfcbad20d6128d1b5c18a4bd691877ad970fba9f03b0df5665e3fb75f", + "last_commit": "31e40e29", "name": "visor", "purpose": "Directory src/visor. Purpose not yet described by a human." } ], - "children_root": "sha256:15012a017b26a269feb256b64875ece2912f5f82c57804baafa3777c4fcb80b9", - "compiled_at": "2026-10-16T07:33:43Z", + "children_root": "sha256:459a64f0de44cf81c971f79b917135b3979209dff1dc93842a816d413291ba41", + "compiled_at": "2026-10-22T19:04:33Z", "compiler": "crumb-compile/1", - "digest": "sha256:dfa36de2ac8649f66f80587abea51a7f166285ee0b92e0e09774c98689055250", + "digest": "sha256:0d836578d779b8de2cf573e7cbeb11cebabfff155b442bf97420c9a30e418cc4", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 537, - "generated_at_commit": "1d481ab853a14d3c11eff926ce1e25993085f76a", - "source_tree": "sha256:200c9243151691313acb5f86d3e9cb3058f1a1b92ece2a255b3340b691dfb894" + "files": 541, + "generated_at_commit": "0e96f97506f8599807622dda20c18db52c00c84e", + "source_tree": "sha256:6d6b42734198f1a8bf0e1818a3fe788dcc033f5363de3dff5e1c87f51e34900a" }, "owner_lane": "", "provenance": { diff --git a/src/omega_blackwell_codegen.c b/src/omega_blackwell_codegen.c index b09fa1e54..bcaddbf7a 100644 --- a/src/omega_blackwell_codegen.c +++ b/src/omega_blackwell_codegen.c @@ -380,13 +380,17 @@ static int encode_single_insn(const BlackwellIRInsn *insn, const OmegaRegAlloc * } break; - case BW_IR_LDG_E: - /* LDG.E Rd, desc[URd][Ra.64] */ + case BW_IR_LDG_E: { + /* LDG.E Rd, desc[URd][Ra.64+imm]: the 32-bit size (4) of the LDG.E.64 / LDG.E.128 words below; imm as there + * (signed 24-bit byte offset at bits 40..63, w[1] bits 8..31), unchanged words when imm is 0. */ + int32_t off = (int32_t)insn->imm; + if (off < -(1 << 23) || off >= (1 << 23)) return -1; w[0] = 0x7981 | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); - w[1] = (uint32_t)(ureg & 0xff); + w[1] = (uint32_t)(ureg & 0xff) | (((uint32_t)off & 0xffffffU) << 8); 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 @@ -529,6 +533,17 @@ static int encode_single_insn(const BlackwellIRInsn *insn, const OmegaRegAlloc * w[3] = insn->control ? insn->control : 0x00321e00; break; + case BW_IR_ATOMG_ADD_F32_STRONG_SYS: + case BW_IR_ATOMG_ADD_F32_STRONG_GPU: + /* ATOMG.E.ADD.F32.FTZ.RN.STRONG.{SYS,GPU} PT, Rd|RZ, desc[UR][Ra.64], Rb (omega_blackwell_verify_codegen_fixtures_atomf32). + * Float opcode 0x9a3; w2 bit 26 selects the desc[] form, type 9 (w2 bits 9..12) is F32.FTZ.RN, order (w2 bits + * 13..16) 0xa = SYS, 0x7 = GPU. No destination vreg encodes RZ (the generic default 0 would clobber R0). */ + w[0] = 0x79a3 | ((uint32_t)(insn->dst_vreg < 0 ? 0xff : (dst & 0xff)) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff) | 0x80000000u; + w[2] = (insn->op == BW_IR_ATOMG_ADD_F32_STRONG_GPU ? 0x0c1ef300u : 0x0c1f5300u) | (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); @@ -649,6 +664,24 @@ static int encode_single_insn(const BlackwellIRInsn *insn, const OmegaRegAlloc * w[3] = insn->control ? insn->control : 0x000e2400; break; + case BW_IR_SHFL_BFLY: + /* SHFL.BFLY PT, Rd, Ra, lane, 0x1f: SHFL.DOWN with bit 58 (w[1] bit 26) set + * (omega_blackwell_verify_codegen_fixtures_bfly_f2fp) */ + w[0] = 0x7f89U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = 0x0c001f00U | (((uint32_t)insn->imm & 0x1f) << 21); + w[2] = 0x000e0000; + w[3] = insn->control ? insn->control : 0x000e2400; + break; + + case BW_IR_F2FP_BF16_PACK: + /* F2FP.BF16.F32.PACK_AB Rd, Ra, Rb (omega_blackwell_verify_codegen_fixtures_bfly_f2fp). The default control + * is FMNMX's: the kernels emitted this as a patched FMNMX_MAX before R5 and their bytes must not move. */ + w[0] = 0x723eU | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); + w[1] = (uint32_t)(src2 & 0xff); + w[2] = 0x000010ff; + w[3] = insn->control ? insn->control : 0x004fc400; + break; + case BW_IR_LDS: /* LDS Rd, [Ra] */ w[0] = 0x7984U | ((uint32_t)(dst & 0xff) << 16) | ((uint32_t)(src1 & 0xff) << 24); @@ -963,6 +996,86 @@ int omega_blackwell_verify_codegen_fixtures_reconv(void) { return 0; } + +/* Training R5 (2026-10-15): golden words for SHFL.BFLY and F2FP.BF16.F32.PACK_AB, the two instructions the prefill + * kernels emitted as placeholders patched after encoding until R5. Oracle: nvcc 13.0.88 -arch=sm_121, cuobjdump -sass, + * sealed in evidence/OWN30B-T3-TC-PEAK-BW-5faa0f70-20261013T2236Z/fa_ops.{cu,sass} (low 64-bit word, then high; the top + * 23 bits of the high word are the control word and are not compared): + * SHFL.BFLY PT, R5, R0, 0x1, 0x1f ; 0x0c201f0000057f89 0x004e2800000e0000 + * SHFL.BFLY PT, R7, R8, 0x1, 0x1f ; 0x0c201f0008077f89 0x008e6200000e0000 + * SHFL.BFLY PT, R4, R9, 0x2, 0x1f ; 0x0c401f0009047f89 0x000e2800000e0000 + * SHFL.BFLY PT, R6, R11, 0x2, 0x1f ; 0x0c401f000b067f89 0x000e6200000e0000 + * F2FP.BF16.F32.PACK_AB R9, R3, R0 ; 0x000000000309723e 0x000fe200000010ff + * F2FP.BF16.F32.PACK_AB R13, R13, R10 ; 0x0000000a0d0d723e 0x000fe400000010ff + * SHFL.BFLY is SHFL.DOWN (oracle words in omega_numeric.c, lanes 16 .. 1) with bit 58 set (Mesa NAK mode field 58..59: Idx 0, + * Up 1, Down 2, Bfly 3; same lane field 53..57); the lane check below covers every lane 0 .. 31 against that rule. 0 = all good. */ +int omega_blackwell_verify_codegen_fixtures_bfly_f2fp(void) { + static const struct { + BlackwellIROpcode op; int d, a, b; uint32_t imm; uint32_t w0, w1, w2; const char *text; + } fx[] = { + { BW_IR_SHFL_BFLY, 5, 0, -1, 1, 0x00057f89U, 0x0c201f00U, 0x000e0000U, "SHFL.BFLY PT, R5, R0, 0x1, 0x1f" }, + { BW_IR_SHFL_BFLY, 7, 8, -1, 1, 0x08077f89U, 0x0c201f00U, 0x000e0000U, "SHFL.BFLY PT, R7, R8, 0x1, 0x1f" }, + { BW_IR_SHFL_BFLY, 4, 9, -1, 2, 0x09047f89U, 0x0c401f00U, 0x000e0000U, "SHFL.BFLY PT, R4, R9, 0x2, 0x1f" }, + { BW_IR_SHFL_BFLY, 6, 11, -1, 2, 0x0b067f89U, 0x0c401f00U, 0x000e0000U, "SHFL.BFLY PT, R6, R11, 0x2, 0x1f" }, + { BW_IR_F2FP_BF16_PACK, 9, 3, 0, 0, 0x0309723eU, 0x00000000U, 0x000010ffU, "F2FP.BF16.F32.PACK_AB R9, R3, R0" }, + { BW_IR_F2FP_BF16_PACK, 13, 13, 10, 0, 0x0d0d723eU, 0x0000000aU, 0x000010ffU, "F2FP.BF16.F32.PACK_AB R13, R13, R10" }, + }; + uint32_t w[4]; + 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 = -1; in.ureg = -1; in.imm = fx[i].imm; + 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); + } + for (uint32_t lane = 0; lane < 32; lane++) { + BlackwellIRInsn in; uint32_t d[4]; + memset(&in, 0, sizeof in); + in.op = BW_IR_SHFL_DOWN; in.dst_vreg = 9; in.src1_vreg = 2; in.src2_vreg = in.src3_vreg = in.ureg = -1; in.imm = lane; + if (omega_blackwell_encode_one(&in, d) != 0) return -100; + in.op = BW_IR_SHFL_BFLY; + if (omega_blackwell_encode_one(&in, w) != 0) return -101; + if (w[0] != d[0] || w[1] != (d[1] | 0x04000000U) || w[2] != d[2] || w[3] != d[3]) return -102; + } + return 0; +} + +/* Training R5 part 2: f32 global atomic add. Starting map from Mesa NAK sm70_encode.rs (a08a0b9, sm >= 90 float ATOMG; + * Mesa ranges are half-open): opcode 0x9a3, op 87..90 (Add 0, Min 2, Max 4), type 73..76 (F32 = 9, which is .FTZ.RN; + * 12 decodes as .RN without FTZ), order 77..80 (Strong System 0xa, Strong GPU 0x7), pred-dst 81..83 = PT, eviction + * 84..86 = 1, bit 63 = Ra.64, bit 91 = UR form. Then every word below was decoded offline with nvdisasm -b SM121 + * (CUDA 13.0) to the text shown. Where Mesa and the decoder disagree the decoder (and the chip probe) win: this word + * sets bit 90 (w2 bit 26), which falls inside Mesa's op field, yet it decodes as .ADD with desc[UR][R.64]; without it + * the same word decodes as [R.64+UR]. (Bit 88 decodes as .MIN, so the op field is there.) + * 0x80000005020479a3 0x00321e000c1f5306 ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS PT, R4, desc[UR6][R2.64], R5 ; + * 0x800000070a0979a3 0x00321e000c1f5304 ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS PT, R9, desc[UR4][R10.64], R7 ; + * 0x8000000502ff79a3 0x00321e000c1f5306 ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS PT, RZ, desc[UR6][R2.64], R5 ; + * 0x80000005020479a3 0x00321e000c1ef306 ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, R4, desc[UR6][R2.64], R5 ; + * 0x800000070a0979a3 0x00321e000c1ef304 ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, R9, desc[UR4][R10.64], R7 ; + * 0x8000000502ff79a3 0x00321e000c1ef306 ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, RZ, desc[UR6][R2.64], R5 ; + * Rows with d = -1 (no destination vreg) must encode RZ, not R0. Chip proof: tests/gpu_atomf32_probe_test.c. 0 = all good. */ +int omega_blackwell_verify_codegen_fixtures_atomf32(void) { + static const struct { BlackwellIROpcode op; int d, a, b, u; uint32_t w0, w1, w2; } fx[] = { + { BW_IR_ATOMG_ADD_F32_STRONG_SYS, 4, 2, 5, 6, 0x020479a3U, 0x80000005U, 0x0c1f5306U }, + { BW_IR_ATOMG_ADD_F32_STRONG_SYS, 9, 10, 7, 4, 0x0a0979a3U, 0x80000007U, 0x0c1f5304U }, + { BW_IR_ATOMG_ADD_F32_STRONG_SYS, 255, 2, 5, 6, 0x02ff79a3U, 0x80000005U, 0x0c1f5306U }, + { BW_IR_ATOMG_ADD_F32_STRONG_SYS, -1, 2, 5, 6, 0x02ff79a3U, 0x80000005U, 0x0c1f5306U }, + { BW_IR_ATOMG_ADD_F32_STRONG_GPU, 4, 2, 5, 6, 0x020479a3U, 0x80000005U, 0x0c1ef306U }, + { BW_IR_ATOMG_ADD_F32_STRONG_GPU, 9, 10, 7, 4, 0x0a0979a3U, 0x80000007U, 0x0c1ef304U }, + { BW_IR_ATOMG_ADD_F32_STRONG_GPU, -1, 2, 5, 6, 0x02ff79a3U, 0x80000005U, 0x0c1ef306U }, + }; + uint32_t w[4]; + 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 = -1; in.ureg = fx[i].u; + 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 || w[3] != 0x00321e00U) return -(2 * i + 2); + } + 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) { diff --git a/src/omega_blackwell_codegen.h b/src/omega_blackwell_codegen.h index cc36e237d..d0ebb9c38 100644 --- a/src/omega_blackwell_codegen.h +++ b/src/omega_blackwell_codegen.h @@ -100,7 +100,23 @@ typedef enum { BW_IR_LDG_E_128, /* LDG.E.128 Rd..Rd+3, desc[URd][Ra.64+imm] */ /* Batched attention loads (2026-10-12). Words matched against nvcc 13.0.88 -arch=sm_121 * (omega_blackwell_verify_codegen_fixtures_fragmm). imm = unsigned byte offset < 2^23; dst an aligned quad. */ - BW_IR_LDS128 /* LDS.128 Rd..Rd+3, [Ra+imm] */ + BW_IR_LDS128, /* LDS.128 Rd..Rd+3, [Ra+imm] */ + /* Training R5 (2026-10-15), additive: native entries for the two instructions the prefill kernels used to emit as + * placeholders patched after encoding. Words: omega_blackwell_verify_codegen_fixtures_bfly_f2fp. */ + BW_IR_SHFL_BFLY, /* SHFL.BFLY PT, Rd, Ra, imm & 31, 0x1f: Rd = Ra of lane (lane ^ imm) */ + BW_IR_F2FP_BF16_PACK, /* F2FP.BF16.F32.PACK_AB Rd, Ra, Rb: Rd = bf16_rn(Ra) << 16 | bf16_rn(Rb) (fixed latency) */ + /* Training R5 part 2 (2026-10-15), additive: f32 global atomic add, the float twins of BW_IR_ATOMG_ADD_STRONG_SYS. + * Flush-to-zero like every f32 global atomic add (CUDA Programming Guide: "equivalent to PTX add.rn.ftz.f32"). + * dst_vreg < 0 encodes RZ: the add happens and the old value is dropped (no register is written). + * Two scopes, same arithmetic: + * .STRONG.SYS for a word the CPU (or another agent) may watch while the kernel runs: host-visible memory. + * .STRONG.GPU for a word only this GPU touches during the kernel and reads in a later launch, e.g. a gradient + * accumulated in device memory. This is the scope nvcc gives atomicAdd. + * nvcc's no-return form is REDG; Mesa's sm90 float REDG layout (opcode 0x9a6) does not decode on SM121 in any variant + * tried, so ATOMG with RZ is the no-return form here. Words: omega_blackwell_verify_codegen_fixtures_atomf32; + * chip probe: tests/gpu_atomf32_probe_test.c. */ + BW_IR_ATOMG_ADD_F32_STRONG_SYS, /* ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS PT, Rd|RZ, desc[UR][Ra.64], Rb: Rd = old, mem += Rb */ + BW_IR_ATOMG_ADD_F32_STRONG_GPU /* ATOMG.E.ADD.F32.FTZ.RN.STRONG.GPU PT, Rd|RZ, desc[UR][Ra.64], Rb: Rd = old, mem += Rb */ } BlackwellIROpcode; /* Barrier (reconvergence) registers: the sm_121 BSSY/BSYNC words carry a 4-bit barrier id @@ -320,6 +336,14 @@ int omega_blackwell_verify_codegen_fixtures_fragmm(void); * encoder's refusals (negative delta, barrier id > 15). 0 = pass. */ int omega_blackwell_verify_codegen_fixtures_reconv(void); +/* Training R5: golden words for SHFL.BFLY and F2FP.BF16.F32.PACK_AB (nvcc 13.0.88 sm_121 oracle sealed in + * evidence/OWN30B-T3-TC-PEAK-BW-5faa0f70-20261013T2236Z), plus SHFL.BFLY = SHFL.DOWN with bit 58 for every lane. 0 = pass. */ +int omega_blackwell_verify_codegen_fixtures_bfly_f2fp(void); + +/* Training R5 part 2: golden words for ATOMG.E.ADD.F32.FTZ.RN.STRONG.SYS and .STRONG.GPU, with and without a destination + * (decoded with nvdisasm -b SM121; no nvcc). 0 = pass. */ +int omega_blackwell_verify_codegen_fixtures_atomf32(void); + /* omega #308: encodes one instruction with a given physical register map of * identity (vreg n -> Rn) so offline tools can disassemble single words. 0 = ok. */ int omega_blackwell_encode_one(const BlackwellIRInsn *insn, uint32_t w[4]); diff --git a/src/omega_blackwell_codegen_pattn.c b/src/omega_blackwell_codegen_pattn.c index 676f84998..40fe0973f 100644 --- a/src/omega_blackwell_codegen_pattn.c +++ b/src/omega_blackwell_codegen_pattn.c @@ -28,7 +28,6 @@ typedef struct { int err; int open_start[MAX_LOOPS]; int depth; - uint32_t placeholders; } Em; static void emit(Em *e, BlackwellIRInsn in, int kind) { @@ -104,12 +103,11 @@ static void lds32(Em *e, Op d, int addr, int first) { BlackwellIRInsn i = I0(BW_ static void sts32(Em *e, int addr, Op val) { BlackwellIRInsn i = I0(BW_IR_STS32); i.src1_vreg = addr; i.src2_vreg = val.v; i.src2_subreg = (uint8_t)val.s; emit(e, i, K_STORE); } static void bar_sync(Em *e) { emit(e, I0(BW_IR_BAR_SYNC), K_SYNC); } static void shfl_down(Em *e, int d, int a, uint32_t off) { BlackwellIRInsn i = I0(BW_IR_SHFL_DOWN); i.dst_vreg = d; i.src1_vreg = a; i.imm = off; emit(e, i, K_VAR); } -/* SHFL.BFLY placeholder (omega_blackwell_codegen_tc.h), patched after encoding */ -static void shfl_bfly(Em *e, int d, int a, uint32_t lanes) { shfl_down(e, d, a, OMEGA_TC_MARK_BFLY | (lanes & 31u)); e->placeholders++; } -/* F2FP.BF16.F32.PACK_AB placeholder: d = bf16_rn(hi) << 16 | bf16_rn(lo) */ +static void shfl_bfly(Em *e, int d, int a, uint32_t lanes) { BlackwellIRInsn i = I0(BW_IR_SHFL_BFLY); i.dst_vreg = d; i.src1_vreg = a; i.imm = lanes & 31u; emit(e, i, K_VAR); } +/* F2FP.BF16.F32.PACK_AB: d = bf16_rn(hi) << 16 | bf16_rn(lo) */ static void f2fp(Em *e, Op d, Op hi, Op lo) { - BlackwellIRInsn i = I0(BW_IR_FMNMX_MAX); i.dst_vreg = d.v; i.dst_subreg = (uint8_t)d.s; i.src1_vreg = hi.v; i.src1_subreg = (uint8_t)hi.s; - i.src2_vreg = lo.v; i.src2_subreg = (uint8_t)lo.s; i.imm = OMEGA_TC_MARK_F2FP; emit(e, i, K_FIXED); e->placeholders++; + BlackwellIRInsn i = I0(BW_IR_F2FP_BF16_PACK); i.dst_vreg = d.v; i.dst_subreg = (uint8_t)d.s; i.src1_vreg = hi.v; i.src1_subreg = (uint8_t)hi.s; + i.src2_vreg = lo.v; i.src2_subreg = (uint8_t)lo.s; emit(e, i, K_FIXED); } 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_if_p0(Em *e, int target) { BlackwellIRInsn i = I0(BW_IR_BRA); i.predicate_p0 = true; i.imm = (uint32_t)(target - here(e)); emit(e, i, K_BRA); } @@ -541,18 +539,10 @@ int omega_blackwell_codegen_prefill_attn_prog(const OmegaPrefillAttnSpec *spec, return 0; } -int omega_prefill_attn_prog_stats(const OmegaPrefillAttnSpec *spec, uint32_t *insns, uint32_t *gprs, uint32_t *placeholders) { +int omega_prefill_attn_prog_stats(const OmegaPrefillAttnSpec *spec, uint32_t *insns, uint32_t *gprs) { static BlackwellIRProgram p; if (omega_blackwell_codegen_prefill_attn_prog(spec, &p) != 0) return -1; if (insns) *insns = (uint32_t)p.count; if (gprs) *gprs = p.regalloc.peak_gpr_usage; - if (placeholders) { - uint32_t n = 0; - for (size_t i = 0; i < p.count; i++) { - const BlackwellIRInsn *in = &p.insns[i]; - if ((in->op == BW_IR_SHFL_DOWN && (in->imm & OMEGA_TC_MARK_BFLY)) || (in->op == BW_IR_FMNMX_MAX && in->imm == OMEGA_TC_MARK_F2FP)) n++; - } - *placeholders = n; - } return 0; } diff --git a/src/omega_blackwell_codegen_pattn.h b/src/omega_blackwell_codegen_pattn.h index 09add123e..9f516dfea 100644 --- a/src/omega_blackwell_codegen_pattn.h +++ b/src/omega_blackwell_codegen_pattn.h @@ -3,8 +3,8 @@ /* * omega_blackwell_codegen_pattn: causal prefill attention for Qwen3-30B-A3B on tensor cores (OWN-30B L1 attention, * 2026-10-13). One launch per chunk of up to 64 consecutive tokens of one layer. New file; uses the opcodes of - * omega_blackwell_codegen.h plus the SHFL.BFLY and F2FP.BF16.F32.PACK_AB placeholders of omega_blackwell_codegen_tc.h - * (patched after encoding with omega_tc_patch_code). + * omega_blackwell_codegen.h only (SHFL.BFLY and F2FP.BF16.F32.PACK_AB are native encoder entries since training R5; + * before R5 they were placeholders patched after encoding). * * Grid (ceil(mc / W), 4): CTA (cx, cy) serves KV head cy and the chunk tokens cx*W .. cx*W+W-1 (W = warps, 4 or 8). * Row tile = 16 query rows = 2 tokens x the 8 query heads of the group: row g (0..7) = token 2*tile, head cy*8+g; @@ -77,7 +77,7 @@ typedef struct { int omega_pattn_spec_ok(const OmegaPrefillAttnSpec *spec); /* Builds the register-allocated IR program. 0 ok, -1 refused or over BW_MAX_IR_INSNS / BW_MAX_VREGS. */ int omega_blackwell_codegen_prefill_attn_prog(const OmegaPrefillAttnSpec *spec, BlackwellIRProgram *prog); -/* Instruction, peak-register and placeholder counts (host, no device). */ -int omega_prefill_attn_prog_stats(const OmegaPrefillAttnSpec *spec, uint32_t *insns, uint32_t *gprs, uint32_t *placeholders); +/* Instruction and peak-register counts (host, no device). */ +int omega_prefill_attn_prog_stats(const OmegaPrefillAttnSpec *spec, uint32_t *insns, uint32_t *gprs); #endif diff --git a/src/omega_blackwell_codegen_tc.c b/src/omega_blackwell_codegen_tc.c index 1b7f55dfd..c0b19c04e 100644 --- a/src/omega_blackwell_codegen_tc.c +++ b/src/omega_blackwell_codegen_tc.c @@ -225,61 +225,6 @@ int omega_blackwell_codegen_tcgemm_prog(const OmegaTcGemmSpec *spec, BlackwellIR return omega_bw_regalloc_solve(prog); } -/* ---------------------------------------------------------------- placeholder opcodes (header: OMEGA_TC_MARK_*) */ - -static uint32_t rd32(const uint8_t *p) { return (uint32_t)p[0] | (uint32_t)p[1] << 8 | (uint32_t)p[2] << 16 | (uint32_t)p[3] << 24; } -static void wr32(uint8_t *p, uint32_t v) { p[0] = (uint8_t)v; p[1] = (uint8_t)(v >> 8); p[2] = (uint8_t)(v >> 16); p[3] = (uint8_t)(v >> 24); } -int omega_tc_patch_code(const BlackwellIRProgram *prog, uint8_t *code, size_t len) { - if (!prog || !code || len < prog->count * 16u) return -1; - int n = 0; - for (size_t i = 0; i < prog->count; i++) { - const BlackwellIRInsn *in = &prog->insns[i]; uint8_t *w = code + i * 16u; - if (in->op == BW_IR_SHFL_DOWN && (in->imm & OMEGA_TC_MARK_BFLY)) { - uint32_t w0 = rd32(w), w1 = rd32(w + 4); - if ((w0 & 0xffffu) != 0x7f89u || (w1 & 0xfc0000ffu) != 0x08000000u || (w1 & 0x0000ff00u) != 0x1f00u) return -1; - wr32(w + 4, w1 | 0x04000000u); n++; - } else if (in->op == BW_IR_FMNMX_MAX && in->imm == OMEGA_TC_MARK_F2FP) { - uint32_t w0 = rd32(w), w1 = rd32(w + 4), w2 = rd32(w + 8); - if ((w0 & 0xffffu) != 0x7209u || (w1 & 0xffffff00u) != 0 || w2 != 0x07800000u) return -1; - wr32(w, (w0 & 0xffff0000u) | 0x723eu); wr32(w + 8, 0x000010ffu); n++; - } - } - return n; -} - -int omega_tc_patch_selftest(char *msg, size_t msgn) { - static BlackwellIRProgram p; static uint8_t buf[64 * 16]; size_t len = 0; - omega_bw_ir_init(&p); - Em em; memset(&em, 0, sizeof em); em.p = &p; Em *e = &em; - int udesc = UV64(e), py = V64(e), tid = V(e), a = V(e), b = V(e), c = V(e), d = V(e); - if (e->err) { omega_gpu_fmt(msg, msgn, "vregs"); return -1; } - ldcu64(e, udesc, 0x358); ldc64(e, py, 0x380); s2r(e, tid, BW_SR_TID_X); - shfl_bfly(e, a, tid, 1); shfl_bfly(e, b, a, 2); shfl_down(e, c, b, 1); - f2fp_pack(e, d, a, c); - imadw(e, py, tid, 4u, py); stg(e, py, 0, d, udesc); stg(e, py, 128, b, udesc); - tail(e); - if (e->err || omega_bw_regalloc_solve(&p) != 0 || omega_bw_encode_program(&p, buf, sizeof buf, &len) != 0) { omega_gpu_fmt(msg, msgn, "build/encode failed"); return -1; } - int np = omega_tc_patch_code(&p, buf, len); - if (np != 3) { omega_gpu_fmt(msg, msgn, "patched %d placeholders, expected 3", np); return -1; } - int seen = 0; - for (size_t i = 0; i < p.count; i++) { - const uint8_t *w = buf + i * 16u; uint32_t w0 = rd32(w), w1 = rd32(w + 4), w2 = rd32(w + 8); - const BlackwellIRInsn *in = &p.insns[i]; - if (in->op == BW_IR_SHFL_DOWN) { - /* oracle words with the register bytes (16..31 of word 0) masked: BFLY lane 1 0x0c201f00, lane 2 0x0c401f00; DOWN 1 0x08201f00 */ - uint32_t lane = in->imm & 31u, want = ((in->imm & OMEGA_TC_MARK_BFLY) ? 0x0c001f00u : 0x08001f00u) | lane << 21; - if ((w0 & 0xffffu) != 0x7f89u || w1 != want || w2 != 0x000e0000u) { omega_gpu_fmt(msg, msgn, "SHFL word %zu: %08x %08x %08x", i, w0, w1, w2); return -1; } - seen++; - } else if (in->op == BW_IR_FMNMX_MAX) { - if ((w0 & 0xffffu) != 0x723eu || (w1 & 0xffffff00u) != 0 || w2 != 0x000010ffu) { omega_gpu_fmt(msg, msgn, "F2FP word %zu: %08x %08x %08x", i, w0, w1, w2); return -1; } - seen++; - } - } - if (seen != 4) { omega_gpu_fmt(msg, msgn, "saw %d of 4 checked words", seen); return -1; } - omega_gpu_fmt(msg, msgn, "SHFL.BFLY x2, SHFL.DOWN x1, F2FP.BF16.F32.PACK_AB x1 match the oracle bits"); - return 0; -} - int omega_blackwell_codegen_tc_peak_prog(uint32_t iters, uint32_t chains, uint32_t stall, uint32_t threads, BlackwellIRProgram *prog) { if (!prog || iters == 0 || chains == 0 || chains > 16 || stall == 0 || stall > 15 || threads == 0 || threads % 32 || threads > 1024) return -1; omega_bw_ir_init(prog); diff --git a/src/omega_blackwell_codegen_tc.h b/src/omega_blackwell_codegen_tc.h index cc5c8e563..1fc530d05 100644 --- a/src/omega_blackwell_codegen_tc.h +++ b/src/omega_blackwell_codegen_tc.h @@ -81,21 +81,9 @@ int omega_blackwell_codegen_tc_peak_prog(uint32_t iters, uint32_t chains, uint32 * CTA distinct (DRAM); groups = 1: every CTA the same bytes (shows any cache reuse of these buffers). */ int omega_blackwell_codegen_tc_bw_prog(uint32_t iters, uint32_t groups, uint32_t threads, BlackwellIRProgram *prog); -/* ---- opcodes the shared encoder lacks, emitted as same-footprint placeholders and patched after encoding ---- - * SHFL.BFLY PT, Rd, Ra, lane, 0x1f: a BW_IR_SHFL_DOWN whose imm carries OMEGA_TC_MARK_BFLY; the patch sets bit 26 of word 1 - * (nvcc 13.0.88 sm_121 oracle, investigations/2026-10-13-t3-mma-oracle/attn/fa_ops.sass: SHFL.BFLY PT, R5, R0, 0x1, 0x1f = - * 0x0c201f0000057f89 / 0x004e2800000e0000; the shared encoder's SHFL.DOWN word 1 is 0x08001f00 | lane << 21). - * F2FP.BF16.F32.PACK_AB Rd, Ra, Rb (Rd = bf16_rn(Ra) << 16 | bf16_rn(Rb)): a BW_IR_FMNMX_MAX whose imm is OMEGA_TC_MARK_F2FP; - * the patch rewrites the opcode to 0x723e and word 2 to 0x000010ff (oracle: F2FP.BF16.F32.PACK_AB R9, R3, R0 = - * 0x000000000309723e / 0x000fe200000010ff; registers stay at Rd 16..23, Ra 24..31, Rb 32..39 as FMNMX). F2FP needs no - * scoreboard in the oracle (fixed latency), as FMNMX. */ -#define OMEGA_TC_MARK_BFLY 0x80000000u -#define OMEGA_TC_MARK_F2FP 0x46320000u -/* patch the encoded code (len bytes, one 16-byte word per IR instruction); returns the number patched or -1 on a word that - * does not hold the expected placeholder bits */ -int omega_tc_patch_code(const BlackwellIRProgram *prog, uint8_t *code, size_t len); -/* encoder self-test: placeholders encoded and patched against the oracle words (register fields excluded); 0 = pass */ -int omega_tc_patch_selftest(char *msg, size_t msgn); +/* SHFL.BFLY and F2FP.BF16.F32.PACK_AB were placeholders patched after encoding (omega_tc_patch_code) until training R5; + * they are now native encoder entries (BW_IR_SHFL_BFLY, BW_IR_F2FP_BF16_PACK, golden words in + * omega_blackwell_verify_codegen_fixtures_bfly_f2fp) and the emitted bytes are unchanged. */ #ifdef __cplusplus } diff --git a/src/omega_blackwell_codegen_tern.c b/src/omega_blackwell_codegen_tern.c index 370564e89..9fcb52c8e 100644 --- a/src/omega_blackwell_codegen_tern.c +++ b/src/omega_blackwell_codegen_tern.c @@ -75,10 +75,14 @@ static void andi(Em *e, int d, int a, unsigned asub, uint32_t imm) { BlackwellIR static void ldg_wide(Em *e, BlackwellIROpcode op, int d, int addr64, uint32_t imm, int udesc, int first) { BlackwellIRInsn i = I0(op); i.dst_vreg = d; i.src1_vreg = addr64; i.imm = imm; i.ureg = udesc; emit(e, i, first ? K_VAR : K_VAR_MORE); } -static void ldg32(Em *e, int d, int addr64, int udesc, int first) { BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = d; i.src1_vreg = addr64; i.ureg = udesc; emit(e, i, first ? K_VAR : K_VAR_MORE); } +static void ldg32(Em *e, int d, int addr64, uint32_t imm, int udesc, int first) { + BlackwellIRInsn i = I0(BW_IR_LDG_E); i.dst_vreg = d; i.src1_vreg = addr64; i.imm = imm; i.ureg = udesc; emit(e, i, first ? K_VAR : K_VAR_MORE); +} static void stg(Em *e, int addr64, uint32_t imm, int val, int udesc) { BlackwellIRInsn i = I0(BW_IR_STG_E); i.src1_vreg = addr64; i.src2_vreg = val; i.imm = imm; i.ureg = udesc; emit(e, i, K_STORE); } static void lds128(Em *e, int d128, int addr, uint32_t imm, int first) { BlackwellIRInsn i = I0(BW_IR_LDS128); i.dst_vreg = d128; i.src1_vreg = addr; i.imm = imm; emit(e, i, first ? K_VAR : K_VAR_MORE); } +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 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 xorr(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_LOP3_XOR); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } static void bar_sync(Em *e) { emit(e, I0(BW_IR_BAR_SYNC), K_SYNC); } 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 i2f(Em *e, int d, int a) { BlackwellIRInsn i = I0(BW_IR_I2FP); i.dst_vreg = d; i.src1_vreg = a; emit(e, i, K_FIXED); } @@ -129,12 +133,24 @@ int omega_tern_gemv_spec_ok(const OmegaTernGemvSpec *s) { if (s->depth == 0 || s->depth > 16 || ksc % s->depth || s->rows * s->depth > 16u) return 0; if (s->epi != OMEGA_TERN_EPI_I32 && s->epi != OMEGA_TERN_EPI_F32) return 0; if (s->epi == OMEGA_TERN_EPI_F32 && nch != 1) return 0; - if (s->mutant < 0 || s->mutant > 3) return 0; + if (s->mutant < 0 || s->mutant > 5) return 0; return 1; } uint32_t omega_tern_gemv_steps(const OmegaTernGemvSpec *s) { return omega_tern_gemv_spec_ok(s) ? s->k / 256u : 0; } +/* Output path. Chip finding (investigation 2026-10-16-kt1-speed, probe-nostore): one small GPU-uncached store per unit per + * warp cost 9 to 11 us per launch at 3840 x 2560 and 13824 x 2560, more than a third of the launch. So a single-chunk + * kernel gathers each round's 2 R W results in shared memory (two slot sets, alternating by round, one CTA barrier per + * round) and warp 0 writes them as one coalesced store of 2 R W consecutive words. Chunked kernels (k > 8192) keep the + * per-row store because they accumulate y in place across chunks. */ +int omega_tern_gemv_coalesced_out(const OmegaTernGemvSpec *s) { + if (!omega_tern_gemv_spec_ok(s) || omega_tern_gemv_chunks(s) != 1 || 2u * s->rows * s->warps > 32u) return 0; /* warp 0 stores the round */ + return s->k * 2u + 2u * omega_tern_gemv_out_slot_bytes(s) <= OMEGA_TERN_SHARED_MAX; +} +uint32_t omega_tern_gemv_out_slot_bytes(const OmegaTernGemvSpec *s) { return s ? 2u * s->rows * s->warps * 4u : 0; } uint32_t omega_tern_gemv_shared_bytes(const OmegaTernGemvSpec *s) { - return omega_tern_gemv_spec_ok(s) ? (s->k / omega_tern_gemv_chunks(s)) * 2u : 0; + if (!omega_tern_gemv_spec_ok(s)) return 0; + const uint32_t x_bytes = (s->k / omega_tern_gemv_chunks(s)) * 2u; + return omega_tern_gemv_coalesced_out(s) ? x_bytes + 2u * omega_tern_gemv_out_slot_bytes(s) : x_bytes; } uint64_t omega_tern_word_offset(uint32_t layout, uint32_t R, uint32_t k, uint32_t r, uint32_t c) { @@ -213,6 +229,28 @@ static int tern_schedule_stalls(BlackwellIRProgram *p) { } return 0; } +/* Every weight load of one K iteration (D steps) from the lane pointer pw, issued back to back with immediate offsets + * (block: one wide load per step; row-major: one 32-bit load per row and step). */ +static void weight_loads(Em *e, int block, uint32_t R, uint32_t D, const int *wq, int wr[4][16], int pw, uint32_t step_bytes, + uint32_t row_bytes, int udesc) { + if (block) { + for (uint32_t d = 0; d < D; d++) ldg_wide(e, R == 4 ? BW_IR_LDG_E_128 : BW_IR_LDG_E_64, wq[d], pw, d * step_bytes, udesc, d == 0); + return; + } + for (uint32_t r = 0; r < R; r++) for (uint32_t d = 0; d < D; d++) ldg32(e, wr[r][d], pw, r * row_bytes + d * step_bytes, udesc, r == 0 && d == 0); +} + +/* x staging address of word c, clamped to KWC - 1 so no lane reads past x (clamped lanes rewrite that word's staged values, + * identical bytes to the same place): cc = c < KWC ? c : KWC - 1, pxa = px + 16 cc, sb = 32 cc. kwm1 holds KWC - 1. */ +static void x_stage_addr(Em *e, int c, int kwm1, int one, int px, int cc, int pxa, int sb, int va, int vb) { + imadi(e, va, kwm1, 0, 0xffffffffu, c); /* c - (KWC - 1) */ + imadi(e, vb, one, 0, 0xffffffffu, va); /* c - KWC */ + shr(e, vb, vb, 0, 31); /* 1 if c < KWC */ + imadr(e, cc, vb, va, 0, kwm1); /* c < KWC ? c : KWC - 1 */ + imadw(e, pxa, cc, 16u, px); + imadi(e, sb, cc, 0, 32u, NOREG); +} + int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, BlackwellIRProgram *prog) { if (!omega_tern_gemv_spec_ok(spec) || !prog) return -1; const uint32_t K = spec->k, R = spec->rows, W = spec->warps, D = spec->depth, TH = 32u * W; @@ -258,28 +296,53 @@ int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, Blackw else { imadi(e, lo, l, 0, 4u, NOREG); imadi(e, lo, h, 0, R * row_bytes, lo); } imadw(e, pl, lo, 1, pwb); /* this lane's weight pointer in unit 0, chunk 0 */ movi(e, k0, 0x80008000u); - if (f32) ldg32(e, asv, pas, udesc, 1); + if (f32) ldg32(e, asv, pas, 0, udesc, 1); if (NCH > 1) { movi(e, chc, NCH); movrz(e, mul); } + /* ---- per-unit registers ---- */ + int rowbase = V(e), pw = V64(e), xlc = V(e), cnt = V(e); + int T[4], wq[16], wr[4][16], xs[8], Ut[4], P[4], M[4], ap[4], am[4]; + int row = V(e), okr = V(e), skip = V(e), yv = V(e), f = V(e), wsv = V(e), pya = V64(e), pwsa = V64(e), sum = V(e); + for (uint32_t r = 0; r < R; r++) { T[r] = V(e); Ut[r] = V(e); P[r] = V(e); M[r] = V(e); ap[r] = V(e); am[r] = V(e); } + if (block) { for (uint32_t d = 0; d < D; d++) wq[d] = R == 4 ? V128(e) : V64(e); } + else for (uint32_t r = 0; r < R; r++) for (uint32_t d = 0; d < D; d++) wr[r][d] = V(e); + for (uint32_t i = 0; i < (D <= 4u ? 2u * D : 2u); i++) xs[i] = V128(e); + /* prefetch flag (single chunk): 1 while this warp's first K iteration already has its weights in flight */ + const int pre = NCH == 1; + int pf = NOREG, pu = NOREG; + if (pre) { pf = V(e); pu = V(e); } + if (e->err) return -1; + /* ---- chunk loop (NCH > 1 only for k > OMEGA_TERN_CHUNK_MAX): x staged per chunk, y accumulated in place ---- */ const int L_c = here(e); if (NCH > 1) { loop_begin(e); bar_sync(e); } - /* ---- stage x: per word c of the chunk, X_j = x[16c+j] * 65536 + x[16c+j+8] (j < 8), 32 bytes ---- */ + /* ---- stage x: per word c of the chunk, X_j = x[16c+j] * 65536 + x[16c+j+8] (j < 8), 32 bytes. + * Single chunk: the weight loads of this warp's first unit (clamped to U - 1, always inside the tensor) go out first + * and the x load follows without waiting for them, so the x round trip and the first weight round trip overlap; the + * first instruction that uses x then waits for both. The K loop skips its loads once while pf is set. Measured + * (investigation 2026-10-16-kt1-speed): x staging alone took 2.3 to 3.2 us of every CTA before any weight moved. ---- */ { const uint32_t rounds = (KWC + TH - 1) / TH; - int c = V(e), kwr = V(e), rc = V(e), pxa = V64(e), xq = V128(e), sb = V(e), va = V(e), vb = V(e), X = V(e), sad = V(e); + int c = V(e), kwm1 = V(e), rc = V(e), cc = V(e), pxa = V64(e), xq = V128(e), sb = V(e), va = V(e), vb = V(e), X = V(e), sad = V(e); if (e->err) return -1; - movi(e, kwr, KWC); + movi(e, kwm1, KWC - 1u); imadi(e, c, tid, 0, 1, NOREG); movi(e, rc, rounds); + x_stage_addr(e, c, kwm1, one, px, cc, pxa, sb, va, vb); + if (pre) { + imadi(e, pu, ureg, 0, 0xffffffffu, u0); /* u0 - U */ + shr(e, pf, pu, 0, 31); /* 1 if u0 < U */ + imadi(e, pu, one, 0, 1, pu); /* u0 - U + 1 */ + imadi(e, t, one, 0, 0xffffffffu, ureg); /* U - 1 */ + imadr(e, pu, pf, pu, 0, t); /* u0 < U ? u0 : U - 1 */ + imadw(e, pw, pu, 2u * R * row_bytes, pl); + movi(e, pf, 1); + weight_loads(e, block, R, D, wq, wr, pw, step_bytes, row_bytes, udesc); + } const int L_s = here(e); loop_begin(e); - isetp_ge_u32(e, c, kwr); - Region rg = region_begin(e); - imadw(e, pxa, c, 16u, px); - ldg_wide(e, BW_IR_LDG_E_128, xq, pxa, 0, udesc, 1); - imadi(e, sb, c, 0, 32u, NOREG); + ldg_wide(e, BW_IR_LDG_E_128, xq, pxa, 0, udesc, !pre); /* behind the prefetch: no wait for its data */ for (uint32_t j = 0; j < 8; j++) { const unsigned sh = 8u * (j & 3u); int src[2] = { va, vb }; const unsigned sub[2] = { j >> 2, 2u + (j >> 2) }; @@ -294,33 +357,51 @@ int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, Blackw imadi(e, sad, one, 0, 4u * j, sb); sts32(e, sad, X); } - region_end(e, rg); imadi(e, c, one, 0, TH, c); imadi(e, rc, one, 0, 0xffffffffu, rc); + x_stage_addr(e, c, kwm1, one, px, cc, pxa, sb, va, vb); /* next round (unused after the last) */ isetp_ge_u32(e, rc, one); bra_if_p0(e, L_s); loop_end(e); bar_sync(e); } - /* ---- per-unit registers ---- */ - int rowbase = V(e), pw = V64(e), xlc = V(e), cnt = V(e); - int T[4], wq[16], wr[4][16], wa[4][16], xs[8], Ut[4], P[4], M[4], ap[4], am[4]; - int row = V(e), okr = V(e), skip = V(e), yv = V(e), f = V(e), wsv = V(e), pya = V64(e), pwsa = V64(e), sum = V(e); - for (uint32_t r = 0; r < R; r++) { T[r] = V(e); Ut[r] = V(e); P[r] = V(e); M[r] = V(e); ap[r] = V(e); am[r] = V(e); } - if (block) { for (uint32_t d = 0; d < D; d++) wq[d] = R == 4 ? V128(e) : V64(e); } - else for (uint32_t r = 0; r < R; r++) for (uint32_t d = 0; d < D; d++) { wr[r][d] = V(e); wa[r][d] = V64(e); } - for (uint32_t i = 0; i < (D <= 4u ? 2u * D : 2u); i++) xs[i] = V128(e); - if (e->err) return -1; + /* ---- coalesced output (single chunk): per-CTA round variables, see the header ---- */ + const int coal = omega_tern_gemv_coalesced_out(spec); + const uint32_t slot_bytes = omega_tern_gemv_out_slot_bytes(spec), x_bytes = KC * 2u, nrow = 2u * R * W; + int uc = NOREG, ueff = NOREG, um1 = NOREG, negU = NOREG, okw = NOREG, tu = NOREG, lg0 = NOREG, sbase = NOREG, stog = NOREG; + int so = NOREG, sa = NOREG, wl1 = NOREG, val = NOREG; + if (coal) { + uc = V(e); ueff = V(e); um1 = V(e); negU = V(e); okw = V(e); tu = V(e); lg0 = V(e); sbase = V(e); stog = V(e); + so = V(e); sa = V(e); wl1 = V(e); val = V(e); + if (e->err) return -1; + imadi(e, lg0, nzl1, 0, 1, NOREG); imadi(e, lg0, one, 0, 0xffffffffu, lg0); /* (l > 0) */ + imadi(e, um1, one, 0, 0xffffffffu, ureg); /* U - 1 */ + imadi(e, negU, ureg, 0, 0xffffffffu, NOREG); /* -U */ + movi(e, sbase, x_bytes); /* slot set of this round (alternates) */ + movi(e, stog, spec->mutant == 4 ? 0u : slot_bytes); /* mutant 4: one slot set, the round race the second set prevents */ + imadi(e, so, warp, 0, 2u * R * 4u, NOREG); imadi(e, so, h, 0, R * 4u, so); /* this half-warp's slot: (2 warp + h) R words */ + imadi(e, tu, lane, 0, 0xffffffffu, NOREG); imadi(e, tu, one, 0, nrow - 1u, tu); shr(e, tu, tu, 0, 31); /* 1 if lane >= 2 R W */ + imadi(e, wl1, warp, 0, 1, tu); imadi(e, wl1, one, 0, 1, wl1); /* warp + (lane >= 2 R W) + 1 */ + imadi(e, uc, cx, 0, W, NOREG); /* first unit of this CTA's round (uniform over the CTA) */ + } /* ---- unit loop ---- */ imadi(e, u, u0, 0, 1, NOREG); const int L_u = here(e); loop_begin(e); - isetp_ge_u32(e, u, ureg); + isetp_ge_u32(e, coal ? uc : u, ureg); /* coalesced: the whole CTA leaves together (barriers inside) */ const int bra_end = bra_if_p0_fwd(e); - imadi(e, rowbase, u, 0, 2u * R, hR); - imadw(e, pw, u, 2u * R * row_bytes, pl); + if (coal) { + /* a warp past the last unit recomputes unit U - 1; its rows are >= n_padded >= n and are never stored */ + imadi(e, tu, u, 0, 1, negU); /* u - U */ + shr(e, okw, tu, 0, 31); /* 1 if u < U */ + imadi(e, tu, one, 0, 1, tu); /* u - U + 1 */ + if (spec->mutant == 5) imadi(e, ueff, u, 0, 1, NOREG); /* mutant 5: no clamp, a warp past U reads past the tensor */ + else imadr(e, ueff, okw, tu, 0, um1); /* u < U ? u : U - 1 */ + } else ueff = u; + imadi(e, rowbase, ueff, 0, 2u * R, hR); + imadw(e, pw, ueff, 2u * R * row_bytes, pl); imadi(e, xlc, xl, 0, 1, NOREG); for (uint32_t r = 0; r < R; r++) movrz(e, T[r]); movi(e, cnt, KSC / D); @@ -333,14 +414,18 @@ int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, Blackw const int lds_up = D <= 4u; const int L_k = here(e); loop_begin(e); - if (block) { - for (uint32_t d = 0; d < D; d++) ldg_wide(e, R == 4 ? BW_IR_LDG_E_128 : BW_IR_LDG_E_64, wq[d], pw, d * step_bytes, udesc, d == 0); + if (pre) { + /* the prefetched first iteration skips its loads (pf set); the staged x reads go out before the predicate */ + if (lds_up) for (uint32_t d = 0; d < D; d++) for (uint32_t i = 0; i < 2; i++) lds128(e, xs[2u * d + i], xlc, d * 512u + 16u * i, d == 0 && i == 0); + isetp_ge_u32(e, pf, one); + Region rl = region_begin(e); + weight_loads(e, block, R, D, wq, wr, pw, step_bytes, row_bytes, udesc); + region_end(e, rl); + movi(e, pf, 0); } else { - for (uint32_t r = 0; r < R; r++) for (uint32_t d = 0; d < D; d++) imadw(e, wa[r][d], one, r * row_bytes + d * step_bytes, pw); - int first = 1; - for (uint32_t r = 0; r < R; r++) for (uint32_t d = 0; d < D; d++) { ldg32(e, wr[r][d], wa[r][d], udesc, first); first = 0; } + weight_loads(e, block, R, D, wq, wr, pw, step_bytes, row_bytes, udesc); + if (lds_up) for (uint32_t d = 0; d < D; d++) for (uint32_t i = 0; i < 2; i++) lds128(e, xs[2u * d + i], xlc, d * 512u + 16u * i, 0); } - if (lds_up) for (uint32_t d = 0; d < D; d++) for (uint32_t i = 0; i < 2; i++) lds128(e, xs[2u * d + i], xlc, d * 512u + 16u * i, 0); for (uint32_t d = 0; d < D; d++) { const int *xd = lds_up ? &xs[2u * d] : xs; if (!lds_up) for (uint32_t i = 0; i < 2; i++) lds128(e, xs[i], xlc, d * 512u + 16u * i, i == 0); @@ -366,7 +451,50 @@ int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, Blackw /* ---- half-warp reduction (lanes 0 and 16 hold the sums), lane l == 0 stores rows < n ---- */ for (uint32_t r = 0; r < R; r++) for (uint32_t o = 8; o >= 1; o /= 2) { shfl_down(e, t, T[r], o); imadi(e, T[r], t, 0, 1, T[r]); } - for (uint32_t r = 0; r < R; r++) { + if (coal) { + /* lane l == 0 of each half-warp: finish its R rows and park them in this round's slot set */ + isetp_ge_u32(e, lg0, one); + Region rs = region_begin(e); + imadi(e, sa, sbase, 0, 1, so); /* sbase + so */ + for (uint32_t r = 0; r < R; r++) { + imadi(e, yv, one, 0, 0u - KSC * (1u << 18), T[r]); /* y = T - KSC * 2^18 (mod 2^32, exact) */ + if (f32) { + imadi(e, row, one, 0, r, rowbase); + for (int i = 0; i < 3; i++) { + imadi(e, t, row, 0, 1, nb[i]); + shr(e, t, t, 0, 31); /* 1 if row < b_i */ + if (i == 0) imadi(e, sum, t, 0, 1, NOREG); else imadi(e, sum, t, 0, 1, sum); + } + imadw(e, pwsa, sum, 4u, pws); /* ws_rev[boundaries above row] = w_scale[seg] */ + ldg32(e, wsv, pwsa, 0, udesc, 1); + i2f(e, f, yv); + fmul(e, f, f, asv); + fmul(e, f, f, wsv); + if (r) imadi(e, sa, one, 0, 4u, sa); + sts32(e, sa, f); + } else { + if (r) imadi(e, sa, one, 0, 4u, sa); + sts32(e, sa, yv); + } + } + region_end(e, rs); + bar_sync(e); + /* warp 0, lanes < 2 R W: row = 2 R uc + lane, stored when < n, as one coalesced STG */ + imadi(e, row, uc, 0, 2u * R, lane); + imadi(e, okr, row, 0, 1, negn); + shr(e, okr, okr, 0, 31); /* 1 if row < n */ + imadi(e, skip, okr, 0, 0xffffffffu, wl1); /* warp + (lane >= 2 R W) + 1 - (row < n): 0 only for a store */ + isetp_ge_u32(e, skip, one); + Region rg = region_begin(e); + imadi(e, sa, lane, 0, 4u, sbase); + lds32(e, val, sa); + imadw(e, pya, row, 4u, py); + stg(e, pya, 0, val, udesc); + region_end(e, rg); + xorr(e, sbase, sbase, stog); /* next round parks in the other slot set */ + imadi(e, uc, stride, 0, 1, uc); + } + for (uint32_t r = 0; r < R && !coal; r++) { imadi(e, row, one, 0, r, rowbase); imadi(e, okr, row, 0, 1, negn); shr(e, okr, okr, 0, 31); /* 1 if row < n */ @@ -375,7 +503,7 @@ int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, Blackw Region rg = region_begin(e); imadi(e, yv, one, 0, 0u - KSC * (1u << 18), T[r]); /* y = T - KSC * 2^18 (mod 2^32, exact) */ imadw(e, pya, row, 4u, py); - if (NCH > 1) { ldg32(e, prev, pya, udesc, 1); imadr(e, yv, prev, mul, 0, yv); } /* + earlier chunks */ + if (NCH > 1) { ldg32(e, prev, pya, 0, udesc, 1); imadr(e, yv, prev, mul, 0, yv); } /* + earlier chunks */ if (f32) { for (int i = 0; i < 3; i++) { imadi(e, t, row, 0, 1, nb[i]); @@ -383,7 +511,7 @@ int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, Blackw if (i == 0) imadi(e, sum, t, 0, 1, NOREG); else imadi(e, sum, t, 0, 1, sum); } imadw(e, pwsa, sum, 4u, pws); /* ws_rev[boundaries above row] = w_scale[seg] */ - ldg32(e, wsv, pwsa, udesc, 1); + ldg32(e, wsv, pwsa, 0, udesc, 1); i2f(e, f, yv); fmul(e, f, f, asv); fmul(e, f, f, wsv); diff --git a/src/omega_blackwell_codegen_tern.h b/src/omega_blackwell_codegen_tern.h index 3fdf221e8..10c0cc9ae 100644 --- a/src/omega_blackwell_codegen_tern.h +++ b/src/omega_blackwell_codegen_tern.h @@ -36,6 +36,14 @@ * k % 512 == 0). With two chunks each lane l == 0 adds the earlier chunk's int32 y it stored itself (same thread, same * address, program order); the f32 epilogue is refused there. * + * Output path (single chunk, omega_tern_gemv_coalesced_out): every warp of a CTA works on consecutive units in a round + * (unit = CTA * W + warp + round * stride, all warps of a CTA take the same number of rounds; a warp past the last unit + * recomputes unit U - 1 and its rows fall at or beyond n_padded, never stored). Lane l == 0 of each half-warp writes the + * row's result into a shared slot, one CTA barrier, then warp 0 lanes 0 .. 2 R W - 1 store the round's 2 R W consecutive + * rows (those < n) with one coalesced STG. Two slot sets alternate by round so one barrier per round suffices. Measured + * reason (investigation 2026-10-16-kt1-speed): the per-row 4-byte GPU-uncached stores cost 9 to 11 us per launch. + * Chunked kernels keep the per-row store. + * * Epilogue: * OMEGA_TERN_EPI_I32 (0): y int32. * OMEGA_TERN_EPI_F32 (1): y f32 = ((float)y_int * a_scale) * w_scale[seg(r)], two round-to-nearest FMULs in that order. @@ -52,7 +60,8 @@ * 0x3b0 negn u32 -n (store rows < n) 0x3b4, 0x3b8, 0x3bc: -b0, -b1, -b2 * * mutant (tests only): 1 flips the planes (the staged X_j are negated: plus acts as minus, y becomes -y), 2 is host-side only - * (the API maps segments as ws_idx = r / (n / segments)), 3 drops pair j = 7 (trits 7 and 15 of every word). + * (the API maps segments as ws_idx = r / (n / segments)), 3 drops pair j = 7 (trits 7 and 15 of every word), 4 uses one + * output slot set (the round race, simulator with a reversed warp order), 5 drops the unit clamp of the coalesced path. */ #include #include "omega_blackwell_codegen.h" @@ -89,13 +98,16 @@ typedef struct { uint32_t warps; /* 1 .. 32 */ uint32_t depth; /* K steps per loop iteration: divides chunk / 256; rows * depth <= 16 */ uint32_t epi; /* OMEGA_TERN_EPI_* */ - int mutant; /* 0 production; 1, 3 kernel mutants (2 is host-side, kernel identical to 0) */ + int mutant; /* 0 production; 1, 3, 4, 5 kernel mutants (2 is host-side, kernel identical to 0) */ } OmegaTernGemvSpec; int omega_blackwell_codegen_tern_gemv_prog(const OmegaTernGemvSpec *spec, BlackwellIRProgram *prog); int omega_tern_gemv_spec_ok(const OmegaTernGemvSpec *spec); uint32_t omega_tern_gemv_steps(const OmegaTernGemvSpec *spec); /* k / 256 (0 when refused) */ -uint32_t omega_tern_gemv_shared_bytes(const OmegaTernGemvSpec *spec); /* 2 * chunk width */ +uint32_t omega_tern_gemv_shared_bytes(const OmegaTernGemvSpec *spec); /* 2 * chunk width, plus two output slot sets when coalesced */ +int omega_tern_gemv_coalesced_out(const OmegaTernGemvSpec *spec); /* 1 when the round's rows leave through shared memory in one store */ +uint32_t omega_tern_gemv_out_slot_bytes(const OmegaTernGemvSpec *spec); /* 2 * rows * warps * 4: one slot set */ +#define OMEGA_TERN_SHARED_MAX 16384u /* OMEGA_BW_QMD_MAX_SHARED_BYTES */ uint32_t omega_tern_gemv_chunks(const OmegaTernGemvSpec *spec); /* x chunks: 1 for k <= 8192, else 2 */ int omega_tern_gemv_prog_stats(const OmegaTernGemvSpec *spec, uint32_t *insns, uint32_t *gprs); diff --git a/src/omega_blackwell_codegen_tgemm.c b/src/omega_blackwell_codegen_tgemm.c new file mode 100644 index 000000000..12a2fc80b --- /dev/null +++ b/src/omega_blackwell_codegen_tgemm.c @@ -0,0 +1,217 @@ +/* omega_blackwell_codegen_tgemm.c: device-resident bf16 training GEMM (trainer lane E1, cut 1: NN, F32 overwrite). See the + * header. The K loop, staging and scheduling follow omega_blackwell_codegen_tc2.c (chip gate OWN30B-L1G-GEMM-1e76e728). */ +#include "omega_blackwell_codegen_tgemm.h" +#include "omega_bw_em.h" + +int omega_tgemm_spec_ok(const OmegaTgemmSpec *s) { + if (!s) return 0; + if (s->k < 128u || s->k > 65536u || s->k % 128u) return 0; + if (s->rt != 2 && s->rt != 4 && s->rt != 8) return 0; + if (s->ct != 2) return 0; /* the paired column tiles share one B word per lane */ + if (s->warps != 8 && s->warps != 16) return 0; + if (s->kc != 32) return 0; + if (s->aqn != 1 && s->aqn != 2) return 0; + if (s->layout != OMEGA_TGEMM_LAYOUT_NN || s->epi != OMEGA_TGEMM_EPI_F32) return 0; + const uint32_t span = s->warps * 8u * s->ct; + if (s->n == 0 || s->n % span || s->n >= (1u << 17)) return 0; + if ((16u * s->rt * (s->kc / 4u)) % (32u * s->warps)) return 0; /* whole LDG.64 staging pieces per thread */ + { /* the pieces of one thread are RJ rows apart: constant load offsets that must stay under the encoder's 2^23 */ + const uint32_t RJ = 32u * s->warps / (s->kc / 4u), nj = 16u * s->rt * (s->kc / 4u) / (32u * s->warps); + if (RJ % 16u) return 0; + if ((uint64_t)(nj - 1u) * RJ * s->k * 2u + (128u / s->kc - 1u) * s->kc * 2u >= (1u << 23)) return 0; + } + if (2u * 16u * s->rt * s->kc * 2u > 16384u) return 0; /* QMD shared cap */ + if (32u * span > 2u * 16u * s->rt * s->kc * 2u) return 0; /* an 8-row output pass must fit the staging buffers */ + if ((8u * span) % (32u * s->warps)) return 0; + if (s->mutant < 0 || s->mutant > 5) return 0; + return 1; +} +uint32_t omega_tgemm_shared_bytes(const OmegaTgemmSpec *s) { return omega_tgemm_spec_ok(s) ? 2u * 16u * s->rt * s->kc * 2u : 0u; } +uint32_t omega_tgemm_span(const OmegaTgemmSpec *s) { return omega_tgemm_spec_ok(s) ? s->warps * 8u * s->ct : 0u; } +uint32_t omega_tgemm_bm(const OmegaTgemmSpec *s) { return omega_tgemm_spec_ok(s) ? 16u * s->rt : 0u; } + +/* d = lut(a[asub], b[bsub], c) */ +static void lop3s(Em *e, int d, int a, unsigned asub, int b, unsigned bsub, int c, uint32_t lut) { + BlackwellIRInsn i = I0(BW_IR_LOP3_LUT); i.dst_vreg = d; i.src1_vreg = a; i.src1_subreg = (uint8_t)asub; i.src2_vreg = b; i.src2_subreg = (uint8_t)bsub; i.src3_vreg = c; i.imm = lut; emit(e, i, K_FIXED); +} +/* d[dsub] = a * imm + c */ +static void imadi_d(Em *e, int d, unsigned dsub, int a, uint32_t imm, int c) { + BlackwellIRInsn i = I0(BW_IR_IMAD); i.dst_vreg = d; i.dst_subreg = (uint8_t)dsub; i.src1_vreg = a; i.imm = imm; i.src3_vreg = c; emit(e, i, K_FIXED); +} +/* d[dsub] = a >> imm (SHF.R.U32.HI) */ +static void shr_d(Em *e, int d, unsigned dsub, int a, uint32_t imm) { + BlackwellIRInsn i = I0(BW_IR_SHF_R); i.dst_vreg = d; i.dst_subreg = (uint8_t)dsub; i.src1_vreg = a; i.imm = imm; emit(e, i, K_FIXED); +} +/* d[dsub] = a[asub] + b */ +static void iadd_d(Em *e, int d, unsigned dsub, int a, unsigned asub, int b) { + BlackwellIRInsn i = I0(BW_IR_IADD3); i.dst_vreg = d; i.dst_subreg = (uint8_t)dsub; i.src1_vreg = a; i.src1_subreg = (uint8_t)asub; i.src2_vreg = b; emit(e, i, K_FIXED); +} +static void sts32_sub(Em *e, int addr, int val, unsigned sub) { + BlackwellIRInsn st = I0(BW_IR_STS32); st.src1_vreg = addr; st.src2_vreg = val; st.src2_subreg = (uint8_t)sub; emit(e, st, K_STORE); +} + +int omega_blackwell_codegen_tgemm_prog(const OmegaTgemmSpec *spec, BlackwellIRProgram *prog) { + if (!omega_tgemm_spec_ok(spec) || !prog) return -1; + const uint32_t K = spec->k, N = spec->n, RT = spec->rt, CT = spec->ct, W = spec->warps, T = 32u * W, KC = spec->kc, AQN = spec->aqn; + const uint32_t BM = 16u * RT, SPAN = W * 8u * CT, NS = KC / 16u /* HMMA steps per chunk */, NCH = 128u / KC /* chunks per block */; + const uint32_t PPR = KC / 4u /* LDG.64 pieces per row of a chunk */, NJ = BM * PPR / T, BUF = BM * KC * 2u; + omega_bw_ir_init(prog); + Em em; memset(&em, 0, sizeof em); em.p = prog; + Em *e = &em; + + /* ---- prologue: arguments, ids, tile entry ---- */ + int udesc = UV64(e), ptab = V64(e), pa = V64(e), pbb = V64(e); + int tid = V(e), cx = V(e), cy = V(e), warp = V(e), lane = V(e), g = V(e), tq = V(e), one = V(e), tent = V64(e); + int rk = V64(e) /* row0, kb0 */, nkb = V64(e) /* nkb, pad */; + int n0w = V(e), tmp = V(e), tmp2 = V(e), pb = V64(e), la = V(e), msel = V(e); + if (e->err) return -1; + ldcu64(e, udesc, 0x358); + ldc64(e, ptab, 0x380); ldc64(e, pa, 0x388); ldc64(e, pbb, 0x390); + s2r(e, tid, BW_SR_TID_X); s2r(e, cx, BW_SR_CTAID_X); s2r(e, cy, BW_SR_CTAID_Y); + movi(e, one, 1); + shr(e, warp, tid, 0, 5); andi(e, lane, tid, 0, 31); shr(e, g, lane, 0, 2); andi(e, tq, lane, 0, 3); + imadw(e, tent, cy, OMEGA_TGEMM_TILE_BYTES, ptab); + ldg_wide(e, BW_IR_LDG_E_64, rk, tent, 8, udesc, 1); + ldg_wide(e, BW_IR_LDG_E_64, nkb, tent, 16, udesc, 0); + /* this warp's first output column n0w; B fragment pointer: row kb0 * 128 + 8 t, column n0w + 4 (g / 2) */ + imadi(e, n0w, cx, 0, SPAN, NOREG); imadi(e, tmp, warp, 0, 8u * CT, NOREG); iadd(e, n0w, n0w, tmp); + imadi(e, tmp, rk, 1, 128u, NOREG); imadi(e, tmp, tq, 0, 8u, tmp); imadi(e, tmp, tmp, 0, N, n0w); + shr(e, tmp2, g, 0, 1); imadi(e, tmp, tmp2, 0, 4u, tmp); imadw(e, pb, tmp, 2u, pbb); + /* half-word select mask: odd g takes the high word of its 8 B row bytes (mutant 4 swaps the parity) */ + andi(e, tmp, g, 0, 1); if (spec->mutant == 4) imadi(e, tmp, tmp, 0, 0xffffffffu, one); + imadi(e, msel, tmp, 0, 0xffffffffu, NOREG); + imadi(e, la, lane, 0, 16u, NOREG); + + /* ---- staging assignment: piece = tid + jj * T -> row r = piece / PPR, pp = piece % PPR (4 bf16 at k 4 pp) ---- */ + /* piece jj of a thread is piece 0 moved RJ = T / PPR rows down: the same pp, row + jj RJ, so one address register and one + * shared offset serve all pieces (constant byte offsets jj * RJ * K * 2 on the load, jj * (RJ / 16) * NS * 512 on the store) */ + const uint32_t RJ = T / PPR, GXJ = RJ * K * 2u, SAJ = (RJ / 16u) * NS * 512u; + int gx = V64(e), sa = V(e), r = V(e), pp = V(e), hh = V(e); + if (e->err) return -1; + { + shr(e, r, tid, 0, (uint32_t)log2u(PPR)); andi(e, pp, tid, 0, PPR - 1u); + /* global: a + ((row0 + r) * K + kb0 * 128 + 4 pp) * 2 */ + iadd(e, tmp, rk, r); imadw(e, gx, tmp, K * 2u, pa); + imadi(e, tmp, rk, 1, 256u, NOREG); imadi(e, tmp, pp, 0, 8u, tmp); imadw(e, gx, tmp, 1, gx); + /* shared: (r / 16) * NS * 512 + (pp & 1) * 512 + (4 (r % 8) + pp / 2) * 16 + 4 ((r / 8) & 1) */ + shr(e, tmp, r, 0, 4); imadi(e, tmp, tmp, 0, NS * 512u, NOREG); + andi(e, tmp2, pp, 0, 1); imadi(e, tmp, tmp2, 0, 512u, tmp); + andi(e, tmp2, r, 0, 7); imadi(e, tmp2, tmp2, 0, 4u, NOREG); shr(e, hh, pp, 0, 1); iadd(e, tmp2, tmp2, hh); imadi(e, tmp, tmp2, 0, 16u, tmp); + shr(e, hh, r, 0, 3); andi(e, hh, hh, 0, 1); imadi(e, sa, hh, 0, 4u, tmp); + } + + /* ---- loop-wide registers ---- */ + int acc[16], bq[2][8], stgr[8], aq[2], wsel[2], bE = V64(e), bO = V64(e), tw = V(e), cntk = V(e); + for (uint32_t x = 0; x < RT * CT; x++) acc[x] = V128(e); + for (unsigned set = 0; set < 2; set++) for (uint32_t j = 0; j < 4u * NS; j++) bq[set][j] = V64(e); + for (uint32_t jj = 0; jj < NJ; jj++) stgr[jj] = V64(e); + for (uint32_t q = 0; q < AQN; q++) aq[q] = V128(e); + for (unsigned j = 0; j < 2; j++) wsel[j] = V(e); + if (e->err) return -1; + + /* A pieces of chunk c (immediate c * KC * 2) and the B rows of the chunk (pb points at its row kb0 * 128 + chunk * KC + 8 t) */ + #define ISSUE(set, sb, chunk) do { \ + for (uint32_t jj = 0; jj < NJ; jj++) ldw_pf(e, BW_IR_LDG_E_64, stgr[jj], gx, jj * GXJ + (chunk) * KC * 2u, udesc, (sb)); \ + for (uint32_t s = 0; s < NS; s++) for (uint32_t j = 0; j < 4; j++) ldw_pf(e, BW_IR_LDG_E_64, bq[set][s * 4u + j], pb, (4u * s + j) * N * 2u, udesc, (sb)); } while (0) + #define STAGE(buf) do { for (uint32_t jj = 0; jj < NJ; jj++) { \ + imadi(e, tmp, one, 0, (buf) + jj * SAJ, sa); sts32_sub(e, tmp, stgr[jj], 0); \ + imadi(e, tmp, one, 0, (buf) + jj * SAJ + 8u, sa); sts32_sub(e, tmp, stgr[jj], 1); } bar_sync(e); } while (0) + /* B fragments of step s: W_j = half word (g % 2) of row word j (LOP3 select); E: (W0.lo, W1.lo), (W2.lo, W3.lo) by + * IMAD W1 * 2^16 + (W0 & 0xffff); O: (W0.hi, W1.hi), (W2.hi, W3.hi) by (W0 >> 16) + (W1 & 0xffff0000). (IMAD.HI.U32 would do + * the O half in one instruction, but its Rc is a 64-bit pair on the chip: odd columns came back wrong, first chip run.) */ + #define BFRAG(set, s) do { for (unsigned h = 0; h < 2; h++) { \ + for (unsigned j = 0; j < 2; j++) lop3s(e, wsel[j], bq[set][(s) * 4u + 2 * h + j], 0, bq[set][(s) * 4u + 2 * h + j], 1, msel, 0xd8u); \ + andi(e, tw, wsel[0], 0, 0xffffu); imadi_d(e, bE, h, wsel[1], 0x10000u, tw); \ + andi(e, tw, wsel[1], 0, 0xffff0000u); shr_d(e, bO, h, wsel[0], 16u); iadd_d(e, bO, h, bO, h, tw); } } while (0) + #define COMPUTE(buf, set, last) do { \ + for (uint32_t s = 0; s < NS; s++) { \ + if (spec->mutant == 1 && (last) && s == NS - 1u) break; \ + BFRAG(set, s); \ + for (uint32_t i0 = 0; i0 < RT; i0 += AQN) { \ + const uint32_t nb = RT - i0 < AQN ? RT - i0 : AQN; \ + for (uint32_t q = 0; q < nb; q++) { uint32_t i = i0 + q, ii = spec->mutant == 3 ? (i ^ 1u) : i; \ + lds128(e, aq[q], la, (buf) + (ii * NS + s) * 512u, q == 0); } \ + for (uint32_t q = 0; q < nb; q++) { const uint32_t x = (i0 + q) * CT; \ + hmma(e, acc[x], aq[q], bE, acc[x], 8); hmma(e, acc[x + 1], aq[q], bO, acc[x + 1], 8); } \ + } \ + } } while (0) + + for (uint32_t x = 0; x < RT * CT; x++) for (unsigned q = 0; q < 4; q++) { BlackwellIRInsn mz = I0(BW_IR_MOV_RZ); mz.dst_vreg = acc[x]; mz.dst_subreg = (uint8_t)q; emit(e, mz, K_FIXED); } + ISSUE(0, 3u, 0u); + consume(e, 3); + STAGE(0u); + imadi(e, cntk, nkb, 0, 1, NOREG); + + /* ---- K loop: one 128-wide block (NCH chunks) per iteration; sets and buffers alternate per chunk (NCH even) ---- */ + const int L_k = here(e); + loop_begin(e); + for (uint32_t c = 0; c < NCH; c++) { + const unsigned cur = c & 1u, nxt = cur ^ 1u; /* set / buffer holding chunk c; the other receives chunk c + 1 */ + const uint32_t cbuf = cur ? BUF : 0u, nbuf = nxt ? BUF : 0u; + if (c + 1u < NCH) { + imadw(e, pb, one, KC * N * 2u, pb); /* B rows of chunk c + 1 */ + ISSUE(nxt, nxt ? 4u : 3u, c + 1u); + } else { + /* the next block's chunk 0: advance only when a block follows (nf = cntk != 1); the last iteration re-reads its own */ + int nf = V(e); if (e->err) return -1; + imadi(e, nf, one, 0, 0xfffffffeu, cntk); shr(e, nf, nf, 0, 31); imadi(e, nf, nf, 0, 0xffffffffu, one); + imadw(e, gx, nf, spec->mutant == 2 ? 0u : 256u, gx); + imadw(e, pb, nf, KC * N * 2u, pb); + ISSUE(nxt, nxt ? 4u : 3u, 0u); + } + COMPUTE(cbuf, cur, c + 1u == NCH); + consume(e, nxt ? 4u : 3u); + STAGE(nbuf); + } + imadi(e, cntk, one, 0, 0xffffffffu, cntk); + isetp_ge_u32(e, cntk, one); + bra_if_p0(e, L_k); + loop_end(e); + #undef ISSUE + #undef STAGE + #undef BFRAG + #undef COMPUTE + + /* ---- epilogue: the HMMA results must have settled. The tile goes out through shared memory in 8-row passes so that every + * warp store writes 128 contiguous bytes: storing straight from the fragment layout (a lane owns 16 bytes per row, one 4-byte + * STG per word) touched 16 half-filled sectors per instruction and cost more than half of the kernel time at K 768 + * (chip probe: the no-store mutant 5 ran 8192x768x768 in 0.150 ms against 0.334 ms). Addresses in fresh registers. ---- */ + nop(e, 15); nop(e, 14); + { + const uint32_t RJ2 = T / SPAN /* rows per read step */, NJ2 = 8u * SPAN / T /* words per thread per pass */; + int tid2 = V(e), cx2 = V(e), cy2 = V(e), lane2 = V(e), g2 = V(e), tq2 = V(e), warp2 = V(e), tab2 = V64(e), ten2 = V64(e), cva2 = V64(e), rk2 = V64(e); + int onee = V(e), p0 = V64(e), pp2 = V64(e), sw[4], sr[4], rd[4]; + for (unsigned w = 0; w < 4; w++) sw[w] = V(e); + for (uint32_t j = 0; j < NJ2; j++) { sr[j] = V(e); rd[j] = V(e); } + if (e->err) return -1; + ldc64(e, tab2, 0x380); + s2r(e, tid2, BW_SR_TID_X); s2r(e, cx2, BW_SR_CTAID_X); s2r(e, cy2, BW_SR_CTAID_Y); + imadw(e, ten2, cy2, OMEGA_TGEMM_TILE_BYTES, tab2); + ldg_wide(e, BW_IR_LDG_E_64, cva2, ten2, 0, udesc, 1); + ldg_wide(e, BW_IR_LDG_E_64, rk2, ten2, 8, udesc, 0); + andi(e, lane2, tid2, 0, 31); shr(e, g2, lane2, 0, 2); andi(e, tq2, lane2, 0, 3); shr(e, warp2, tid2, 0, 5); movi(e, onee, 1); + /* the lane's four slots of a pass: (g * SPAN + warp * 16 + 4 t + w) * 4 (row g of the pass, the warp's columns) */ + imadi(e, tmp, g2, 0, SPAN, NOREG); imadi(e, tmp, warp2, 0, 16u, tmp); imadi(e, tmp, tq2, 0, 4u, tmp); imadi(e, tmp2, tmp, 0, 4u, NOREG); + for (unsigned w = 0; w < 4; w++) imadi(e, sw[w], onee, 0, 4u * w, tmp2); + /* the thread's read slots: word q = tid + T j (consecutive lanes, consecutive words): row q / SPAN = tid / SPAN + j RJ2 */ + for (uint32_t j = 0; j < NJ2; j++) { imadi(e, tmp, onee, 0, j * T, tid2); imadi(e, sr[j], tmp, 0, 4u, NOREG); } + /* p0 = c + ((row0 + tid / SPAN) * N + cx * SPAN + tid % SPAN) * 4; pass (i, h) adds (16 i + 8 h) rows, read step j adds j RJ2 rows */ + shr(e, tmp, tid2, 0, (uint32_t)log2u(SPAN)); iadd(e, tmp, rk2, tmp); imadi(e, tmp, tmp, 0, N, NOREG); + imadi(e, tmp2, cx2, 0, SPAN, tmp); andi(e, tmp, tid2, 0, SPAN - 1u); iadd(e, tmp, tmp, tmp2); imadw(e, p0, tmp, 4u, cva2); + for (uint32_t i = 0; i < RT; i++) for (unsigned h = 0; h < 2; h++) { + if (spec->mutant == 5) continue; /* timing probe only: no output */ + bar_sync(e); /* the previous pass's reads (or the K loop's last LDS) are complete before the slots are rewritten */ + for (unsigned w = 0; w < 4; w++) sts32_sub(e, sw[w], acc[i * CT + (w & 1u)], 2u * h + (w >> 1)); + bar_sync(e); + for (uint32_t j = 0; j < NJ2; j++) { BlackwellIRInsn ld = I0(BW_IR_LDS32); ld.dst_vreg = rd[j]; ld.src1_vreg = sr[j]; emit(e, ld, j == 0 ? K_VAR : K_VAR_MORE); } + imadw(e, pp2, onee, (16u * i + 8u * h) * N * 4u, p0); + for (uint32_t j = 0; j < NJ2; j++) stg(e, pp2, j * RJ2 * N * 4u, rd[j], udesc); + } + } + tail(e); + if (e->err) return -1; + if (prog->count > OMEGA_TGEMM_MAX_INSNS) return -1; + if (omega_bw_regalloc_solve(prog) != 0) return -1; + if (!omega_bw_gpr_declared_ok(omega_bw_gpr_declared(prog->regalloc.peak_gpr_usage), prog->regalloc.peak_gpr_usage) || omega_bw_gpr_declared(prog->regalloc.peak_gpr_usage) > 128u) return -1; + return 0; +} diff --git a/src/omega_blackwell_codegen_tgemm.h b/src/omega_blackwell_codegen_tgemm.h new file mode 100644 index 000000000..abf9d30af --- /dev/null +++ b/src/omega_blackwell_codegen_tgemm.h @@ -0,0 +1,67 @@ +#ifndef OMEGA_BLACKWELL_CODEGEN_TGEMM_H +#define OMEGA_BLACKWELL_CODEGEN_TGEMM_H +/* + * omega_blackwell_codegen_tgemm: device-resident bf16 training GEMM on the tensor cores (trainer lane E1, 2026-10-16). + * New file. C[M][N] (f32, row-major) = A[M][K] (bf16, row-major) x B[K][N] (bf16, row-major): the NN layout of the + * trainer's forward Linear (Y = X W^T with W stored transposed), no per-call host pack. Fragment layout, emitter rules, + * scheduling (ldw_pf scoreboards 3/4, hmma stall 8, nop 15 + nop 14 before the first accumulator read) and the double- + * buffered shared staging are the chip-proven ones of omega_blackwell_codegen_tc2 (OWN30B-L1G-GEMM-1e76e728). + * + * K is walked in 128-wide blocks of four 32-wide chunks. Inside a 32-wide chunk lane t (lane % 4) of every HMMA owns + * k = 8t + {0..7}: HMMA step s (0, 1) of the chunk puts k = 8t + 4s + {0, 1} at fragment positions (2t, 2t + 1) and + * k = 8t + 4s + {2, 3} at (2t + 8, 2t + 9). The 16-term HMMA sum is order independent (tests/bw_hmma_model.h), so any + * consistent lane -> k assignment is exact; this one makes every A row word and every B row word contiguous in memory. + * - A tile (16 rt rows x 32 k): LDG.E.64 pieces (4 bf16 of one row), STS32 x 2 into the lane's fragment slot of the + * staging buffer (per row tile i and step s: 32 lanes x 16 bytes at (i * 2 + s) * 512), BAR.SYNC, LDS.128 per row tile. + * Two buffers of 16 rt x 32 x 2 bytes: 2048 rt bytes of shared (rt 8: 16 KB, the QMD cap). + * - B (K x N, N contiguous): each lane loads its B fragment rows straight from global: per step four LDG.E.64 at rows + * k = 8t + 4s + j, columns n0w + 4 (g / 2) .. + 3 (the lane needs the half word (g % 2) of them, selected with one LOP3 + * per row word; lanes g, g ^ 1 touch the same 8 bytes, so no extra L2 sectors), then IMAD / IMAD.HI.U32 pack the two + * column tiles: tile E = the warp's even physical columns (n0w + 2 g), tile O = the odd ones (n0w + 2 g + 1). + * Two register sets (scoreboards 3 and 4) alternate per chunk so the next chunk's B is in flight during the HMMAs. + * - Epilogue F32: the tile leaves through shared memory in 8-row passes (lane (g, t) parks its words E.c, O.c of row g at the + * pass columns n0w + 4 t .. + 3, BAR.SYNC, then thread tid reads words tid + T j and stores them: every warp STG writes 128 + * contiguous bytes). Storing straight from the fragment layout with 4-byte STG touched 16 half-filled sectors per + * instruction and cost more than half of the kernel time at K 768 (chip probe, no-store mutant 5). Store immediates stay + * under the encoder's 2^23 for N up to 2^17 (50304: the lm_head gradient). + * + * Tile table entry (32 bytes, ctaid.y): { c_va u64 (output base for this tile's K part), row0 u32, kb0 u32 (first 128-block), + * nkb u32 (blocks, >= 1), pad u32, pad u64 }. Constant bank 0 (cbank + 0x380): tiles u64, a u64, b u64. + * Grid: grid_x = n / span (span = warps * 8 * ct), grid_y = tiles; CTA 32 * warps threads; rows of a tile are always + * 16 rt (the caller pads M to a multiple of the tile height). + * mutant (tests only): 1 drops HMMA step 1 of the last chunk of every block, 2 never advances the A pointer to the next + * block, 3 row tile i reads tile i ^ 1, 4 swaps the column parity (tile E takes the odd columns), 5 stores nothing (timing probe). + */ +#include +#include "omega_blackwell_codegen.h" + +#ifdef __cplusplus +extern "C" { +#endif +enum { OMEGA_TGEMM_LAYOUT_NN = 0 }; +enum { OMEGA_TGEMM_EPI_F32 = 0 }; +typedef struct { + uint32_t k; /* multiple of 128, 128 .. 65536 (the per-tile K range is kb0 .. kb0 + nkb blocks of 128) */ + uint32_t n; /* output width, a multiple of span, < 2^17 */ + uint32_t rt; /* row tiles of 16 per CTA: 2, 4 or 8 */ + uint32_t ct; /* column tiles of 8 per warp: 2 */ + uint32_t warps; /* 8 or 16 */ + uint32_t kc; /* k per chunk: 32 */ + uint32_t aqn; /* A fragments in flight: 1 or 2 */ + uint32_t layout; /* OMEGA_TGEMM_LAYOUT_* */ + uint32_t epi; /* OMEGA_TGEMM_EPI_* */ + int mutant; +} OmegaTgemmSpec; +#define OMEGA_TGEMM_ARGS_WORDS 6u +#define OMEGA_TGEMM_TILE_BYTES 32u +#define OMEGA_TGEMM_MAX_INSNS 1000u +int omega_tgemm_spec_ok(const OmegaTgemmSpec *s); +uint32_t omega_tgemm_shared_bytes(const OmegaTgemmSpec *s); +uint32_t omega_tgemm_span(const OmegaTgemmSpec *s); +uint32_t omega_tgemm_bm(const OmegaTgemmSpec *s); /* rows per tile */ +/* -1: refused (spec, emitter, allocator, or more than OMEGA_TGEMM_MAX_INSNS instructions / 128 declared registers) */ +int omega_blackwell_codegen_tgemm_prog(const OmegaTgemmSpec *s, BlackwellIRProgram *prog); +#ifdef __cplusplus +} +#endif +#endif diff --git a/src/omega_bw_em.h b/src/omega_bw_em.h index e72c743e0..e43dc0db5 100644 --- a/src/omega_bw_em.h +++ b/src/omega_bw_em.h @@ -140,6 +140,6 @@ static void nop(Em *e, uint32_t stall) { } static void lop3(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; emit(e, i, K_FIXED); } static void iadd(Em *e, int d, int a, int b) { BlackwellIRInsn i = I0(BW_IR_IADD3); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); } -static void shfl_bfly(Em *e, int d, int a, uint32_t lane) { shfl_down(e, d, a, OMEGA_TC_MARK_BFLY | (lane & 31u)); } -static void f2fp_pack(Em *e, int d, int hi, int lo) { BlackwellIRInsn i = I0(BW_IR_FMNMX_MAX); i.dst_vreg = d; i.src1_vreg = hi; i.src2_vreg = lo; i.imm = OMEGA_TC_MARK_F2FP; emit(e, i, K_FIXED); } +static void shfl_bfly(Em *e, int d, int a, uint32_t lane) { BlackwellIRInsn i = I0(BW_IR_SHFL_BFLY); i.dst_vreg = d; i.src1_vreg = a; i.imm = lane & 31u; emit(e, i, K_VAR); } +static void f2fp_pack(Em *e, int d, int hi, int lo) { BlackwellIRInsn i = I0(BW_IR_F2FP_BF16_PACK); i.dst_vreg = d; i.src1_vreg = hi; i.src2_vreg = lo; emit(e, i, K_FIXED); } #endif diff --git a/src/omega_gpu_fp8_pack.c b/src/omega_gpu_fp8_pack.c index 2b67ea271..4c41db560 100644 --- a/src/omega_gpu_fp8_pack.c +++ b/src/omega_gpu_fp8_pack.c @@ -7,7 +7,8 @@ #include "omega_gpu_fp8_api.h" #include "omega_blackwell_codegen_moe.h" #include "omega_blackwell_matmul.h" -#include +#include "omega_gpu_hostmath.h" /* omega_hostmath_pow2f: exact 2^e without libm (omega#471) */ +#include /* NAN, fabsf, fabs: compiler builtins, no libm reference (checked by test-gpu-libm-free) */ #include float omega_fp8_e4m3_ref(uint8_t b) { @@ -15,8 +16,8 @@ float omega_fp8_e4m3_ref(uint8_t b) { float mantissa = (float)(b & 0x07); float sign = (b & 0x80) ? -1.0f : 1.0f; if (exponent == 0x0f && (b & 0x07) == 0x07) return NAN; /* 0x7f / 0xff */ - if (exponent == 0) return sign * mantissa * ldexpf(1.0f, -9); - return sign * (1.0f + mantissa / 8.0f) * ldexpf(1.0f, exponent - 7); + if (exponent == 0) return sign * mantissa * omega_hostmath_pow2f(-9); + return sign * (1.0f + mantissa / 8.0f) * omega_hostmath_pow2f(exponent - 7); } uint32_t omega_fp8_e4m3_kernel_bits(uint8_t b) { @@ -33,7 +34,7 @@ size_t omega_fp8_pack_scan_nan(const uint8_t *w, size_t count, size_t *first) { } int omega_fp8_pack_scales(const uint16_t *bf16, size_t count, float *out, int mutant_no_fold) { - const float fold = mutant_no_fold ? 1.0f : ldexpf(1.0f, OMEGA_FP8_SCALE_EXP); + const float fold = mutant_no_fold ? 1.0f : omega_hostmath_pow2f(OMEGA_FP8_SCALE_EXP); for (size_t i = 0; i < count; i++) { float s = omega_bf16_to_fp32(bf16[i]); if (!(fabsf(s) <= 3.0e38f)) return -1; /* NaN or inf scale */ @@ -45,12 +46,12 @@ int omega_fp8_pack_scales(const uint16_t *bf16, size_t count, float *out, int mu } void omega_fp8_pack_x_f32(const float *x, uint32_t k, float *out) { - const float fold = ldexpf(1.0f, OMEGA_FP8_X_EXP); + const float fold = omega_hostmath_pow2f(OMEGA_FP8_X_EXP); for (uint32_t i = 0; i < k; i++) out[i] = x[i] * fold; } void omega_fp8_pack_x_bf16(const uint16_t *x, uint32_t k, float *out) { - const float fold = ldexpf(1.0f, OMEGA_FP8_X_EXP); + const float fold = omega_hostmath_pow2f(OMEGA_FP8_X_EXP); for (uint32_t i = 0; i < k; i++) out[i] = omega_bf16_to_fp32(x[i]) * fold; } diff --git a/src/omega_gpu_hostmath.c b/src/omega_gpu_hostmath.c index e042023c9..403780f4f 100644 --- a/src/omega_gpu_hostmath.c +++ b/src/omega_gpu_hostmath.c @@ -80,3 +80,14 @@ void omega_hostmath_sincos(double a, double *s, double *c) { default: *s = -cr; *c = sr; break; } } + +float omega_hostmath_pow2f(int e) { + uint32_t u; + if (e > 127) u = 0x7f800000u; /* +inf, as ldexpf overflows */ + else if (e >= -126) u = (uint32_t)(e + 127) << 23; /* normal: biased exponent, zero mantissa */ + else if (e >= -149) u = (uint32_t)1 << (e + 149); /* subnormal: one mantissa bit */ + else u = 0; /* 2^-150 and below round to +0 (ties to even) */ + float f; + memcpy(&f, &u, 4); + return f; +} diff --git a/src/omega_gpu_hostmath.h b/src/omega_gpu_hostmath.h index 50f0ecef5..6430e614b 100644 --- a/src/omega_gpu_hostmath.h +++ b/src/omega_gpu_hostmath.h @@ -12,9 +12,13 @@ * pow(b, e): b > 0 finite; exp(e * log(b)). Relative error about |e * log b| * 2^-52. * sincos(a): valid for |a| < 2^20 * pi/2 (about 1.6e6; the RoPE table needs pos < 65536). Three-part * Cody-Waite reduction with the fdlibm pi/2 pieces, series to r^16. Absolute error about 1e-16. + * pow2f(e): the float 2^e for any int e, built from its bit pattern (omega#471): +inf above 127, the + * subnormal 2^e for -149 <= e < -126, +0 below -149. Bit-identical to ldexpf(1.0f, e) for every + * int e (tests/gpu_libm_free_test.c checks -400..400 plus INT_MIN and INT_MAX). */ double omega_hostmath_log(double x); double omega_hostmath_exp(double y); double omega_hostmath_pow(double base, double e); void omega_hostmath_sincos(double a, double *s, double *c); +float omega_hostmath_pow2f(int e); #endif diff --git a/src/omega_gpu_prefill.c b/src/omega_gpu_prefill.c index 9cea0025b..7e4ffa61f 100644 --- a/src/omega_gpu_prefill.c +++ b/src/omega_gpu_prefill.c @@ -91,7 +91,6 @@ int omega_gpu_pf_kernel_locked(const OmegaPfKey *key, OmegaPfGen gen, OmegaPfKer if (omega_gpu_session_alloc_code(need, &code) != 0) { omega_gpu_host_free(prog); return OMEGA_GPU_PF_CHIP_FAIL; } OmegaBlackwellKernel kernel; cg = omega_blackwell_kernel_encode_into(prog, code.cpu, need, &kernel); - if (cg == 0 && omega_tc_patch_code(prog, code.cpu, need) < 0) cg = -1; if (cg == 0 && omega_qmma_patch_code(prog, code.cpu, need) < 0) cg = -1; omega_gpu_host_free(prog); if (cg != 0 || kernel.code_size != need) { omega_gpu_session_free(&code); omega_gpu_session_set_error("prefill encode failed"); return OMEGA_GPU_PF_CODEGEN_FAIL; } diff --git a/src/omega_gpu_prefill_attn_api.c b/src/omega_gpu_prefill_attn_api.c index 9bef1d426..e3c934a6f 100644 --- a/src/omega_gpu_prefill_attn_api.c +++ b/src/omega_gpu_prefill_attn_api.c @@ -2,8 +2,6 @@ * omega_gpu_prefill_attn_api.c: chunked launches of the tensor-core causal prefill attention (see the header). * Session use mirrors omega_gpu_decode_attn_api.c: buffers from omega_gpu_session_alloc (GPU-uncached, host-visible), * sync_to_gpu after host writes, sync_to_cpu before host reads, one omega_gpu_session_launch per chunk. - * The kernel uses the SHFL.BFLY / F2FP placeholders of omega_blackwell_codegen_tc.h: the code is patched after encoding - * and the patch count must equal the program's placeholder count. */ #include "omega_gpu_prefill_attn_api.h" #include "omega_blackwell_codegen_tc.h" @@ -128,18 +126,16 @@ static int copy_locked(uint64_t dst, uint64_t src, size_t bytes, uint64_t *ns) { } #endif -size_t omega_gpu_prefill_attn_encode(const OmegaPrefillAttnSpec *spec, uint8_t *code, size_t cap, uint32_t *gprs, int *patched) { +size_t omega_gpu_prefill_attn_encode(const OmegaPrefillAttnSpec *spec, uint8_t *code, size_t cap, uint32_t *gprs) { BlackwellIRProgram *prog = omega_gpu_host_calloc(1, sizeof *prog); if (!prog) return 0; size_t need = 0; if (omega_blackwell_codegen_prefill_attn_prog(spec, prog) == 0) need = omega_bw_program_code_bytes(prog); OmegaBlackwellKernel k; if (need == 0 || need > cap || omega_blackwell_kernel_encode_into(prog, code, cap, &k) != 0) { omega_gpu_host_free(prog); return 0; } - int np = omega_tc_patch_code(prog, code, need); if (gprs) *gprs = k.gpr_count; - if (patched) *patched = np; omega_gpu_host_free(prog); - return np < 0 ? 0 : need; + return need; } static int kernel_for(const OmegaPrefillAttnSpec *spec, Slot **out, bool *hit) { @@ -153,19 +149,12 @@ static int kernel_for(const OmegaPrefillAttnSpec *spec, Slot **out, bool *hit) { size_t need = cg == 0 ? omega_bw_program_code_bytes(prog) : 0; if (cg != 0 || need == 0) { omega_gpu_host_free(prog); omega_gpu_session_set_error("prefill attn codegen refused the spec"); return OMEGA_GPU_DATTN_CODEGEN_FAIL; } if ((uint64_t)32u * spec->warps * omega_bw_gpr_declared(prog->regalloc.peak_gpr_usage) > 65536u) { omega_gpu_host_free(prog); omega_gpu_session_set_error("prefill attn: register file"); return OMEGA_GPU_DATTN_TOO_LARGE; } - uint32_t expect = 0; - for (size_t i = 0; i < prog->count; i++) { - const BlackwellIRInsn *in = &prog->insns[i]; - if ((in->op == BW_IR_SHFL_DOWN && (in->imm & OMEGA_TC_MARK_BFLY)) || (in->op == BW_IR_FMNMX_MAX && in->imm == OMEGA_TC_MARK_F2FP)) expect++; - } OmegaGpuMem code; if (omega_gpu_session_alloc_code(need, &code) != 0) { omega_gpu_host_free(prog); return OMEGA_GPU_DATTN_CHIP_FAIL; } OmegaBlackwellKernel kernel; cg = omega_blackwell_kernel_encode_into(prog, code.cpu, need, &kernel); - int np = cg == 0 ? omega_tc_patch_code(prog, code.cpu, need) : -1; omega_gpu_host_free(prog); if (cg != 0 || !kernel.code || kernel.code_size != need) { omega_gpu_session_free(&code); omega_gpu_session_set_error("prefill attn encode"); return OMEGA_GPU_DATTN_CODEGEN_FAIL; } - if (np < 0 || (uint32_t)np != expect) { omega_gpu_session_free(&code); omega_gpu_session_set_error("prefill attn: placeholder patch count mismatch"); return OMEGA_GPU_DATTN_CODEGEN_FAIL; } if (omega_gpu_session_sync_to_gpu(&code) != 0) { omega_gpu_session_free(&code); return OMEGA_GPU_DATTN_CHIP_FAIL; } memset(s, 0, sizeof *s); s->valid = true; s->spec = *spec; s->kernel = kernel; s->code = code; diff --git a/src/omega_gpu_prefill_attn_api.h b/src/omega_gpu_prefill_attn_api.h index f241a7f4d..cc490ff1f 100644 --- a/src/omega_gpu_prefill_attn_api.h +++ b/src/omega_gpu_prefill_attn_api.h @@ -72,7 +72,7 @@ int omega_gpu_prefill_attn_kv_mirror_available(void); uint32_t omega_gpu_prefill_attn_test_launch_ns(uint64_t *ns, uint32_t cap); #define OMEGA_GPU_PATTN_HOST_PASS 1024u /* host entry: tokens per staged pass in split mode */ -/* host: build + encode + patch the kernel for a spec into code (cap bytes); returns the code size or 0 (tests) */ -size_t omega_gpu_prefill_attn_encode(const OmegaPrefillAttnSpec *spec, uint8_t *code, size_t cap, uint32_t *gprs, int *patched); +/* host: build + encode the kernel for a spec into code (cap bytes); returns the code size or 0 (tests) */ +size_t omega_gpu_prefill_attn_encode(const OmegaPrefillAttnSpec *spec, uint8_t *code, size_t cap, uint32_t *gprs); #endif diff --git a/src/omega_gpu_tgemm_api.c b/src/omega_gpu_tgemm_api.c new file mode 100644 index 000000000..4c8021a57 --- /dev/null +++ b/src/omega_gpu_tgemm_api.c @@ -0,0 +1,82 @@ +/* omega_gpu_tgemm_api.c: the trainer's device-resident bf16 GEMM (lane E1, cut 1). See the header. */ +#include "omega_gpu_tgemm_api.h" +#include "omega_gpu_prefill.h" +#include + +#define TG_TIMEOUT_MS 20000u /* the prefill module's launch limits (private there; same values) */ +#define TG_SPIN_US 200000u +static struct { uint32_t rt, warps, aqn; int mutant; OmegaGpuMem tab; } g; +void omega_gpu_tgemm_set_shape(uint32_t rt, uint32_t warps, uint32_t aqn) { g.rt = rt; g.warps = warps; g.aqn = aqn; } +void omega_gpu_tgemm_test_set_mutant(int m) { g.mutant = m; } +uint32_t omega_gpu_tgemm_bm(uint32_t n) { if (g.rt) return 16u * g.rt; const uint32_t w = g.warps ? g.warps : (n % 256u ? 8u : 16u); return w == 16u ? 128u : 64u; } /* mirrors omega_gpu_tgemm_spec */ +_Static_assert(sizeof(OmegaTgemmTile) == OMEGA_TGEMM_TILE_BYTES, "tile entry"); + +int omega_gpu_tgemm_spec(const OmegaTgemmCall *c, OmegaTgemmSpec *out) { + if (!c || !out) return OMEGA_GPU_PF_BAD_ARGS; + OmegaTgemmSpec s; memset(&s, 0, sizeof s); + s.k = c->k; s.n = c->n; s.rt = g.rt ? g.rt : 8u; s.ct = 2; s.kc = 32; s.aqn = g.aqn ? g.aqn : 1u; s.layout = c->layout; s.epi = c->epi; s.mutant = g.mutant; + s.warps = g.warps ? g.warps : (c->n % 256u ? 8u : 16u); + if (!g.rt) s.rt = s.warps == 16u ? 8u : 4u; /* chip sweep TGEMM-CUT1: rt 8 x 16 warps fastest on every gate shape; rt 8 x 8 warps does not fit the register file */ + if (!omega_tgemm_spec_ok(&s)) return OMEGA_GPU_PF_BAD_ARGS; + if (c->m == 0 || c->m % omega_tgemm_bm(&s) || !c->a_va || !c->b_va || !c->c_va) return OMEGA_GPU_PF_BAD_ARGS; + if (c->m / omega_tgemm_bm(&s) > 65535u) return OMEGA_GPU_PF_TOO_LARGE; + if ((uint64_t)c->m * c->n >= (1ull << 32)) return OMEGA_GPU_PF_TOO_LARGE; /* the kernel forms row * n + col in 32 bits before the wide scale (review of PR 487) */ + *out = s; + return OMEGA_GPU_PF_OK; +} + +uint32_t omega_gpu_tgemm_tiles(const OmegaTgemmCall *c, OmegaTgemmTile *tab, uint32_t max) { + OmegaTgemmSpec s; + if (!tab || omega_gpu_tgemm_spec(c, &s) != OMEGA_GPU_PF_OK) return 0; + const uint32_t bm = omega_tgemm_bm(&s), nt = c->m / bm; + if (nt > max) return 0; + for (uint32_t t = 0; t < nt; t++) { tab[t].c_va = c->c_va; tab[t].row0 = t * bm; tab[t].kb0 = 0; tab[t].nkb = c->k / 128u; tab[t].pad = 0; tab[t].pad2 = 0; } + return nt; +} + +static int gen_tgemm(const OmegaPfKey *key, void *prog) { OmegaTgemmSpec s; memcpy(&s, key->words, sizeof s); return omega_blackwell_codegen_tgemm_prog(&s, prog); } + +int omega_gpu_tgemm_fill_launch_locked(const OmegaTgemmCall *c, uint64_t tiles_va, uint32_t ntiles, OmegaGpuLaunch *L, uint32_t *args) { + OmegaTgemmSpec s; + if (!L || !args || !tiles_va || !ntiles) return OMEGA_GPU_PF_BAD_ARGS; + int rc = omega_gpu_tgemm_spec(c, &s); + if (rc != OMEGA_GPU_PF_OK) return rc; + OmegaPfKey key; memset(&key, 0, sizeof key); key.kind = OMEGA_TGEMM_KIND; memcpy(key.words, &s, sizeof s); + _Static_assert(sizeof(OmegaTgemmSpec) <= sizeof key.words, "spec fits the key"); + OmegaPfKernel k; + rc = omega_gpu_pf_kernel_locked(&key, gen_tgemm, &k); + if (rc != OMEGA_GPU_PF_OK) return rc; + const uint32_t threads = 32u * s.warps; + if ((uint64_t)threads * k.gpr_declared > 65536u) return OMEGA_GPU_PF_TOO_LARGE; + if (!omega_bw_gpr_declared_ok(k.gpr_declared, k.gpr_peak)) return OMEGA_GPU_PF_CHIP_FAIL; + const uint64_t va[3] = { tiles_va, c->a_va, c->b_va }; + for (int i = 0; i < 3; i++) { args[2 * i] = (uint32_t)va[i]; args[2 * i + 1] = (uint32_t)(va[i] >> 32); } + memset(L, 0, sizeof *L); + L->code_va = k.code_va; L->gpr_count = k.gpr_declared; L->threads_x = threads; L->threads_y = 1; + L->grid_x = c->n / omega_tgemm_span(&s); L->grid_y = ntiles; L->num_elements = (size_t)threads * L->grid_x * L->grid_y; + L->args = args; L->n_args = OMEGA_TGEMM_ARGS_WORDS; L->timeout_ms = TG_TIMEOUT_MS; L->shared_bytes = omega_tgemm_shared_bytes(&s); L->spin_us = TG_SPIN_US; + return OMEGA_GPU_PF_OK; +} + +int omega_gpu_tgemm(const OmegaTgemmCall *c, uint64_t *ns) { + OmegaTgemmSpec s; + int rc = omega_gpu_tgemm_spec(c, &s); + if (rc != OMEGA_GPU_PF_OK) return rc; + const uint32_t nt = c->m / omega_tgemm_bm(&s); + const size_t need = ((size_t)nt * OMEGA_TGEMM_TILE_BYTES + 4095u) & ~(size_t)4095u; + OmegaGpuLaunch L; uint32_t args[OMEGA_TGEMM_ARGS_WORDS]; + /* the module table is shared state: (re)built only under the session lock, which also serializes the launch that reads it */ + omega_gpu_session_lock(); + rc = omega_gpu_pf_open_locked(); + if (rc == OMEGA_GPU_PF_OK && g.tab.size < need) { omega_gpu_session_free(&g.tab); if (omega_gpu_session_alloc(need, &g.tab) != 0) rc = OMEGA_GPU_PF_CHIP_FAIL; } + if (rc == OMEGA_GPU_PF_OK && omega_gpu_tgemm_tiles(c, g.tab.cpu, nt) != nt) rc = OMEGA_GPU_PF_BAD_ARGS; + if (rc == OMEGA_GPU_PF_OK && omega_gpu_session_sync_to_gpu(&g.tab) != 0) rc = OMEGA_GPU_PF_CHIP_FAIL; + if (rc == OMEGA_GPU_PF_OK) rc = omega_gpu_tgemm_fill_launch_locked(c, g.tab.va, nt, &L, args); + if (rc == OMEGA_GPU_PF_OK) { + uint64_t t = 0; + if (omega_gpu_session_launch(&L, &t, NULL) != 0) rc = OMEGA_GPU_PF_CHIP_FAIL; + else if (ns) *ns += t; + } + omega_gpu_session_unlock(); + return rc; +} diff --git a/src/omega_gpu_tgemm_api.h b/src/omega_gpu_tgemm_api.h new file mode 100644 index 000000000..ab8f39a72 --- /dev/null +++ b/src/omega_gpu_tgemm_api.h @@ -0,0 +1,48 @@ +#ifndef OMEGA_GPU_TGEMM_API_H +#define OMEGA_GPU_TGEMM_API_H +/* + * omega_gpu_tgemm_api: the trainer's device-resident bf16 GEMM (lane E1, 2026-10-16). New file. + * C[m][n] f32 = A[m][k] bf16 x B[k][n] bf16, all three row-major and already resident on the GPU (no host pack per call). + * Kernels: omega_blackwell_codegen_tgemm.h, cached through the prefill module's resident-kernel cache (omega_gpu_prefill.h, + * kind OMEGA_TGEMM_KIND). Return codes are the prefill module's (OMEGA_GPU_PF_OK, _BAD_ARGS, _TOO_LARGE, _CHIP_FAIL). + * Memory rule (trainer plan R-8): buffers from omega_gpu_pf_alloc_dev are GPU-cached and must never be read or written by the + * CPU; the tile table is a host (uncached) buffer the CPU fills and the session syncs. + * Limits: m a multiple of the tile height (omega_gpu_tgemm_bm), n a multiple of the span (warps * 16), k a multiple of 128, + * m / bm <= 65535 tiles, m * n < 2^32 (32-bit row arithmetic in the kernel). omega_gpu_tgemm serializes on the session lock; the + * module's tile table is rebuilt under it. + */ +#include +#include "omega_gpu_session.h" +#include "omega_blackwell_codegen_tgemm.h" + +#ifdef __cplusplus +extern "C" { +#endif +#define OMEGA_TGEMM_KIND 0x60u +typedef struct { + uint32_t layout; /* OMEGA_TGEMM_LAYOUT_* */ + uint32_t epi; /* OMEGA_TGEMM_EPI_* */ + uint32_t m, n, k; + uint64_t a_va, b_va, c_va; +} OmegaTgemmCall; +typedef struct { uint64_t c_va; uint32_t row0, kb0, nkb, pad; uint64_t pad2; } OmegaTgemmTile; + +/* the kernel spec the current knobs pick for a call (BAD_ARGS when the call cannot be served) */ +int omega_gpu_tgemm_spec(const OmegaTgemmCall *c, OmegaTgemmSpec *out); +uint32_t omega_gpu_tgemm_bm(uint32_t n); /* rows per tile the current knobs pick for width n (what m must be a multiple of) */ +/* tile table for a call: one entry per bm rows; returns the count (0: refused or more than max) */ +uint32_t omega_gpu_tgemm_tiles(const OmegaTgemmCall *c, OmegaTgemmTile *tab, uint32_t max); +/* synchronous: builds the table in a module-owned host buffer, launches, waits; chip ns added to *ns when given */ +int omega_gpu_tgemm(const OmegaTgemmCall *c, uint64_t *ns); +/* non-blocking: lock held and device open (omega_gpu_pf_open_locked); fills *L for omega_gpu_cmdlist_add with the resident + * kernel, the grid and args[OMEGA_TGEMM_ARGS_WORDS] (the caller's array; L->args points at it, so it must outlive the add). + * tiles_va: a GPU-visible table of ntiles entries already synced. Caller-built entries must have nkb >= 1 (the kernel's block + * counter is unsigned: nkb 0 would run until the timeout) and kb0 * 128 * n < 2^32 (32-bit row arithmetic). */ +int omega_gpu_tgemm_fill_launch_locked(const OmegaTgemmCall *c, uint64_t tiles_va, uint32_t ntiles, OmegaGpuLaunch *L, uint32_t *args); +/* knobs: rt (2/4/8), warps (8/16), aqn (1/2); 0 keeps the default (rt 4, warps 16, aqn 1; warps 8 when n % 256 != 0) */ +void omega_gpu_tgemm_set_shape(uint32_t rt, uint32_t warps, uint32_t aqn); +void omega_gpu_tgemm_test_set_mutant(int m); +#ifdef __cplusplus +} +#endif +#endif diff --git a/src/visor/.crumb b/src/visor/.crumb index d94290b61..2cd4a3cdb 100644 --- a/src/visor/.crumb +++ b/src/visor/.crumb @@ -14,20 +14,20 @@ "children": [ { "digest": "698c7acaafd2fdfc36c30117f7cda86aaacb21a3333d6a6f737a3bed1c990761", - "last_commit": "a56d21c", + "last_commit": "a56d21c1", "name": "rx", "purpose": "Directory src/visor/rx. Purpose not yet described by a human." } ], "children_root": "sha256:426a1b15679ed802080b03079613c322df3821181536f0f66596d50c63a2f7cb", - "compiled_at": "2026-10-04T13:47:05Z", + "compiled_at": "2026-10-17T00:22:30Z", "compiler": "crumb-compile/1", - "digest": "sha256:daf5e5e90c1ccb4c089220a6545844dbe4078a233f1777e8145b74f1bf5dd5fe", + "digest": "sha256:11575b0cfcbad20d6128d1b5c18a4bd691877ad970fba9f03b0df5665e3fb75f", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 21, - "generated_at_commit": "834ee93e4314a42c1127a2fcda8b29cf3b511245", - "source_tree": "sha256:a1963f6ba709fb4f1c6175371d26b0f5a8de6d51809035b7320204c2908c2d08" + "generated_at_commit": "3aaa2d879f6592bdd6fa31823820879a4fed48f0", + "source_tree": "sha256:083843b6110f98e7c70f75dc2a6e584bca081b1f239cc717210f6cd64ee9fbf9" }, "owner_lane": "", "provenance": { diff --git a/src/visor/visor_evidence.c b/src/visor/visor_evidence.c index 609aa7071..77bfe94ba 100644 --- a/src/visor/visor_evidence.c +++ b/src/visor/visor_evidence.c @@ -441,11 +441,29 @@ int visor_evidence_load(const char *path, VisorEvidenceRecord *out) { /* ------------------------------------------------------------------ */ /* Directory walk (sorted, deterministic) */ /* ------------------------------------------------------------------ */ -#define VISOR_EVIDENCE_MAX_FILES 1024 -static char g_paths[VISOR_EVIDENCE_MAX_FILES][256]; -static size_t g_npaths; +/* omega#404: the walk keeps every regular file (it used to stop at 1024 in readdir order, so with a large evidence/ + * tree the verdict depended on the filesystem). The list grows on the heap and is sorted after the walk, so the + * result is the same for any directory order. VISOR_EVIDENCE_MAX_FILES is only a runaway guard far above any real + * tree (11078 files at 2026-10-16); reaching it, or failing to grow the list, marks the view truncated. */ +#define VISOR_EVIDENCE_MAX_FILES (1u << 20) +typedef char VisorPath[256]; +static VisorPath *g_paths; +static size_t g_npaths, g_paths_cap; static bool g_paths_overflow; +static bool push_path(const char *p) { + if (g_npaths >= VISOR_EVIDENCE_MAX_FILES) return false; + if (g_npaths == g_paths_cap) { + size_t cap = g_paths_cap ? g_paths_cap * 2 : 1024; + VisorPath *grown = realloc(g_paths, cap * sizeof(VisorPath)); + if (!grown) return false; + g_paths = grown; + g_paths_cap = cap; + } + memcpy(g_paths[g_npaths++], p, sizeof(VisorPath)); + return true; +} + static void walk(const char *dir, int depth) { if (depth > 8) return; DIR *d = opendir(dir); @@ -460,8 +478,7 @@ static void walk(const char *dir, int depth) { if (lstat(p, &st) != 0) continue; if (S_ISDIR(st.st_mode)) { walk(p, depth + 1); continue; } if (!S_ISREG(st.st_mode)) continue; /* symlinks and devices are not followed */ - if (g_npaths >= VISOR_EVIDENCE_MAX_FILES) { g_paths_overflow = true; continue; } - memcpy(g_paths[g_npaths++], p, sizeof(p)); + if (!push_path(p)) g_paths_overflow = true; } closedir(d); } @@ -474,7 +491,7 @@ static int collect(const char *root) { g_npaths = 0; g_paths_overflow = false; walk(root, 0); - qsort(g_paths, g_npaths, sizeof(g_paths[0]), cmp_path); + if (g_npaths > 1) qsort(g_paths, g_npaths, sizeof(g_paths[0]), cmp_path); return 0; } diff --git a/tests/.crumb b/tests/.crumb index bd5535a8b..1a87d5a63 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -289,21 +289,21 @@ "purpose": "Directory tests/turing. Purpose not yet described by a human." }, { - "digest": "3f19e3034ff999211cb13ab8995ca6c38d0d8e1f5bfbbbd621caaa08412d3f1f", - "last_commit": "fed4f077", + "digest": "a4bd83d8b29b76464c0ac4be84bd12097b14d1164dfd84b63acf57cc2a6d1ab0", + "last_commit": "31e40e29", "name": "visor", "purpose": "Directory tests/visor. Purpose not yet described by a human." } ], - "children_root": "sha256:ddc3618190458bc5073e3bee67ffccc68a2ee9f065f2cb0d86545386a29fddf8", - "compiled_at": "2026-10-16T19:04:20Z", + "children_root": "sha256:8adf0860a95f0d00a607bd48c82c6a7eb4909820fbb481576bc94dafe7c4e4e1", + "compiled_at": "2026-10-22T19:04:33Z", "compiler": "crumb-compile/1", - "digest": "sha256:4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", + "digest": "sha256:aaffa2a1a2469c129bbc1b7cc7b8481bb42ed7d9f2cf1b94465c4700c20887ca", "evidence_files": 16, "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a", - "files": 1270, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:e6c4f0021d383ba2e59da0d85d06a0b98170f6d188289c891b5745200548e6fc" + "files": 1278, + "generated_at_commit": "0e96f97506f8599807622dda20c18db52c00c84e", + "source_tree": "sha256:90fb396ea03efd8dc911abc795f4a2f2df1b8a5d5a4af2cc1e3705a7fe60e289" }, "owner_lane": "", "provenance": { diff --git a/tests/bw_warp_sim_k.h b/tests/bw_warp_sim_k.h index 676b29344..a0746ddf5 100644 --- a/tests/bw_warp_sim_k.h +++ b/tests/bw_warp_sim_k.h @@ -89,6 +89,7 @@ typedef struct { 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 */ + uint32_t warp_sched; /* warp visit order per barrier phase: 0 ascending, 1 descending, else a seed for a fresh shuffle each phase */ int trace; /* print every issue of warp 0 of CTA (0,0) */ /* results */ int err; int err_pc; char msg[200]; @@ -153,7 +154,7 @@ static void ws_lane_exec(WsSim *s, WsLane *l, const BlackwellIRInsn *in, int pc, 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: { uint64_t ad = ws_rd64(l, in->src1_vreg, p) + (uint64_t)(int64_t)(int32_t)in->imm; 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)) { if (getenv("WS_DBG")) fprintf(stderr, " tid %u cx %u cy %u\n", tid, cx, cy); 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; } @@ -309,9 +310,16 @@ static int ws_run(WsSim *s, uint32_t grid_x, uint32_t grid_y) { /* 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. */ + uint32_t rng = s->warp_sched; for (int phase = 0; ; phase++) { int parked = 0; - for (uint32_t w = 0; w < nw && !s->err; w++) { + /* visit order: the chip gives no order between warps, so a slot or barrier mistake that the fixed order hides + * must show under the reversed or a shuffled one */ + uint32_t vis[WS_MAX_WARPS]; + for (uint32_t i = 0; i < nw; i++) vis[i] = s->warp_sched == 1 ? nw - 1u - i : i; + if (s->warp_sched > 1) for (uint32_t i = nw - 1u; i > 0; i--) { rng = rng * 1664525u + 1013904223u; uint32_t j = (rng >> 8) % (i + 1u); uint32_t t = vis[i]; vis[i] = vis[j]; vis[j] = t; } + for (uint32_t vi = 0; vi < nw && !s->err; vi++) { + const uint32_t w = vis[vi]; if (warps[w].nfrag == 0) continue; int r = ws_run_warp(s, &warps[w], w, cx, cy, trace && w == 0); if (r < 0) break; diff --git a/tests/bw_warp_sim_pa.h b/tests/bw_warp_sim_pa.h index 7657df020..c6361976c 100644 --- a/tests/bw_warp_sim_pa.h +++ b/tests/bw_warp_sim_pa.h @@ -174,8 +174,8 @@ static void ws_lane_exec(WsSim *s, WsLane *l, const BlackwellIRInsn *in, int pc, 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_F2FP_BF16_PACK: ws_wrs(l, in->dst_vreg, in->dst_subreg, (ws_bf16_rn(a) << 16) | ws_bf16_rn(b), p); break; /* F2FP.BF16.F32.PACK_AB */ case BW_IR_FMNMX_MAX: - if (in->imm == OMEGA_TC_MARK_F2FP) { ws_wrs(l, in->dst_vreg, in->dst_subreg, (ws_bf16_rn(a) << 16) | ws_bf16_rn(b), p); break; } /* F2FP.BF16.F32.PACK_AB placeholder */ 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; @@ -280,13 +280,13 @@ static int ws_run_warp(WsSim *s, WsWarp *w, uint32_t warp, uint32_t cx, uint32_t } break; } - case BW_IR_SHFL_DOWN: { ``` The diff is longer than this page shows; the raw diff has all of it.