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/642ada4b5f56a4ea # 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: 12 PRs (#484, #487, #490, #494, #496, #498, #500, #502...) closed `642ada4b5f56a4ea` #613 · opened 2026-10-20 20:54 UTC · closed 2026-10-22 19:04 UTC Imported from GitHub aien-dev/omega-mv#613, by drakestapleton Base `a8ffd2b912c84197d08f963b05f9c7d8b30a3f8a` · Head `1d2c2286f69359a6e207d6ab51732c3455b9c05c` drakestapleton wrote on 2026-10-20 20:54 UTC Desk block built by renda-harness: one judge run for 12 pull requests instead of 12 (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@`2048fc71`): 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) Carries #500 (doc/465-checker2-ownership-limits@`19ddf02c`): spec: document checker2's definite-only ownership limits (#465, option a as interim) Carries #502 (fix/456-own30b-review-followups@`3671d1fb`): OWN-30B review follow-ups, host side (#456) Carries #507 (perf233/p1-decode-graph-report@`00fca453`): Decode-graph performance receipt: tool, checker, fixtures (host only, #233 P1) Carries #509 (fix/mufu-ftz-462@`e6b9ab9f`): fix(sim): every MUFU host model flushes subnormals like the GB10 (#462) Carries #538 (het/fabric-work@`c9846a44`): fabric: cross-machine work hand-off (PST1 + HTK1/HTR1), Ed25519 identity, shared route check (#536) Carries #540 (pipeline/unmapped-ok-nested-readme@`045a00d4`): pipeline: allow */README.md as prose in .aien/unmapped-ok github-advanced-security[bot] reviewed (COMMENTED) on 2026-10-20 20:55 UTC github-advanced-security[bot] commented on `.github/workflows/own30b-host.yml` line 80 on 2026-10-20 20:55 UTC ## CodeQL / Workflow does not contain permissions Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}} Show more details github-advanced-security[bot] commented on `src/omega_blackwell_codegen_tgemm.c` line 21 on 2026-10-20 21:01 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/fabric/fab_work_test.c` line 71 on 2026-10-20 21:01 UTC ## CodeQL / Uncontrolled data used in path expression This argument to a file access function is derived from user input (string read by fgets) and then passed to fopen(__filename). Show more details github-advanced-security[bot] commented on `tests/fabric/fab_work_test.c` line 147 on 2026-10-20 21:01 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-20 21:01 UTC github-advanced-security[bot] commented on `tests/fabric/fab_work_test.c` line 738 on 2026-10-20 21:01 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 31 on 2026-10-20 21:01 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-20 21:01 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 `tools/dgraph_receipt.c` line 765 on 2026-10-20 21:01 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 drakestapleton wrote on 2026-10-22 19:04 UTC Judge failure on the block head (operator verdict FAIL OMEGA-ESTIMATION: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, 291266 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/642ada4b5f56a4ea.bundle -o 642ada4b5f56a4ea.bundle git fetch 642ada4b5f56a4ea.bundle refs/pull/613/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 613 1d2c2286f69359a6e207d6ab51732c3455b9c05c ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":613,"url":"https://github.com/aien-dev/omega-mv/pull/613","export_sha256":"7319147b350ad908bf0b731068ec3be7b8dee848041dc862f71455e8e4680140","imported_utc":"2026-11-18T16:35:50Z"} ``` ### Changes ``` diff --git a/.aien/unmapped-ok b/.aien/unmapped-ok index e1ead45db..16dc411e6 100644 --- a/.aien/unmapped-ok +++ b/.aien/unmapped-ok @@ -6,3 +6,4 @@ LICENSE .gitignore README.md CONTRIBUTORS.md +*/README.md diff --git a/.crumb b/.crumb index d121d2dad..b4d5b52d2 100644 --- a/.crumb +++ b/.crumb @@ -47,8 +47,8 @@ "purpose": "Directory calibration. Purpose not yet described by a human." }, { - "digest": "d2eb8967a939ebdb0b54e15fe5d849dd5af71c23b812941e4ba86ad2b0f21d39", - "last_commit": "4870b0a4", + "digest": "691ec48b0bf5044b7c1e9fb867ef667c2a8d5ced965ae8ec3cede6d4a41a21f1", + "last_commit": "e715775a", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -59,8 +59,8 @@ "purpose": "Directory doctrine. Purpose not yet described by a human." }, { - "digest": "e7d38c87a51c3c0ee6e3b18419ef4a01d95029de12ac9bf69eb672654f0ace55", - "last_commit": "ae4ad9c0", + "digest": "d5fe276ca62f3f8876724766f78440adda126428d768d1c49532b0175a829b0e", + "last_commit": "eefdfa3d", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, @@ -71,39 +71,39 @@ "purpose": "Directory research. Purpose not yet described by a human." }, { - "digest": "6327473d41e10acbf43be0918d3557509322bfd7d6e075e114c79c2600a47305", - "last_commit": "43d8d20d", + "digest": "2dd4730b7e14e1b215d011c074e28a3b69a1d9abc96f0208bf21afee4c7d4b1e", + "last_commit": "209199bb", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { - "digest": "dfa36de2ac8649f66f80587abea51a7f166285ee0b92e0e09774c98689055250", - "last_commit": "333091a6", + "digest": "c53df5dd6e20fd9d6106288146c04ffe1690ac17c031027fc31f429fa565fb4c", + "last_commit": "eefdfa3d", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", - "last_commit": "88e24bdd", + "digest": "e443c7f6ef7d29a6d70c4aa0cb9193678f8a9a7bd49704167061d60dfaf707ca", + "last_commit": "eefdfa3d", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { - "digest": "566a123ba248da906e3c42430b73decd7c3ec030a4fd26c909d265aa9bf67db9", - "last_commit": "88e24bdd", + "digest": "9352e55d6b0ccb416f48edf2d9d37fb66477335b51c8dbb4b5a84d7c33091e29", + "last_commit": "df906b21", "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:119053af206413d8ddc881cfae9631e21bfbe08e89dbee1e67d1f6aeeea672f2", + "compiled_at": "2026-10-20T20:54:39Z", "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:7e2cd30b80e010ed3201cc295f76dcda143ff3e10588c2f43add0c2255eb9d72", + "evidence_files": 11292, + "evidence_root": "sha256:08d02609f034524556b9677f46acc7b12aa3bc6b6c1f0eca83b3d505570bda9a", + "files": 14349, + "generated_at_commit": "738552e3f036b757e740f1dbfa1c4e7de069f63c", + "source_tree": "sha256:9d3ce97a365440d5e1d70a7a7bf45f2077d909dd11b18feea709442798671feb" }, "owner_lane": "", "provenance": { diff --git a/.github/workflows/own30b-host.yml b/.github/workflows/own30b-host.yml new file mode 100644 index 000000000..7401b7e2c --- /dev/null +++ b/.github/workflows/own30b-host.yml @@ -0,0 +1,80 @@ +name: OWN-30B host tiers + +# omega#456: the OWN-30B engine's host tiers that no workflow ran. Every test runs in +# --host-only or --sim mode (host model and warp simulator); none opens a GPU, and the +# runner is NOT the Spark, so nothing here is a chip or hardware result. The chip gates +# stay tools/run_*_chip.sh under the GB10 lock on the Spark. +# +# Coverage of this file: +# own30b-host test-gpu-{bf16-gemv,cmdlist,decode-attn,decode-graph,elementwise,fp8, +# fp8gemm,gpr-boundary,matmul-api,moe-window,reconv,router,tern}, +# test-gpu-prefill-host (tc_probe, qmma_probe, pf_mem, tcgemm, +# prefill_attn, pfgemm, qgemm, pfhost), check-own30b-decode-profile +# (tools/own30b_decode_profile.c with -Werror), and +# tools/require_physics_pin.sh (accepts the pin, refuses a bad checkout). +# nvdisasm is not installed on the runner: tests with a listing check print "skipped" +# for it here and run it on the Spark. test-gpu-attention runs in host-suites-3.yml. + +on: + workflow_dispatch: + push: + branches: [main] + pull_request: + paths: + - 'Makefile' + - 'mk/**' + - 'physics.lock' + - 'src/**' + - 'tests/gpu_*' + - 'tests/bw_*' + - 'tools/own30b_decode_profile.c' + - 'tools/require_physics_pin.sh' + - 'tools/run_*_chip.sh' + - '.github/workflows/own30b-host.yml' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + own30b-host: + runs-on: ubuntu-24.04-arm + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - name: Read pinned Physics + id: pins + run: | + sha=$(tr -d '[:space:]' < physics.lock) + test -n "$sha" + echo "physics=$sha" >> "$GITHUB_OUTPUT" + - name: Checkout pinned Physics + uses: actions/checkout@v4 + with: + repository: aien-spark/physics + ref: ${{ steps.pins.outputs.physics }} + path: physics-src + - name: Keep Physics checkout out of Omega tree status + run: echo 'physics-src/' >> .git/info/exclude + - name: Physics pin check (chip runners call it first) + run: | + tools/require_physics_pin.sh "$GITHUB_WORKSPACE/physics-src" + if tools/require_physics_pin.sh /nonexistent 2>refuse.log; then echo "a missing checkout was accepted"; exit 1; fi + grep -q 'REFUSED' refuse.log + - name: Build libomega_gpu.a (pinned Physics, lock check on) + env: + PHYSICS_DIR: ${{ github.workspace }}/physics-src + run: make -j"$(nproc)" check-physics-lock build/libomega_gpu.a + - name: Host tiers + env: + PHYSICS_DIR: ${{ github.workspace }}/physics-src + run: | + set -e + for t in check-own30b-decode-profile test-gpu-bf16-gemv test-gpu-cmdlist test-gpu-decode-attn \ + test-gpu-decode-graph test-gpu-elementwise test-gpu-fp8 test-gpu-fp8gemm test-gpu-gpr-boundary \ + test-gpu-matmul-api test-gpu-moe-window test-gpu-reconv test-gpu-router test-gpu-tern \ + test-gpu-prefill-host; do + echo "::group::make $t" + make -j"$(nproc)" "$t" + echo "::endgroup::" + done diff --git a/Makefile b/Makefile index 3551fea3f..f79fccb70 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 @@ -700,8 +702,8 @@ RX_COMPOSE_LIVING_CHECKS = $(OUT_DIR)/rx_graph.o $(OUT_DIR)/rx_capq.o $(OUT_DIR) # docs/r16-production-entry-point.md has the table. AIEN_TEST_FLAGS = -DAIEN_TEST_BUILD=1 RX_FABRIC_TEST_SRCS = src/fabric/fabric.c src/fabric/fab_hmac.c src/fabric/fab_loopback.c \ - src/fabric/fab_dispatch.c -RX_R13_TEST_CHECKS = tests/runtime/rx_compose_fixture.h src/fabric/fab_dispatch.h \ + src/fabric/fab_dispatch.c src/fabric/fab_route.c +RX_R13_TEST_CHECKS = tests/runtime/rx_compose_fixture.h src/fabric/fab_dispatch.h src/fabric/fab_route.h \ src/fabric/fab_loopback.h src/fabric/fab_hmac.h tests/fabric/fab_living_phase.h # The production build refuses the flag outright. RX_PROD_REFUSE_TEST = $(if $(findstring AIEN_TEST_BUILD,$(CFLAGS))$(findstring RXC_TEST_HOOKS,$(CFLAGS)),\ @@ -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 @@ -2576,6 +2618,32 @@ $(GPU_QGEMM_TEST): tests/gpu_qgemm_test.c tests/bw_qmma_model.h tests/bw_warp_si GPU_PFHOST_TEST = $(OUT_DIR)/gpu_pfhost_test $(GPU_PFHOST_TEST): tests/gpu_pfhost_test.c tests/bw_warp_sim_tc.h src/omega_gpu_pfhost.h src/omega_blackwell_codegen_pfhost.h $(OUT_DIR)/libomega_gpu.a $(CC) $(CFLAGS) -ffp-contract=off -DWS_MAX_THREADS=1024 -Itests -o $@ tests/gpu_pfhost_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +# omega#456: the prefill tests above, host model and warp simulator only. Every run names --host-only or --sim, the two +# modes that never open the device (each test's main returns before its chip part); chip runs stay under the GB10 lock. +.PHONY: test-gpu-prefill-host +test-gpu-prefill-host: $(GPU_TC_PROBE_TEST) $(GPU_TCGEMM_TEST) $(GPU_PATTN_TEST) $(GPU_PF_MEM_TEST) $(GPU_PFGEMM_TEST) \ + $(GPU_QMMA_PROBE_TEST) $(GPU_QGEMM_TEST) $(GPU_PFHOST_TEST) + ./$(GPU_TC_PROBE_TEST) --host-only + ./$(GPU_QMMA_PROBE_TEST) --host-only + ./$(GPU_PF_MEM_TEST) --host-only + ./$(GPU_TCGEMM_TEST) --host-only + ./$(GPU_TCGEMM_TEST) --sim + ./$(GPU_PATTN_TEST) --host-only + ./$(GPU_PATTN_TEST) --sim + ./$(GPU_PFGEMM_TEST) --host-only + ./$(GPU_PFGEMM_TEST) --sim + ./$(GPU_QGEMM_TEST) --host-only + ./$(GPU_QGEMM_TEST) --sim + ./$(GPU_PFHOST_TEST) --host-only + ./$(GPU_PFHOST_TEST) --sim + @echo "test-gpu-prefill-host: PASS (8 prefill tests, host model + warp simulator, no device)" +# omega#456: tools/own30b_decode_profile.c is a link-only recorder built by hand on the Spark; compile it with the +# project's -Werror flags so a warning cannot land unseen. +.PHONY: check-own30b-decode-profile +check-own30b-decode-profile: tools/own30b_decode_profile.c + @mkdir -p $(OUT_DIR) + $(CC) $(CFLAGS) -c -o $(OUT_DIR)/own30b_decode_profile.o tools/own30b_decode_profile.c + @echo "check-own30b-decode-profile: PASS (compiles with -Werror)" # OWN-30B W-L2 (2026-10-13): command list (many launches, one submission) + decode glue kernels. test-gpu-cmdlist is # host-only + warp simulator; the chip gate is tools/run_gpu_cmdlist_chip.sh under the GB10 lock. .PHONY: test-gpu-cmdlist diff --git a/README.md b/README.md index 87f91fbf1..ca5ad9ae9 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ The full omegatool build (`make`) links the `physics` repository at the commit i ## Repository layout -`src/` core and C compiler (`src/compiler/`), `src/runtime/` reaction runtime, `src/fabric/` host-only fabric interface, `src/physics0/` Physics Zero apparatus, `spec/` and `docs/` specifications, `tests/` gate suites, `evidence/` content-addressed receipts, `tools/` harnesses, `mk/` make fragments included by the `Makefile`. Also `bench/prime_race/` (Prime Drag Race implementation), `calibration/` (Turing calibration experiments, preregistration and blinding protocol), `research/` (experiments and prototypes) and `doctrine/` (the Milestone 4 doctrine). +`src/` core and C compiler (`src/compiler/`), `src/runtime/` reaction runtime, `src/fabric/` Fabric membership and cross-machine work hand-off (see [src/fabric/README.md](src/fabric/README.md)), `src/physics0/` Physics Zero apparatus, `spec/` and `docs/` specifications, `tests/` gate suites, `evidence/` content-addressed receipts, `tools/` harnesses, `mk/` make fragments included by the `Makefile`. Also `bench/prime_race/` (Prime Drag Race implementation), `calibration/` (Turing calibration experiments, preregistration and blinding protocol), `research/` (experiments and prototypes) and `doctrine/` (the Milestone 4 doctrine). ## Contributing diff --git a/docs/.crumb b/docs/.crumb index ca5d5ec00..41fbbe3e0 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -124,14 +124,14 @@ } ], "children_root": "sha256:ac7f7ea4b00d4620a993c6dd88a0267f2d49008d415162976e45fa4341e43407", - "compiled_at": "2026-10-16T09:04:56Z", + "compiled_at": "2026-10-16T10:56:28Z", "compiler": "crumb-compile/1", - "digest": "sha256:d2eb8967a939ebdb0b54e15fe5d849dd5af71c23b812941e4ba86ad2b0f21d39", + "digest": "sha256:691ec48b0bf5044b7c1e9fb867ef667c2a8d5ced965ae8ec3cede6d4a41a21f1", "evidence_files": 34, "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc", - "files": 127, - "generated_at_commit": "9d368679f13ea58c46bf7580899aee92e39f5885", - "source_tree": "sha256:29d159b6950500f96de859834fd2c5a9e9ba037f9bc88fd97a8ed47a1688233b" + "files": 128, + "generated_at_commit": "278b6c3c5840e5f13472a2f60f50542d81c3821e", + "source_tree": "sha256:839eb7db8dd07e412515e1606afc50ea46372ffa3a4ae242ecc82fa3b43b03cb" }, "owner_lane": "", "provenance": { diff --git a/docs/perf/DECODE_GRAPH_RECEIPT.md b/docs/perf/DECODE_GRAPH_RECEIPT.md new file mode 100644 index 000000000..188b1e46e --- /dev/null +++ b/docs/perf/DECODE_GRAPH_RECEIPT.md @@ -0,0 +1,131 @@ +# Decode-graph performance receipt (`omega-decode-graph-receipt/1`) + +Lane P1 of aien-architecture#233. `tools/dgraph_receipt.c` turns one existing run of the decode-graph +chip test into one machine-readable receipt bound to the commit that was measured, and checks such +receipts. It reads files only: no GPU, no `libomega_gpu`, no new counters. This change does not touch +GPU numerics, barriers, prefetch, submission, memory ownership or any hot path: it only reads the +numbers that `omega_gpu_decode_graph` and `gpu_decode_graph_test` already produce. + +## Where the numbers come from + +| receipt field | source | clock | +|---|---|---| +| `per_token.graph.launches` | `OmegaGpuDecodeGraphStats.launches`: "launches recorded for the token" | count | +| `per_token.graph.submits` | `.submits`: "submissions (1 normally; = launches with flush_each)" | count | +| `per_token.graph.chip_ns` | `.chip_ns`: "sum of the list submissions' first-submit-to-last-marker time" | **host** | +| `per_token.graph.record_ns` | `.record_ns`: "host: begin_token to the submit (recording)" | host | +| `per_token.graph.total_ns` | `.total_ns`: "host: begin_token to end_token return" | host | +| `per_token.graph.sems_done` | `.sems_done`: "launch semaphores found DONE" (not written by the test: `null` + note) | count | +| `per_token.graph.host_overhead_ns` | derived: `total_ns - chip_ns` | host | +| `stamped_token.span_ns`, `stages[].device_ns` | `omega_gpu_decode_graph_stamps()`: "Launch i took stamps[i + 1] - stamps[i] ns" | **device** (PTIMER) | +| `stamped_token.chip_ns` | the stamped token's `.chip_ns` | host | +| `stamped_token.unattributed_ns` | derived: `chip_ns - span_ns` | host minus device | +| `per_token.flush_each.*` | the same list submitted one launch per submission (TEST ONLY `set_flush_each`) | as above | + +Quotes are from `src/omega_gpu_decode_graph.h`. The stats are copied from the `--out` JSON of +`tests/gpu_decode_graph_test.c`; the run's barrier, prefetch and cached-weights settings from its log +("dgraph prefetch" and "fp8 knobs" lines); commit, dirty flag, host and GPU from the runner's +`device.txt`; binary identity from `binaries.sha256`. + +### Host clock vs device clock + +- **`chip_ns` is host time, not device time.** `omega_gpu_cmdlist_submit()` reads the platform clock + (`omega_gpu_session_now_ns()`, `CLOCK_MONOTONIC` on Linux, `omega_gpu_platform_linux.c`) just before + `queue_submit` and again after both completion-marker words were seen and synced. It holds the device + work plus the submit call, the front-end start and the host's marker poll. +- **The device clock appears only with stamps on.** `set_stamps(1)` writes a GPU PTIMER timestamp + before the first launch and after every launch, "taken after its WAIT_FOR_IDLE" + (`omega_gpu_cmdlist.h`). The test runs one extra token this way; its `span_ns` is device time and + always fits inside that token's host `chip_ns` (the checker enforces `span_ns <= chip_ns`). +- `unattributed_ns = chip_ns - span_ns` is the part of the host submit span the device stamps do not + cover. +- `host_overhead_ns = total_ns - chip_ns`: host work outside the submit span (recording, the attention + counter check, output sync, token read, lock). + +### Serial vs overlapping time + +- `chip_ns` is a serial sum: one host span per submission, and submissions never overlap. A graph + token is one submission; a `flush_each` token is one per launch. +- With prefetch off, every barrier mode except the TEST ONLY `none` puts a WAIT_FOR_IDLE before each + stamp, so launches run one after another. The stage times are a serial partition of `span_ns`: they + add up to it exactly (the checker enforces `stage_sum_ns == span_ns`). +- With prefetch on (`AIEN_OMEGA_DGRAPH_PREFETCH=1`), each layer adds one o_proj prefetch launch marked + independent (no barrier before it) and tagged `attn`. Its stamp is the front-end time while the + attention may still be running. So the `attn` stage is the attention-plus-prefetch window. Overlap + is **visible but not measurable**: no counter splits that window. +- `overlap_measurable` is `false` in every receipt this tool writes, and the `reason` field says why. + +## Statuses + +`VERIFIED | EXPERIMENTAL | HISTORICAL | NOT_RUN | FAIL | SUPERSEDED`. Receipts rebuilt from old +evidence logs are **HISTORICAL**: the chip was not run to make them. `VERIFIED` needs a clean tree and a +PASS run. `EXPERIMENTAL` needs a PASS run. `NOT_RUN` carries `per_token: null`, `stamped_token: null` and +a `not_run_reason`, so it holds no numbers. + +## Making a receipt from a run + +From the repo root, after `make dgraph-receipt`: + +``` +build/dgraph_receipt/dgraph_receipt \ + --run-dir evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph \ + --stats evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/receipt-main.json \ + --log evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/main.log \ + --status HISTORICAL --repo aien-spark/omega \ + --model "synthetic Qwen3-30B-A3B-shaped decode step, random weights" \ + --precision "FP8 e4m3 weights (qkv, o, gate_up, down), BF16 lm_head, f32 activations" \ + --mode "decode, one token per command list (omega_gpu_decode_graph_token), batch 1" \ + --runner "tools/run_gpu_decode_graph_chip.sh EVIDENCE_DIR main" \ + --out receipt.json +build/dgraph_receipt/dgraph_receipt --check receipt.json --evidence-root . +``` + +The generator runs the checker on its own output first and refuses to write a receipt the checker +rejects. It also refuses a log that lacks the run's settings and a stats file and log from different +runs. The exact commands behind the golden fixtures are in `tests/dgraph_receipt/run.sh`. + +## What the checker rejects + +Missing fields, wrong types, unknown top-level fields, a schema other than `/1`, a status outside the +enum, a commit that is not 40 lowercase hex digits, a non-`OWNER/NAME` repo, placeholder strings +anywhere (`""`, `TBD`, `unknown`, `TODO`, `N/A`, `none`, ...), zero tokens, derived numbers that do not +match their inputs (`host_overhead_ns`, `unattributed_ns`, `stage_sum_ns`), stages that do not add up to +`span_ns`, `span_ns > chip_ns`, `sems_done` neither equal to `launches` nor `null` with a note, +`VERIFIED` on a dirty tree, measurements on a `NOT_RUN` receipt, absolute or `..` evidence paths, and, +with `--evidence-root`, evidence paths that do not exist. `make test-dgraph-receipt` proves each rule +with a fixture in `tests/dgraph_receipt/fixtures/` (table: `tests/dgraph_receipt/negatives.txt`). + +## Reproduced numbers (HISTORICAL) + +These are the only numbers here. They are copies of existing evidence, not new claims: + +- `tests/dgraph_receipt/fixtures/good-historical-710d438c-main.json`, from + `evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/decode_graph/` (omega 710d438c, clean tree, GB10, + 2 layers, 20 tokens, prefetch off). Per-token medians: 22 launches in 1 submission, total 3 978 675 ns, + chip (host clock) 3 975 395 ns, record 2 464 ns. Stamped token: device span 3 989 568 ns inside a host + chip span of 4 076 853 ns. +- `tests/dgraph_receipt/fixtures/good-historical-710d438c-prefetch.json`, from + `evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch/` run `4-cached-prefetch` (cached + weights, prefetch on, 10 tokens, 24 launches). + +## Limitations + +- Synthetic step on random weights, one fixed position, the same token every rep: this is not a + serving or end-to-end tokens-per-second figure. +- Per-token values are medians taken field by field, so `host_overhead_ns` is a difference of medians. +- The stamped token is one sample. +- No aggregate totals or percentiles: the test writes medians only. +- When `make` did not rebuild the test, `build.log` has no compile line. The receipt then says so and + names the binary by sha256. + +## Gaps (counters that do not exist; none added here) + +- `sems_done` per token: the test's `--out` writer (`tests/gpu_decode_graph_test.c`) does not write it. +- The method-stream build time: `OmegaGpuCmdListStats.host_ns` is filled by `omega_gpu_cmdlist_submit()`, + but `submit_now()` in `src/omega_gpu_decode_graph.c` does not add it to `OmegaGpuDecodeGraphStats`. +- Submit call vs wait inside `chip_ns`: `omega_gpu_cmdlist_submit()` times `queue_submit` through the + marker poll as one span. Splitting them needs a clock read after `queue_submit` returns. +- Per-token distributions: `gpu_decode_graph_test` keeps the per-rep arrays but writes only + `median_u64()` of each. +- Attention vs prefetch inside the overlapped window: with an independent launch, `omega_gpu_cmdlist_submit()` + emits the stamp before it with no WAIT_FOR_IDLE, so no stamp marks the end of the attention alone. 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/mk/.crumb b/mk/.crumb index cd51a1c73..abd66bef7 100644 --- a/mk/.crumb +++ b/mk/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-16T02:24:36Z", + "compiled_at": "2026-10-20T20:54:39Z", "compiler": "crumb-compile/1", - "digest": "sha256:e7d38c87a51c3c0ee6e3b18419ef4a01d95029de12ac9bf69eb672654f0ace55", + "digest": "sha256:d5fe276ca62f3f8876724766f78440adda126428d768d1c49532b0175a829b0e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 71, - "generated_at_commit": "ccf021b944b0128a537dfd3dd301e6d83eefa311", - "source_tree": "sha256:e7a2b37daa8149cb73da719737df82c74a61685b4076bf2c5b4e0c26bee61dc7" + "files": 73, + "generated_at_commit": "738552e3f036b757e740f1dbfa1c4e7de069f63c", + "source_tree": "sha256:a0303df19725e15825e14521e3aa319328de9cba2316c9a571ade53f7d8be10a" }, "owner_lane": "", "provenance": { diff --git a/mk/dgraph-receipt.mk b/mk/dgraph-receipt.mk new file mode 100644 index 000000000..429bbbc92 --- /dev/null +++ b/mk/dgraph-receipt.mk @@ -0,0 +1,35 @@ +# Decode-graph performance receipt (aien-architecture#233, lane P1): tools/dgraph_receipt.c turns an +# existing decode-graph chip run (tools/run_gpu_decode_graph_chip.sh evidence) into one commit-bound +# receipt "omega-decode-graph-receipt/1" and checks such receipts. Host only: links nothing of +# libomega_gpu and no GPU header. Spec: docs/perf/DECODE_GRAPH_RECEIPT.md. Picked up by +# `-include mk/*.mk`; not part of `all` or `test`; run by tests/gates/run.sh chip-tool-selftests. +# make dgraph-receipt build/dgraph_receipt/dgraph_receipt +# make test-dgraph-receipt golden receipts regenerated from evidence/, checker accepts them, +# every negative fixture refused for its named reason (plain + ASan/UBSan) +ifndef DGRAPH_RECEIPT_MK +DGRAPH_RECEIPT_MK := 1 +.PHONY: dgraph-receipt test-dgraph-receipt +DGR_DIR = $(OUT_DIR)/dgraph_receipt +DGR_CFLAGS = -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 +DGR_ASAN = -O1 -g -fsanitize=address,undefined -fno-sanitize-recover=all + +dgraph-receipt: $(DGR_DIR)/dgraph_receipt + +$(DGR_DIR)/dgraph_receipt: tools/dgraph_receipt.c + @mkdir -p $(DGR_DIR) + $(CC) $(DGR_CFLAGS) -o $@ tools/dgraph_receipt.c + +$(DGR_DIR)/dgraph_receipt_asan: tools/dgraph_receipt.c + @mkdir -p $(DGR_DIR) + $(CC) $(DGR_CFLAGS) $(DGR_ASAN) -o $@ tools/dgraph_receipt.c + +# independent strict-JSON check of the golden receipts (tools/json_canon.c, the M19R helper) +$(DGR_DIR)/json_canon: tools/json_canon.c src/sha256.c src/sha256.h + @mkdir -p $(DGR_DIR) + $(CC) $(DGR_CFLAGS) -Isrc -o $@ tools/json_canon.c src/sha256.c + +test-dgraph-receipt: $(DGR_DIR)/dgraph_receipt $(DGR_DIR)/dgraph_receipt_asan $(DGR_DIR)/json_canon + sh tests/dgraph_receipt/run.sh $(DGR_DIR)/dgraph_receipt $(DGR_DIR)/json_canon $(DGR_DIR)/work + sh tests/dgraph_receipt/run.sh $(DGR_DIR)/dgraph_receipt_asan $(DGR_DIR)/json_canon $(DGR_DIR)/work-asan + +endif diff --git a/mk/fabric.mk b/mk/fabric.mk index eaeb9a49a..f2ba2d8ec 100644 --- a/mk/fabric.mk +++ b/mk/fabric.mk @@ -11,7 +11,18 @@ # through src/runtime/rx_capq.h and links the same objects test-capability-graph # links (rx_capq.o, rx_graph.o, the pinned AIENOS capability library). # +# Heterogeneous compute (aienix#6, omega#536): fab_work.c (PST1 task envelope, +# HTK1 request, HTR1 receipt, requester state machine, executor idempotence +# journal), fab_route.c (pre-dispatch route check, steps 1-3 of the dispatcher) +# and fab_auth_ed25519.c (FabAuth over the vendored AIENOS Ed25519) are +# PRODUCTION-buildable: FAB_PROD_SRCS compiles without AIEN_TEST_BUILD and +# fab-work-purity checks them (the signer may reference only aienos_ed25519_*). +# # test-fabric purity check, then the exit-gate test plain and with ASan/UBSan +# test-fabric-work fab-work-purity, then tests/fabric/fab_work_test.c (PST1 vectors from +# aien-protocols PR #36, HTK1/HTR1 goldens, matmul oracle, state-machine +# negatives, Ed25519 membership) plain and ASan/UBSan, then +# tests/fabric/fab_work_procs.sh (requester and executor as two OS processes) # fabric-purity fabric objects reference no authority, World, socket or process call # fabric-receipt digest-named receipt under evidence/F5-0 (clean tree only) # test-fabric-living Lane 13: a second machine's Skill found and used by the @@ -21,14 +32,17 @@ # same scenario runs inside the R13 test-build variant. ifndef FABRIC_MK FABRIC_MK := 1 -.PHONY: test-fabric test-fabric-living fabric-purity fabric-receipt +.PHONY: test-fabric test-fabric-work test-fabric-living fabric-purity fab-work-purity fabric-receipt FAB_DIR = $(OUT_DIR)/fabric -FAB_CFLAGS = -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -Isrc/runtime -Isrc/fabric \ - -DAIEN_TEST_BUILD=1 +FAB_PROD_CFLAGS = -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -Isrc/runtime -Isrc/fabric +FAB_CFLAGS = $(FAB_PROD_CFLAGS) -DAIEN_TEST_BUILD=1 FAB_ASAN = -O1 -g -fsanitize=address,undefined -fno-sanitize-recover=all FAB_SRCS = src/fabric/fabric.c src/fabric/fab_hmac.c src/fabric/fab_loopback.c -FAB_LIVING_SRCS = $(FAB_SRCS) src/fabric/fab_dispatch.c +FAB_PROD_SRCS = src/fabric/fab_work.c src/fabric/fab_route.c src/fabric/fab_auth_ed25519.c +FAB_SIG_SRCS = src/searchtrace/sig/ed25519.c src/searchtrace/sig/sha512.c src/searchtrace/sig/ct.c +FAB_LIVING_SRCS = $(FAB_SRCS) src/fabric/fab_dispatch.c src/fabric/fab_route.c FAB_HDRS = src/fabric/fabric.h src/fabric/fab_hmac.h src/fabric/fab_loopback.h src/fabric/fab_dispatch.h \ + src/fabric/fab_work.h src/fabric/fab_route.h src/fabric/fab_auth_ed25519.h \ src/runtime/rx_skillroute.h \ src/runtime/rx_capq.h src/runtime/aien_machine_id.h src/runtime/rx_jspace.h # Routing discovers and carries records; it never grants authority, never @@ -43,10 +57,27 @@ $(FAB_DIR)/%.o: src/fabric/%.c $(FAB_HDRS) @mkdir -p $(FAB_DIR) $(CC) $(FAB_CFLAGS) -c -o $@ $< -fabric-purity: $(FAB_DIR)/fabric.o $(FAB_DIR)/fab_hmac.o $(FAB_DIR)/fab_loopback.o $(FAB_DIR)/fab_dispatch.o +fabric-purity: $(FAB_DIR)/fabric.o $(FAB_DIR)/fab_hmac.o $(FAB_DIR)/fab_loopback.o $(FAB_DIR)/fab_dispatch.o $(FAB_DIR)/fab_route.o @if nm -u $^ | grep -E $(FAB_FORBIDDEN) ; then \ echo "fabric object references an operation the Fabric must not have"; exit 1; fi - @echo "fabric-purity: fabric.o, fab_hmac.o, fab_loopback.o and fab_dispatch.o reference no forbidden symbol" + @echo "fabric-purity: fabric.o, fab_hmac.o, fab_loopback.o, fab_dispatch.o and fab_route.o reference no forbidden symbol" + +# Production objects: compiled WITHOUT AIEN_TEST_BUILD (so a test-only header +# dragged in would refuse), same forbidden list, plus no file/heap/clock call; +# the Ed25519 signer may reference only the vendored aienos_ed25519_* functions. +$(FAB_DIR)/prod/%.o: src/fabric/%.c $(FAB_HDRS) + @mkdir -p $(FAB_DIR)/prod + $(CC) $(FAB_PROD_CFLAGS) -c -o $@ $< + +FAB_WORK_FORBIDDEN = ' U (rx_caproot_|rx_world_|rx_aegis|argus_|ag_cap|socket$$|connect$$|bind$$|listen$$|accept$$|sendto$$|recvfrom$$|fork$$|exec|system$$|dlopen$$|mmap$$|malloc$$|calloc$$|free$$|fopen$$|open$$|read$$|write$$|time$$|clock_gettime$$|getenv$$)' +fab-work-purity: $(FAB_DIR)/prod/fab_work.o $(FAB_DIR)/prod/fab_route.o $(FAB_DIR)/prod/fab_auth_ed25519.o + @if nm -u $^ | grep -E $(FAB_WORK_FORBIDDEN) ; then \ + echo "fab_work/fab_route/fab_auth_ed25519 object references an operation it must not have"; exit 1; fi + @if nm -u $(FAB_DIR)/prod/fab_work.o $(FAB_DIR)/prod/fab_route.o | grep -E ' U aienos_' ; then \ + echo "fab_work.o / fab_route.o must not reference AIENOS authority code"; exit 1; fi + @if nm -u $(FAB_DIR)/prod/fab_auth_ed25519.o | grep -E ' U aienos_' | grep -vE ' U aienos_ed25519_(sign|verify|public_key)$$' ; then \ + echo "fab_auth_ed25519.o may reference only aienos_ed25519_sign/verify/public_key"; exit 1; fi + @echo "fab-work-purity: fab_work.o, fab_route.o and fab_auth_ed25519.o build without AIEN_TEST_BUILD and reference no forbidden symbol" test-fabric: fabric-purity @$(MAKE) --no-print-directory $(RX_CAPQ_OBJ) $(RX_GRAPH_OBJ) $(AIENOS_CAP_LIB) @@ -59,6 +90,21 @@ test-fabric: fabric-purity $(abspath $(FAB_DIR)/fabric_test_asan) > $(FAB_DIR)/asan.out @grep -q '^F5_0_FABRIC_LOOPBACK_PASS$$' $(FAB_DIR)/asan.out && echo "test-fabric: ASan/UBSan run PASS" +# Same link set as test-fabric minus omega_evidence.c (GPU header; nothing in the +# fabric set references it): this is the set a hosted worker compiles too. +FAB_WORK_LINK_SRCS = $(filter-out src/omega_evidence.c,$(FAB_LINK_SRCS)) +FAB_WORK_TEST_SRCS = tests/fabric/fab_work_test.c $(FAB_SRCS) $(FAB_PROD_SRCS) $(FAB_SIG_SRCS) $(FAB_WORK_LINK_SRCS) +test-fabric-work: fab-work-purity fabric-purity + @$(MAKE) --no-print-directory $(RX_CAPQ_OBJ) $(RX_GRAPH_OBJ) $(RX_SKILLROUTE_OBJ) $(AIENOS_CAP_LIB) + $(CC) $(CFLAGS) $(FAB_CFLAGS) -pthread -o $(FAB_DIR)/fab_work_test $(FAB_WORK_TEST_SRCS) \ + $(RX_SKILLROUTE_OBJ) $(RX_CAPQ_OBJ) $(RX_GRAPH_OBJ) $(AIENOS_CAP_LIB) -lm + $(CC) $(CFLAGS) $(FAB_CFLAGS) $(FAB_ASAN) -pthread -o $(FAB_DIR)/fab_work_test_asan $(FAB_WORK_TEST_SRCS) \ + $(RX_SKILLROUTE_OBJ) $(RX_CAPQ_OBJ) $(RX_GRAPH_OBJ) $(AIENOS_CAP_LIB) -lm + $(abspath $(FAB_DIR)/fab_work_test) tests/fabric/vectors/pst + $(abspath $(FAB_DIR)/fab_work_test_asan) tests/fabric/vectors/pst > $(FAB_DIR)/work_asan.out + @grep -q '^FAB_WORK_PASS$$' $(FAB_DIR)/work_asan.out && echo "test-fabric-work: ASan/UBSan run PASS" + tests/fabric/fab_work_procs.sh $(abspath $(FAB_DIR)/fab_work_test) $(abspath $(FAB_DIR)) + test-fabric-living: fabric-purity @$(MAKE) --no-print-directory $(RX_CAPQ_OBJ) $(RX_GRAPH_OBJ) $(RX_SKILLROUTE_OBJ) $(OUT_DIR)/rx_cortex.o $(AIENOS_CAP_LIB) $(CC) $(CFLAGS) $(FAB_CFLAGS) -Itests/runtime -Itests/fabric -pthread -o $(FAB_DIR)/fabric_living_test \ diff --git a/mk/omega-mufu-ftz.mk b/mk/omega-mufu-ftz.mk new file mode 100644 index 000000000..89ff2604b --- /dev/null +++ b/mk/omega-mufu-ftz.mk @@ -0,0 +1,19 @@ +# MUFU flush rule (omega #462): the GB10 MUFU unit (EX2 / RCP / RSQ) flushes a subnormal input or result to a +# sign-preserving zero. tests/bw_mufu_ftz.h is the one host model of it; every warp simulator and SwiGLU host reference +# routes through it. test-mufu-ftz runs the helper unit test, then one MUFU instruction through each simulator's +# ws_lane_exec (bw_warp_sim.h, _k, _pa, _tc). Picked up by `-include mk/*.mk`. Host only: opens no device, needs no +# physics headers, takes no chip lock. The attention test's own per-thread simulator is checked by +# `gpu_attention_test --host-only` (test-gpu-attention). +MUFU_FTZ_SIMS := bw_warp_sim bw_warp_sim_k bw_warp_sim_pa bw_warp_sim_tc +MUFU_FTZ_CFLAGS := -std=gnu11 -O2 -Wall -Wextra -Werror -D_GNU_SOURCE -ffp-contract=off -Isrc -Itests +.PHONY: test-mufu-ftz +$(OUT_DIR)/test_mufu_ftz_helper: tests/bw_mufu_ftz_test.c tests/bw_mufu_ftz.h + @mkdir -p $(OUT_DIR) + gcc $(MUFU_FTZ_CFLAGS) -o $@ tests/bw_mufu_ftz_test.c -lm +$(OUT_DIR)/test_mufu_ftz_%: tests/bw_mufu_ftz_test.c tests/bw_mufu_ftz.h tests/%.h tests/bw_hmma_model.h tests/bw_qmma_model.h src/omega_blackwell_codegen.h + @mkdir -p $(OUT_DIR) + gcc $(MUFU_FTZ_CFLAGS) -DWS_SIM_HDR='"$*.h"' -o $@ tests/bw_mufu_ftz_test.c -lm +test-mufu-ftz: $(OUT_DIR)/test_mufu_ftz_helper $(addprefix $(OUT_DIR)/test_mufu_ftz_,$(MUFU_FTZ_SIMS)) + ./$(OUT_DIR)/test_mufu_ftz_helper + @for s in $(MUFU_FTZ_SIMS); do ./$(OUT_DIR)/test_mufu_ftz_$$s || exit 1; done + @echo "test-mufu-ftz: PASS (helper + $(words $(MUFU_FTZ_SIMS)) simulators)" diff --git a/spec/.crumb b/spec/.crumb index e63063df8..ee304997c 100644 --- a/spec/.crumb +++ b/spec/.crumb @@ -20,14 +20,14 @@ } ], "children_root": "sha256:6834a3241647d3a098283d4eafedbdb1428dfa4d834f9ed5f22025b6d2303093", - "compiled_at": "2026-10-16T07:53:23Z", + "compiled_at": "2026-10-16T20:22:58Z", "compiler": "crumb-compile/1", - "digest": "sha256:6327473d41e10acbf43be0918d3557509322bfd7d6e075e114c79c2600a47305", + "digest": "sha256:2dd4730b7e14e1b215d011c074e28a3b69a1d9abc96f0208bf21afee4c7d4b1e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 58, - "generated_at_commit": "4197e0bb49ad1e67d9dac37f259246470ffecedc", - "source_tree": "sha256:2130510e8275fd1ae1fdf6078a82521c7ac2fe0ea6ada8a9d1156f0f2ba191fd" + "generated_at_commit": "209199bb756158699fab4c196cbfb38ffc3549fd", + "source_tree": "sha256:d03dc3ae7798494790fc798d58f1b02d0dc323b826c10acd28e2c61cff4e3e32" }, "owner_lane": "", "provenance": { diff --git a/spec/one-layer-receipts.md b/spec/one-layer-receipts.md index a5653e9fb..27a56d24a 100644 --- a/spec/one-layer-receipts.md +++ b/spec/one-layer-receipts.md @@ -170,6 +170,24 @@ function: valid types and operands; well-formed control flow; every use defined ownership, arena, pool and handle discipline (a may-set analysis that rejects definite errors); every loop reducible and bounded by a guarded counter with a constant limit of at most 10^6. +Known limits of that ownership flow (omega#465). "Accepted" means the program passes the rules +above, not "well-owned". Two shapes are accepted today: + +- An owner leaked on some paths only. `C2-OWN-LEAK` fires at a return only when the owner is live + on every path into it, so a program that releases an owner on one branch and returns on the other + without releasing it is accepted. This is what keeps drop-flag guarded releases (OSC-3 item 3) + from being refused. +- A mutable borrow copied. `MOV` binds a `mut` source to a `mut` destination (`bindable` in + `c2_check.c`) and no rule tracks how many mutable borrows of one owner are live, so two live + writers of one array are accepted. `C2-CALL-ALIAS` refuses only one register passed twice to a + call and written. + +Neither shape breaks memory safety by itself: a leak frees nothing early, and two writers through +copied mutable borrows still go through bounds-checked accesses to an owner that is alive (the two +reproducers in omega#465 were checked with glyph, omega_emit and checker2 on 2026-10-15). Front ends +that want "well-owned" must refuse these shapes themselves until checker2 gains a some-path leak +rule and an exclusive mutable borrow rule; that choice is open in omega#465. + ## 10. Evidence class 2: LRAT proofs Property `no-trap-except-requires` of a function F: for every argument value, a run of F that diff --git a/src/.crumb b/src/.crumb index 4fe5298a4..c41690205 100644 --- a/src/.crumb +++ b/src/.crumb @@ -103,8 +103,8 @@ "purpose": "Directory src/estimation. Purpose not yet described by a human." }, { - "digest": "330c407ff51bfd684e062707c055f58f325f5af16fe9764889aec3a7ffeb31ac", - "last_commit": "3108fc2f", + "digest": "a8ef795e9fd9a70eb3d06ab2a6619c7064a395fce80e4b5a6d402d9117acf1f0", + "last_commit": "0e7bcb60", "name": "fabric", "purpose": "Directory src/fabric. Purpose not yet described by a human." }, @@ -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:2bc50191b565f16ea8d616313728f165b0c90455bf7573b7d87107fe8c9d53ee", + "compiled_at": "2026-10-20T20:54:39Z", "compiler": "crumb-compile/1", - "digest": "sha256:dfa36de2ac8649f66f80587abea51a7f166285ee0b92e0e09774c98689055250", + "digest": "sha256:c53df5dd6e20fd9d6106288146c04ffe1690ac17c031027fc31f429fa565fb4c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 537, - "generated_at_commit": "1d481ab853a14d3c11eff926ce1e25993085f76a", - "source_tree": "sha256:200c9243151691313acb5f86d3e9cb3058f1a1b92ece2a255b3340b691dfb894" + "files": 548, + "generated_at_commit": "738552e3f036b757e740f1dbfa1c4e7de069f63c", + "source_tree": "sha256:56fd240342334c63dd180c4db16db1511e6b7e0748073eeeb2bf799115ce73a8" }, "owner_lane": "", "provenance": { diff --git a/src/fabric/.crumb b/src/fabric/.crumb index 43cb951ff..d9ccb007b 100644 --- a/src/fabric/.crumb +++ b/src/fabric/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:05Z", + "compiled_at": "2026-10-18T09:08:07Z", "compiler": "crumb-compile/1", - "digest": "sha256:330c407ff51bfd684e062707c055f58f325f5af16fe9764889aec3a7ffeb31ac", + "digest": "sha256:a8ef795e9fd9a70eb3d06ab2a6619c7064a395fce80e4b5a6d402d9117acf1f0", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 8, - "generated_at_commit": "834ee93e4314a42c1127a2fcda8b29cf3b511245", - "source_tree": "sha256:70af8e151260272941d4e69988659ee0b5017d270b3b8c13a9a6ec974522d02b" + "files": 15, + "generated_at_commit": "eaacacd62040249f5633daf9fa6674e7f2f9d027", + "source_tree": "sha256:ece762657b3c1791ff25a582a0ff334d5cf4932cc5d2062620535f9f8bac0364" }, "owner_lane": "", "provenance": { diff --git a/src/fabric/README.md b/src/fabric/README.md new file mode 100644 index 000000000..8deba5ecb --- /dev/null +++ b/src/fabric/README.md @@ -0,0 +1,74 @@ +# Omega Fabric (`src/fabric/`) + +The Fabric is how separate AIEN machines agree on who is a member, what each one +offers, and how work is handed from one machine to another. Everything here is +plain C with no dynamic allocation, no clocks and no files, so the same code can +run on a coordinator, inside a hosted worker, and later inside AIENOS. + +## What is in this folder + +| File | Role | Builds into production? | +| --- | --- | --- | +| `fabric.h` / `fabric.c` | F5-0 membership: signed JOIN / RENEW / ADVERTISE / LEAVE, leases, generations, replay refusal | yes | +| `fab_auth_ed25519.h` / `.c` | Ed25519 identity for the Fabric: a machine is its public key, and its machine id is derived from that key | yes | +| `fab_route.h` / `.c` | The check a coordinator runs before sending work: pump the Fabric, revalidate the Skill route, require a live remote owner | yes | +| `fab_work.h` / `.c` | Work hand-off: the PST1 message reader and writer, the HTK1 task and HTR1 receipt codecs, the requester state machine and the executor's durable journal | yes | +| `fab_hmac.h` / `.c` | HMAC stand-in authenticator | test only | +| `fab_loopback.h` / `.c` | In-process loopback transport | test only | +| `fab_dispatch.h` / `.c` | Simulated-machine dispatcher (steps 1-3 are `fab_route.c`; only the procedure table lives here) | test only | + +"Test only" files carry an `aien_test_build_*` marker and are refused from any +production binary by `tools/r16_prod_hygiene.sh`. + +## Work hand-off (heterogeneous compute, aienix#6 and omega#536) + +A **requester** sends a PST1 `request` carrying an HTK1 task. An **executor** +answers with `accepted`, `running` and then exactly one terminal message: +`completed` (with the result digest and an HTR1 receipt), `failed` (with a +reason code) or `cancelled`. Every answer is checked against the task id, the +idempotence key and a rising ordinal; anything out of order, from the wrong side, +or for an unknown task is refused and counted. + +Two task kinds are allowlisted today, both with exact recomputable answers: + +- **matmul_i64_seeded**: an N by N integer matrix product on inputs generated from + a seed by splitmix64. The result is the SHA-256 of the big-endian product. +- **tokenize_fixture**: run a pinned tokenizer over a slice of a pinned fixture + (codec and bounds only in this step; the executor does not run it yet). + +The executor journals a task's terminal before it sends it. The same task bytes +asked again replay the journaled answer without re-running; different bytes under +the same key are refused with code 7. A requester that loses the session marks +the task UNCERTAIN and leaves that state only through a signed `resume_snapshot`. + +Nothing in this folder opens a socket. Transports are supplied by the caller +(`FabTransport`), so the loopback test, the two-process pipe test and a real +network adapter all exercise the same code. Loopback and pipes are not a network +and are never reported as one. + +## Tests + +``` +make test-fabric # F5-0 membership, loopback +make test-fabric-work # PST1 vectors, HTK1/HTR1 goldens, matmul oracle, state machines, + # Ed25519 membership, then the same binary under AddressSanitizer, + # then requester and executor as two OS processes over pipes +make test-fabric-living # living-system phase gates +make fabric-purity fab-work-purity # no forbidden symbols in the production objects +``` + +`test-fabric-work` needs the pinned AIENOS capability library; point +`AIENOS_LOCK_REPO` at a checkout holding the locked commit if the default +sibling path is absent. The PST1 vectors in `tests/fabric/vectors/pst/` come from +the protocols repository and are checked byte for byte against `expected.txt`. + +The matmul oracle digests (seed, size, SHA-256 of the product) are recorded in +`tests/fabric/fab_work_test.c` so an independent implementation can reproduce +them. + +## Limits + +This folder proves codec, state machine and journal behaviour in one process and +across a process boundary. It does not by itself prove a second physical machine +ran anything: that evidence comes from the hosted worker adapter and the +three-machine qualification in the benchmarks repository. diff --git a/src/fabric/fab_auth_ed25519.c b/src/fabric/fab_auth_ed25519.c new file mode 100644 index 000000000..282d607ff --- /dev/null +++ b/src/fabric/fab_auth_ed25519.c @@ -0,0 +1,74 @@ +/* fab_auth_ed25519.c -- Ed25519 FabAuth over the vendored AIENOS signing code. */ +#include "fab_auth_ed25519.h" +#include "searchtrace/sig/aienos_sig.h" + +#include + +int fab_ed_machine_id(const uint8_t pk[32], AienMachineId *out) { + if (!pk || !out) return FAB_E_ARG; + return aien_mid_derive(AIEN_MID_ROOT_PROVISIONED, pk, 32, out) == AIEN_MID_OK ? FAB_OK : FAB_E_ARG; +} + +const uint8_t *fab_ed_auth_pk_of(const FabEdAuth *a, const AienMachineId *id) { + if (!a || !id) return NULL; + if (aien_mid_equal(&a->self, id)) return a->pk; + for (uint32_t i = 0; i < a->n; i++) + if (aien_mid_equal(&a->peer[i].id, id)) return a->peer[i].pk; + return NULL; +} + +static int ed_sign(void *ctx, const uint8_t *msg, size_t len, uint8_t sig[FAB_SIG_BYTES]) { + const FabEdAuth *a = ctx; + if (!a || !sig || (!msg && len)) return FAB_E_ARG; + return aienos_ed25519_sign(sig, msg, len, a->sk) == AIENOS_SIG_OK ? FAB_OK : FAB_E_AUTH; +} + +static int ed_verify(void *ctx, const AienMachineId *claimed, const uint8_t *msg, size_t len, + const uint8_t sig[FAB_SIG_BYTES]) { + const FabEdAuth *a = ctx; + if (!a || !claimed || !sig || (!msg && len)) return FAB_E_ARG; + const uint8_t *pk = fab_ed_auth_pk_of(a, claimed); + if (!pk) return FAB_E_AUTH; /* not enrolled here: never a silent accept */ + return aienos_ed25519_verify(sig, msg, len, pk) == AIENOS_SIG_OK ? FAB_OK : FAB_E_AUTH; +} + +int fab_ed_auth_init(FabEdAuth *a, const uint8_t sk[32]) { + if (!a || !sk) return FAB_E_ARG; + memset(a, 0, sizeof *a); + memcpy(a->sk, sk, 32); + if (aienos_ed25519_public_key(a->pk, a->sk) != AIENOS_SIG_OK || + fab_ed_machine_id(a->pk, &a->self) != FAB_OK) { + fab_ed_auth_wipe(a); + return FAB_E_ARG; + } + a->auth.ctx = a; + a->auth.sign = ed_sign; + a->auth.verify = ed_verify; + return FAB_OK; +} + +int fab_ed_auth_add_peer(FabEdAuth *a, const uint8_t pk[32]) { + if (!a || !pk) return FAB_E_ARG; + if (a->n >= FAB_ED_MAX_PEERS) return FAB_E_FULL; + FabEdPeer p; + memcpy(p.pk, pk, 32); + if (fab_ed_machine_id(p.pk, &p.id) != FAB_OK) return FAB_E_ARG; + if (fab_ed_auth_pk_of(a, &p.id)) return FAB_E_ARG; /* duplicate, or our own key */ + a->peer[a->n++] = p; + return FAB_OK; +} + +int fab_ed_auth_roster(const FabEdAuth *a, AienMachineId *ids, uint32_t cap, uint32_t *n) { + if (!a || !ids || !n) return FAB_E_ARG; + if (cap < a->n + 1u) return FAB_E_FULL; + ids[0] = a->self; + for (uint32_t i = 0; i < a->n; i++) ids[i + 1] = a->peer[i].id; + *n = a->n + 1u; + return FAB_OK; +} + +void fab_ed_auth_wipe(FabEdAuth *a) { + if (!a) return; + volatile uint8_t *p = (volatile uint8_t *)a; + for (size_t i = 0; i < sizeof *a; i++) p[i] = 0; +} diff --git a/src/fabric/fab_auth_ed25519.h b/src/fabric/fab_auth_ed25519.h new file mode 100644 index 000000000..5dd6dd3dd --- /dev/null +++ b/src/fabric/fab_auth_ed25519.h @@ -0,0 +1,68 @@ +/* + * fab_auth_ed25519.h -- the Fabric signer for real machines (aienix#6, omega#536). + * + * FabAuth (fabric.h) is an interface: fabric.c signs every message it seals and + * verifies every message it receives through it, naming the claimed sender by + * its AienMachineId. F5-0 ships only an HMAC stand-in (fab_hmac.h, test build). + * This file is the production signer: Ed25519 over the exact AFAB bytes, with + * the signing code the repository already vendors from AIENOS + * (src/searchtrace/sig/, aienos native/sig @913b962; see PROVENANCE.txt there). + * No new cryptography is written here. + * + * Identity: one 32-byte Ed25519 seed per machine (RFC 8032 secret key). The + * machine's canonical identity is derived from its public key, + * AienMachineId = aien_mid_derive(AIEN_MID_ROOT_PROVISIONED, pk, 32), + * so a roster entry is the public key alone; the id is never typed by hand. + * Class: lab-provisioned. This is not TRUST-1 owner enrolment (AIEN_MID_ROOT_ + * HARDWARE); a receipt made under such a key must say identity_class=lab. + * + * verify(claimed, msg, sig): the claimed id must be this node's own id or one + * of the enrolled peers; its public key verifies the signature. Anything else + * is a refusal (nonzero). fabric.c has already checked the roster before it + * asks, so an unknown id here is FAB_E_AUTH, never a silent accept. + * + * The seed stays in this struct only; fab_ed_auth_wipe zeroes it. Nothing here + * reads a file, opens a socket or prints: the caller loads the seed bytes. + */ +#ifndef FAB_AUTH_ED25519_H +#define FAB_AUTH_ED25519_H + +#include "fabric.h" + +#define FAB_ED_MAX_PEERS 64u + +typedef struct { + AienMachineId id; + uint8_t pk[32]; +} FabEdPeer; + +typedef struct { + uint8_t sk[32]; /* this machine's seed; wiped by fab_ed_auth_wipe */ + uint8_t pk[32]; + AienMachineId self; + uint32_t n; + FabEdPeer peer[FAB_ED_MAX_PEERS]; + FabAuth auth; /* points back at this signer */ +} FabEdAuth; + +/* The canonical machine id of a public key. FAB_E_ARG on a null pointer. */ +int fab_ed_machine_id(const uint8_t pk[32], AienMachineId *out); + +/* Loads the seed, derives pk and self. The peer list starts empty. */ +int fab_ed_auth_init(FabEdAuth *a, const uint8_t sk[32]); + +/* Enrols a peer by public key (its id is derived). FAB_E_FULL when the list + * is full, FAB_E_ARG for a duplicate or for this machine's own key. */ +int fab_ed_auth_add_peer(FabEdAuth *a, const uint8_t pk[32]); + +/* Writes self + every peer into ids (the FabRoster a node is configured with). + * FAB_E_FULL when cap is too small; *n is the count written. */ +int fab_ed_auth_roster(const FabEdAuth *a, AienMachineId *ids, uint32_t cap, uint32_t *n); + +/* The public key enrolled for `id`, or NULL. */ +const uint8_t *fab_ed_auth_pk_of(const FabEdAuth *a, const AienMachineId *id); + +/* Zeroes the seed and the struct. */ +void fab_ed_auth_wipe(FabEdAuth *a); + +#endif /* FAB_AUTH_ED25519_H */ diff --git a/src/fabric/fab_dispatch.c b/src/fabric/fab_dispatch.c index b84e6c55a..0b95d2a02 100644 --- a/src/fabric/fab_dispatch.c +++ b/src/fabric/fab_dispatch.c @@ -1,5 +1,9 @@ -/* fab_dispatch.c -- Fabric dispatch of remote composition candidates (fab_dispatch.h). */ +/* fab_dispatch.c -- Fabric dispatch of remote composition candidates (fab_dispatch.h). + * Steps 1-3 (pump, route revalidation, live remote member) are fab_route.c, the + * production-buildable check a real coordinator runs before it sends; only + * step 4 (the simulated procedure table) lives here. */ #include "fab_dispatch.h" +#include "fab_route.h" #include @@ -41,18 +45,7 @@ int fab_dispatch_add(FabDispatch *d, const AienMachineId *m, const AgSkillTable /* Caller holds the lock. */ static int pump_locked(FabDispatch *d, uint64_t now_us) { - int n = 0; - FabVerdict v; - for (;;) { - int rc = fab_poll(d->node, now_us, &v); - if (rc < 0) return rc; - if (rc == 0) break; - n++; - d->polled++; - if (v.code != FAB_OK) d->refused_msgs++; - } - (void)fab_tick(d->node, now_us); - return n; + return fab_route_pump(d->node, now_us, &d->polled, &d->refused_msgs); } int fab_dispatch_pump(FabDispatch *d, uint64_t now_us) { @@ -75,22 +68,21 @@ int fab_dispatch_run(void *ctx, const SrRouter *router, const SrRoute *route, ui if (!d || !d->node) return FAB_DX_ARG; pthread_mutex_lock(&d->mu); int rc; - if (!router || !route || !result || router->graph != d->node->cfg.catalog) { - rc = refuse(d, FAB_DX_ARG); - goto out; - } - if (pump_locked(d, now_us) < 0) { rc = refuse(d, FAB_DX_TRANSPORT); goto out; } - if (sr_route_check(router, route, now_us) != SR_E_REMOTE) { rc = refuse(d, FAB_DX_ROUTE); goto out; } - if (!route->target_known) { rc = refuse(d, FAB_DX_TARGET); goto out; } - JsHome home; - if (fab_home(d->node, &route->target, now_us, &home) != FAB_OK || - home.locality != JS_HOME_REMOTE_OWNED) { - rc = refuse(d, FAB_DX_NOT_MEMBER); - goto out; + if (!result) { rc = refuse(d, FAB_DX_ARG); goto out; } + /* Steps 1-3: fab_route.c (shared with the production coordinator). */ + AienMachineId target; + switch (fab_route_check(d->node, router, route, now_us, &target, &d->polled, &d->refused_msgs)) { + case FAB_RT_OK: break; + case FAB_RT_ARG: rc = refuse(d, FAB_DX_ARG); goto out; + case FAB_RT_TRANSPORT: rc = refuse(d, FAB_DX_TRANSPORT); goto out; + case FAB_RT_ROUTE: rc = refuse(d, FAB_DX_ROUTE); goto out; + case FAB_RT_TARGET: rc = refuse(d, FAB_DX_TARGET); goto out; + default: rc = refuse(d, FAB_DX_NOT_MEMBER); goto out; } + /* Step 4 (loopback stand-in only): the simulated machine's procedure table. */ const FabExecutor *ex = NULL; for (uint32_t i = 0; i < d->n_exec && !ex; i++) - if (aien_mid_equal(&d->exec[i].machine, &route->target)) ex = &d->exec[i]; + if (aien_mid_equal(&d->exec[i].machine, &target)) ex = &d->exec[i]; const AgSkill *s = NULL; for (uint32_t i = 0; ex && i < ex->skills->n && !s; i++) if (ex->skills->skill[i].id == route->chosen.skill_id) s = &ex->skills->skill[i]; diff --git a/src/fabric/fab_route.c b/src/fabric/fab_route.c new file mode 100644 index 000000000..50cd6e411 --- /dev/null +++ b/src/fabric/fab_route.c @@ -0,0 +1,43 @@ +/* fab_route.c -- pre-dispatch route checks (fab_route.h). */ +#include "fab_route.h" + +int fab_route_pump(FabNode *n, uint64_t now_us, uint64_t *polled, uint64_t *refused_msgs) { + if (!n) return FAB_E_ARG; + int applied = 0; + FabVerdict v; + for (;;) { + int rc = fab_poll(n, now_us, &v); + if (rc < 0) return rc; + if (rc == 0) break; + applied++; + if (polled) (*polled)++; + if (v.code != FAB_OK && refused_msgs) (*refused_msgs)++; + } + (void)fab_tick(n, now_us); + return applied; +} + +int fab_route_check(FabNode *n, const SrRouter *router, const SrRoute *route, uint64_t now_us, + AienMachineId *target, uint64_t *polled, uint64_t *refused_msgs) { + if (!n || !router || !route || !target || router->graph != n->cfg.catalog) return FAB_RT_ARG; + if (fab_route_pump(n, now_us, polled, refused_msgs) < 0) return FAB_RT_TRANSPORT; + if (sr_route_check(router, route, now_us) != SR_E_REMOTE) return FAB_RT_ROUTE; + if (!route->target_known) return FAB_RT_TARGET; + JsHome home; + if (fab_home(n, &route->target, now_us, &home) != FAB_OK || home.locality != JS_HOME_REMOTE_OWNED) + return FAB_RT_NOT_MEMBER; + *target = route->target; + return FAB_RT_OK; +} + +const char *fab_route_strerror(int code) { + switch (code) { + case FAB_RT_OK: return "ok"; + case FAB_RT_ARG: return "bad call or foreign graph"; + case FAB_RT_TRANSPORT: return "fabric transport error while pumping"; + case FAB_RT_ROUTE: return "route no longer remote (withdrawn, stale or lease ended)"; + case FAB_RT_TARGET: return "route has no canonical target machine"; + case FAB_RT_NOT_MEMBER: return "target is not a live remote member"; + default: return "unknown fab_route code"; + } +} diff --git a/src/fabric/fab_route.h b/src/fabric/fab_route.h new file mode 100644 index 000000000..151268c8d --- /dev/null +++ b/src/fabric/fab_route.h @@ -0,0 +1,50 @@ +/* + * fab_route.h -- the checks a Fabric node makes before it sends work to a + * remote machine (aienix#6, omega#536). Production-buildable. + * + * These are steps 1 to 3 of fab_dispatch.h, lifted out of the test-only + * in-process dispatcher so a real coordinator can run them before it hands a + * task to the transport. Step 4 of the dispatcher (the simulated procedure + * table) is NOT here and is never promoted: whether the remote machine ran + * what it advertised is answered by the executor's receipt (fab_work.h HTR1, + * implementation_digest against the advertised skill_digest), not by this + * process. + * + * 1. fab_route_pump: apply waiting Fabric traffic and the clock, so a LEAVE + * or an ended lease withdraws the machine's entries first; + * 2. the route must still be SR_E_REMOTE under sr_route_check (entry live, + * same generation, version and digest, machine identity unchanged); + * 3. the route's machine must be a live member of this node whose home is + * JS_HOME_REMOTE_OWNED: never the local machine, never a lost one. + * Any failure refuses and names why. The caller holds whatever lock protects + * the node; this file takes none (fab_dispatch.c keeps its own). + */ +#ifndef FAB_ROUTE_H +#define FAB_ROUTE_H + +#include "fabric.h" +#include "runtime/rx_skillroute.h" + +enum { + FAB_RT_OK = 0, + FAB_RT_ARG, /* bad call, or the router's graph is not this node's catalog */ + FAB_RT_TRANSPORT, /* applying waiting Fabric traffic failed */ + FAB_RT_ROUTE, /* sr_route_check is no longer SR_E_REMOTE */ + FAB_RT_TARGET, /* route has no canonical target machine */ + FAB_RT_NOT_MEMBER, /* target is not a live remote member of this node */ + FAB_RT_N +}; + +/* Step 1. Applies every waiting message, then the clock. Returns the number of + * messages applied, or <0 (a FAB_E_* transport code). polled / refused_msgs, + * when given, are increased by the messages seen / refused. */ +int fab_route_pump(FabNode *n, uint64_t now_us, uint64_t *polled, uint64_t *refused_msgs); + +/* Steps 1 to 3. FAB_RT_OK with *target = the live remote machine to send to, + * else the FAB_RT_* refusal (target untouched). */ +int fab_route_check(FabNode *n, const SrRouter *router, const SrRoute *route, uint64_t now_us, + AienMachineId *target, uint64_t *polled, uint64_t *refused_msgs); + +const char *fab_route_strerror(int code); + +#endif /* FAB_ROUTE_H */ diff --git a/src/fabric/fab_work.c b/src/fabric/fab_work.c new file mode 100644 index 000000000..ca47fbecb --- /dev/null +++ b/src/fabric/fab_work.c @@ -0,0 +1,696 @@ +/* fab_work.c -- PST1 / HTK1 / HTR1 codec, requester state machine, executor journal (fab_work.h). */ +#include "fab_work.h" +#include "sha256.h" + +#include +#include + +/* ---- byte helpers (big-endian on the wire) ---- */ +static uint16_t g16(const uint8_t *p) { return (uint16_t)((p[0] << 8) | p[1]); } +static uint32_t g32(const uint8_t *p) { return ((uint32_t)p[0] << 24) | ((uint32_t)p[1] << 16) | ((uint32_t)p[2] << 8) | p[3]; } +static uint64_t g64(const uint8_t *p) { return ((uint64_t)g32(p) << 32) | g32(p + 4); } +static void p16(uint8_t *p, uint16_t v) { p[0] = (uint8_t)(v >> 8); p[1] = (uint8_t)v; } +static void p32(uint8_t *p, uint32_t v) { p[0] = (uint8_t)(v >> 24); p[1] = (uint8_t)(v >> 16); p[2] = (uint8_t)(v >> 8); p[3] = (uint8_t)v; } +static void p64(uint8_t *p, uint64_t v) { p32(p, (uint32_t)(v >> 32)); p32(p + 4, (uint32_t)v); } +static int all_zero(const uint8_t *p, size_t n) { uint8_t a = 0; for (size_t i = 0; i < n; i++) a |= p[i]; return a == 0; } + +/* ================= PST1 ================= */ +enum { + O_MAGIC = 0, O_VERSION = 4, O_TYPE = 5, O_RES0 = 6, O_CAUSE = 8, O_ORIGIN = 40, + O_OBJECTIVE = 72, O_SUBJECT = 104, O_PARENT = 136, O_TASK = 152, O_IDEM = 168, + O_ORDINAL = 184, O_EFFECT = 188, O_RES1 = 189, O_PLEN = 190, O_DIGEST = 192 +}; + +static const char *const pst_names[PST_CODE_COUNT] = { + "OK", "PST_BAD_MAGIC", "PST_BAD_VERSION", "PST_DOWNGRADE", "PST_BAD_TYPE", + "PST_WRONG_SIDE", "PST_BAD_LENGTH", "PST_TRAILING_BYTES", "PST_RESERVED_NONZERO", + "PST_NO_CAUSE", "PST_NO_TASK", "PST_NO_OBJECTIVE", "PST_DIGEST_MISMATCH", + "PST_BAD_EFFECT_CLASS", "PST_SUBJECT_MISMATCH" +}; + +const char *pst_code_name(int code) { + return code >= 0 && code < PST_CODE_COUNT ? pst_names[code] : "PST_UNKNOWN_CODE"; +} + +/* Field rules shared by decode (on the wire bytes) and encode (on the struct): + * steps 3, 4, 8, 9, 10 and 11 of SPEC.md section 4.1. */ +static int pst_field_rules(uint8_t version, uint8_t type, uint8_t effect, const uint8_t *cause, + const uint8_t *task, const uint8_t *idem, const uint8_t *objective) { + if (version < PST_VERSION) return PST_DOWNGRADE; + if (version > PST_VERSION) return PST_BAD_VERSION; + if (type == 0 || type > PST_MAX_TYPE) return PST_BAD_TYPE; + if (effect > PST_EFFECT_EFFECT) return PST_BAD_EFFECT_CLASS; + if (all_zero(cause, 32)) return PST_NO_CAUSE; + if (all_zero(task, 16)) return PST_NO_TASK; + if (all_zero(idem, 16)) return PST_NO_TASK; + if (type == PST_T_REQUEST && all_zero(objective, 32)) return PST_NO_OBJECTIVE; + return PST_OK; +} + +int pst_decode(const uint8_t *b, size_t n, PstMsg *m) { + if (!b || !m) return PST_BAD_LENGTH; + memset(m, 0, sizeof *m); + /* 1. length bounds */ + if (n < PST_HDR) return PST_BAD_LENGTH; + if (n > PST_MAX_MSG) return PST_BAD_LENGTH; + /* 2. magic */ + if (memcmp(b + O_MAGIC, "PST1", 4) != 0) return PST_BAD_MAGIC; + /* 3. version 4. type (field rules continue below after the length checks, as the checker orders them) */ + if (b[O_VERSION] < PST_VERSION) return PST_DOWNGRADE; + if (b[O_VERSION] > PST_VERSION) return PST_BAD_VERSION; + if (b[O_TYPE] == 0 || b[O_TYPE] > PST_MAX_TYPE) return PST_BAD_TYPE; + /* 5. reserved */ + if (!all_zero(b + O_RES0, 2)) return PST_RESERVED_NONZERO; + if (b[O_RES1] != 0) return PST_RESERVED_NONZERO; + /* 6, 7. payload length against the bytes present */ + m->payload_len = g16(b + O_PLEN); + size_t body = n - PST_HDR; + if (body < m->payload_len) return PST_BAD_LENGTH; + if (body > m->payload_len) return PST_TRAILING_BYTES; + /* 8..11. field rules */ + int rc = pst_field_rules(b[O_VERSION], b[O_TYPE], b[O_EFFECT], b + O_CAUSE, b + O_TASK, b + O_IDEM, b + O_OBJECTIVE); + if (rc != PST_OK) return rc; + /* 12. payload digest */ + uint8_t d[32]; + sha256_hash(b + PST_HDR, m->payload_len, d); + if (memcmp(d, b + O_DIGEST, 32) != 0) return PST_DIGEST_MISMATCH; + + m->version = b[O_VERSION]; + m->type = b[O_TYPE]; + memcpy(m->cause, b + O_CAUSE, 32); + memcpy(m->origin, b + O_ORIGIN, 32); + memcpy(m->objective, b + O_OBJECTIVE, 32); + memcpy(m->subject, b + O_SUBJECT, 32); + memcpy(m->parent, b + O_PARENT, 16); + memcpy(m->task, b + O_TASK, 16); + memcpy(m->idem, b + O_IDEM, 16); + m->ordinal = g32(b + O_ORDINAL); + m->effect = b[O_EFFECT]; + memcpy(m->digest, d, 32); + m->payload = b + PST_HDR; + return PST_OK; +} + +int pst_encode(const PstMsg *m, const uint8_t *payload, size_t payload_len, + uint8_t *out, size_t cap, size_t *out_len) { + if (!m || !out || !out_len || (!payload && payload_len)) return PST_BAD_LENGTH; + if (payload_len > PST_MAX_PAY || cap < PST_HDR + payload_len) return PST_BAD_LENGTH; + int rc = pst_field_rules(m->version, m->type, m->effect, m->cause, m->task, m->idem, m->objective); + if (rc != PST_OK) return rc; + memset(out, 0, PST_HDR); + memcpy(out + O_MAGIC, "PST1", 4); + out[O_VERSION] = m->version; + out[O_TYPE] = m->type; + memcpy(out + O_CAUSE, m->cause, 32); + memcpy(out + O_ORIGIN, m->origin, 32); + memcpy(out + O_OBJECTIVE, m->objective, 32); + memcpy(out + O_SUBJECT, m->subject, 32); + memcpy(out + O_PARENT, m->parent, 16); + memcpy(out + O_TASK, m->task, 16); + memcpy(out + O_IDEM, m->idem, 16); + p32(out + O_ORDINAL, m->ordinal); + out[O_EFFECT] = m->effect; + p16(out + O_PLEN, (uint16_t)payload_len); + sha256_hash(payload ? payload : out, payload_len, out + O_DIGEST); /* out: any pointer for len 0 */ + if (payload_len) memcpy(out + PST_HDR, payload, payload_len); + *out_len = PST_HDR + payload_len; + return PST_OK; +} + +int pst_side_of(uint8_t type) { + if (type == 0 || type > PST_MAX_TYPE) return 0; + return (type == PST_T_REQUEST || type == PST_T_CANCEL_REQUEST || type == PST_T_RESUME_REQUEST) + ? PST_ROLE_REQUESTER : PST_ROLE_EXECUTOR; +} + +int pst_side_check(uint8_t type, int sender_role) { + int s = pst_side_of(type); + return s && s == sender_role ? PST_OK : PST_WRONG_SIDE; +} + +static char *hexw(char *o, const uint8_t *p, size_t n) { + static const char hx[] = "0123456789abcdef"; + for (size_t i = 0; i < n; i++) { *o++ = hx[p[i] >> 4]; *o++ = hx[p[i] & 15]; } + *o = 0; + return o; +} + +void pst_verdict_line(int code, const PstMsg *m, char *buf, size_t cap) { + char c[65], o[65], ob[65], s[65], pa[33], t[33], k[33], d[65]; + if (!buf || !cap) return; + if (code != PST_OK || !m) { + snprintf(buf, cap, "refuse %s", pst_code_name(code)); + return; + } + hexw(c, m->cause, 32); hexw(o, m->origin, 32); hexw(ob, m->objective, 32); hexw(s, m->subject, 32); + hexw(pa, m->parent, 16); hexw(t, m->task, 16); hexw(k, m->idem, 16); hexw(d, m->digest, 32); + snprintf(buf, cap, "ok type=%u version=%u cause=%s origin=%s objective=%s subject=%s parent=%s task=%s idem=%s ordinal=%lu effect=%u len=%u digest=%s", + m->type, m->version, c, o, ob, s, pa, t, k, (unsigned long)m->ordinal, m->effect, m->payload_len, d); +} + +/* ================= HTK1 ================= */ +static const char *const htk_names[HTK_CODE_COUNT] = { + "HTK_OK", "HTK_BAD_MAGIC", "HTK_BAD_VERSION", "HTK_BAD_KIND", "HTK_RESERVED_NONZERO", + "HTK_BAD_LENGTH", "HTK_BAD_BOUNDS", "HTK_INPUT_DIGEST_MISMATCH" +}; +const char *htk_code_name(int code) { return code >= 0 && code < HTK_CODE_COUNT ? htk_names[code] : "HTK_UNKNOWN_CODE"; } + +static size_t htk_param_len(uint8_t kind) { + if (kind == HTK_KIND_MATMUL_I64_SEEDED) return 12; + if (kind == HTK_KIND_TOKENIZE_FIXTURE) return 72; + return 0; +} + +size_t htk_input_bytes(const HtkTask *t, uint8_t out[HTK_INPUT_MAX]) { + if (!t || !out) return 0; + if (t->kind == HTK_KIND_MATMUL_I64_SEEDED) { + memcpy(out, "HTK1-MATMUL", 11); + p32(out + 11, t->matmul.n); + p64(out + 15, t->matmul.seed); + return 23; + } + if (t->kind == HTK_KIND_TOKENIZE_FIXTURE) { + memcpy(out, t->tok.fixture_digest, 32); + p32(out + 32, t->tok.offset); + p32(out + 36, t->tok.length); + memcpy(out + 40, t->tok.tokenizer_digest, 32); + return 72; + } + return 0; +} + +void htk_input_digest(const HtkTask *t, uint8_t out[32]) { + uint8_t in[HTK_INPUT_MAX]; + size_t n = htk_input_bytes(t, in); + sha256_hash(in, n, out); +} + +uint64_t htk_result_bytes(const HtkTask *t) { + if (t && t->kind == HTK_KIND_MATMUL_I64_SEEDED) return (uint64_t)t->matmul.n * t->matmul.n * 8u; + return 0; +} + +static int htk_bounds(const HtkTask *t) { + if (t->deadline_ms == 0 || t->deadline_ms > HTK_DEADLINE_MS_MAX) return HTK_BAD_BOUNDS; + if (t->max_out_bytes == 0 || t->max_out_bytes > HTK_OUT_BYTES_MAX) return HTK_BAD_BOUNDS; + if (t->kind == HTK_KIND_MATMUL_I64_SEEDED) { + if (t->matmul.n == 0 || t->matmul.n > HTK_MATMUL_N_MAX) return HTK_BAD_BOUNDS; + } else if (t->kind == HTK_KIND_TOKENIZE_FIXTURE) { + if (t->tok.length == 0 || t->tok.length > HTK_TOKENIZE_LEN_MAX) return HTK_BAD_BOUNDS; + if ((uint64_t)t->tok.offset + t->tok.length > UINT32_MAX) return HTK_BAD_BOUNDS; + } else { + return HTK_BAD_KIND; + } + return HTK_OK; +} + +int htk_encode(const HtkTask *t, uint8_t *out, size_t cap, size_t *len) { + if (!t || !out || !len) return HTK_BAD_LENGTH; + size_t pl = htk_param_len(t->kind); + if (!pl) return HTK_BAD_KIND; + if (cap < HTK_HDR + pl) return HTK_BAD_LENGTH; + int rc = htk_bounds(t); + if (rc != HTK_OK) return rc; + memset(out, 0, HTK_HDR + pl); + memcpy(out, "HTK1", 4); + out[4] = 1; + out[5] = t->kind; + p32(out + 8, t->deadline_ms); + p32(out + 12, t->max_out_bytes); + p64(out + 16, t->max_mem_bytes); + p32(out + 24, t->max_in_bytes); + p32(out + 28, t->threads); + htk_input_digest(t, out + 32); + if (t->kind == HTK_KIND_MATMUL_I64_SEEDED) { + p32(out + 64, t->matmul.n); + p64(out + 68, t->matmul.seed); + } else { + memcpy(out + 64, t->tok.fixture_digest, 32); + p32(out + 96, t->tok.offset); + p32(out + 100, t->tok.length); + memcpy(out + 104, t->tok.tokenizer_digest, 32); + } + *len = HTK_HDR + pl; + return HTK_OK; +} + +int htk_decode(const uint8_t *b, size_t n, HtkTask *t) { + if (!b || !t) return HTK_BAD_LENGTH; + memset(t, 0, sizeof *t); + if (n < HTK_HDR) return HTK_BAD_LENGTH; + if (memcmp(b, "HTK1", 4) != 0) return HTK_BAD_MAGIC; + if (b[4] != 1) return HTK_BAD_VERSION; + size_t pl = htk_param_len(b[5]); + if (!pl) return HTK_BAD_KIND; + if (!all_zero(b + 6, 2)) return HTK_RESERVED_NONZERO; + if (n != HTK_HDR + pl) return HTK_BAD_LENGTH; + t->kind = b[5]; + t->deadline_ms = g32(b + 8); + t->max_out_bytes = g32(b + 12); + t->max_mem_bytes = g64(b + 16); + t->max_in_bytes = g32(b + 24); + t->threads = g32(b + 28); + memcpy(t->input_digest, b + 32, 32); + if (t->kind == HTK_KIND_MATMUL_I64_SEEDED) { + t->matmul.n = g32(b + 64); + t->matmul.seed = g64(b + 68); + } else { + memcpy(t->tok.fixture_digest, b + 64, 32); + t->tok.offset = g32(b + 96); + t->tok.length = g32(b + 100); + memcpy(t->tok.tokenizer_digest, b + 104, 32); + } + int rc = htk_bounds(t); + if (rc != HTK_OK) return rc; + uint8_t d[32]; + htk_input_digest(t, d); + if (memcmp(d, t->input_digest, 32) != 0) return HTK_INPUT_DIGEST_MISMATCH; + return HTK_OK; +} + +uint64_t htk_splitmix(uint64_t seed, uint64_t stream, uint64_t index) { + uint64_t z = seed + (index + 1u) * 0x9E3779B97F4A7C15ull + stream * 0xD1B54A32D192ED03ull; + z = (z ^ (z >> 30)) * 0xBF58476D1CE4E5B9ull; + z = (z ^ (z >> 27)) * 0x94D049BB133111EBull; + return z ^ (z >> 31); +} + +int htk_matmul_i64(uint32_t n, uint64_t seed, int64_t *c) { + if (!c || n == 0 || n > HTK_MATMUL_N_MAX) return HTK_BAD_BOUNDS; + for (uint32_t i = 0; i < n; i++) + for (uint32_t j = 0; j < n; j++) { + uint64_t acc = 0; /* wrapping i64 == wrapping u64 bit-for-bit */ + for (uint32_t k = 0; k < n; k++) { + uint64_t a = htk_splitmix(seed, 0, (uint64_t)i * n + k); + uint64_t b = htk_splitmix(seed, 1, (uint64_t)k * n + j); + acc += a * b; + } + c[(size_t)i * n + j] = (int64_t)acc; + } + return HTK_OK; +} + +void htk_matmul_result_bytes(uint32_t n, const int64_t *c, uint8_t *out) { + size_t total = (size_t)n * n; + for (size_t i = 0; i < total; i++) p64(out + 8 * i, (uint64_t)c[i]); +} + +int htk_matmul_result_digest(uint32_t n, uint64_t seed, int64_t *scratch, uint8_t out[32]) { + if (!scratch || !out) return HTK_BAD_BOUNDS; + int rc = htk_matmul_i64(n, seed, scratch); + if (rc != HTK_OK) return rc; + htk_matmul_result_bytes(n, scratch, (uint8_t *)scratch); /* in place: 8 bytes per value */ + sha256_hash((const uint8_t *)scratch, (size_t)n * n * 8u, out); + return HTK_OK; +} + +/* ================= HTR1 ================= */ +static const char *const htr_names[HTR_CODE_COUNT] = { + "HTR_OK", "HTR_BAD_MAGIC", "HTR_BAD_VERSION", "HTR_BAD_LENGTH", "HTR_RESERVED_NONZERO", + "HTR_BAD_FLAGS", "HTR_BAD_MACHINE", "HTR_BAD_KIND" +}; +const char *htr_code_name(int code) { return code >= 0 && code < HTR_CODE_COUNT ? htr_names[code] : "HTR_UNKNOWN_CODE"; } + +int htr_encode(const HtrReceipt *r, uint8_t out[HTR_BYTES]) { + if (!r || !out) return HTR_BAD_LENGTH; + if (r->version != 1) return HTR_BAD_VERSION; + if (!htk_param_len(r->kind)) return HTR_BAD_KIND; + if (r->flags & ~3u) return HTR_BAD_FLAGS; + memset(out, 0, HTR_BYTES); + memcpy(out, "HTR1", 4); + out[4] = r->version; + out[5] = r->kind; + p16(out + 6, r->flags); + memcpy(out + 8, r->run_id, 16); + if (aien_mid_encode(&r->executor, out + 24) != AIEN_MID_OK) return HTR_BAD_MACHINE; + memcpy(out + 68, r->implementation_digest, 32); + memcpy(out + 100, r->input_digest, 32); + memcpy(out + 132, r->result_digest, 32); + p64(out + 164, r->t_accept_us); + p64(out + 172, r->t_start_us); + p64(out + 180, r->t_end_us); + p64(out + 188, r->cpu_ns); + p64(out + 196, r->peak_rss_bytes); + p16(out + 204, r->threads_used); + memcpy(out + 208, r->os_arch, HTR_OS_ARCH); + memcpy(out + 224, r->identity_class, 4); + return HTR_OK; +} + +int htr_decode(const uint8_t *b, size_t n, HtrReceipt *r) { + if (!b || !r) return HTR_BAD_LENGTH; + memset(r, 0, sizeof *r); + if (n != HTR_BYTES) return HTR_BAD_LENGTH; + if (memcmp(b, "HTR1", 4) != 0) return HTR_BAD_MAGIC; + if (b[4] != 1) return HTR_BAD_VERSION; + if (!htk_param_len(b[5])) return HTR_BAD_KIND; + uint16_t flags = g16(b + 6); + if (flags & ~3u) return HTR_BAD_FLAGS; + if (!all_zero(b + 206, 2)) return HTR_RESERVED_NONZERO; + if (aien_mid_decode(b + 24, AIEN_MID_RECORD_BYTES, &r->executor) != AIEN_MID_OK) return HTR_BAD_MACHINE; + r->version = b[4]; + r->kind = b[5]; + r->flags = flags; + memcpy(r->run_id, b + 8, 16); + memcpy(r->implementation_digest, b + 68, 32); + memcpy(r->input_digest, b + 100, 32); + memcpy(r->result_digest, b + 132, 32); + r->t_accept_us = g64(b + 164); + r->t_start_us = g64(b + 172); + r->t_end_us = g64(b + 180); + r->cpu_ns = g64(b + 188); + r->peak_rss_bytes = g64(b + 196); + r->threads_used = g16(b + 204); + memcpy(r->os_arch, b + 208, HTR_OS_ARCH); + memcpy(r->identity_class, b + 224, 4); + return HTR_OK; +} + +void htr_reference(const uint8_t *bytes, size_t len, uint8_t out[32]) { sha256_hash(bytes, len, out); } + +/* ================= payloads ================= */ +int fw_completed_payload(const uint8_t result_digest[32], const HtrReceipt *r, + uint8_t *out, size_t cap, size_t *len) { + if (!result_digest || !out || !len) return -1; + size_t need = 32u + (r ? HTR_BYTES : 0u); + if (cap < need) return -1; + memcpy(out, result_digest, 32); + if (r && htr_encode(r, out + 32) != HTR_OK) return -1; + *len = need; + return 0; +} + +int fw_failed_payload(uint16_t code, const char *reason, uint8_t *out, size_t cap, size_t *len) { + if (!out || !len || cap < 2) return -1; + size_t rl = reason ? strlen(reason) : 0; + if (rl > FW_REASON_MAX) rl = FW_REASON_MAX; + if (cap < 2 + rl) return -1; + p16(out, code); + if (rl) memcpy(out + 2, reason, rl); + *len = 2 + rl; + return 0; +} + +/* ================= requester ================= */ +static const char *const req_names[FW_R_N] = { + "ok", "wrong side", "unknown task", "ordinal", "already terminal", "state", "bad payload", + "receipt peer", "receipt input", "result digest", "unsupported type", "full" +}; +const char *fw_req_code_name(int code) { return code >= 0 && code < FW_R_N ? req_names[code] : "?"; } + +int fw_state_terminal(uint32_t s) { return s == FW_ST_COMPLETED || s == FW_ST_FAILED || s == FW_ST_CANCELLED; } + +const char *fw_state_name(uint32_t s) { + switch (s) { + case FW_ST_SENT: return "SENT"; + case FW_ST_ACCEPTED: return "ACCEPTED"; + case FW_ST_RUNNING: return "RUNNING"; + case FW_ST_COMPLETED: return "COMPLETED"; + case FW_ST_FAILED: return "FAILED"; + case FW_ST_CANCELLED: return "CANCELLED"; + case FW_ST_UNCERTAIN: return "UNCERTAIN"; + default: return "?"; + } +} + +void fw_req_init(FwRequester *r) { if (r) memset(r, 0, sizeof *r); } + +FwTask *fw_req_find(FwRequester *r, const uint8_t task[16]) { + if (!r || !task) return NULL; + for (uint32_t i = 0; i < r->n; i++) + if (memcmp(r->t[i].task, task, 16) == 0) return &r->t[i]; + return NULL; +} + +int fw_req_send(FwRequester *r, const uint8_t task[16], const uint8_t idem[16], + const uint8_t input_digest[32], uint64_t deadline_us) { + if (!r || !task || !idem || !input_digest) return FW_R_BAD_PAYLOAD; + if (fw_req_find(r, task)) return FW_R_STATE; + if (r->n >= FW_MAX_TASKS) return FW_R_FULL; + FwTask *t = &r->t[r->n++]; + memset(t, 0, sizeof *t); + memcpy(t->task, task, 16); + memcpy(t->idem, idem, 16); + memcpy(t->input_digest, input_digest, 32); + t->deadline_us = deadline_us; + t->state = FW_ST_SENT; + return FW_R_OK; +} + +static int req_refuse(FwRequester *r, int why) { + r->refused[why]++; + r->last_refusal = why; + return why; +} + +/* Applies a terminal payload (completed / failed / cancelled bytes) to t. */ +static int apply_terminal(FwTask *t, uint8_t type, const uint8_t *p, size_t len, const AienMachineId *peer) { + if (type == PST_T_COMPLETED) { + if (len < 32) return FW_R_BAD_PAYLOAD; + if (len != 32 && len != 32 + HTR_BYTES) return FW_R_BAD_PAYLOAD; + HtrReceipt rc; + if (len == 32 + HTR_BYTES) { + if (htr_decode(p + 32, HTR_BYTES, &rc) != HTR_OK) return FW_R_BAD_PAYLOAD; + if (!aien_mid_equal(&rc.executor, peer)) return FW_R_RECEIPT_PEER; + if (memcmp(rc.input_digest, t->input_digest, 32) != 0) return FW_R_RECEIPT_INPUT; + if (memcmp(rc.result_digest, p, 32) != 0) return FW_R_RESULT_DIGEST; + t->receipt = rc; + t->has_receipt = 1; + htr_reference(p + 32, HTR_BYTES, t->receipt_reference); + t->has_receipt_reference = 1; + } + memcpy(t->result_digest, p, 32); + t->state = FW_ST_COMPLETED; + return FW_R_OK; + } + if (type == PST_T_FAILED) { + if (len < 2 || len > 2 + FW_REASON_MAX) return FW_R_BAD_PAYLOAD; + t->fail_code = g16(p); + t->state = FW_ST_FAILED; + return FW_R_OK; + } + if (type == PST_T_CANCELLED) { + if (len != 0) return FW_R_BAD_PAYLOAD; + t->state = FW_ST_CANCELLED; + return FW_R_OK; + } + return FW_R_BAD_PAYLOAD; +} + +int fw_req_receive(FwRequester *r, const PstMsg *m, const AienMachineId *peer, uint64_t now_us) { + if (!r || !m || !peer) return FW_R_BAD_PAYLOAD; + if (pst_side_check(m->type, PST_ROLE_EXECUTOR) != PST_OK) return req_refuse(r, FW_R_WRONG_SIDE); + FwTask *t = fw_req_find(r, m->task); + if (!t || memcmp(t->idem, m->idem, 16) != 0) return req_refuse(r, FW_R_UNKNOWN_TASK); + if (m->type == PST_T_TEXT_CHUNK || m->type == PST_T_WAITING_FOR_APPROVAL) return req_refuse(r, FW_R_UNSUPPORTED); + if (m->ordinal != t->next_ordinal) return req_refuse(r, FW_R_ORDINAL); + if (fw_state_terminal(t->state) && m->type != PST_T_RECEIPT_REFERENCE) return req_refuse(r, FW_R_TERMINAL); + + /* A copy: nothing in t changes unless the message is accepted. */ + FwTask c = *t; + int rc = FW_R_OK; + switch (m->type) { + case PST_T_ACCEPTED: + if (c.state != FW_ST_SENT) rc = FW_R_STATE; else c.state = FW_ST_ACCEPTED; + break; + case PST_T_QUEUED: + if (c.state != FW_ST_SENT && c.state != FW_ST_ACCEPTED) rc = FW_R_STATE; else c.state = FW_ST_ACCEPTED; + break; + case PST_T_RUNNING: + if (c.state != FW_ST_SENT && c.state != FW_ST_ACCEPTED) rc = FW_R_STATE; else c.state = FW_ST_RUNNING; + break; + case PST_T_COMPLETED: + case PST_T_FAILED: + case PST_T_CANCELLED: + if (c.state == FW_ST_UNCERTAIN) rc = FW_R_STATE; /* only a resume_snapshot leaves UNCERTAIN */ + else rc = apply_terminal(&c, m->type, m->payload, m->payload_len, peer); + break; + case PST_T_UNCERTAIN_AFTER_DISCONNECT: + if (m->payload_len) rc = FW_R_BAD_PAYLOAD; else c.state = FW_ST_UNCERTAIN; + break; + case PST_T_RESUME_SNAPSHOT: + if (c.state != FW_ST_UNCERTAIN) { rc = FW_R_STATE; break; } + if (m->payload_len < 1) { rc = FW_R_BAD_PAYLOAD; break; } + if (m->payload[0] == 0) { + if (m->payload_len != 1) rc = FW_R_BAD_PAYLOAD; else c.resume_unknown = 1; + } else { + rc = apply_terminal(&c, m->payload[0], m->payload + 1, m->payload_len - 1u, peer); + } + break; + case PST_T_RECEIPT_REFERENCE: + if (m->payload_len != 32) { rc = FW_R_BAD_PAYLOAD; break; } + if (c.has_receipt_reference && memcmp(c.receipt_reference, m->payload, 32) != 0) { rc = FW_R_RESULT_DIGEST; break; } + memcpy(c.receipt_reference, m->payload, 32); + c.has_receipt_reference = 1; + break; + default: + rc = FW_R_UNSUPPORTED; + } + if (rc != FW_R_OK) return req_refuse(r, rc); + c.next_ordinal = m->ordinal + 1u; + *t = c; + r->applied++; + (void)now_us; + return FW_R_OK; +} + +int fw_req_session_lost(FwRequester *r) { + if (!r) return 0; + int n = 0; + for (uint32_t i = 0; i < r->n; i++) + if (!fw_state_terminal(r->t[i].state) && r->t[i].state != FW_ST_UNCERTAIN) { r->t[i].state = FW_ST_UNCERTAIN; n++; } + return n; +} + +int fw_req_tick(FwRequester *r, uint64_t now_us) { + if (!r) return 0; + int n = 0; + for (uint32_t i = 0; i < r->n; i++) { + FwTask *t = &r->t[i]; + if (!fw_state_terminal(t->state) && t->state != FW_ST_UNCERTAIN && now_us > t->deadline_us) { + t->state = FW_ST_UNCERTAIN; + n++; + } + } + return n; +} + +int fw_req_verify_result(const FwTask *t, const uint8_t *result, size_t len) { + if (!t || (!result && len)) return FW_R_BAD_PAYLOAD; + if (t->state != FW_ST_COMPLETED) return FW_R_STATE; + uint8_t d[32]; + sha256_hash(result, len, d); + return memcmp(d, t->result_digest, 32) == 0 ? FW_R_OK : FW_R_RESULT_DIGEST; +} + +/* ================= executor ================= */ +static const char *const exec_names[FW_X_N] = { + "ok", "wrong side", "bad HTK1", "unknown kind", "bounds", "duplicate with different bytes", "journal store" +}; +const char *fw_exec_code_name(int code) { return code >= 0 && code < FW_X_N ? exec_names[code] : "?"; } + +int fw_exec_init(FwExecutor *x, const FwJournalStore *store) { + if (!x || !store || !store->append) return FW_X_STORE; + memset(x, 0, sizeof *x); + x->store = store; + return FW_X_OK; +} + +const FwJournalEntry *fw_exec_lookup(const FwExecutor *x, const uint8_t task[16], const uint8_t idem[16]) { + if (!x || !task || !idem) return NULL; + for (uint32_t i = 0; i < x->count; i++) { + const FwJournalEntry *e = &x->e[(x->head + FW_JOURNAL_ENTRIES - 1u - i) % FW_JOURNAL_ENTRIES]; + if (memcmp(e->task, task, 16) == 0 && memcmp(e->idem, idem, 16) == 0) return e; + } + return NULL; +} + +static void ring_put(FwExecutor *x, const FwJournalEntry *e) { + x->e[x->head] = *e; + x->head = (x->head + 1u) % FW_JOURNAL_ENTRIES; + if (x->count < FW_JOURNAL_ENTRIES) x->count++; +} + +int fw_journal_encode(const FwJournalEntry *e, uint8_t out[FW_JOURNAL_ENTRY_BYTES]) { + if (!e || !out) return -1; + if (e->terminal_type != PST_T_COMPLETED && e->terminal_type != PST_T_FAILED && e->terminal_type != PST_T_CANCELLED) return -1; + memset(out, 0, FW_JOURNAL_ENTRY_BYTES); + memcpy(out, e->task, 16); + memcpy(out + 16, e->idem, 16); + memcpy(out + 32, e->htk_digest, 32); + out[64] = e->terminal_type; + p16(out + 65, e->fail_code); + out[67] = e->has_receipt ? 1 : 0; + memcpy(out + 68, e->result_digest, 32); + if (e->has_receipt && htr_encode(&e->receipt, out + 100) != HTR_OK) return -1; + return 0; +} + +int fw_journal_decode(const uint8_t *b, size_t n, FwJournalEntry *e) { + if (!b || !e || n != FW_JOURNAL_ENTRY_BYTES) return -1; + memset(e, 0, sizeof *e); + memcpy(e->task, b, 16); + memcpy(e->idem, b + 16, 16); + memcpy(e->htk_digest, b + 32, 32); + e->terminal_type = b[64]; + if (e->terminal_type != PST_T_COMPLETED && e->terminal_type != PST_T_FAILED && e->terminal_type != PST_T_CANCELLED) return -1; + e->fail_code = g16(b + 65); + if (b[67] > 1) return -1; + e->has_receipt = b[67]; + memcpy(e->result_digest, b + 68, 32); + if (e->has_receipt && htr_decode(b + 100, HTR_BYTES, &e->receipt) != HTR_OK) return -1; + return 0; +} + +int fw_exec_load(FwExecutor *x, const uint8_t *rec, size_t len) { + if (!x) return FW_X_STORE; + FwJournalEntry e; + if (fw_journal_decode(rec, len, &e) != 0) return FW_X_STORE; + ring_put(x, &e); + return FW_X_OK; +} + +static int exec_refuse(FwExecutor *x, int why, uint16_t code, uint16_t *fail_code) { + x->refused[why]++; + if (fail_code) *fail_code = code; + return FW_ADMIT_REFUSE; +} + +int fw_exec_admit(FwExecutor *x, const PstMsg *m, const FwExecLimits *lim, HtkTask *task, + const FwJournalEntry **replay, uint16_t *fail_code) { + if (!x || !m || !lim || !task || !replay || !fail_code) return FW_ADMIT_REFUSE; + *replay = NULL; + *fail_code = 0; + if (m->type != PST_T_REQUEST) return exec_refuse(x, FW_X_WRONG_SIDE, 0, fail_code); + /* Idempotence first: a repeat is answered from the journal whatever the limits are now. */ + const FwJournalEntry *j = fw_exec_lookup(x, m->task, m->idem); + if (j) { + if (memcmp(j->htk_digest, m->digest, 32) == 0) { *replay = j; x->replayed++; return FW_ADMIT_REPLAY; } + return exec_refuse(x, FW_X_DUPLICATE_DIFFERENT, FW_FAIL_DUPLICATE_DIFFERENT, fail_code); + } + int rc = htk_decode(m->payload, m->payload_len, task); + if (rc == HTK_BAD_KIND) return exec_refuse(x, FW_X_KIND, FW_FAIL_UNKNOWN_KIND, fail_code); + if (rc == HTK_BAD_BOUNDS) return exec_refuse(x, FW_X_BOUNDS, FW_FAIL_BOUNDS, fail_code); + if (rc != HTK_OK) return exec_refuse(x, FW_X_BAD_HTK, FW_FAIL_INTERNAL, fail_code); + if (m->effect != PST_EFFECT_COMPUTE) return exec_refuse(x, FW_X_BAD_HTK, FW_FAIL_INTERNAL, fail_code); + if (!(lim->kinds & (1u << task->kind))) return exec_refuse(x, FW_X_KIND, FW_FAIL_UNKNOWN_KIND, fail_code); + uint32_t out_cap = lim->max_out_bytes_cap ? lim->max_out_bytes_cap : HTK_OUT_BYTES_MAX; + uint32_t dl_cap = lim->deadline_ms_cap ? lim->deadline_ms_cap : HTK_DEADLINE_MS_MAX; + if (task->threads > lim->cpus) return exec_refuse(x, FW_X_BOUNDS, FW_FAIL_BOUNDS, fail_code); + if (lim->mem_bytes && task->max_mem_bytes > lim->mem_bytes) return exec_refuse(x, FW_X_BOUNDS, FW_FAIL_BOUNDS, fail_code); + if (task->max_out_bytes > out_cap || task->deadline_ms > dl_cap) return exec_refuse(x, FW_X_BOUNDS, FW_FAIL_BOUNDS, fail_code); + uint64_t need = htk_result_bytes(task); + if (need && need > task->max_out_bytes) return exec_refuse(x, FW_X_BOUNDS, FW_FAIL_BOUNDS, fail_code); + x->admitted++; + return FW_ADMIT_RUN; +} + +int fw_exec_record(FwExecutor *x, const FwJournalEntry *e) { + if (!x || !e || !x->store) return FW_X_STORE; + uint8_t rec[FW_JOURNAL_ENTRY_BYTES]; + if (fw_journal_encode(e, rec) != 0) return FW_X_STORE; + if (x->store->append(x->store->ctx, rec, sizeof rec) != 0) { x->refused[FW_X_STORE]++; return FW_X_STORE; } + ring_put(x, e); + x->recorded++; + return FW_X_OK; +} + +int fw_terminal_payload(const FwJournalEntry *e, const char *reason, uint8_t *out, size_t cap, size_t *len) { + if (!e || !out || !len) return -1; + switch (e->terminal_type) { + case PST_T_COMPLETED: return fw_completed_payload(e->result_digest, e->has_receipt ? &e->receipt : NULL, out, cap, len); + case PST_T_FAILED: return fw_failed_payload(e->fail_code, reason, out, cap, len); + case PST_T_CANCELLED: *len = 0; return 0; + default: return -1; + } +} + +int fw_resume_snapshot_payload(const FwJournalEntry *e, uint8_t *out, size_t cap, size_t *len) { + if (!out || !len || cap < 1) return -1; + if (!e) { out[0] = 0; *len = 1; return 0; } + out[0] = e->terminal_type; + size_t inner = 0; + if (fw_terminal_payload(e, NULL, out + 1, cap - 1, &inner) != 0) return -1; + *len = 1 + inner; + return 0; +} diff --git a/src/fabric/fab_work.h b/src/fabric/fab_work.h new file mode 100644 index 000000000..8c5cf2640 --- /dev/null +++ b/src/fabric/fab_work.h @@ -0,0 +1,322 @@ +/* + * fab_work.h -- the work message of the heterogeneous compute program + * (aienix#6, omega#536): PST1 task envelope, HTK1 task request, HTR1 receipt, + * the requester's task state machine and the executor's idempotence journal. + * Production-buildable. No socket, file, process or clock call lives here: + * the caller moves bytes and supplies time. + * + * Wire stack (contract 2026-10-18 D1): UDP -> AIENOS M6-B (aienos_sec.h) -> + * M6-A frame (aienos_ctl.h, <= 1024 bytes) -> one message told apart by its + * first four bytes: "AFAB" (fabric.h) or "PST1" (this file). The peer and the + * session are facts the transport proved; no field here names them, and a + * receipt whose executor id disagrees with the session peer is refused. + * + * PST1 (aien-protocols specs/pi-spark-task/SPEC.md, wire version 1): the + * 224-byte header and the single-message checks are decoded here in the exact + * order and with the exact codes of the reference checker + * (specs/pi-spark-task/tools/pst_verify.c); tests/fabric/vectors/pst/ holds + * that checker's vectors and this decoder must give the same verdict line for + * every one. Roles: the REQUESTER sends request, cancel_request and + * resume_request (the spec's "Pi side"); the EXECUTOR sends every other type. + * + * HTK1 (request payload, effect_class 1 COMPUTE), big-endian: + * 0 4 "HTK1" 4 1 version 1 5 1 kind 6 2 reserved 0 + * 8 4 deadline_ms (1..600000) 12 4 max_out_bytes (1..64 MiB) + * 16 8 max_mem_bytes 24 4 max_in_bytes 28 4 threads (0 = executor's choice) + * 32 32 input_digest = SHA-256(canonical input bytes of the kind) + * 64 .. kind 1 MATMUL_I64_SEEDED: u32 n (1..512), u64 seed (12 bytes) + * kind 2 TOKENIZE_FIXTURE: 32 fixture_digest, u32 offset, u32 length (<= 1 MiB), + * 32 tokenizer_digest (72 bytes) + * kind 1 input bytes = "HTK1-MATMUL" | u32 n | u64 seed; + * A[i][j] = splitmix(seed, stream 0, i*n+j), B[i][j] = splitmix(seed, stream 1, i*n+j) as i64, + * C = A x B in wrapping i64; result bytes = C row-major, each i64 big-endian. + * kind 2 input bytes = fixture_digest | offset | length | tokenizer_digest; result bytes = token ids u32 BE + * (sovereign-core BitNetTokenizer::encode, bos=false). The tokenizer itself is not in this repo. + * splitmix(seed, stream, index): z = seed + (index+1)*0x9E3779B97F4A7C15 + stream*0xD1B54A32D192ED03; + * z = (z ^ z>>30)*0xBF58476D1CE4E5B9; z = (z ^ z>>27)*0x94D049BB133111EB; return z ^ z>>31 (all wrapping) + * + * HTR1 (receipt; the bytes after the 32-byte result digest in `completed`; + * named by receipt_reference = SHA-256(HTR1 bytes)), big-endian, 228 bytes: + * 0 4 "HTR1" 4 1 version 1 5 1 kind 6 2 flags (bits 0-1 sandbox: 0 none, 1 OS user, 2 namespaces; rest 0) + * 8 16 run_id 24 44 executor machine id record 68 32 implementation_digest + * 100 32 input_digest 132 32 result_digest 164 8 t_accept_us 172 8 t_start_us 180 8 t_end_us + * 188 8 cpu_ns 196 8 peak_rss_bytes 204 2 threads_used 206 2 reserved 0 + * 208 16 os_arch (NUL padded) 224 4 identity_class ("lab" or "own", NUL padded) + * `failed` payload: u16 code | UTF-8 reason (<= 200 bytes). Codes FW_FAIL_*. + * + * Requester state (D6): SENT -> ACCEPTED -> RUNNING -> COMPLETED | FAILED | CANCELLED; + * any non-terminal state + session lost or deadline passed -> UNCERTAIN, which only + * a resume_snapshot can leave. Executor ordinals per task start at 0 and rise by + * one; anything else is refused and counted, state unchanged. A second terminal + * is refused. Executor (D7): key (task_id, idempotence_key); a repeat with the + * same HTK1 bytes replays the journaled terminal, a repeat with other bytes is + * `failed` code 7; the journal store must report durable before a terminal may + * be sent (fw_exec_record fails otherwise and nothing is sent). + */ +#ifndef FAB_WORK_H +#define FAB_WORK_H + +#include "runtime/aien_machine_id.h" + +#include +#include + +/* ---- PST1 ---- */ +#define PST_HDR 224u +#define PST_MAX_PAY 800u +#define PST_MAX_MSG 1024u +#define PST_VERSION 1u +#define PST_MAX_TYPE 14u + +enum { + PST_T_REQUEST = 1, PST_T_ACCEPTED, PST_T_QUEUED, PST_T_RUNNING, PST_T_TEXT_CHUNK, + PST_T_WAITING_FOR_APPROVAL, PST_T_COMPLETED, PST_T_FAILED, PST_T_CANCELLED, + PST_T_UNCERTAIN_AFTER_DISCONNECT, PST_T_RESUME_SNAPSHOT, PST_T_RECEIPT_REFERENCE, + PST_T_CANCEL_REQUEST, PST_T_RESUME_REQUEST +}; +enum { PST_EFFECT_NONE = 0, PST_EFFECT_COMPUTE = 1, PST_EFFECT_EFFECT = 2 }; +enum { + PST_OK = 0, PST_BAD_MAGIC, PST_BAD_VERSION, PST_DOWNGRADE, PST_BAD_TYPE, + PST_WRONG_SIDE, PST_BAD_LENGTH, PST_TRAILING_BYTES, PST_RESERVED_NONZERO, + PST_NO_CAUSE, PST_NO_TASK, PST_NO_OBJECTIVE, PST_DIGEST_MISMATCH, + PST_BAD_EFFECT_CLASS, PST_SUBJECT_MISMATCH, PST_CODE_COUNT +}; +enum { PST_ROLE_REQUESTER = 1, PST_ROLE_EXECUTOR = 2 }; + +typedef struct { + uint8_t version, type; + uint8_t cause[32], origin[32], objective[32], subject[32]; + uint8_t parent[16], task[16], idem[16]; + uint32_t ordinal; + uint8_t effect; + uint16_t payload_len; + uint8_t digest[32]; + const uint8_t *payload; /* decode: points into the caller's buffer */ +} PstMsg; + +/* Decodes and checks one message in the spec's order. PST_OK or the first refusal. */ +int pst_decode(const uint8_t *b, size_t n, PstMsg *m); +/* Writes header + payload (digest computed here). The header fields are + * checked with the decode rules first. cap >= PST_HDR + payload_len. */ +int pst_encode(const PstMsg *m, const uint8_t *payload, size_t payload_len, + uint8_t *out, size_t cap, size_t *out_len); +/* The role that sends this type (PST_ROLE_*), 0 for an unknown type. */ +int pst_side_of(uint8_t type); +/* PST_OK when `sender_role` may send `type`, else PST_WRONG_SIDE. */ +int pst_side_check(uint8_t type, int sender_role); +const char *pst_code_name(int code); +/* The reference checker's verdict line ("ok type=... digest=..." or "refuse PST_..."). */ +void pst_verdict_line(int code, const PstMsg *m, char *buf, size_t cap); + +/* ---- HTK1 ---- */ +#define HTK_HDR 64u +#define HTK_MAX_BYTES (HTK_HDR + 72u) +#define HTK_INPUT_MAX 72u +#define HTK_KIND_MATMUL_I64_SEEDED 1u +#define HTK_KIND_TOKENIZE_FIXTURE 2u +#define HTK_MATMUL_N_MAX 512u +#define HTK_TOKENIZE_LEN_MAX (1u << 20) +#define HTK_DEADLINE_MS_MAX 600000u +#define HTK_OUT_BYTES_MAX (64u << 20) +enum { + HTK_OK = 0, HTK_BAD_MAGIC, HTK_BAD_VERSION, HTK_BAD_KIND, HTK_RESERVED_NONZERO, + HTK_BAD_LENGTH, HTK_BAD_BOUNDS, HTK_INPUT_DIGEST_MISMATCH, HTK_CODE_COUNT +}; + +typedef struct { + uint8_t kind; + uint32_t deadline_ms, max_out_bytes; + uint64_t max_mem_bytes; + uint32_t max_in_bytes, threads; + uint8_t input_digest[32]; + struct { uint32_t n; uint64_t seed; } matmul; /* kind 1 */ + struct { uint8_t fixture_digest[32]; uint32_t offset, length; uint8_t tokenizer_digest[32]; } tok; /* kind 2 */ +} HtkTask; + +/* Canonical input bytes of the task (digest preimage). Returns their length, 0 for an unknown kind. */ +size_t htk_input_bytes(const HtkTask *t, uint8_t out[HTK_INPUT_MAX]); +void htk_input_digest(const HtkTask *t, uint8_t out[32]); +/* Checks bounds, writes the bytes; input_digest is computed here (t->input_digest is ignored). */ +int htk_encode(const HtkTask *t, uint8_t *out, size_t cap, size_t *len); +/* Checks magic, version, kind, reserved, length, bounds, then input_digest. */ +int htk_decode(const uint8_t *b, size_t n, HtkTask *t); +/* Result size the kind defines (kind 1: n*n*8), 0 when the kind leaves it to the executor. */ +uint64_t htk_result_bytes(const HtkTask *t); +const char *htk_code_name(int code); + +/* The matmul definition (normative in C; the worker and the benchmarks oracle + * re-implement it independently and must reproduce the digests). */ +uint64_t htk_splitmix(uint64_t seed, uint64_t stream, uint64_t index); +/* c holds n*n values on return. HTK_BAD_BOUNDS for n outside 1..512. */ +int htk_matmul_i64(uint32_t n, uint64_t seed, int64_t *c); +/* Result bytes: row-major, each i64 big-endian; out holds n*n*8 bytes. */ +void htk_matmul_result_bytes(uint32_t n, const int64_t *c, uint8_t *out); +/* Runs the matmul into scratch (n*n i64) and digests its result bytes in place. */ +int htk_matmul_result_digest(uint32_t n, uint64_t seed, int64_t *scratch, uint8_t out[32]); + +/* ---- HTR1 ---- */ +#define HTR_BYTES 228u +#define HTR_MAX_BYTES 768u +#define HTR_OS_ARCH 16u +enum { HTR_OK = 0, HTR_BAD_MAGIC, HTR_BAD_VERSION, HTR_BAD_LENGTH, HTR_RESERVED_NONZERO, + HTR_BAD_FLAGS, HTR_BAD_MACHINE, HTR_BAD_KIND, HTR_CODE_COUNT }; +enum { HTR_SANDBOX_NONE = 0, HTR_SANDBOX_OS_USER = 1, HTR_SANDBOX_NAMESPACES = 2 }; + +typedef struct { + uint8_t version, kind; + uint16_t flags; + uint8_t run_id[16]; + AienMachineId executor; + uint8_t implementation_digest[32], input_digest[32], result_digest[32]; + uint64_t t_accept_us, t_start_us, t_end_us, cpu_ns, peak_rss_bytes; + uint16_t threads_used; + char os_arch[HTR_OS_ARCH]; /* NUL padded, not necessarily terminated */ + char identity_class[4]; /* "lab" or "own", NUL padded */ +} HtrReceipt; + +int htr_encode(const HtrReceipt *r, uint8_t out[HTR_BYTES]); +int htr_decode(const uint8_t *b, size_t n, HtrReceipt *r); +/* receipt_reference = SHA-256 of the receipt bytes. */ +void htr_reference(const uint8_t *bytes, size_t len, uint8_t out[32]); +const char *htr_code_name(int code); + +/* ---- failure codes (failed payload: u16 code | reason) ---- */ +enum { + FW_FAIL_BOUNDS = 1, FW_FAIL_UNKNOWN_KIND = 2, FW_FAIL_DEADLINE = 3, FW_FAIL_MEMORY = 4, + FW_FAIL_CANCELLED_BEFORE_START = 5, FW_FAIL_INTERNAL = 6, FW_FAIL_DUPLICATE_DIFFERENT = 7 +}; +#define FW_REASON_MAX 200u +/* completed payload: result_digest | HTR1 (r may be NULL: digest only). */ +int fw_completed_payload(const uint8_t result_digest[32], const HtrReceipt *r, + uint8_t *out, size_t cap, size_t *len); +int fw_failed_payload(uint16_t code, const char *reason, uint8_t *out, size_t cap, size_t *len); + +/* ---- requester ---- */ +#define FW_MAX_TASKS 32u +enum { FW_ST_SENT = 1, FW_ST_ACCEPTED, FW_ST_RUNNING, FW_ST_COMPLETED, FW_ST_FAILED, + FW_ST_CANCELLED, FW_ST_UNCERTAIN }; +enum { + FW_R_OK = 0, + FW_R_WRONG_SIDE, /* a requester-side type arrived */ + FW_R_UNKNOWN_TASK, /* task id / idempotence key not ours */ + FW_R_ORDINAL, /* not the next ordinal for this task */ + FW_R_TERMINAL, /* task already terminal (duplicate terminal, late message) */ + FW_R_STATE, /* type not allowed in the task's current state */ + FW_R_BAD_PAYLOAD, /* payload too short or undecodable for the type */ + FW_R_RECEIPT_PEER, /* receipt executor id is not the session peer */ + FW_R_RECEIPT_INPUT, /* receipt input_digest is not the task's */ + FW_R_RESULT_DIGEST, /* receipt result_digest differs from the completed digest, or result bytes differ */ + FW_R_UNSUPPORTED, /* a type HTK work does not use (text_chunk, waiting_for_approval) */ + FW_R_FULL, + FW_R_N +}; + +typedef struct { + uint8_t task[16], idem[16]; + uint32_t state; + uint32_t next_ordinal; /* executor ordinal expected next */ + uint64_t deadline_us; /* absolute; passing it non-terminal -> UNCERTAIN */ + uint8_t input_digest[32]; + uint8_t result_digest[32]; + uint8_t has_receipt; + HtrReceipt receipt; + uint8_t has_receipt_reference; + uint8_t receipt_reference[32]; + uint16_t fail_code; + uint8_t resume_unknown; /* resume_snapshot said the executor never journaled it */ +} FwTask; + +typedef struct { + uint32_t n; + FwTask t[FW_MAX_TASKS]; + uint64_t applied; + uint64_t refused[FW_R_N]; + int last_refusal; +} FwRequester; + +void fw_req_init(FwRequester *r); +/* Registers a sent request. FW_R_FULL, or FW_R_STATE for a task id already held. */ +int fw_req_send(FwRequester *r, const uint8_t task[16], const uint8_t idem[16], + const uint8_t input_digest[32], uint64_t deadline_us); +FwTask *fw_req_find(FwRequester *r, const uint8_t task[16]); +/* Applies one decoded executor message received on the session with `peer`. FW_R_*. */ +int fw_req_receive(FwRequester *r, const PstMsg *m, const AienMachineId *peer, uint64_t now_us); +/* Every non-terminal task -> UNCERTAIN. Returns how many changed. */ +int fw_req_session_lost(FwRequester *r); +/* Non-terminal tasks past their deadline -> UNCERTAIN. Returns how many changed. */ +int fw_req_tick(FwRequester *r, uint64_t now_us); +/* FW_R_OK when the task is COMPLETED and SHA-256(result) is its result digest. */ +int fw_req_verify_result(const FwTask *t, const uint8_t *result, size_t len); +int fw_state_terminal(uint32_t state); +const char *fw_state_name(uint32_t state); +const char *fw_req_code_name(int code); + +/* ---- executor ---- */ +#define FW_JOURNAL_ENTRIES 256u +#define FW_JOURNAL_ENTRY_BYTES (16u + 16u + 32u + 1u + 2u + 1u + 32u + HTR_BYTES) /* 328 */ +enum { FW_ADMIT_RUN = 0, FW_ADMIT_REPLAY = 1, FW_ADMIT_REFUSE = 2 }; +enum { + FW_X_OK = 0, + FW_X_WRONG_SIDE, /* not a request: refuse without reply (session rule) */ + FW_X_BAD_HTK, /* HTK1 undecodable -> failed code 6 */ + FW_X_KIND, /* unknown kind -> failed code 2 */ + FW_X_BOUNDS, /* outside this executor's limits -> failed code 1 */ + FW_X_DUPLICATE_DIFFERENT,/* same key, other bytes -> failed code 7 */ + FW_X_STORE, /* journal store refused: nothing may be sent */ + FW_X_N +}; + +typedef struct { + uint8_t task[16], idem[16]; + uint8_t htk_digest[32]; /* SHA-256 of the request payload (HTK1 bytes) */ + uint8_t terminal_type; /* PST_T_COMPLETED, PST_T_FAILED or PST_T_CANCELLED */ + uint16_t fail_code; + uint8_t has_receipt; + uint8_t result_digest[32]; + HtrReceipt receipt; +} FwJournalEntry; + +/* Durable append. 0 only once the record is on stable storage. */ +typedef struct { + void *ctx; + int (*append)(void *ctx, const uint8_t *rec, size_t len); +} FwJournalStore; + +typedef struct { + uint32_t cpus; /* threads > cpus is refused */ + uint64_t mem_bytes; /* max_mem_bytes above this is refused */ + uint32_t max_out_bytes_cap; /* 0 = HTK_OUT_BYTES_MAX */ + uint32_t deadline_ms_cap; /* 0 = HTK_DEADLINE_MS_MAX */ + uint32_t kinds; /* bit (1<append must return 0, then it is held. + * FW_X_STORE (nonzero) means nothing was journaled and nothing may be sent. */ +int fw_exec_record(FwExecutor *x, const FwJournalEntry *e); +int fw_journal_encode(const FwJournalEntry *e, uint8_t out[FW_JOURNAL_ENTRY_BYTES]); +int fw_journal_decode(const uint8_t *b, size_t n, FwJournalEntry *e); +/* The payload of the terminal message for a journal entry (completed: digest|HTR1; + * failed: code|reason; cancelled: empty). */ +int fw_terminal_payload(const FwJournalEntry *e, const char *reason, uint8_t *out, size_t cap, size_t *len); +/* resume_snapshot payload: u8 terminal_type (0 = unknown task) | terminal payload. */ +int fw_resume_snapshot_payload(const FwJournalEntry *e, uint8_t *out, size_t cap, size_t *len); +const char *fw_exec_code_name(int code); + +#endif /* FAB_WORK_H */ 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); ``` The diff is longer than this page shows; the raw diff has all of it.