diff --git a/.crumb b/.crumb index bff65f4b0..cb3d904f2 100644 --- a/.crumb +++ b/.crumb @@ -42,68 +42,68 @@ "children": [ { "digest": "9f19f11674ca5dfc3c9c3ae35fe6106557aee9583210da13d257e1b9d88e052c", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "calibration", "purpose": "Directory calibration. Purpose not yet described by a human." }, { - "digest": "c92de7796549ecf47bb28700d4b82e8ba3e4dd260cdb4caa61a3337c44e063d3", - "last_commit": "843424ce", + "digest": "38942b47f7ce98113cdf562eefff1cfd3c460a5d34ef9314ad0097cc0ded2ba8", + "last_commit": "8ec82485d", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { "digest": "536f7b8db9a92a1f586bad4379d47544a30d1b8e83c2d799c18e66cf8660c9ae", - "last_commit": "30bb116c", + "last_commit": "30bb116cc", "name": "doctrine", "purpose": "Directory doctrine. Purpose not yet described by a human." }, { - "digest": "28ca50efe4c6219607f80199b70e50807127d121c66550511606dede047a6200", - "last_commit": "f9602043", + "digest": "4c711384133e933fc175aab7d48daae8b597767d17eaa17464d560c758a687b7", + "last_commit": "e9dcfafb7", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, { "digest": "590f1f3a26a12dfd9df281ec944b882b85fd4ac2ae07a88a03bb8bd0d7d62536", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "research", "purpose": "Directory research. Purpose not yet described by a human." }, { "digest": "6327473d41e10acbf43be0918d3557509322bfd7d6e075e114c79c2600a47305", - "last_commit": "43d8d20d", + "last_commit": "43d8d20da", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { - "digest": "4718c14bd4052ff822a315892aebc3c2229900b338191d98c95945b109be4e91", - "last_commit": "1719bc69", + "digest": "8ab10b555fb095ec6fc706f96f7294d2b99ce62438600a493fe235ec11bcd0d6", + "last_commit": "2f44aa3b6", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "8fa4874233c906929082e779408ae009b381ade4590b930a2faf68c60fd7e48f", - "last_commit": "79b2b632", + "digest": "cc52017187608f4ee94d1480602ff214c614604c515bbabbde448c2733e555ab", + "last_commit": "e9dcfafb7", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { - "digest": "e519c1f13dc5134c5b6ab17f669745776880cb6e78c6efd2f716283760466c66", - "last_commit": "1a12d5d0", + "digest": "dbe7b08900fc053b23c993a25a3fe744e3874be2f23ee24f20e183797db53c27", + "last_commit": "e9dcfafb7", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:e53d60955af1d03b4ada9e70e1c969877d2ccf7d74cd47d38cda6a65b37858e3", - "compiled_at": "2026-10-24T23:32:51Z", + "children_root": "sha256:22c5443cb1d244ce3757eeaf7b6be6dd6ae8da548460b2f9f7cce346fe627d2d", + "compiled_at": "2026-10-24T23:55:01Z", "compiler": "crumb-compile/1", - "digest": "sha256:fd24682c44204b438ba61e45410f87473e10352ca7dc4755eb4a04175326bd75", - "evidence_files": 11614, - "evidence_root": "sha256:e8361cf08ea15248d8a6e60b7e9c801908c7bb76d44196e72b06ce852ddf5bd6", - "files": 14914, - "generated_at_commit": "79b2b6329d552350efc62eecce2b298afa53fc10", - "source_tree": "sha256:e7e0d299c68fcd99850bc4678c27fcb03e0f43e7dadf050166aa54b84b6cd466" + "digest": "sha256:120d70c3009b2973340b89b2394656968f41de2eebd0dc31756a071315ceb358", + "evidence_files": 11663, + "evidence_root": "sha256:9a183185ae8671e6263ec276a9bac3332e357843bcfd0e071b2bd14a3a75efc0", + "files": 15080, + "generated_at_commit": "4cd9ad9845612038a49c15940811ce24c38c061d", + "source_tree": "sha256:14caf26ffe8d06a0538594b63e92e61957aa06455feef677dcb25e05224fc464" }, "owner_lane": "", "provenance": { diff --git a/.gitignore b/.gitignore index fd0ce970e..1df9f6580 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ build/qual-runs/ /omega tests/test_omega_numeric .crumb.local +build-pr/ diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 4d86c43d6..efbcf416c 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -13,6 +13,8 @@ Every model below did real work. A model is listed only for work it did. The orc | Gemini 3.8 Flash | Code review of the numeric changes (patch checks, qualifier script, build rules) | | Codex | Numeric uncertain-completion retention, exact completion checks, and simulated-driver lifecycle regression tests | | Codex | Private exclusive sm121 reference outputs and bounded source-bound host safety checks | +| Codex | C5 kernel-dump private exclusive creation, failure handling, and source-bound host safety checks | +| Codex | C6 private kernel dumps and temporary listings, bounded dump filenames, descriptor-safe readback, and source-bound host safety checks | | Claude Opus 5.5 | Ionic-droplet reservoir (#440): pinned reference, CPU simulator and readout, `.mat` reader, Gate 2 comparison, benchmarks, timing and receipt | This table starts with the numeric work on this branch. Earlier work in this repository is not yet attributed here; add rows only for work that can be traced to a model. diff --git a/Makefile b/Makefile index aa4e7428f..f15716157 100644 --- a/Makefile +++ b/Makefile @@ -44,11 +44,17 @@ SRCS += src/omega_blackwell_codegen_router.c src/omega_gpu_router_api.c SRCS += src/omega_blackwell_codegen_gdn.c src/omega_gpu_gdn_api.c # OWN-30B W-L2 (2026-10-13): decode launch collapse, new files only: command list (N launches, one submit) + glue kernels SRCS += src/omega_gpu_cmdlist.c src/omega_blackwell_codegen_dec.c +# C3 (docs/OMEGA.md): reductions and prefix sums of any length, bit-exact against the frozen-order host reference. +SRCS += src/omega_gpu_scan.c src/omega_gpu_scan_ref.c +# C3: matrix multiply of any shape, BF16 and FP8, both layouts, on the tensor cores (pack kernels + one multiply kernel). +SRCS += src/omega_gpu_gemm.c SRCS += src/omega_gpu_mem_cached.c SRCS += src/omega_gpu_decode_graph.c # sc #642 (2026-10-18): one Qwen3.8-27B decode token as one command list (GDN + hd256 attention layers, dense MLP) SRCS += src/omega_gpu_q38_graph.c SRCS += src/omega_gpu_q36_graph.c +# C6 (L386): Omega's own sm_121 disassembler; the listing checks in tests/ call it instead of nvdisasm +SRCS += src/omega_sm121_disasm.c # OWN-30B (2026-10-13): bf16 streaming GEMV for the lm_head (omega_gpu_bf16_gemv_api.h), new files only SRCS += src/omega_blackwell_codegen_bf16.c src/omega_gpu_bf16_gemv_api.c # OWN-30B prefill (2026-10-13): FP8 grouped GEMM, each expert streamed once per pass (omega_gpu_fp8gemm_api.h), new files only @@ -321,20 +327,19 @@ test-numeric-transc-full: build/test_omega_transc test-numeric-transc-digest: build/test_omega_transc ./build/test_omega_transc digest -# Offline provenance of the GB10 MAX/MIN warp patch: nvdisasm -b SM121 must -# decode every word to the text the patch table records. No device opened; -# nvdisasm is a decoder only. Last line: "E1 Reduce nvdisasm: PASS". +# Offline provenance of the GB10 MAX/MIN warp patch: Omega's own disassembler (sm121dis, +# C6; it agrees with nvdisasm on every library kernel) must decode every word to the text the +# patch table records. No device opened. Last line: "E1 Reduce nvdisasm: PASS" (name kept for receipts). .PHONY: test-numeric-reduce-nvdisasm -REDUCE_NVDISASM ?= /usr/local/cuda/bin/nvdisasm -test-numeric-reduce-nvdisasm: build/test_omega_reduce_cpu - @[ -x "$(REDUCE_NVDISASM)" ] || { echo "E1 Reduce nvdisasm: NOT_RUN ($(REDUCE_NVDISASM) missing)"; exit 2; } +REDUCE_NVDISASM ?= build/sm121dis +test-numeric-reduce-nvdisasm: build/test_omega_reduce_cpu build/sm121dis @set -e; t=$$(mktemp -d); trap 'rm -rf "$$t"' EXIT; ./build/test_omega_reduce_cpu --dump "$$t"; \ for op in max min; do \ - "$(REDUCE_NVDISASM)" -b SM121 "$$t/$$op.bin" > "$$t/$$op.raw" || { echo "E1 Reduce nvdisasm: FAIL ($$op: nvdisasm error)"; exit 1; }; \ + "$(REDUCE_NVDISASM)" -b SM121 "$$t/$$op.bin" > "$$t/$$op.raw" || { echo "E1 Reduce nvdisasm: FAIL ($$op: disassembler error)"; exit 1; }; \ sed -n 's|^[[:space:]]*/\*\([0-9a-f]\{4\}\)\*/[[:space:]]*\(.*;\).*$$|\1 \2|p' "$$t/$$op.raw" \ | sed 's/[[:space:]]\{1,\}/ /g' > "$$t/$$op.got"; \ diff -u "$$t/$$op.lst" "$$t/$$op.got" || { echo "E1 Reduce nvdisasm: FAIL ($$op)"; exit 1; }; echo "$$op: $$(wc -l < "$$t/$$op.lst") words decode to the recorded text"; \ - done; echo "E1 Reduce nvdisasm: PASS ($$("$(REDUCE_NVDISASM)" --version | grep -o 'release [0-9.]*, V[0-9.]*'))" + done; echo "E1 Reduce nvdisasm: PASS ($$("$(REDUCE_NVDISASM)" --version))" # Resident reaction runtime heartbeat (ADR 0016, R3/R4 host reference). # CPU only; links no PHYSICS/NVRM code (omega_evidence.c needs only the header). @@ -2656,6 +2661,26 @@ test-gpu-cmdlist: $(GPU_CMDLIST_TEST) ./$(GPU_CMDLIST_TEST) --host-only ./$(GPU_CMDLIST_TEST) --sim +# C4 streams (docs/OMEGA.md row C4): two queues of the same half-chip work side by side, an event (cmdlist wait_for) +# between them, both with red checks. test-gpu-streams is host + warp simulator; the chip tier is "$(GPU_STREAMS_TEST)" +# with no flag, under the GB10 lock (timings need an exclusive window). +.PHONY: test-gpu-streams +GPU_STREAMS_TEST = $(OUT_DIR)/gpu_streams_test +$(GPU_STREAMS_TEST): tests/gpu_streams_test.c tests/bw_warp_sim.h src/omega_gpu_cmdlist.h src/omega_bw_em.h $(OUT_DIR)/libomega_gpu.a + $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ tests/gpu_streams_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +test-gpu-streams: $(GPU_STREAMS_TEST) + ./$(GPU_STREAMS_TEST) --sim + +# C5 isolation (docs/OMEGA.md row C5): a never-ending kernel times out, omega_gpu_session_recover, a correct launch in the +# same process; two processes on one GPU; a hang beside a working process. test-gpu-isolation is host + simulator; +# the chip tier is "$(GPU_ISOLATION_TEST)" with no flag, under the GB10 lock. +.PHONY: test-gpu-isolation +GPU_ISOLATION_TEST = $(OUT_DIR)/gpu_isolation_test +$(GPU_ISOLATION_TEST): tests/gpu_isolation_test.c tests/bw_warp_sim.h src/omega_gpu_session.h src/omega_bw_em.h $(OUT_DIR)/libomega_gpu.a + $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ tests/gpu_isolation_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +test-gpu-isolation: $(GPU_ISOLATION_TEST) + ./$(GPU_ISOLATION_TEST) --host-only + # OWN-30B W-L2a (2026-10-13): one decode token as one command list (omega_gpu_decode_graph). test-gpu-decode-graph is # host-only; the chip gate is tools/run_gpu_decode_graph_chip.sh under the GB10 lock. .PHONY: test-gpu-decode-graph @@ -2687,3 +2712,22 @@ test-gpu-q38-graph-host: $(GPU_Q38_GRAPH_TEST) GPU_EXACT_HEAD_TEST = $(OUT_DIR)/gpu_exact_head_test $(GPU_EXACT_HEAD_TEST): tests/gpu_exact_head_test.c tests/bw_warp_sim_k.h src/omega_blackwell_codegen_dec.h src/omega_gpu_bf16_gemv_api.h src/omega_gpu_fp8_api.h $(OUT_DIR)/libomega_gpu.a $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ tests/gpu_exact_head_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +# C3 (docs/OMEGA.md): sum, max, min and prefix sum of any length 1..2^28, bit-exact against the frozen order. +# test-gpu-scan: host refusals, codegen, references vs exact sums and vs the E1 reference, then the warp simulator +# (both orders, mutants caught). The chip tier is "$(GPU_SCAN_TEST)" with no flag, under the GB10 lock. +GPU_SCAN_TEST = $(OUT_DIR)/gpu_scan_test +$(GPU_SCAN_TEST): tests/gpu_scan_test.c tests/bw_warp_sim.h src/omega_gpu_scan.h src/omega_numeric_reduce.c src/omega_numeric.c $(OUT_DIR)/libomega_gpu.a + $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ tests/gpu_scan_test.c src/omega_numeric_reduce.c src/omega_numeric.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +.PHONY: test-gpu-scan +test-gpu-scan: $(GPU_SCAN_TEST) + ./$(GPU_SCAN_TEST) --sim + +# C3 (docs/OMEGA.md): matrix multiply of any shape, BF16 and FP8 (e4m3), both layouts, on the tensor cores; bit-exact +# against the chip-measured tensor-core model. test-gpu-gemm: host refusals and codegen, then the warp simulator. +# The chip tier is "$(GPU_GEMM_TEST)" with no flag (>= 200 shapes up to 8192, speed vs the measured ceiling), under the GB10 lock. +GPU_GEMM_TEST = $(OUT_DIR)/gpu_gemm_test +$(GPU_GEMM_TEST): tests/gpu_gemm_test.c tests/bw_warp_sim_tc.h tests/bw_hmma_model.h tests/bw_qmma_model.h src/omega_gpu_gemm.h $(OUT_DIR)/libomega_gpu.a + $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ tests/gpu_gemm_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm +.PHONY: test-gpu-gemm +test-gpu-gemm: $(GPU_GEMM_TEST) + ./$(GPU_GEMM_TEST) --sim diff --git a/bench/prime_race/.crumb b/bench/prime_race/.crumb index f29198a61..128e73ef0 100644 --- a/bench/prime_race/.crumb +++ b/bench/prime_race/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-24T04:15:18Z", + "compiled_at": "2026-10-24T23:35:21Z", "compiler": "crumb-compile/1", - "digest": "sha256:c1f97071b8d200601d33ead7c91f5f1c73a1720f330b2cd6a31f07937ff1f1cb", + "digest": "sha256:240194f8f186535e206c565515c998391eb37d494cca4bf792211935e2f9261a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 10, - "generated_at_commit": "dc7c1304c038f49db3b121d5a5e27d7bcab5bf6c", - "source_tree": "sha256:a068ccd11792a182cfa40573e5bad2582190d2ed4ea9cfd2ee8ab7ff49665fb8" + "generated_at_commit": "c8d7d52946c22a7a8a730897dfff9e1cd9ad069a", + "source_tree": "sha256:771f2a7383539ae41acbcad002e02f199aa8fdfab190f8eae66b0e555d910a23" } }, "invariants": [ diff --git a/bench/prime_race/tests/gb10_sieve_host_test.c b/bench/prime_race/tests/gb10_sieve_host_test.c index 7095db08d..adac8bec8 100644 --- a/bench/prime_race/tests/gb10_sieve_host_test.c +++ b/bench/prime_race/tests/gb10_sieve_host_test.c @@ -16,7 +16,7 @@ /* Host tests for the native GB10 prime sieve (no device is opened). * - * gb10_sieve_host_test golden words of the three new ops, codegen budget, nvdisasm + * gb10_sieve_host_test golden words of the three new ops, codegen budget, sm121dis * listing + every branch target, then the allocated IR program * run by a host IR simulator over the limits sweep against an * independent Eratosthenes oracle; the mutant must be caught @@ -33,6 +33,7 @@ #include "prime_race_impl.h" #include "omega_blackwell_codegen.h" #include "omega_gpu_elementwise_api.h" +#include "omega_sm121_disasm.h" #include "bw_warp_sim.h" /* SIMT warp simulator (omega #308): the regioned sieves run through it */ #include #include @@ -396,25 +397,20 @@ static void fixed_schedule_check(const BlackwellIRProgram *p, const OmegaBlackwe free(bad.code); } -/* ------------------------------------------------------------- nvdisasm */ +/* ------------------------------------------------------------- sm121dis */ /* every word decodes, the new ops appear, and every BRA lands where the IR says */ static const char *const MUST_GLOBAL[] = { "LOP3.LUT", "SHF.L.U32", "IMAD.HI.U32", "@P0 BRA", "@!P0 BRA", "@P0 EXIT", "STG.E", "LDG.E" }; static const char *const MUST_STAGED[] = { "LDS", "STS", "BAR.SYNC", "LDG.E", "STG.E", "IMAD.HI.U32", "@P0 BRA", "@!P0 BRA" }; -static void nvdisasm_check(const OmegaBlackwellKernel *k, const BlackwellIRProgram *p, const char *const *must, const char *tag) { - const char *nv = "/usr/local/cuda/bin/nvdisasm"; - if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check SKIPPED\n"); return; } - char bin[64], lst[64], cmd[256]; - snprintf(bin, sizeof bin, "/tmp/pr_gb10_sieve_%d.bin", (int)getpid()); - snprintf(lst, sizeof lst, "/tmp/pr_gb10_sieve_%d.sass", (int)getpid()); - FILE *f = fopen(bin, "wb"); - if (!f) { CHECK(0, "cannot write %s", bin); return; } - fwrite(k->code, 1, k->code_size, f); fclose(f); - snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); - int rc = system(cmd); - unlink(bin); - CHECK(rc == 0, "nvdisasm rc %d", rc); - FILE *l = fopen(lst, "r"); - if (!l) { CHECK(0, "cannot read %s", lst); return; } +static void sm121dis_check(const OmegaBlackwellKernel *k, const BlackwellIRProgram *p, const char *const *must, const char *tag) { + char lst[64]; + snprintf(lst, sizeof lst, "/tmp/pr_gb10_sieve_%d.sass.XXXXXX", (int)getpid()); + int fd = mkstemp(lst); /* private, unique listing; read back the same descriptor */ + FILE *f = fd >= 0 ? fdopen(fd, "w+") : NULL; + if (!f) { if (fd >= 0) close(fd); CHECK(0, "cannot write %s", lst); return; } + int rc = omega_sm121_listing(k->code, k->code_size, f); + CHECK(rc == 0, "sm121dis rc %d", rc); + if (fflush(f) != 0 || fseek(f, 0, SEEK_SET) != 0) { fclose(f); CHECK(0, "cannot read %s", lst); return; } + FILE *l = f; int seen[8] = {0}, insns = 0, bad = 0, bra_ok = 0, bra_bad = 0; char line[512]; while (fgets(line, sizeof line, l)) { @@ -431,14 +427,15 @@ static void nvdisasm_check(const OmegaBlackwellKernel *k, const BlackwellIRProgr unsigned long target = strtoul(br + 4, NULL, 16); unsigned long want = (unsigned long)((int)(addr / 16) + (int32_t)in->imm) * 16; if (in->op == BW_IR_BRA && target == want) bra_ok++; - else { bra_bad++; printf(" branch at 0x%04x: nvdisasm target 0x%lx, IR target 0x%lx\n", addr, target, want); } + else { bra_bad++; printf(" branch at 0x%04x: sm121dis target 0x%lx, IR target 0x%lx\n", addr, target, want); } } } - fclose(l); - for (int i = 0; i < 8; i++) CHECK(seen[i], "nvdisasm listing lacks %s (%s)", must[i], lst); + CHECK(!ferror(l), "read listing %s", lst); + CHECK(fclose(l) == 0, "close listing %s", lst); + for (int i = 0; i < 8; i++) CHECK(seen[i], "sm121dis listing lacks %s (%s)", must[i], lst); CHECK(bad == 0, "%d undecodable words (%s)", bad, lst); CHECK(bra_bad == 0 && bra_ok >= 6, "branch targets: %d match, %d differ", bra_ok, bra_bad); - printf("nvdisasm (%s): %d words, %d undecodable, %d branch targets checked (%s)\n", tag, insns, bad, bra_ok, lst); + printf("sm121dis (%s): %d words, %d undecodable, %d branch targets checked (%s)\n", tag, insns, bad, bra_ok, lst); if (g_failed == 0) unlink(lst); } @@ -533,7 +530,7 @@ int main(int argc, char **argv) { printf("\n"); CHECK(k.gpr_count <= 64, "GPR budget %u > 64", k.gpr_count); CHECK(memcmp(k.code_digest, mk.code_digest, 32) != 0, "mutant kernel differs from production"); - nvdisasm_check(&k, prog, MUST_GLOBAL, "global table"); + sm121dis_check(&k, prog, MUST_GLOBAL, "global table"); fixed_schedule_check(prog, &k); { int hz = sb_hazards(prog, 1); @@ -622,7 +619,7 @@ int main(int argc, char **argv) { for (int i = 0; i < 32; i++) printf("%02x", sk.code_digest[i]); printf("\n"); CHECK(sk.gpr_count <= 64, "staged GPR budget %u > 64", sk.gpr_count); - nvdisasm_check(&sk, sp, MUST_STAGED, "staged"); + sm121dis_check(&sk, sp, MUST_STAGED, "staged"); fixed_schedule_check(sp, &sk); int hz = sb_hazards(sp, 1); CHECK(hz == 0, "scoreboard hazards in the staged kernel: %d", hz); @@ -735,7 +732,7 @@ int main(int argc, char **argv) { printf("\n"); CHECK(sb_hazards(dp, 1) == 0, "%s scoreboard hazards", dv[v].name); CHECK(fixed_hazards(dp, &dk) == 0, "%s encoded fixed RAW hazards", dv[v].name); - if (!dv[v].staged) nvdisasm_check(&dk, dp, MUST_DIV, dv[v].name); + if (!dv[v].staged) sm121dis_check(&dk, dp, MUST_DIV, dv[v].name); int dfail = 0, dn = 0; for (int order = 0; order < 2; order++) for (size_t i = 0; i < nl; i++, dn++) { uint64_t L = lims[i], *want = oracle_bitmap(L), *got = calloc(pr_words64(L) + 1, 8); diff --git a/docs/.crumb b/docs/.crumb index 662fd03ce..7a1eb14dd 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -46,92 +46,92 @@ "children": [ { "digest": "640f6b7b818c769ab0dcd91437d58dd3251044084d2ae3785f000d30d2bb768a", - "last_commit": "a927bd6c", + "last_commit": "a927bd6c2", "name": "adr", "purpose": "Directory docs/adr. Purpose not yet described by a human." }, { "digest": "e7ac2460455a35b96b01dab649dcdc2cdf5bb4657bf230b91272c64fe1bf82cf", - "last_commit": "d48ab89e", + "last_commit": "d48ab89e5", "name": "autodiff", "purpose": "M21 OMEGA_AUTODIFF scope, op and error-contract table, status (not qualified)" }, { "digest": "7506b1a8659e6de84e1be31a281c8d046e4946de6ed29451155bb56cda5cb365", - "last_commit": "6637b32b", + "last_commit": "6637b32b6", "name": "brownian", "purpose": "Directory docs/brownian. Purpose not yet described by a human." }, { "digest": "1b01542d91e3b1c7c5263d6b393338a3d9d40e138a12ec833ce7852d83887ce2", - "last_commit": "5901baa5", + "last_commit": "5901baa51", "name": "crumbs", "purpose": "Directory docs/crumbs. Purpose not yet described by a human." }, { "digest": "e9baaaeec04be41a57c4a2d6a540b01a682c70d4db96cb4af4e1a9912a133aa9", - "last_commit": "55d05d6a", + "last_commit": "55d05d6a5", "name": "dual", "purpose": "DUAL (ARCH-0031) documents in omega: applicability experiment method and findings (APPLICABILITY" }, { "digest": "56a5a999ce726e90d89c1c88b9e20c81857c8e6ee82af8d651ac80ea70e2c46d", - "last_commit": "38a6a569", + "last_commit": "38a6a569b", "name": "estimation", "purpose": "Directory docs/estimation. Purpose not yet described by a human." }, { - "digest": "82617b47b6fee43e883fa67d97ecf12e15b112dfce8c5729a8ff77c1ef48bcba", - "last_commit": "95829f2a", + "digest": "8b926a045985692f116d9469af5aaa06d778bca78cf5d7e891e68c2486ed789e", + "last_commit": "8ec82485d", "name": "numeric", "purpose": "Directory docs/numeric. Purpose not yet described by a human." }, { "digest": "6fff07c654fe051c1738dd033ac3723f28df48d44efc1365982205eab21337c6", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "osc", "purpose": "Directory docs/osc. Purpose not yet described by a human." }, { "digest": "ffe2e59267bcc6597fdadad5fc7c54e32bbc0f0e409dae9af3ddd3ba49a0d8ad", - "last_commit": "61c09411", + "last_commit": "61c094113", "name": "polyglot", "purpose": "Directory docs/polyglot. Purpose not yet described by a human." }, { "digest": "46d3e2d59a468271e044ccd2398eb32345df6436c15eb6d8c703953c838023a9", - "last_commit": "dd67f6bd", + "last_commit": "dd67f6bd7", "name": "reservoir", "purpose": "Reservoir reference and contracts (omega#440): RESERVOIR_REFERENCE.md pins the authors' paper an" }, { "digest": "2ab37838f8694e5060a3789f08a16146996050af949fba329ed805429d85f695", - "last_commit": "f633e343", + "last_commit": "f633e3430", "name": "tensor", "purpose": "M20 OMEGA_TENSOR spec and qualification checklist" }, { "digest": "41ab5cf8617e9583dcda75292e1e851e1ec4187b69d5d00b5eb354f1ee55c9d5", - "last_commit": "54826a37", + "last_commit": "54826a37f", "name": "train", "purpose": "Directory docs/train. Purpose not yet described by a human." }, { "digest": "b6ed9ddbc50071409ece5b2a6510f57184defcba5ffc7103f1dfe24ae440ef67", - "last_commit": "b7a788e8", + "last_commit": "b7a788e82", "name": "turing", "purpose": "Directory docs/turing. Purpose not yet described by a human." } ], - "children_root": "sha256:714214544c32beee15166fcc8b150c5847bf3786035848011e1e564bdd72ddd4", - "compiled_at": "2026-10-24T23:30:12Z", + "children_root": "sha256:3f9c84a16227ab9b30962f44cf367f96a0d7a349b1a5105a9a423cffaeee937f", + "compiled_at": "2026-10-24T23:54:51Z", "compiler": "crumb-compile/1", - "digest": "sha256:c92de7796549ecf47bb28700d4b82e8ba3e4dd260cdb4caa61a3337c44e063d3", + "digest": "sha256:38942b47f7ce98113cdf562eefff1cfd3c460a5d34ef9314ad0097cc0ded2ba8", "evidence_files": 34, "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc", - "files": 131, - "generated_at_commit": "60030b348fc6421d1dd035f854bd1d8b5d622813", - "source_tree": "sha256:11a0166c747b5c23cc881c80529e976729e175a9450eb300416312e04c9d03c9" + "files": 132, + "generated_at_commit": "fe8bf06c6185a99c25d7658614ccbc812b6df465", + "source_tree": "sha256:bed403af4de89d2094938ee858b4a5ced9f378bc8c0b23f43863e48bd9bd3d35" }, "owner_lane": "", "provenance": { diff --git a/docs/numeric/.crumb b/docs/numeric/.crumb index bfd1317a2..562a6b666 100644 --- a/docs/numeric/.crumb +++ b/docs/numeric/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-12T16:47:44Z", + "compiled_at": "2026-10-24T09:47:00Z", "compiler": "crumb-compile/1", - "digest": "sha256:82617b47b6fee43e883fa67d97ecf12e15b112dfce8c5729a8ff77c1ef48bcba", + "digest": "sha256:8b926a045985692f116d9469af5aaa06d778bca78cf5d7e891e68c2486ed789e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 11, - "generated_at_commit": "a073db70e22eec13128c00554683dd8c59b6f456", - "source_tree": "sha256:556ea8188eb5b58ec322a565225ab7612de218570fe17a1d3df387a7b8be3b29" + "files": 12, + "generated_at_commit": "f792cd1d35b0e9c191647518c3be651a8d86dc21", + "source_tree": "sha256:d017116c3ccc565cf4fdc90703ba93dfb350183c517d480d809dc0944e87a0fd" }, "owner_lane": "", "provenance": { diff --git a/docs/numeric/GPU_CHANNELS.md b/docs/numeric/GPU_CHANNELS.md new file mode 100644 index 000000000..83bcecceb --- /dev/null +++ b/docs/numeric/GPU_CHANNELS.md @@ -0,0 +1,60 @@ +# GPU channels: more than one command queue (L136, roadblock R3, OSC-0 decision 12) + +Written before the measurement. The receipt goes in `evidence/q38-channels-*`. + +## What a channel is + +A channel is one command queue into the GPU: a ring of work entries plus a doorbell. Until now the engine opened one +(`src/omega_gpu_platform_linux.c`, `max_queues = 1`), so every job from every caller waited in one line. + +Cost of a second channel (physics `doc/driver-floor` DRIVER_FLOOR.md): one more BLACKWELL_CHANNEL_GPFIFO_A and +BLACKWELL_COMPUTE_B in the same KEPLER_CHANNEL_GROUP_A and FERMI_CONTEXT_SHARE_A, one UVM_REGISTER_CHANNEL, one +GET_WORK_SUBMIT_TOKEN, all before the single GPFIFO_SCHEDULE. That is setup, paid once at device open. A submission +after that is two stores (ring entry, doorbell), the same as channel 0. Physics `feat/gpu-channels` 7476de7 adds this as +`nvrm_channel_n`; the platform opens it only when `AIEN_OMEGA_GPU_CHANNELS` is 2..4. Unset, the code path is the +single channel exactly. + +## The arithmetic for one decode token of the 27B (Qwen3.8-27B, FP8 weights, bf16 head) + +- Weights read per token: 26.9 GB. At the memory ceiling of 273 GB/s that is 10.15 tok/s (calc:41e5e25b). +- The token is a chain: each layer needs the previous layer's output, so layer N+1's weights cannot be "loaded early". + On this machine the weights are not copied anywhere before use; the multiply kernel reads them straight from memory. + Reading them IS the work. The L2 cache (tens of MB) is far smaller than one layer (~380 MB), so there is nothing to + prefetch into. +- Timeline receipt `evidence/q38-decode-speed-chip-20261019T0316Z` (4 layers + head): the weight multiplies take + 18584 of 18866 us; everything else (norms, attention, GDN step, gaps between launches) is 1.49% (calc:b581cb99). +- The one independent pair inside a token (the small a|b multiply beside the big mix multiply in GDN layers) already + runs side by side on ONE channel (`omega_gpu_cmdlist_mark_independent`, `AIEN_OMEGA_Q38_OVERLAP_AB`, default on). + The brief's fallback (overlap by reordering on one channel) therefore already exists and is installed. + +So splitting one token across two channels can win at most ~1.5% for one request, minus the cost of the fences that +order the two queues. Not worth building first. + +## Where a second channel could help: two requests at once + +Each weight multiply reaches 193 to 229 GB/s of the 273 GB/s ceiling (same receipt). If a single multiply is limited by +how many memory reads one grid keeps in flight, two grids from two requests running at the same time could pull more +together. Ceiling of that gain: 273 / 220 = 1.24x aggregate tokens per second (calc:91c5deff). Requests do not share +weight reads this way; each still reads all 26.9 GB. + +Unknowns, said out loud: +1. Whether the GPU runs work from two channels of one channel group at the same time, or takes turns (time slicing). + The CUDA guide says separate queues remove false dependencies but "concurrent execution of independent GPU work is + not guaranteed". DOCS SILENT on GB10 specifics. +2. Whether a WAIT_FOR_IDLE on channel 0 (every dependent launch has one) also waits for channel 1's grids. If it does, + the two streams serialise at every barrier. + +## Prediction (before the measurement) + +Two independent 27B decode streams, 64 layers, 64 steps: +- serial (both on channel 0, one after the other): about 2 x 123 ms per step (one stream decodes at 8.13 tok/s on + branch qwen38/decode-speed), so ~8.1 tok/s aggregate, the same as one stream. +- paired (one per channel, both in flight): between 1.00x and 1.10x of serial throughput. Most likely ~1.0x: each + multiply already pulls ~80% of the bandwidth, and unknown 2 may serialise them anyway. +- Outputs bit-identical between serial and paired (the streams share only read-only weights). + +## The bigger lever, for later + +Batching: two requests multiply against the SAME weight read (a matrix times two vectors instead of one). That halves +the bytes per token for two requests, ceiling 2x aggregate, and needs a kernel change (GEMV to a thin GEMM), not a +channel change. It is the next step for throughput regardless of what the channel receipt says. diff --git a/evidence/C3-GEMM/01-host-only.log b/evidence/C3-GEMM/01-host-only.log new file mode 100644 index 000000000..c581c5126 --- /dev/null +++ b/evidence/C3-GEMM/01-host-only.log @@ -0,0 +1,39 @@ +the bf16 model is a multiply (A row B row): worst error 3.81e-07 of the magnitude sum +the bf16 model is a multiply (A col B row): worst error 5.42e-07 of the magnitude sum +the bf16 model is a multiply (A row B col): worst error 5.77e-07 of the magnitude sum +the bf16 model is a multiply (A col B col): worst error 4.26e-07 of the magnitude sum +the e4m3 model is a multiply (A row B row): worst error 3.16e-07 of the magnitude sum +the e4m3 model is a multiply (A col B row): worst error 3.17e-07 of the magnitude sum +the e4m3 model is a multiply (A row B col): worst error 2.44e-07 of the magnitude sum +the e4m3 model is a multiply (A col B col): worst error 2.58e-07 of the magnitude sum +bf16 rt 2 ct 4 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 4 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 4 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 116 gprs +bf16 rt 1 ct 1 wm 1 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 1 ct 1 wm 1 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 20 gprs +bf16 rt 1 ct 1 wm 1 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 48 gprs +bf16 rt 4 ct 1 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 4 ct 1 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 20 gprs +bf16 rt 4 ct 1 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 108 gprs +bf16 rt 1 ct 4 wm 4 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 1 ct 4 wm 4 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 1 ct 4 wm 4 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 84 gprs +bf16 rt 2 ct 2 wm 1 wn 4 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 2 wm 1 wn 4 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 2 wm 1 wn 4 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 84 gprs +e4m3 rt 2 ct 4 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 4 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 4 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 32, 116 gprs +e4m3 rt 1 ct 1 wm 1 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 1 ct 1 wm 1 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +e4m3 rt 1 ct 1 wm 1 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 4, 48 gprs +e4m3 rt 4 ct 1 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 4 ct 1 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +e4m3 rt 4 ct 1 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 16, 108 gprs +e4m3 rt 1 ct 4 wm 4 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 1 ct 4 wm 4 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 1 ct 4 wm 4 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 16, 84 gprs +e4m3 rt 2 ct 2 wm 1 wn 4 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 2 wm 1 wn 4 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 2 wm 1 wn 4 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 16, 84 gprs +C3 gemm host: PASS (136 checks) diff --git a/evidence/C3-GEMM/02-sim.log b/evidence/C3-GEMM/02-sim.log new file mode 100644 index 000000000..fd97da9f2 --- /dev/null +++ b/evidence/C3-GEMM/02-sim.log @@ -0,0 +1,51 @@ +the bf16 model is a multiply (A row B row): worst error 3.81e-07 of the magnitude sum +the bf16 model is a multiply (A col B row): worst error 5.42e-07 of the magnitude sum +the bf16 model is a multiply (A row B col): worst error 5.77e-07 of the magnitude sum +the bf16 model is a multiply (A col B col): worst error 4.26e-07 of the magnitude sum +the e4m3 model is a multiply (A row B row): worst error 3.16e-07 of the magnitude sum +the e4m3 model is a multiply (A col B row): worst error 3.17e-07 of the magnitude sum +the e4m3 model is a multiply (A row B col): worst error 2.44e-07 of the magnitude sum +the e4m3 model is a multiply (A col B col): worst error 2.58e-07 of the magnitude sum +bf16 rt 2 ct 4 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 4 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 4 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 116 gprs +bf16 rt 1 ct 1 wm 1 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 1 ct 1 wm 1 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 20 gprs +bf16 rt 1 ct 1 wm 1 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 48 gprs +bf16 rt 4 ct 1 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 4 ct 1 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 20 gprs +bf16 rt 4 ct 1 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 108 gprs +bf16 rt 1 ct 4 wm 4 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 1 ct 4 wm 4 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 1 ct 4 wm 4 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 84 gprs +bf16 rt 2 ct 2 wm 1 wn 4 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 2 wm 1 wn 4 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +bf16 rt 2 ct 2 wm 1 wn 4 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 0, 84 gprs +e4m3 rt 2 ct 4 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 4 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 4 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 32, 116 gprs +e4m3 rt 1 ct 1 wm 1 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 1 ct 1 wm 1 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +e4m3 rt 1 ct 1 wm 1 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 4, 48 gprs +e4m3 rt 4 ct 1 wm 2 wn 2 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 4 ct 1 wm 2 wn 2 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 28 gprs +e4m3 rt 4 ct 1 wm 2 wn 2 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 16, 108 gprs +e4m3 rt 1 ct 4 wm 4 wn 1 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 1 ct 4 wm 4 wn 1 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 1 ct 4 wm 4 wn 1 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 16, 84 gprs +e4m3 rt 2 ct 2 wm 1 wn 4 kernel 0 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 2 wm 1 wn 4 kernel 1 mutant 0: codegen 0, encode 0, qmma patches 0, 40 gprs +e4m3 rt 2 ct 2 wm 1 wn 4 kernel 2 mutant 0: codegen 0, encode 0, qmma patches 16, 84 gprs +simulator bf16 rt 2 ct 4 wm 2 wn 2: 40 multiplies, 0 wrong +simulator bf16 rt 1 ct 1 wm 1 wn 1: 10 multiplies, 0 wrong +simulator bf16 rt 4 ct 1 wm 1 wn 4: 10 multiplies, 0 wrong +simulator e4m3 rt 2 ct 4 wm 2 wn 2: 40 multiplies, 0 wrong +simulator e4m3 rt 1 ct 1 wm 1 wn 1: 10 multiplies, 0 wrong +simulator e4m3 rt 4 ct 1 wm 1 wn 4: 10 multiplies, 0 wrong +simulator red check: bf16 mutant 1 is caught (4095 wrong) +simulator red check: bf16 mutant 2 is caught (4095 wrong) +simulator red check: bf16 mutant 3 is caught (4095 wrong) +simulator red check: e4m3 mutant 1 is caught (4095 wrong) +simulator red check: e4m3 mutant 2 is caught (4095 wrong) +simulator red check: e4m3 mutant 3 is caught (4095 wrong) +C3 gemm sim: PASS (154 checks) diff --git a/evidence/C3-GEMM/README.md b/evidence/C3-GEMM/README.md new file mode 100644 index 000000000..0e730a9bf --- /dev/null +++ b/evidence/C3-GEMM/README.md @@ -0,0 +1,19 @@ +# C3 receipt, part 2: matrix multiply of any shape on the tensor cores + +Row C3 of `docs/OMEGA.md` asks for matrix multiply (GEMM) of any shape in BF16 and FP8, both layouts, at least 200 shapes +from 1 to 8192, correct, with speed as a fraction of the measured tensor-core ceiling. The kernels come from Omega's own +code generator (`src/omega_gpu_gemm.c`), no CUDA: two pack kernels put A and B (row- or column-major) into the tensor +cores' order with zeros past the edges, one multiply kernel runs the tensor cores (HMMA for BF16, QMMA for FP8). + +"Correct" here is bit for bit: the reference is a host model of the same tensor-core steps whose rounding was measured +on this chip (`tests/bw_hmma_model.h`, `tests/bw_qmma_model.h`, both exact on 262,144 of 262,144 chip outputs), and a +separate check shows that model stays within one part in a million of the exact product. + +| Log | What it checks | Result | +|---|---|---| +| 01-host-only | bad calls refused, tile shapes past the register budget refused; every kernel (both types, five tile shapes, each planted fault) through our code generator and encoder; the model against exact double-precision sums | PASS, 136 checks | +| 02-sim | the real kernels in the warp simulator (tensor-core ops computed with the chip models): ten shapes over every edge, all four layouts, three tile shapes, both types, every output compared; three planted faults (a dropped k step, no zeros past the edges, swapped columns) each caught on all 4,095 outputs | PASS, 154 checks | +| (next) chip | 208 shapes up to 8192, both types, all four layouts; speed against 115.36 TFLOPS (BF16) and 237.52 TFLOPS (FP8) | waiting for a chip window | + +Command: `make test-gpu-gemm` (host and simulator). The chip run is `build/gpu_gemm_test` with no flag, under the GB10 lock. 01 and 02 logs: 2026-10-24 23:11Z on the stacked tip (gemm layer over the scan layer over main 0d72560a; binary sha256 0a624c25 a68cef88...; `PHYSICS_DIR` must point at the checkout pinned in `physics.lock`), host 136 checks, simulator 154 checks. +This is the general kernel; the prefill-roof lane (L403) tunes it toward the ceiling. diff --git a/evidence/C3-SCAN/01-host-only.log b/evidence/C3-SCAN/01-host-only.log new file mode 100644 index 000000000..a48ef0ff5 --- /dev/null +++ b/evidence/C3-SCAN/01-host-only.log @@ -0,0 +1,6 @@ +kernel 0: 45 insns, 768 bytes, 18 gprs +kernel 1: 45 insns, 768 bytes, 18 gprs +kernel 2: 45 insns, 768 bytes, 18 gprs +kernel 3: 79 insns, 1280 bytes, 26 gprs +kernel 4: 33 insns, 640 bytes, 18 gprs +C3 scan host: PASS (133 checks) diff --git a/evidence/C3-SCAN/02-sim.log b/evidence/C3-SCAN/02-sim.log new file mode 100644 index 000000000..940bdee3e --- /dev/null +++ b/evidence/C3-SCAN/02-sim.log @@ -0,0 +1,8 @@ +kernel 0: 45 insns, 768 bytes, 18 gprs +kernel 1: 45 insns, 768 bytes, 18 gprs +kernel 2: 45 insns, 768 bytes, 18 gprs +kernel 3: 79 insns, 1280 bytes, 26 gprs +kernel 4: 33 insns, 640 bytes, 18 gprs +simulator order 0: 340 runs, reductions wrong 0, prefix sums wrong 0 +simulator order 1: 336 runs, reductions wrong 0, prefix sums wrong 0 +C3 scan sim: PASS (139 checks) diff --git a/evidence/C3-SCAN/03-chip-20261022-a7d6463b.log b/evidence/C3-SCAN/03-chip-20261022-a7d6463b.log new file mode 100644 index 000000000..4af451bae --- /dev/null +++ b/evidence/C3-SCAN/03-chip-20261022-a7d6463b.log @@ -0,0 +1,45 @@ +Thu Oct 22 07:03:33 UTC 2026 +a7d6463b9df4485484e207f11fb7802d09aed627 +c417f88728d2ee771d0af1369aa1a46791b48c11d4c8d685eb9eef393e082719 build/gpu_scan_test +COMMAND: spark-window run timeout 3600 stdbuf -oL -eL build/gpu_scan_test +every n from 1 to 2048 (sum, max, min, prefix): PASS +ok: chip sum n = 1048576 inputs 2: OK, got 7fffffff want 7fc0105f, 4 launches, kernels 0.530 ms +ok: chip max n = 1048576 inputs 2: OK, got 7f800000 want 7f800000, 4 launches, kernels 0.617 ms +ok: chip min n = 1048576 inputs 2: OK, got ff800000 want ff800000, 4 launches, kernels 0.621 ms +ok: chip prefix n = 1048576 inputs 2: OK, 0 wrong (first at 0), 7 launches, kernels 1.020 ms +ok: chip sum n = 2097152 inputs 2: OK, got 7fffffff want 7fc01b96, 5 launches, kernels 0.981 ms +ok: chip max n = 2097152 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 0.823 ms +ok: chip min n = 2097152 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 1.631 ms +ok: chip prefix n = 2097152 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 1.417 ms +ok: chip sum n = 4194304 inputs 2: OK, got 7fffffff want 7fc03205, 5 launches, kernels 1.052 ms +ok: chip max n = 4194304 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 2.124 ms +ok: chip min n = 4194304 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 1.010 ms +ok: chip prefix n = 4194304 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 3.284 ms +ok: chip sum n = 8388608 inputs 2: OK, got 7fffffff want 7fc05ee2, 5 launches, kernels 1.579 ms +ok: chip max n = 8388608 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 1.412 ms +ok: chip min n = 8388608 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 2.365 ms +ok: chip prefix n = 8388608 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 4.076 ms +ok: chip sum n = 16777216 inputs 2: OK, got 7fffffff want 7fc0b89e, 5 launches, kernels 2.558 ms +ok: chip max n = 16777216 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 2.362 ms +ok: chip min n = 16777216 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 2.660 ms +ok: chip prefix n = 16777216 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 3.808 ms +ok: chip sum n = 33554432 inputs 2: OK, got 7fffffff want 7fc06c14, 5 launches, kernels 5.531 ms +ok: chip max n = 33554432 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 5.973 ms +ok: chip min n = 33554432 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 5.058 ms +ok: chip prefix n = 33554432 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 6.689 ms +ok: chip sum n = 67108864 inputs 2: OK, got 7fffffff want 7fc0d301, 6 launches, kernels 10.649 ms +ok: chip max n = 67108864 inputs 2: OK, got 7f800000 want 7f800000, 6 launches, kernels 9.341 ms +ok: chip min n = 67108864 inputs 2: OK, got ff800000 want ff800000, 6 launches, kernels 9.005 ms +ok: chip prefix n = 67108864 inputs 2: OK, 0 wrong (first at 0), 11 launches, kernels 13.186 ms +ok: chip sum n = 134217728 inputs 2: OK, got 7fffffff want 7fc0a0da, 6 launches, kernels 17.443 ms +ok: chip max n = 134217728 inputs 2: OK, got 7f800000 want 7f800000, 6 launches, kernels 17.061 ms +ok: chip min n = 134217728 inputs 2: OK, got ff800000 want ff800000, 6 launches, kernels 18.621 ms +ok: chip prefix n = 134217728 inputs 2: OK, 0 wrong (first at 0), 11 launches, kernels 24.440 ms +ok: chip sum n = 268435456 inputs 2: OK, got 7fffffff want 7fc03c8d, 6 launches, kernels 36.363 ms +ok: chip max n = 268435456 inputs 2: OK, got 7f800000 want 7f800000, 6 launches, kernels 35.326 ms +ok: chip min n = 268435456 inputs 2: OK, got ff800000 want ff800000, 6 launches, kernels 35.078 ms +ok: chip prefix n = 268435456 inputs 2: OK, 0 wrong (first at 0), 11 launches, kernels 46.719 ms +2^k - 1, 2^k, 2^k + 1 up to 2^28: PASS +64 random lengths: PASS +C3 scan chip: PASS (8665 checks) +EXIT_CODE=0 diff --git a/evidence/C3-SCAN/04-chip-20261024-f16b56a58.log b/evidence/C3-SCAN/04-chip-20261024-f16b56a58.log new file mode 100644 index 000000000..a3a0b7d00 --- /dev/null +++ b/evidence/C3-SCAN/04-chip-20261024-f16b56a58.log @@ -0,0 +1,52 @@ +Sat Oct 24 11:26:17 PM UTC 2026 +f16b56a58383e6d635b9bda97be0be207c67f2e3 +physics pin 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf (PHYSICS_DIR=/home/drakestapleton/workspace/l386-physics) +3400c91e5d91d1a17369a96c2b4642609518ae955beb579404ff20d6ebb2a9a0 build/gpu_scan_test +CAMERA /dev/nvidia0 holders before: ,873959,2935091,3489680 +CAMERA 18091: {"object":"list","data":[{"id":"qwen3.6-35b-a3b-fp8","object":"model","created": +WINDOW: 20261024T232617Z-b940cf +COMMAND: spark-window run ./build/gpu_scan_test +every n from 1 to 2048 (sum, max, min, prefix): PASS +ok: chip sum n = 1048576 inputs 2: OK, got 7fffffff want 7fc0105f, 4 launches, kernels 0.516 ms +ok: chip max n = 1048576 inputs 2: OK, got 7f800000 want 7f800000, 4 launches, kernels 0.497 ms +ok: chip min n = 1048576 inputs 2: OK, got ff800000 want ff800000, 4 launches, kernels 0.513 ms +ok: chip prefix n = 1048576 inputs 2: OK, 0 wrong (first at 0), 7 launches, kernels 1.019 ms +ok: chip sum n = 2097152 inputs 2: OK, got 7fffffff want 7fc01b96, 5 launches, kernels 0.826 ms +ok: chip max n = 2097152 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 0.723 ms +ok: chip min n = 2097152 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 0.826 ms +ok: chip prefix n = 2097152 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 1.229 ms +ok: chip sum n = 4194304 inputs 2: OK, got 7fffffff want 7fc03205, 5 launches, kernels 1.034 ms +ok: chip max n = 4194304 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 0.996 ms +ok: chip min n = 4194304 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 1.029 ms +ok: chip prefix n = 4194304 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 1.610 ms +ok: chip sum n = 8388608 inputs 2: OK, got 7fffffff want 7fc05ee2, 5 launches, kernels 1.439 ms +ok: chip max n = 8388608 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 1.442 ms +ok: chip min n = 8388608 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 1.439 ms +ok: chip prefix n = 8388608 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 2.358 ms +ok: chip sum n = 16777216 inputs 2: OK, got 7fffffff want 7fc0b89e, 5 launches, kernels 2.252 ms +ok: chip max n = 16777216 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 2.152 ms +ok: chip min n = 16777216 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 2.252 ms +ok: chip prefix n = 16777216 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 3.480 ms +ok: chip sum n = 33554432 inputs 2: OK, got 7fffffff want 7fc06c14, 5 launches, kernels 3.579 ms +ok: chip max n = 33554432 inputs 2: OK, got 7f800000 want 7f800000, 5 launches, kernels 3.475 ms +ok: chip min n = 33554432 inputs 2: OK, got ff800000 want ff800000, 5 launches, kernels 3.688 ms +ok: chip prefix n = 33554432 inputs 2: OK, 0 wrong (first at 0), 9 launches, kernels 5.833 ms +ok: chip sum n = 67108864 inputs 2: OK, got 7fffffff want 7fc0d301, 6 launches, kernels 6.533 ms +ok: chip max n = 67108864 inputs 2: OK, got 7f800000 want 7f800000, 6 launches, kernels 6.504 ms +ok: chip min n = 67108864 inputs 2: OK, got ff800000 want ff800000, 6 launches, kernels 6.442 ms +ok: chip prefix n = 67108864 inputs 2: OK, 0 wrong (first at 0), 11 launches, kernels 10.330 ms +ok: chip sum n = 134217728 inputs 2: OK, got 7fffffff want 7fc0a0da, 6 launches, kernels 12.133 ms +ok: chip max n = 134217728 inputs 2: OK, got 7f800000 want 7f800000, 6 launches, kernels 12.534 ms +ok: chip min n = 134217728 inputs 2: OK, got ff800000 want ff800000, 6 launches, kernels 12.128 ms +ok: chip prefix n = 134217728 inputs 2: OK, 0 wrong (first at 0), 11 launches, kernels 19.979 ms +ok: chip sum n = 268435456 inputs 2: OK, got 7fffffff want 7fc03c8d, 6 launches, kernels 23.837 ms +ok: chip max n = 268435456 inputs 2: OK, got 7f800000 want 7f800000, 6 launches, kernels 24.345 ms +ok: chip min n = 268435456 inputs 2: OK, got ff800000 want ff800000, 6 launches, kernels 24.327 ms +ok: chip prefix n = 268435456 inputs 2: OK, 0 wrong (first at 0), 11 launches, kernels 38.488 ms +2^k - 1, 2^k, 2^k + 1 up to 2^28: PASS +64 random lengths: PASS +C3 scan chip: PASS (8665 checks) +EXIT_CODE=0 + close.json + open.json +Sat Oct 24 11:26:56 PM UTC 2026 diff --git a/evidence/C3-SCAN/README.md b/evidence/C3-SCAN/README.md new file mode 100644 index 000000000..78bc955bf --- /dev/null +++ b/evidence/C3-SCAN/README.md @@ -0,0 +1,15 @@ +# C3 receipt, part 1: sums, maximum, minimum and running totals of any length + +Row C3 of `docs/OMEGA.md` asks for reductions and prefix sums (running totals) over every length from 1 to 2^28, +bit-exact against a host reference whose order of additions is frozen. The kernels come from Omega's own code +generator (`src/omega_gpu_scan.c`), with no CUDA. The order is written down in `src/omega_gpu_scan.h`; the reduction +order is the E1 contract (`docs/numeric/E1_REDUCTION_CONTRACT.md`). + +| Log | What it checks | Result | +|---|---|---| +| 01-host-only | bad calls refused; all five kernels (and each planted fault) go through our code generator and encoder; the host reference gives exact answers on integer inputs and equals the E1 reduction reference bit for bit on mixed, signed-zero, NaN and infinite inputs; the frozen tree differs from a left-to-right sum | PASS, 133 checks | +| 02-sim | the real kernels in the warp simulator, both scheduling orders, every length 1 to 70 and the tile, block and grid-stride edges up to 270,000; three planted faults (a skipped tree step, a skipped scan step, a carry from the wrong tile) each caught | PASS, 139 checks | +| 03-chip-20261022-a7d6463b | every n from 1 to 2048, 2^k - 1, 2^k, 2^k + 1 up to 2^28, 64 random lengths, the three faults caught on the GB10 | PASS (8,665 checks), run 2026-10-22 07:03Z on `c3/gemm` a7d6463b (an older head, before this branch was rebased onto main 0d72560a); the kernel generator, its order contract and the test (`src/omega_gpu_scan.c`, `src/omega_gpu_scan.h`, `tests/gpu_scan_test.c`) are byte-identical between that head and this tip; `src/omega_numeric.c` and `src/omega_numeric_reduce.c` differ only by the licence header main added; `tests/bw_warp_sim.h` gained main's warp visit-order knob (simulator only, no chip code); binary sha256 c417f887 28d2ee77...; log recovered unpushed from the dead worker's worktree `omega-c5`-era sibling `omega-c3-scan` (durable copy `~/handoffs/evidence-L386-chip-20261022/`). Re-run on the train tip: row 04. | +| 04-chip-20261024-f16b56a58 | the same chip battery (every n to 2048, 2^k - 1 / 2^k / 2^k + 1 to 2^28, 64 random lengths, three faults caught) on the GB10 | PASS (8,665 checks), 2026-10-24 23:26Z on the L386 train tip f16b56a58 (c3/gemm over this branch over main 0d72560a), binary sha256 3400c91e 5d91d1a1... (byte-identical to this branch's own build), 39 s wall, spark-window 20261024T232617Z-b940cf (gb10 shared, value check), chip shared with the live 35B server on 18091 and two other /dev/nvidia0 holders. | + +Command: `make test-gpu-scan` (host and simulator; `PHYSICS_DIR` must point at the physics checkout pinned in `physics.lock`). The chip run is `build/gpu_scan_test` with no flag, under the GB10 lock. 01 and 02 logs: 2026-10-24 23:10Z on this tip (c5cf3495b, binary sha256 3400c91e 5d91d1a1...), host 133 checks, simulator 139 checks. diff --git a/evidence/C4-STREAMS/01-host-only.log b/evidence/C4-STREAMS/01-host-only.log new file mode 100644 index 000000000..b4ab2c152 --- /dev/null +++ b/evidence/C4-STREAMS/01-host-only.log @@ -0,0 +1,6 @@ +ok: codegen + encode: spin kernel (512 bytes, 12 registers) +ok: codegen + encode: spin kernel mutant 1 (512 bytes, 12 registers) +ok: codegen + encode: copy kernel (512 bytes, 12 registers) +ok: codegen + encode: copy kernel mutant 1 (512 bytes, 12 registers) +ok: wait_for refuses missing lists +C4 streams host: PASS (5 checks) diff --git a/evidence/C4-STREAMS/02-sim.log b/evidence/C4-STREAMS/02-sim.log new file mode 100644 index 000000000..bdb778d20 --- /dev/null +++ b/evidence/C4-STREAMS/02-sim.log @@ -0,0 +1,10 @@ +ok: codegen + encode: spin kernel (512 bytes, 12 registers) +ok: codegen + encode: spin kernel mutant 1 (512 bytes, 12 registers) +ok: codegen + encode: copy kernel (512 bytes, 12 registers) +ok: codegen + encode: copy kernel mutant 1 (512 bytes, 12 registers) +ok: wait_for refuses missing lists +ok: simulator order 0: spin + copy exact on all 3072 elements (0, 0 wrong) +ok: simulator order 1: spin + copy exact on all 3072 elements (0, 0 wrong) +ok: simulator red check order 0: mutant 1 caught (3072, 3072 wrong) +ok: simulator red check order 1: mutant 1 caught (3072, 3072 wrong) +C4 streams sim: PASS (9 checks) diff --git a/evidence/C4-STREAMS/03-chip-values-20261022-f792cd1d.log b/evidence/C4-STREAMS/03-chip-values-20261022-f792cd1d.log new file mode 100644 index 000000000..2ad94e09e --- /dev/null +++ b/evidence/C4-STREAMS/03-chip-values-20261022-f792cd1d.log @@ -0,0 +1,18 @@ +Thu Oct 22 07:06:34 UTC 2026 +f792cd1d35b0e9c191647518c3be651a8d86dc21 +b97749a9dc249d734a268279e0b84185b4bba28a0b22f44136fbb3b13b27007b build/gpu_streams_test +COMMAND: spark-window run timeout 180 stdbuf -oL -eL build/gpu_streams_test --values-only +ok: the second queue opens (AIEN_OMEGA_GPU_CHANNELS = 2) +calibration: 2^16 turns took 7.702 ms; using 510541 turns +C4 overlap: NOT_RUN (values-only; timing needs an exclusive window) +ok: event refusals: a list with a wait is refused alone, and cannot wait on a second list + event (wait, default barrier): X 0 wrong, Y 0 wrong of 3072, pair 56.227 ms +ok: C4 event: B's copy waited for A's spin on the other queue; every Y right (0 wrong) + event (NO wait, default barrier): X 0 wrong, Y 0 wrong of 3072, pair 17.456 ms + event (NO wait, first_barrier_none): X 0 wrong, Y 0 wrong of 3072, pair 13.879 ms +FAIL: negative control: without the wait B ran early and Y is wrong (default barrier 0 wrong, first_barrier_none 0 wrong) +ok: event refusals: a list with a wait is refused alone, and cannot wait on a second list + event (wait, first_barrier_none): X 0 wrong, Y 0 wrong of 3072, pair 17.496 ms +ok: C4 event with first_barrier_none: every Y right (0 wrong) +C4 streams values: FAIL (1 of 6) +EXIT_CODE=1 diff --git a/evidence/C4-STREAMS/04-chip-values-20261025-048e5f5.log b/evidence/C4-STREAMS/04-chip-values-20261025-048e5f5.log new file mode 100644 index 000000000..2df53f7d9 --- /dev/null +++ b/evidence/C4-STREAMS/04-chip-values-20261025-048e5f5.log @@ -0,0 +1,22 @@ +# C4 streams on the pinned driver, 2026-10-25T00:35Z +# omega c5/isolation 02db88d33 (physics.lock = 048e5f5e88, the merged extra-channel subcontext fix), PHYSICS_DIR=~/workspace/l386-physics-pr checked out at that commit, pin check ENFORCED (no PHYSICS_LOCK_CHECK=0). +# Binary: build/pinned-check/gpu_streams_test, built by make from this tree. +# command: ./build/pinned-check/gpu_streams_test (under /tmp/aien-gb10.lock) +ok: the second queue opens (AIEN_OMEGA_GPU_CHANNELS = 2) +calibration: 2^16 turns took 1.691 ms; using 2325554 turns +overlap (default barrier): solo A 53.774 ms, solo B 53.811 ms, pair 53.771 ms (medians of 5, values right): pair / (A + B) = 0.500 +overlap (first_barrier_none): solo A 53.762 ms, solo B 53.793 ms, pair 53.768 ms (medians of 5, values right): pair / (A + B) = 0.500 +serial control: solo 53.793 ms, both in one list on one queue 107.534 ms: ratio 1.000 +ok: C4 overlap: two queues of the same work finish in under 0.75 of the solo sum (default 0.500, first_barrier_none 0.500) +ok: red check: the same two spins in order on one queue do NOT pass the 0.75 bar (ratio 1.000) +ok: event refusals: a list with a wait is refused alone, and cannot wait on a second list + event (wait, default barrier): X 0 wrong, Y 0 wrong of 3072, pair 53.858 ms +ok: C4 event: B's copy waited for A's spin on the other queue; every Y right (0 wrong) + event (NO wait, default barrier): X 0 wrong, Y 3072 wrong of 3072, pair 53.869 ms +ok: negative control: without the wait B ran early and Y is wrong (default barrier 3072 wrong, first_barrier_none 3072 wrong) +ok: event refusals: a list with a wait is refused alone, and cannot wait on a second list + event (wait, first_barrier_none): X 0 wrong, Y 0 wrong of 3072, pair 53.864 ms +ok: C4 event with first_barrier_none: every Y right (0 wrong) +C4 streams chip: PASS (8 checks) + +# exit 0 diff --git a/evidence/C4-STREAMS/README.md b/evidence/C4-STREAMS/README.md new file mode 100644 index 000000000..9d1a69136 --- /dev/null +++ b/evidence/C4-STREAMS/README.md @@ -0,0 +1,33 @@ +# C4: streams and events on the GB10 (docs/OMEGA.md row C4) + +Row C4: two independent queues of the same work finish in under 0.75 of the sum of their solo times; an event wait +orders two dependent jobs, checked by data, on the chip. + +What this branch adds: +- L136's second GPFIFO queue (physics feat/gpu-channels 7476de71, rebased onto physics main as fb2ac4c = physics PR #79, the commit physics.lock now pins; omega 449be575 + 0cf570dd): `omega_gpu_session_extra_queue` + and `omega_gpu_cmdlist_submit_pair` (list A on queue 0, list B on queue 1, both submitted before either is waited). +- The event: `omega_gpu_cmdlist_wait_for(cl, other, i)`. The next launch added to `cl` starts only after launch `i` of + `other` has released its semaphore: a host semaphore ACQUIRE (the chip-proven omega-mv#580 ORDER_SEM words) before the + launch's barrier, so its cache invalidate comes after the wait. +- `first_barrier_none`: no WAIT_FOR_IDLE before the first launch of a submission (a WAIT_FOR_IDLE may also wait for the + other queue's grids; the test measures both). +- `tests/gpu_streams_test.c`: half-chip spin kernel (24 CTAs x 128 threads, FFMA chain, exact value) and copy kernel, + both from Omega's IR and our own sm_121 encoder. + +| log | what | result | +| --- | --- | --- | +| 01-host-only.log | codegen + encode of both kernels and their mutants; wait_for refusals | PASS (5 checks), 2026-10-24T23:29Z on the train tip | +| 02-sim.log | warp simulator: exact values in both scheduling orders, mutants caught | PASS (9 checks), 2026-10-24T23:29Z on the train tip | +| 03-chip-values-20261022-f792cd1d.log | chip, values only, 2026-10-22 07:06Z on `c5/isolation` f792cd1d (older head; run by the dead worker, log recovered unpushed, durable copy `~/handoffs/evidence-L386-chip-20261022/`): second queue opens; event refusals right; with the wait every Y right (0 wrong of 3072) in both barrier modes; but the NEGATIVE CONTROL IS NOT RED: without the wait Y was also right (0 wrong, both barrier modes), so the run reports `C4 streams values: FAIL (1 of 6)`. Until the control goes red the event proof is not a proof: the two channels may not have run concurrently (Cortex 27f2ae96: two channels of one group ran two decode streams in 0.9990x serial time; whether GB10 time-slices channels of one group is UNKNOWN). Overlap NOT_RUN (values-only). | FAIL (control not red) | +| 04-chip-values-20261025-048e5f5.log | the same values run after the driver cause was found and fixed: each extra channel now allocates its own asynchronous subcontext (physics 048e5f5, physics PR #80), which is what row 03's not-red control predicted. With the wait every Y right (0 wrong of 3072) in both barrier modes AND without the wait 3072 of 3072 wrong, so the control is red at last and the event proof holds | PASS (8 checks), 2026-10-25T00:35Z on `c5/isolation` 02db88d33 with the pin enforced | +| (chip, pending slot) | per-queue timestamps across 3 runs without the wait, then overlap ratio solo vs pair (both barrier modes), serial red check, event + no-wait control, on the train tip | NOT RUN (needs an exclusive window; the C4 overlap ratio is still unmeasured) | + +Chip command (GB10 lock; timings need an exclusive window): +`build/gpu_streams_test` (sets AIEN_OMEGA_GPU_CHANNELS=2 itself). PASS needs: pair / (solo A + solo B) < 0.75, the +same two spins in one list on one queue >= 0.75 (red check), every Y right with the wait, and at least one Y wrong +without it (negative control). + +Update 2026-10-22 (after an independent review): the C4 code continues on branch c5/isolation, which contains this branch. +There a launch that waits always gets the full WAIT_FOR_IDLE + invalidate after the wait, a list with waits is refused by +plain submit and runs only in submit_pair with the list it waits on, and the chip test checks both refusals. The chip +receipt for C4 will be taken on c5/isolation; merge that branch, not this one alone. diff --git a/evidence/C5-ISOLATION/01-host-only.log b/evidence/C5-ISOLATION/01-host-only.log new file mode 100644 index 000000000..dd28ea0cc --- /dev/null +++ b/evidence/C5-ISOLATION/01-host-only.log @@ -0,0 +1,6 @@ +[749500] ok: codegen + encode: work kernel (512 bytes) +[749500] ok: codegen + encode: work kernel mutant 1 (512 bytes) +[749500] ok: codegen + encode: never-ending kernel (512 bytes) +[749500] ok: simulator: work kernel exact on all 4096 elements +[749500] ok: simulator red check: work mutant caught (4096 wrong) +C5 isolation host: PASS (5 checks) diff --git a/evidence/C5-ISOLATION/02-session-platform.log b/evidence/C5-ISOLATION/02-session-platform.log new file mode 100644 index 000000000..ae5f9dda5 --- /dev/null +++ b/evidence/C5-ISOLATION/02-session-platform.log @@ -0,0 +1,19 @@ +$ build/test_omega_gpu_session_platform (fake platform, 2026-10-24T23:28Z, train tip over main 0d72560a, physics fb2ac4c52) +PASS INSTALL_REFUSALS_ABI_1_1 +PASS FREESTANDING_NO_DEFAULT_PLATFORM +PASS OPEN_LAUNCH_CLOSE_TYPED_UNCACHED_POLLING +PASS OPEN_FAILURE_KEEPS_DRIVER_TEXT +PASS CANCEL_BEFORE_SUBMIT_NOT_LATCHED +PASS CANCEL_AFTER_SUBMIT_LATCHES_AND_PARKS +PASS TIMEOUT_PARKS_NEVER_RELEASES +PASS TIMEOUT_LATCH_REFUSES_CLOSE_REOPEN_INSTALL +PASS TIMEOUT_RECOVER_SAME_PROCESS +PASS RECOVER_TEARDOWN_FAULT_STAYS_LATCHED +PASS RECOVER_MODULE_LATCH +PASS STALE_HANDLE_REFUSED_AFTER_CLOSE_REOPEN +PASS SERVING_RESERVATION_REFUSES_WITHOUT_ALLOC +PASS MATMUL_CODE_BUFFER_ENCODED_IN_PLACE +PASS WAIT_REFUSES_WITHOUT_CLOCK +PASS FMT_BOUNDED_MATCHES_SNPRINTF +test_omega_gpu_session_platform: 16 passed, 0 failed +EXIT_CODE=0 diff --git a/evidence/C5-ISOLATION/03-chip-values-20261022-f792cd1d.log b/evidence/C5-ISOLATION/03-chip-values-20261022-f792cd1d.log new file mode 100644 index 000000000..683e0fc1c --- /dev/null +++ b/evidence/C5-ISOLATION/03-chip-values-20261022-f792cd1d.log @@ -0,0 +1,4 @@ +Thu Oct 22 07:06:34 UTC 2026 +f792cd1d35b0e9c191647518c3be651a8d86dc21 +042c56ce2ffa1cec5b90fd15ef984b20ed964269765431f3f823b158b5edb99c build/gpu_isolation_test +COMMAND: spark-window run timeout 180 stdbuf -oL -eL build/gpu_isolation_test --values-only diff --git a/evidence/C5-ISOLATION/03-session-mutants.log b/evidence/C5-ISOLATION/03-session-mutants.log new file mode 100644 index 000000000..521eb3624 --- /dev/null +++ b/evidence/C5-ISOLATION/03-session-mutants.log @@ -0,0 +1,14 @@ +$ make test-gpu-session-mutants (2026-10-24T23:28Z) +freestanding GPU link (14 files): only memcpy memset strcmp strlen undefined +mutant release-when-latched killed: 2 case(s) failed +mutant ignore-cancel killed: 1 case(s) failed +mutant no-latch-on-timeout killed: 4 case(s) failed +mutant stale-not-counted killed: 1 case(s) failed +mutant marker-not-polled killed: 7 case(s) failed +mutant close-while-latched killed: 3 case(s) failed +mutant recover-keeps-latch killed: 1 case(s) failed +mutant recover-without-close killed: 3 case(s) failed +mutant recover-when-not-latched killed: 1 case(s) failed +mutant recover-ignores-teardown-fault killed: 1 case(s) failed +mutant recover-ignores-module-latch killed: 1 case(s) failed +test-gpu-session-mutants: 11 of 11 mutants killed diff --git a/evidence/C5-ISOLATION/04-never-ending-kernel.sass.txt b/evidence/C5-ISOLATION/04-never-ending-kernel.sass.txt new file mode 100644 index 000000000..4ad0ba516 --- /dev/null +++ b/evidence/C5-ISOLATION/04-never-ending-kernel.sass.txt @@ -0,0 +1,7 @@ +$ build/gpu_isolation_test --dump-hang /tmp/c5hang.bin && build/sm121dis /tmp/c5hang.bin (omega c6/disasm 19eebe0e tool) + /*0000*/ MOV R2, 0x0 ; + /*0010*/ MOV R3, 0x1 ; + /*0020*/ IADD3 R2, PT, PT, R2, R3, RZ ; + /*0030*/ BRA 0x20 ; + /*0040*/ EXIT ; + /*0050*/ BRA 0x50; diff --git a/evidence/C5-ISOLATION/05-platform-linux.log b/evidence/C5-ISOLATION/05-platform-linux.log new file mode 100644 index 000000000..e23964855 --- /dev/null +++ b/evidence/C5-ISOLATION/05-platform-linux.log @@ -0,0 +1,13 @@ +$ build/test_omega_gpu_platform_linux (simulated driver, 2026-10-24T23:28Z, train tip over main 0d72560a) +PASS LINUX_REF_CAPS_NO_MMIO_NO_IRQ +PASS HOSTED_DEFAULT_IS_LINUX_REFERENCE +PASS SAME_DRIVER_CALLS_AND_ORDER_AS_BEFORE +PASS REFERENCE_REFUSALS_CACHED_POLLED_RING_STALE +PASS OPEN_FAILURE_KEEPS_DRIVER_TEXT +PASS MARKER_NEVER_LATCHES_AND_PARKS +PASS L2_INVAL_PREFIX_ONCE_AFTER_CACHED_HOST_WRITE + DEBUG submits=4 fake_submit_calls=4 max_launches=4096 l2_invals=1 + expect failed at line 251: st.submits == 2 && fk.submit_calls - submits0 == 2 +FAIL CMDLIST_NEAR_CAP_SUBMITS_WITH_L2_INVAL_PENDING +test_omega_gpu_platform_linux (reference only, simulated driver): 7 passed, 1 failed +EXIT_CODE=1 diff --git a/evidence/C5-ISOLATION/README.md b/evidence/C5-ISOLATION/README.md new file mode 100644 index 000000000..9f658b911 --- /dev/null +++ b/evidence/C5-ISOLATION/README.md @@ -0,0 +1,48 @@ +# C5: two processes, and a never-ending kernel (docs/OMEGA.md row C5) + +Row C5: two processes on one GPU are both correct, or the second gets a named refusal and the first is unharmed. A +never-ending kernel times out, then a correct launch succeeds in the same process. + +What this branch adds (on c4/streams): +- `omega_gpu_session_recover()`: the way back from a latch without restarting the process. Runs the on-close hooks + (still latched, so nothing is released while the old grid may run), closes the device (Linux reference: the RM client + close destroys this process's channels and the grid on them, then frees and unmaps every buffer), and only then lifts + the latch and clears the parked list. The next open is a new device. `omega_gpu_session_recoveries()` counts them; + a command list latched before the latest recovery no longer blocks. +- The Linux platform close now reports a driver teardown fault (it used to drop it): recover then stays latched for good + (the old grid may still run; the process must exit) instead of claiming success. +- Fake-platform cases TIMEOUT_RECOVER_SAME_PROCESS, RECOVER_TEARDOWN_FAULT_STAYS_LATCHED and four new session mutants + (recover keeps the latch, recover + without the close, recover when not latched, recover ignores a teardown fault): each one is caught. +- `tests/gpu_isolation_test.c`: the chip test (hang + recover; two processes; a hang beside a working process). + +Driver docs: the vendored NVIDIA headers document NVA06C_CTRL_CMD_PREEMPT ("This command preempts a channel group") but +are silent on freeing a channel group whose grid never ends (RM source not vendored). The chip run is the proof. + + +Review fixes (independent Opus review, 2026-10-22): +- The never-ending launch now passes one argument word (a launch with none is refused before submit, so the hang part + would never have hung). +- The two processes are started together after both are set up and each runs at least 3 s; their time spans must + overlap by at least half of that. Beside a hang, process 1 starts at process 2's "hang launched" signal and keeps + going until process 2 is done; it must have launches inside that stretch. +- "Grid destroyed" is not claimed from timings: it rests on the driver's clean close (a teardown fault keeps the + session latched, case RECOVER_TEARDOWN_FAULT_STAYS_LATCHED). +- A command list made before a recovery is refused (its buffers are gone); the chip test checks it. +- A command-list-only latch (check launch completed) is recoverable: omega_gpu_session_note_module_latch, case + RECOVER_MODULE_LATCH, mutant recover-ignores-module-latch. Session tests 16/16, mutants 11/11. +- C4 parts fixed here too (so merge c5/isolation, which contains c4/streams): a launch that waits always gets the full + WAIT_FOR_IDLE + invalidate; a list with waits runs only in submit_pair with the list it waits on. + +| file | what | result | +| --- | --- | --- | +| 01-host-only.log | codegen + encode of the work, mutant and never-ending kernels; simulator exact, mutant caught | PASS (5 checks), 2026-10-24T23:29Z on the train tip | +| 02-session-platform.log | the session on a fake GPU, both recover cases included | PASS 16/16, 2026-10-24T23:29Z on the train tip | +| 03-session-mutants.log | 11 broken copies of the session, each caught | 11/11 killed, 2026-10-24T23:29Z on the train tip | +| 05-platform-linux.log | the Linux platform on a simulated driver | 7/8 on the train tip (2026-10-24T23:29Z): the one failure, CMDLIST_NEAR_CAP_SUBMITS_WITH_L2_INVAL_PENDING, is main's own regression from omega-mv #712 (OMEGA_GPU_CMDLIST_MAX_LAUNCHES 2048 -> 4096; the test hard-codes 2 submissions, 4096 launches take 4). Plain main 9a8a0fe2 fails it the same way; the old head 5cb252994 passed 8/8. Fixer lane L823 (ledger) fixes the test on main. Nothing in this layer changes that case. | +| 04-never-ending-kernel.sass.txt | our disassembler: `IADD3; BRA 0x20` (branch back for ever) | as designed | +| 03-chip-values-20261022-f792cd1d.log | chip, values only, 2026-10-22 07:06Z on `c5/isolation` f792cd1d: header only (date, head, binary sha256, command). The worker died at 07:06Z before the test printed a line. NO RESULT. | NO RESULT | +| (chip, pending slot) | hang + recover + right values; two processes right; hang beside a working process, on the train tip (the never-ending-kernel run touches the live server's GPU: 1-second-spin precursor first, then only with Drake's or the server owner's OK) | NOT RUN | + +Chip command (GB10 lock): `build/gpu_isolation_test`. Safety note for the slot: the never-ending kernel is one warp; +its teardown is the RM channel free, which must preempt it; this is the first chip run of that path. diff --git a/evidence/C6-DISASM/01-test-sm121dis-20261024.log b/evidence/C6-DISASM/01-test-sm121dis-20261024.log new file mode 100644 index 000000000..bc85ccf79 --- /dev/null +++ b/evidence/C6-DISASM/01-test-sm121dis-20261024.log @@ -0,0 +1,379 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:39:54Z +# command: make -k -j8 PHYSICS_DIR=~/workspace/l386-physics-pr sm121dis-corpus-bins; sh tools/sm121dis/corpus.sh build build/sm121dis-kernels; sh tools/sm121dis/check.sh build/sm121dis build/sm121dis-kernels build/sm121dis-work (then the same with build/sm121dis_red) +build/gpu_matmul_api_test --host-only: exit 0, 53 kernels so far +build/gpu_elementwise_test --host-only: exit 0, 63 kernels so far +build/gpu_reconv_test --host-only: exit 0, 86 kernels so far +build/gpu_attention_test --host-only: exit 0, 110 kernels so far +build/gpu_moe_window_test --host-only: exit 0, 110 kernels so far +build/gpu_fp8_api_test --host-only: exit 0, 114 kernels so far +build/gpu_decode_attn_test --host-only: exit 0, 114 kernels so far +build/gpu_router_test --host-only: exit 0, 114 kernels so far +build/gpu_bf16_gemv_test --host-only: exit 0, 114 kernels so far +build/gpu_tern_test --host-only: exit 0, 114 kernels so far +build/gpu_fp8gemm_test --host-only: exit 0, 114 kernels so far +build/gpu_tc_probe_test --host-only: exit 0, 114 kernels so far +build/gpu_tc_peak_test --host-only: exit 0, 114 kernels so far +build/gpu_pf_mem_test --host-only: exit 0, 114 kernels so far +build/gpu_qmma_probe_test --host-only: exit 0, 116 kernels so far +build/gpu_cmdlist_test --host-only: exit 127, 116 kernels so far +build/gpu_decode_graph_test --host-only: exit 0, 116 kernels so far +build/gpu_attention_test --hd 128 --host-only: exit 0, 128 kernels so far +build/gpu_tcgemm_test --host-only: exit 0, 130 kernels so far +build/gpu_tcgemm_test --sim: exit 0, 130 kernels so far +build/gpu_prefill_attn_test --host-only: exit 0, 172 kernels so far +build/gpu_prefill_attn_test --sim: exit 0, 172 kernels so far +build/gpu_pfgemm_test --host-only: exit 0, 172 kernels so far +build/gpu_pfgemm_test --sim: exit 0, 172 kernels so far +build/gpu_qgemm_test --host-only: exit 0, 172 kernels so far +build/gpu_qgemm_test --sim: exit 0, 172 kernels so far +build/gpu_pfhost_test --host-only: exit 0, 172 kernels so far +build/gpu_pfhost_test --sim: exit 0, 172 kernels so far +build/gpu_cmdlist_test --host-only: exit 127, 172 kernels so far +build/gpu_cmdlist_test --sim: exit 127, 172 kernels so far +build/gpu_gpr_boundary_test: exit 127, 172 kernels so far +build/test_omega_divsqrt_gb10_cpu --dump /home/drakestapleton/workspace/l386-c6/build/sm121dis-kernels/numeric: exit 0, 173 kernels so far +build/test_omega_ldst_gb10_cpu --dump /home/drakestapleton/workspace/l386-c6/build/sm121dis-kernels/numeric: exit 0, 173 kernels so far +corpus: 331 kernels in /home/drakestapleton/workspace/l386-c6/build/sm121dis-kernels +# --- check.sh build/sm121dis: +oracle: release 13.0, V13.0.85 +[PASS] 00733af6d7091ab3: 168 words +[PASS] 0095f8fb408efad9: 184 words +[PASS] 0166a31f74b9d75f: 128 words +[PASS] 01b6edddda38f891: 72 words +[PASS] 03e029ac69774b9f: 72 words +[PASS] 048fe6deffe06648: 784 words +[PASS] 0616d5fbe7dee323: 56 words +[PASS] 0675cdb98d176181: 72 words +[PASS] 078c48453d6e5bbf: 512 words +[PASS] 0796d8bb451f1b2e: 72 words +[PASS] 07d9bc84c576550e: 48 words +[PASS] 08d4bfdb07ad4378: 32 words +[PASS] 09066bb17070ac3e: 840 words +[PASS] 0a0231842ac86c54: 72 words +[PASS] 0a1bdba95fd851d7: 624 words +[PASS] 0a61c9f1c52fab0e: 72 words +[PASS] 0a9fb7ff033c200c: 168 words +[PASS] 0c2c583da93da3fb: 56 words +[PASS] 0d5530291875bb5a: 856 words +[PASS] 11f5207f34a10b3c: 192 words +[PASS] 1269ff0807ea5a65: 72 words +[PASS] 13f152af843ca9cd: 512 words +[PASS] 1a1f34c53ab6d575: 80 words +[PASS] 1ab5f61815999863: 72 words +[PASS] 1c8868c5267660e9: 208 words +[PASS] 1cf6c41ee43b609a: 456 words +[PASS] 1dd156ef6c9ba200: 800 words +[PASS] 21e1c1b9752882ca: 168 words +[PASS] 2309771849649424: 208 words +[PASS] 2594d946283ceacc: 624 words +[PASS] 25dc586ec7ae0363: 776 words +[PASS] 28a1a0f232a4e4c4: 904 words +[PASS] 2af2f45df935262c: 72 words +[PASS] 329eb0433f9fe756: 64 words +[PASS] 33047e4cf0f5a637: 112 words +[PASS] 341358aedcb64957: 712 words +[PASS] 35554e39b80fe586: 40 words +[PASS] 359c5fc37631c204: 208 words +[PASS] 35dd01281aa7e112: 176 words +[PASS] 36dd0fb10af62765: 848 words +[PASS] 3a17e8add2022b2e: 208 words +[PASS] 3c6c1b9785621469: 72 words +[PASS] 3ec70ae580eb1dda: 56 words +[PASS] 3ef5b1c6bf31891a: 32 words +[PASS] 40e950b30214f350: 72 words +[PASS] 4343c7d7f8426564: 480 words +[PASS] 43d280bb67f4f86a: 72 words +[PASS] 444149ee3a861df3: 736 words +[PASS] 44605dfc84fe4e3a: 72 words +[PASS] 4a91466348e91695: 32 words +[PASS] 4b681c781cb561a9: 192 words +[PASS] 4c90b03071e057b4: 616 words +[PASS] 51017ac147bfa72a: 48 words +[PASS] 5716117a120fb074: 32 words +[PASS] 576cc4d78c7fab75: 664 words +[PASS] 5880593e8f2f91f0: 56 words +[PASS] 5e183059327a4b3f: 216 words +[PASS] 61dcaf9567a454cc: 832 words +[PASS] 61eab0c548f36364: 184 words +[PASS] 6242004ccaa18fff: 112 words +[PASS] 65f6bb76143f632e: 624 words +[PASS] 6656927ae80d3677: 216 words +[PASS] 695c1da16e98b0b9: 512 words +[PASS] 6ae84ca5a7ce9e62: 704 words +[PASS] 6c4b61dd7c6e3821: 72 words +[PASS] 6d91a2543cf32e37: 72 words +[PASS] 6f96d1312cf5e2d4: 72 words +[PASS] 70b452d3948d7285: 512 words +[PASS] 71a1445a0b9d56fb: 184 words +[PASS] 73585e6751588b89: 40 words +[PASS] 74b53ca328c9ed32: 88 words +[PASS] 756412ef629268ab: 192 words +[PASS] 77b428410432af3c: 40 words +[PASS] 7a6fa49d650c91aa: 72 words +[PASS] 7b09d5db40f4322a: 32 words +[PASS] 7b988269d5e1eaa0: 800 words +[PASS] 7ca7d53247f4a27c: 208 words +[PASS] 7e3508b9f1db1630: 616 words +[PASS] 80ae705ea1c9d6b2: 208 words +[PASS] 8124543de959153e: 32 words +[PASS] 8246a9a2f53c8820: 72 words +[PASS] 83605a62c4182ae1: 856 words +[PASS] 85e6742def9e8dd3: 504 words +[PASS] 8a89421a356ff3b4: 32 words +[PASS] 8ea03e1baf9a294d: 912 words +[PASS] 8f3c5fae4d54027f: 224 words +[PASS] 9026fb3912f7d681: 72 words +[PASS] 9035c15e45761df9: 56 words +[PASS] 916521486ee7b2ca: 40 words +[PASS] 920bdd0b84c5566f: 752 words +[PASS] 933751e18d6e5936: 912 words +[PASS] 93b0ae705ff2671c: 88 words +[PASS] 949d8abf1c6865f3: 920 words +[PASS] 95aa47327e8cd56f: 72 words +[PASS] 9623377b4542b839: 168 words +[PASS] 99179ec7a69e9987: 128 words +[PASS] 9a90d2ecb762c744: 72 words +[PASS] 9f4f41879851e0dc: 904 words +[PASS] a0c7d5432c97275e: 728 words +[PASS] a2f229363f560ade: 56 words +[PASS] a474fba68ee45423: 168 words +[PASS] a764227b3dc9b31f: 184 words +[PASS] aa78dd99ec3ec68f: 224 words +[PASS] abb30b5505f7d4e2: 88 words +[PASS] ad0e17a9d92abd99: 56 words +[PASS] ad1d06e587e40b3f: 32 words +[PASS] ae6c21646149f7e5: 216 words +[PASS] af714031dc417c22: 72 words +[PASS] af9bf924eecc0bd4: 72 words +[PASS] b06860ac8328d5ee: 624 words +[PASS] b092b870d00ff17c: 856 words +[PASS] b0e009cf40c299f3: 624 words +[PASS] b35cefefe59c48c5: 512 words +[PASS] b3d40b99628c4bb9: 216 words +[PASS] b4e3acb923aea99a: 72 words +[PASS] b6af468e224fe471: 128 words +[PASS] b73c0ab07c507c7f: 48 words +[PASS] b76c37f015469c89: 784 words +[PASS] b778dc5ae9c3d358: 72 words +[PASS] b8843d8615e24e05: 72 words +[PASS] b8f6b8409999d9e8: 48 words +[PASS] b9c869697a47f5d6: 920 words +[PASS] bac2bcf6382f30a8: 208 words +[PASS] bbcdb6f50445f7df: 872 words +[PASS] c045fa6d0a757e42: 72 words +[PASS] c4f0b10ccb2e166d: 888 words +[PASS] c72c4e8d4340d98e: 848 words +[PASS] c81e27dc93f5dd6e: 752 words +[PASS] ca821475df8a5088: 712 words +[PASS] cc0430907bc5320e: 184 words +[PASS] cc3f7450e546808c: 40 words +[PASS] cc8f72be1a149dc3: 224 words +[PASS] cdbcb9dedb91c1f6: 88 words +[PASS] ce796fba113869f2: 216 words +[PASS] d05a92f581e14de2: 856 words +[PASS] d1300ea4e52033d8: 624 words +[PASS] d137f039f55e4c6e: 72 words +[PASS] d1b72ec0de84b094: 208 words +[PASS] d392c1a4ae9e48fa: 32 words +[PASS] d4b9a5d905777f57: 504 words +[PASS] d50e90bf5967aa94: 176 words +[PASS] d6a345446d9ec8e7: 112 words +[PASS] d819fcc65676ff36: 128 words +[PASS] dad4d31c31d5358b: 32 words +[PASS] dad9736acdc838f9: 872 words +[PASS] dc3525596d00d5f8: 88 words +[PASS] e0510715c2477973: 512 words +[PASS] e096269dc9ec4b92: 72 words +[PASS] e0b6875f06943750: 88 words +[PASS] e0c44b4924619876: 184 words +[PASS] e5100d76a2216f99: 32 words +[PASS] e5146093acf406ac: 40 words +[PASS] e5e6293d660bf14c: 704 words +[PASS] e5f2a6b1ccc46616: 72 words +[PASS] e7385390aa2fd0c0: 232 words +[PASS] e8a1d9a781a5fa37: 192 words +[PASS] e8f3b705937e66ec: 88 words +[PASS] e996d956312a248e: 728 words +[PASS] eaba9344aabde08f: 888 words +[PASS] f05496e872080581: 32 words +[PASS] f100a7132e1141a1: 664 words +[PASS] f16e6c2951f2a0ed: 48 words +[PASS] f1d6c76892d19be0: 40 words +[PASS] f290ff213fc5cbb6: 736 words +[PASS] f58b4d2ded9ffb34: 72 words +[PASS] f989e654f62d3927: 72 words +[PASS] fa411cffb3b18eb3: 224 words +[PASS] fb77efcb313d4a41: 840 words +[PASS] fbd1c66e3ff8bdbd: 72 words +[PASS] fd75a993e8bf1454: 776 words +[PASS] fe3d5eeafea8dfe2: 72 words +[PASS] ff08f272777bc4fd: 72 words +[PASS] num_cos: 120 words +[PASS] num_div: 264 words +[PASS] num_erf: 360 words +[PASS] num_exp2: 72 words +[PASS] num_gelu: 424 words +[PASS] num_k000: 24 words +[PASS] num_k001: 24 words +[PASS] num_k002: 24 words +[PASS] num_k003: 24 words +[PASS] num_k004: 24 words +[PASS] num_k005: 24 words +[PASS] num_k006: 24 words +[PASS] num_k007: 24 words +[PASS] num_k008: 24 words +[PASS] num_k009: 24 words +[PASS] num_k010: 24 words +[PASS] num_k011: 24 words +[PASS] num_k012: 24 words +[PASS] num_k013: 24 words +[PASS] num_k014: 24 words +[PASS] num_k015: 24 words +[PASS] num_k016: 24 words +[PASS] num_k017: 24 words +[PASS] num_k018: 24 words +[PASS] num_k019: 24 words +[PASS] num_k020: 24 words +[PASS] num_k021: 24 words +[PASS] num_k022: 24 words +[PASS] num_k023: 24 words +[PASS] num_k024: 24 words +[PASS] num_k025: 24 words +[PASS] num_k026: 24 words +[PASS] num_k027: 24 words +[PASS] num_k028: 24 words +[PASS] num_k029: 24 words +[PASS] num_k030: 24 words +[PASS] num_k031: 24 words +[PASS] num_k032: 24 words +[PASS] num_k033: 24 words +[PASS] num_k034: 24 words +[PASS] num_k035: 24 words +[PASS] num_k036: 24 words +[PASS] num_k037: 24 words +[PASS] num_k038: 24 words +[PASS] num_k039: 24 words +[PASS] num_k040: 24 words +[PASS] num_k041: 24 words +[PASS] num_k042: 24 words +[PASS] num_k043: 24 words +[PASS] num_k044: 24 words +[PASS] num_k045: 24 words +[PASS] num_k046: 24 words +[PASS] num_k047: 24 words +[PASS] num_k048: 24 words +[PASS] num_k049: 24 words +[PASS] num_k050: 24 words +[PASS] num_k051: 24 words +[PASS] num_k052: 24 words +[PASS] num_k053: 24 words +[PASS] num_k054: 24 words +[PASS] num_k055: 24 words +[PASS] num_k056: 24 words +[PASS] num_k057: 24 words +[PASS] num_k058: 24 words +[PASS] num_k059: 24 words +[PASS] num_k060: 24 words +[PASS] num_k061: 24 words +[PASS] num_k062: 24 words +[PASS] num_k063: 24 words +[PASS] num_k064: 24 words +[PASS] num_k065: 24 words +[PASS] num_k066: 24 words +[PASS] num_k067: 24 words +[PASS] num_k068: 24 words +[PASS] num_k069: 24 words +[PASS] num_k070: 24 words +[PASS] num_k071: 24 words +[PASS] num_k072: 24 words +[PASS] num_k073: 24 words +[PASS] num_k074: 24 words +[PASS] num_k075: 24 words +[PASS] num_k076: 24 words +[PASS] num_k077: 24 words +[PASS] num_k078: 24 words +[PASS] num_k079: 24 words +[PASS] num_k080: 24 words +[PASS] num_k081: 24 words +[PASS] num_k082: 24 words +[PASS] num_k083: 24 words +[PASS] num_k084: 24 words +[PASS] num_k085: 24 words +[PASS] num_k086: 24 words +[PASS] num_k087: 24 words +[PASS] num_k088: 24 words +[PASS] num_k089: 24 words +[PASS] num_k090: 24 words +[PASS] num_k091: 24 words +[PASS] num_k092: 24 words +[PASS] num_k093: 24 words +[PASS] num_k094: 24 words +[PASS] num_k095: 24 words +[PASS] num_k096: 24 words +[PASS] num_k097: 24 words +[PASS] num_k098: 24 words +[PASS] num_k099: 24 words +[PASS] num_k100: 24 words +[PASS] num_k101: 24 words +[PASS] num_k102: 24 words +[PASS] num_k103: 24 words +[PASS] num_k104: 24 words +[PASS] num_k105: 24 words +[PASS] num_k106: 24 words +[PASS] num_k107: 24 words +[PASS] num_k108: 24 words +[PASS] num_k109: 24 words +[PASS] num_k110: 24 words +[PASS] num_k111: 24 words +[PASS] num_k112: 24 words +[PASS] num_k113: 24 words +[PASS] num_k114: 24 words +[PASS] num_k115: 24 words +[PASS] num_k116: 24 words +[PASS] num_k117: 24 words +[PASS] num_k118: 24 words +[PASS] num_k119: 24 words +[PASS] num_k120: 24 words +[PASS] num_k121: 24 words +[PASS] num_k122: 24 words +[PASS] num_k123: 24 words +[PASS] num_k124: 24 words +[PASS] num_k125: 24 words +[PASS] num_k126: 24 words +[PASS] num_k127: 24 words +[PASS] num_k128: 24 words +[PASS] num_k129: 24 words +[PASS] num_k130: 24 words +[PASS] num_k131: 24 words +[PASS] num_k132: 24 words +[PASS] num_k133: 24 words +[PASS] num_k134: 24 words +[PASS] num_k135: 24 words +[PASS] num_k136: 24 words +[PASS] num_k137: 24 words +[PASS] num_k138: 24 words +[PASS] num_k139: 24 words +[PASS] num_k140: 24 words +[PASS] num_k141: 24 words +[PASS] num_k142: 24 words +[PASS] num_k143: 24 words +[PASS] num_k144: 24 words +[PASS] num_k145: 24 words +[PASS] num_k146: 24 words +[PASS] num_k147: 24 words +[PASS] num_log2: 576 words +[PASS] num_rsqrt: 344 words +[PASS] num_sigmoid: 344 words +[PASS] num_sin: 120 words +[PASS] num_sqrt: 336 words +[PASS] num_tanh: 352 words +kernels: 331, words: 59152, failed kernels: 0 +VERDICT PASS +# --- check.sh build/sm121dis_red (must fail): rc=1 +kernels: 331, words: 59152, failed kernels: 331 +VERDICT FAIL +[FAIL] 00733af6d7091ab3: 84 of 168 words differ +[FAIL] 0095f8fb408efad9: 116 of 184 words differ +[FAIL] 0166a31f74b9d75f: 60 of 128 words differ +# note: build/gpu_cmdlist_test and build/gpu_gpr_boundary_test did not build (main regressions, missing initializers under -Werror, fixer L825); corpus.sh reported them exit 127 and went on; 331 kernels collected as before +# exit 0 diff --git a/evidence/C6-DISASM/01-test-sm121dis.log b/evidence/C6-DISASM/01-test-sm121dis.log new file mode 100644 index 000000000..4bbdd0ee9 --- /dev/null +++ b/evidence/C6-DISASM/01-test-sm121dis.log @@ -0,0 +1,401 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:54:38Z +# command: quiet-build make PHYSICS_DIR=/home/drakestapleton/workspace/physics-l386 OUT_DIR=/tmp/c6/build test-sm121dis +cc -std=gnu11 -Wall -Wextra -Werror -O2 -Isrc -o /tmp/c6/build/sm121dis tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c +cc -std=gnu11 -Wall -Wextra -Werror -O2 -DSM121DIS_MUTANT=1 -Isrc -o /tmp/c6/build/sm121dis_red tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_sm121_disasm.c -o /tmp/c6/build/omega_sm121_disasm.o +ar rcs /tmp/c6/build/libomega_gpu.a /tmp/c6/build/sha256.o /tmp/c6/build/omega_canonical.o /tmp/c6/build/omega_validate.o /tmp/c6/build/omega_core.o /tmp/c6/build/omega_codec.o /tmp/c6/build/aarch64_encoder.o /tmp/c6/build/aarch64_decoder.o /tmp/c6/build/omega_realize.o /tmp/c6/build/omega_exec.o /tmp/c6/build/omega_self_host.o /tmp/c6/build/omega_verify.o /tmp/c6/build/omega_program.o /tmp/c6/build/omega_synthesis.o /tmp/c6/build/omega_library.o /tmp/c6/build/omega_discovery.o /tmp/c6/build/omega_machine.o /tmp/c6/build/omega_realize_synth.o /tmp/c6/build/omega_matvec.o /tmp/c6/build/omega_accelerator.o /tmp/c6/build/omega_accelerator_world.o /tmp/c6/build/omega_vector.o /tmp/c6/build/omega_blackwell_encoder.o /tmp/c6/build/omega_blackwell_qmd.o /tmp/c6/build/omega_blackwell_realize.o /tmp/c6/build/omega_blackwell_submit.o /tmp/c6/build/omega_blackwell_engine.o /tmp/c6/build/omega_gpu_engine.o /tmp/c6/build/omega_blackwell_matmul.o /tmp/c6/build/omega_blackwell_codegen.o /tmp/c6/build/omega_gpu_session.o /tmp/c6/build/omega_gpu_platform.o /tmp/c6/build/omega_gpu_platform_linux.o /tmp/c6/build/omega_gpu_fmt.o /tmp/c6/build/omega_gpu_matmul_api.o /tmp/c6/build/omega_gpu_elementwise_api.o /tmp/c6/build/omega_gpu_attention_api.o /tmp/c6/build/omega_gpu_serving.o /tmp/c6/build/omega_gpu_wait.o /tmp/c6/build/omega_evidence.o /tmp/c6/build/m16_native.o /tmp/c6/build/nvrm.o /tmp/c6/build/omega_gpu_moe_api.o /tmp/c6/build/omega_blackwell_codegen_moe.o /tmp/c6/build/omega_gpu_fp8_pack.o /tmp/c6/build/omega_gpu_fp8_api.o /tmp/c6/build/omega_blackwell_codegen_moe2.o /tmp/c6/build/omega_blackwell_codegen_attn.o /tmp/c6/build/omega_gpu_decode_attn_api.o /tmp/c6/build/omega_gpu_hostmath.o /tmp/c6/build/omega_blackwell_codegen_router.o /tmp/c6/build/omega_gpu_router_api.o /tmp/c6/build/omega_gpu_cmdlist.o /tmp/c6/build/omega_blackwell_codegen_dec.o /tmp/c6/build/omega_gpu_mem_cached.o /tmp/c6/build/omega_gpu_decode_graph.o /tmp/c6/build/omega_sm121_disasm.o /tmp/c6/build/omega_blackwell_codegen_bf16.o /tmp/c6/build/omega_gpu_bf16_gemv_api.o /tmp/c6/build/omega_blackwell_codegen_gemm.o /tmp/c6/build/omega_gpu_fp8gemm_api.o /tmp/c6/build/omega_blackwell_codegen_tc.o /tmp/c6/build/omega_gpu_tcgemm_api.o /tmp/c6/build/omega_blackwell_codegen_pattn.o /tmp/c6/build/omega_gpu_prefill_attn_api.o /tmp/c6/build/omega_blackwell_codegen_pf.o /tmp/c6/build/omega_gpu_prefill.o /tmp/c6/build/omega_blackwell_codegen_tc2.o /tmp/c6/build/omega_gpu_pfgemm.o /tmp/c6/build/omega_blackwell_codegen_qmma.o /tmp/c6/build/omega_blackwell_codegen_qg.o /tmp/c6/build/omega_blackwell_codegen_pfhost.o /tmp/c6/build/omega_gpu_pfhost.o /tmp/c6/build/omega_blackwell_codegen_tern.o /tmp/c6/build/omega_gpu_tern_api.o /tmp/c6/build/omega_program_ir.o /tmp/c6/build/omega_vc_bridge.o /tmp/c6/build/omega_resolve.o /tmp/c6/build/omega_receipt.o /tmp/c6/build/omega_blake3.o /tmp/c6/build/omega_vcstore.o +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -o /tmp/c6/build/gpu_matmul_api_test tests/gpu_matmul_api_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o /tmp/c6/build/gpu_elementwise_test tests/gpu_elementwise_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -Itests -o /tmp/c6/build/gpu_reconv_test tests/gpu_reconv_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_attention_test tests/gpu_attention_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -o /tmp/c6/build/gpu_moe_window_test tests/gpu_moe_window_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_fp8_api_test tests/gpu_fp8_api_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_decode_attn_test tests/gpu_decode_attn_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_router_test tests/gpu_router_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_bf16_gemv_test tests/gpu_bf16_gemv_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -march=armv8.6-a+dotprod+i8mm+sve -Itests -o /tmp/c6/build/gpu_tern_test tests/gpu_tern_test.c src/algebra/realize_common.c src/algebra/realize_binary.c src/algebra/realize_bitplane.c src/algebra/realize_sparse.c src/algebra/realize_rns.c src/algebra/realize_dense.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o /tmp/c6/build/gpu_fp8gemm_test tests/gpu_fp8gemm_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_tc_probe_test tests/gpu_tc_probe_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o /tmp/c6/build/gpu_tc_peak_test tests/gpu_tc_peak_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o /tmp/c6/build/gpu_pf_mem_test tests/gpu_pf_mem_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_qmma_probe_test tests/gpu_qmma_probe_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests -o /tmp/c6/build/gpu_cmdlist_test tests/gpu_cmdlist_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -o /tmp/c6/build/gpu_decode_graph_test tests/gpu_decode_graph_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o /tmp/c6/build/gpu_tcgemm_test tests/gpu_tcgemm_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=256 -Itests -o /tmp/c6/build/gpu_prefill_attn_test tests/gpu_prefill_attn_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=512 -Itests -o /tmp/c6/build/gpu_pfgemm_test tests/gpu_pfgemm_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=1024 -Itests -o /tmp/c6/build/gpu_qgemm_test tests/gpu_qgemm_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -DWS_MAX_THREADS=1024 -Itests -o /tmp/c6/build/gpu_pfhost_test tests/gpu_pfhost_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -o /tmp/c6/build/gpu_gpr_boundary_test tests/gpu_gpr_boundary_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +rm -rf /tmp/c6/build/sm121dis-kernels && sh tools/sm121dis/corpus.sh /tmp/c6/build /tmp/c6/build/sm121dis-kernels +/tmp/c6/build/gpu_matmul_api_test --host-only: exit 0, 53 kernels so far +/tmp/c6/build/gpu_elementwise_test --host-only: exit 0, 63 kernels so far +/tmp/c6/build/gpu_reconv_test --host-only: exit 0, 86 kernels so far +/tmp/c6/build/gpu_attention_test --host-only: exit 0, 110 kernels so far +/tmp/c6/build/gpu_moe_window_test --host-only: exit 0, 110 kernels so far +/tmp/c6/build/gpu_fp8_api_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_decode_attn_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_router_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_bf16_gemv_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_tern_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_fp8gemm_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_tc_probe_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_tc_peak_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_pf_mem_test --host-only: exit 0, 114 kernels so far +/tmp/c6/build/gpu_qmma_probe_test --host-only: exit 0, 116 kernels so far +/tmp/c6/build/gpu_cmdlist_test --host-only: exit 0, 116 kernels so far +/tmp/c6/build/gpu_decode_graph_test --host-only: exit 0, 116 kernels so far +/tmp/c6/build/gpu_attention_test --hd 128 --host-only: exit 1, 128 kernels so far +/tmp/c6/build/gpu_tcgemm_test --host-only: exit 0, 130 kernels so far +/tmp/c6/build/gpu_tcgemm_test --sim: exit 0, 130 kernels so far +/tmp/c6/build/gpu_prefill_attn_test --host-only: exit 0, 172 kernels so far +/tmp/c6/build/gpu_prefill_attn_test --sim: exit 0, 172 kernels so far +/tmp/c6/build/gpu_pfgemm_test --host-only: exit 0, 172 kernels so far +/tmp/c6/build/gpu_pfgemm_test --sim: exit 0, 172 kernels so far +/tmp/c6/build/gpu_qgemm_test --host-only: exit 0, 172 kernels so far +/tmp/c6/build/gpu_qgemm_test --sim: exit 0, 172 kernels so far +/tmp/c6/build/gpu_pfhost_test --host-only: exit 0, 172 kernels so far +/tmp/c6/build/gpu_pfhost_test --sim: exit 0, 172 kernels so far +/tmp/c6/build/gpu_cmdlist_test --host-only: exit 0, 172 kernels so far +/tmp/c6/build/gpu_cmdlist_test --sim: exit 0, 172 kernels so far +/tmp/c6/build/gpu_gpr_boundary_test: exit 0, 172 kernels so far +build/test_omega_divsqrt_gb10_cpu --dump /tmp/c6/build/sm121dis-kernels/numeric: exit 0, 173 kernels so far +build/test_omega_ldst_gb10_cpu --dump /tmp/c6/build/sm121dis-kernels/numeric: exit 0, 173 kernels so far +corpus: 331 kernels in /tmp/c6/build/sm121dis-kernels +sh tools/sm121dis/check.sh /tmp/c6/build/sm121dis /tmp/c6/build/sm121dis-kernels /tmp/c6/build/sm121dis-work +oracle: release 13.0, V13.0.85 +[PASS] 003134be24d4042f: 80 words +[PASS] 00ab8c0563fe7dd1: 184 words +[PASS] 0166a31f74b9d75f: 128 words +[PASS] 01b6edddda38f891: 72 words +[PASS] 03e029ac69774b9f: 72 words +[PASS] 040255e13deee836: 224 words +[PASS] 05086e9139bae531: 192 words +[PASS] 0675cdb98d176181: 72 words +[PASS] 070d829ddf8d7561: 88 words +[PASS] 0723b0739d0f4caf: 624 words +[PASS] 075feda1149ebe8f: 624 words +[PASS] 0796d8bb451f1b2e: 72 words +[PASS] 09274e6e0a3f90a3: 752 words +[PASS] 092ac422ee8b6b28: 48 words +[PASS] 0a0231842ac86c54: 72 words +[PASS] 0a61c9f1c52fab0e: 72 words +[PASS] 0afd2c335a46a06f: 56 words +[PASS] 0b392ac277b4b6b9: 192 words +[PASS] 0b78320e4fc3cbfd: 624 words +[PASS] 0bf5bff13889c556: 512 words +[PASS] 0c2c583da93da3fb: 56 words +[PASS] 0f317e0e3bf61b3e: 168 words +[PASS] 0f3f74284966f59c: 184 words +[PASS] 1269ff0807ea5a65: 72 words +[PASS] 14654907604eb54b: 40 words +[PASS] 148b279d1f6c01f0: 840 words +[PASS] 180cb2890eeecac4: 216 words +[PASS] 1916f790c0d70279: 912 words +[PASS] 1ab5f61815999863: 72 words +[PASS] 1c252d2df9417ad6: 920 words +[PASS] 1c8868c5267660e9: 208 words +[PASS] 1f7a30932580c346: 184 words +[PASS] 22b0817480fb9c06: 56 words +[PASS] 2309771849649424: 208 words +[PASS] 238fc586aad3bf25: 32 words +[PASS] 2a1fc2738a754269: 456 words +[PASS] 2af2f45df935262c: 72 words +[PASS] 2b57d5d96269a829: 512 words +[PASS] 329eb0433f9fe756: 64 words +[PASS] 359c5fc37631c204: 208 words +[PASS] 37a7f4bdec50464f: 736 words +[PASS] 38c17d79c26e3c9b: 40 words +[PASS] 3901a529ddace557: 704 words +[PASS] 3a17e8add2022b2e: 208 words +[PASS] 3a66f6982b5f2f63: 40 words +[PASS] 3bc79d4a54fd0d82: 216 words +[PASS] 3c6c1b9785621469: 72 words +[PASS] 3d39a34f3878396b: 112 words +[PASS] 3d96936a5880dbe5: 800 words +[PASS] 3ec70ae580eb1dda: 56 words +[PASS] 40e950b30214f350: 72 words +[PASS] 4357d1b9343cb602: 872 words +[PASS] 43d280bb67f4f86a: 72 words +[PASS] 4449e43c627821d3: 40 words +[PASS] 44605dfc84fe4e3a: 72 words +[PASS] 44d27fae78ea21ee: 216 words +[PASS] 46a2b82ebcb55237: 184 words +[PASS] 4cb8d11dc137fe97: 480 words +[PASS] 4d5d65d6e32e2a6e: 32 words +[PASS] 4fd4d8f9b930cbef: 32 words +[PASS] 50b7708d363e725b: 168 words +[PASS] 50ea0186c4352602: 504 words +[PASS] 51c6ff99ae62a674: 856 words +[PASS] 5302cea4b66ac31f: 888 words +[PASS] 532b55d0058995bb: 712 words +[PASS] 53fcb4c3c7b280bb: 56 words +[PASS] 5421095ea37a0c94: 32 words +[PASS] 58aeba3d8e6970c3: 904 words +[PASS] 5b158f02cc14f8c7: 32 words +[PASS] 611cbd4fc2f556a9: 712 words +[PASS] 6566dce1602409cf: 40 words +[PASS] 65d89fbe3f779a76: 168 words +[PASS] 66d1e2ed7a3ceb9a: 112 words +[PASS] 675625eb9a0931b5: 192 words +[PASS] 683f6a471c6cb46f: 48 words +[PASS] 68810571d02ee2a3: 624 words +[PASS] 696a5b12799b4869: 192 words +[PASS] 6c04d09909a236be: 48 words +[PASS] 6c4aaa22d7e72751: 32 words +[PASS] 6c4b61dd7c6e3821: 72 words +[PASS] 6d91a2543cf32e37: 72 words +[PASS] 6f96d1312cf5e2d4: 72 words +[PASS] 703dfb93281de0f6: 888 words +[PASS] 70a3c66f91c434e6: 112 words +[PASS] 74b53ca328c9ed32: 88 words +[PASS] 7a6fa49d650c91aa: 72 words +[PASS] 7ca7d53247f4a27c: 208 words +[PASS] 7e537150dd31f94d: 168 words +[PASS] 7f570b1989698629: 512 words +[PASS] 80ae705ea1c9d6b2: 208 words +[PASS] 8211c22b21558aca: 784 words +[PASS] 822e7fa3c5c18bfa: 72 words +[PASS] 823124ae67a139f9: 32 words +[PASS] 83eca9872e32c173: 216 words +[PASS] 84296b7303aa0341: 32 words +[PASS] 899c917428da45c3: 504 words +[PASS] 8f997651b59bc8eb: 512 words +[PASS] 8fd282f4584b9512: 32 words +[PASS] 8ff335f4b6d2ad51: 624 words +[PASS] 9026fb3912f7d681: 72 words +[PASS] 93b0ae705ff2671c: 88 words +[PASS] 953ce8f6dcedcfb5: 848 words +[PASS] 956e20d57f875606: 728 words +[PASS] 95aa47327e8cd56f: 72 words +[PASS] 970db9533c836eca: 184 words +[PASS] 97890779eab08c81: 40 words +[PASS] 99179ec7a69e9987: 128 words +[PASS] 9a90d2ecb762c744: 72 words +[PASS] 9c5ad6a3aec5a2de: 616 words +[PASS] 9ee9ee8653de5d02: 856 words +[PASS] a661cba549ba8bd1: 48 words +[PASS] a7120202c46968f3: 736 words +[PASS] a731b2bd167acef8: 752 words +[PASS] aa2e71300a473abe: 72 words +[PASS] aa70ec72d6327f6b: 800 words +[PASS] abb1b024cdf477af: 176 words +[PASS] ad0e17a9d92abd99: 56 words +[PASS] ad14a9c538b8d1b9: 88 words +[PASS] af714031dc417c22: 72 words +[PASS] af9bf924eecc0bd4: 72 words +[PASS] b0081a181add263d: 216 words +[PASS] b1ca47243d5ab24b: 40 words +[PASS] b27f883e08263980: 776 words +[PASS] b4e3acb923aea99a: 72 words +[PASS] b6a25d8739185bbd: 184 words +[PASS] b6af468e224fe471: 128 words +[PASS] b778dc5ae9c3d358: 72 words +[PASS] b8843d8615e24e05: 72 words +[PASS] b8a1c4470e3828a3: 664 words +[PASS] b8fdd5a91e1ec4d9: 32 words +[PASS] b9468a55ba06e0fb: 920 words +[PASS] bac2bcf6382f30a8: 208 words +[PASS] bc0ccfea454ce470: 48 words +[PASS] be5aa2e4673a9f31: 72 words +[PASS] c045fa6d0a757e42: 72 words +[PASS] c54c1652e38838d2: 704 words +[PASS] cbcb53f08d37c052: 832 words +[PASS] cd9cfbab2e6ff8c1: 856 words +[PASS] cdbcb9dedb91c1f6: 88 words +[PASS] ce2912ef123e3b44: 872 words +[PASS] d066ef273a57c300: 512 words +[PASS] d137f039f55e4c6e: 72 words +[PASS] d1b72ec0de84b094: 208 words +[PASS] d3687aca9100d2da: 904 words +[PASS] d3c212fb6dd9d6f1: 776 words +[PASS] d4db1618662aa48b: 624 words +[PASS] d554fa5746fe20b1: 784 words +[PASS] d738e01b18ee0ceb: 848 words +[PASS] d74d1274dc65a555: 232 words +[PASS] d81678712d70b3f0: 224 words +[PASS] d819fcc65676ff36: 128 words +[PASS] d9ad9c4b7cbe0f1b: 176 words +[PASS] d9d3180ed00aa71b: 32 words +[PASS] da8c64451b222c14: 912 words +[PASS] dc3525596d00d5f8: 88 words +[PASS] dca37bf932216398: 32 words +[PASS] e1c55da7de04f655: 664 words +[PASS] e46f066800c4f93a: 512 words +[PASS] e51e3f82d92092e3: 840 words +[PASS] e5f2a6b1ccc46616: 72 words +[PASS] e8f3b705937e66ec: 88 words +[PASS] f58b4d2ded9ffb34: 72 words +[PASS] f888f2b57f436e74: 168 words +[PASS] f989e654f62d3927: 72 words +[PASS] f9ebbb0b64acc6f8: 856 words +[PASS] fa05eb9dd9fdd1d0: 616 words +[PASS] fcef14086ae0c920: 56 words +[PASS] fd737eb7a152928a: 224 words +[PASS] fe3d5eeafea8dfe2: 72 words +[PASS] fe6f3da9e188abb9: 728 words +[PASS] ff08f272777bc4fd: 72 words +[PASS] ffc76a034ae32524: 224 words +[PASS] num_cos: 120 words +[PASS] num_div: 264 words +[PASS] num_erf: 360 words +[PASS] num_exp2: 72 words +[PASS] num_gelu: 424 words +[PASS] num_k000: 24 words +[PASS] num_k001: 24 words +[PASS] num_k002: 24 words +[PASS] num_k003: 24 words +[PASS] num_k004: 24 words +[PASS] num_k005: 24 words +[PASS] num_k006: 24 words +[PASS] num_k007: 24 words +[PASS] num_k008: 24 words +[PASS] num_k009: 24 words +[PASS] num_k010: 24 words +[PASS] num_k011: 24 words +[PASS] num_k012: 24 words +[PASS] num_k013: 24 words +[PASS] num_k014: 24 words +[PASS] num_k015: 24 words +[PASS] num_k016: 24 words +[PASS] num_k017: 24 words +[PASS] num_k018: 24 words +[PASS] num_k019: 24 words +[PASS] num_k020: 24 words +[PASS] num_k021: 24 words +[PASS] num_k022: 24 words +[PASS] num_k023: 24 words +[PASS] num_k024: 24 words +[PASS] num_k025: 24 words +[PASS] num_k026: 24 words +[PASS] num_k027: 24 words +[PASS] num_k028: 24 words +[PASS] num_k029: 24 words +[PASS] num_k030: 24 words +[PASS] num_k031: 24 words +[PASS] num_k032: 24 words +[PASS] num_k033: 24 words +[PASS] num_k034: 24 words +[PASS] num_k035: 24 words +[PASS] num_k036: 24 words +[PASS] num_k037: 24 words +[PASS] num_k038: 24 words +[PASS] num_k039: 24 words +[PASS] num_k040: 24 words +[PASS] num_k041: 24 words +[PASS] num_k042: 24 words +[PASS] num_k043: 24 words +[PASS] num_k044: 24 words +[PASS] num_k045: 24 words +[PASS] num_k046: 24 words +[PASS] num_k047: 24 words +[PASS] num_k048: 24 words +[PASS] num_k049: 24 words +[PASS] num_k050: 24 words +[PASS] num_k051: 24 words +[PASS] num_k052: 24 words +[PASS] num_k053: 24 words +[PASS] num_k054: 24 words +[PASS] num_k055: 24 words +[PASS] num_k056: 24 words +[PASS] num_k057: 24 words +[PASS] num_k058: 24 words +[PASS] num_k059: 24 words +[PASS] num_k060: 24 words +[PASS] num_k061: 24 words +[PASS] num_k062: 24 words +[PASS] num_k063: 24 words +[PASS] num_k064: 24 words +[PASS] num_k065: 24 words +[PASS] num_k066: 24 words +[PASS] num_k067: 24 words +[PASS] num_k068: 24 words +[PASS] num_k069: 24 words +[PASS] num_k070: 24 words +[PASS] num_k071: 24 words +[PASS] num_k072: 24 words +[PASS] num_k073: 24 words +[PASS] num_k074: 24 words +[PASS] num_k075: 24 words +[PASS] num_k076: 24 words +[PASS] num_k077: 24 words +[PASS] num_k078: 24 words +[PASS] num_k079: 24 words +[PASS] num_k080: 24 words +[PASS] num_k081: 24 words +[PASS] num_k082: 24 words +[PASS] num_k083: 24 words +[PASS] num_k084: 24 words +[PASS] num_k085: 24 words +[PASS] num_k086: 24 words +[PASS] num_k087: 24 words +[PASS] num_k088: 24 words +[PASS] num_k089: 24 words +[PASS] num_k090: 24 words +[PASS] num_k091: 24 words +[PASS] num_k092: 24 words +[PASS] num_k093: 24 words +[PASS] num_k094: 24 words +[PASS] num_k095: 24 words +[PASS] num_k096: 24 words +[PASS] num_k097: 24 words +[PASS] num_k098: 24 words +[PASS] num_k099: 24 words +[PASS] num_k100: 24 words +[PASS] num_k101: 24 words +[PASS] num_k102: 24 words +[PASS] num_k103: 24 words +[PASS] num_k104: 24 words +[PASS] num_k105: 24 words +[PASS] num_k106: 24 words +[PASS] num_k107: 24 words +[PASS] num_k108: 24 words +[PASS] num_k109: 24 words +[PASS] num_k110: 24 words +[PASS] num_k111: 24 words +[PASS] num_k112: 24 words +[PASS] num_k113: 24 words +[PASS] num_k114: 24 words +[PASS] num_k115: 24 words +[PASS] num_k116: 24 words +[PASS] num_k117: 24 words +[PASS] num_k118: 24 words +[PASS] num_k119: 24 words +[PASS] num_k120: 24 words +[PASS] num_k121: 24 words +[PASS] num_k122: 24 words +[PASS] num_k123: 24 words +[PASS] num_k124: 24 words +[PASS] num_k125: 24 words +[PASS] num_k126: 24 words +[PASS] num_k127: 24 words +[PASS] num_k128: 24 words +[PASS] num_k129: 24 words +[PASS] num_k130: 24 words +[PASS] num_k131: 24 words +[PASS] num_k132: 24 words +[PASS] num_k133: 24 words +[PASS] num_k134: 24 words +[PASS] num_k135: 24 words +[PASS] num_k136: 24 words +[PASS] num_k137: 24 words +[PASS] num_k138: 24 words +[PASS] num_k139: 24 words +[PASS] num_k140: 24 words +[PASS] num_k141: 24 words +[PASS] num_k142: 24 words +[PASS] num_k143: 24 words +[PASS] num_k144: 24 words +[PASS] num_k145: 24 words +[PASS] num_k146: 24 words +[PASS] num_k147: 24 words +[PASS] num_log2: 576 words +[PASS] num_rsqrt: 344 words +[PASS] num_sigmoid: 344 words +[PASS] num_sin: 120 words +[PASS] num_sqrt: 336 words +[PASS] num_tanh: 352 words +kernels: 331, words: 59152, failed kernels: 0 +VERDICT PASS +red check: the faulty decoder FAILS the comparison, as it must (331 kernels) +exit=0 diff --git a/evidence/C6-DISASM/02-reduce-on-sm121dis-20261024.log b/evidence/C6-DISASM/02-reduce-on-sm121dis-20261024.log new file mode 100644 index 000000000..cf259ced0 --- /dev/null +++ b/evidence/C6-DISASM/02-reduce-on-sm121dis-20261024.log @@ -0,0 +1,6 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:38Z +# command: make PHYSICS_DIR=~/workspace/l386-physics-pr test-numeric-reduce-nvdisasm +max: 12 words decode to the recorded text +min: 12 words decode to the recorded text +E1 Reduce nvdisasm: PASS (sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c)) +# exit 0 diff --git a/evidence/C6-DISASM/02-reduce-on-sm121dis.log b/evidence/C6-DISASM/02-reduce-on-sm121dis.log new file mode 100644 index 000000000..bf9eb059c --- /dev/null +++ b/evidence/C6-DISASM/02-reduce-on-sm121dis.log @@ -0,0 +1,7 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:42Z +# command: quiet-build make PHYSICS_DIR=/home/drakestapleton/workspace/physics-l386 test-numeric-reduce-nvdisasm +cc -std=gnu11 -Wall -Wextra -Werror -O2 -Isrc -o build/sm121dis tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c +max: 12 words decode to the recorded text +min: 12 words decode to the recorded text +E1 Reduce nvdisasm: PASS (sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c)) +exit=0 diff --git a/evidence/C6-DISASM/03-divsqrt-on-sm121dis-20261024.log b/evidence/C6-DISASM/03-divsqrt-on-sm121dis-20261024.log new file mode 100644 index 000000000..2720c3bdf --- /dev/null +++ b/evidence/C6-DISASM/03-divsqrt-on-sm121dis-20261024.log @@ -0,0 +1,16 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:38Z +# command: sh tools/divsqrt_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[PASS] div: all 264 words decode to the encoder's text +[PASS] sqrt: all 336 words decode to the encoder's text +[PASS] exp2: all 72 words decode to the encoder's text +[PASS] log2: all 576 words decode to the encoder's text +[PASS] sigmoid: all 344 words decode to the encoder's text +[PASS] tanh: all 352 words decode to the encoder's text +[PASS] sin: all 120 words decode to the encoder's text +[PASS] cos: all 120 words decode to the encoder's text +[PASS] erf: all 360 words decode to the encoder's text +[PASS] gelu: all 424 words decode to the encoder's text +[PASS] rsqrt: all 344 words decode to the encoder's text +VERDICT PASS +# exit 0 diff --git a/evidence/C6-DISASM/03-divsqrt-on-sm121dis.log b/evidence/C6-DISASM/03-divsqrt-on-sm121dis.log new file mode 100644 index 000000000..36a1cf5fb --- /dev/null +++ b/evidence/C6-DISASM/03-divsqrt-on-sm121dis.log @@ -0,0 +1,16 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:43Z +# command: quiet-build tools/divsqrt_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[PASS] div: all 264 words decode to the encoder's text +[PASS] sqrt: all 336 words decode to the encoder's text +[PASS] exp2: all 72 words decode to the encoder's text +[PASS] log2: all 576 words decode to the encoder's text +[PASS] sigmoid: all 344 words decode to the encoder's text +[PASS] tanh: all 352 words decode to the encoder's text +[PASS] sin: all 120 words decode to the encoder's text +[PASS] cos: all 120 words decode to the encoder's text +[PASS] erf: all 360 words decode to the encoder's text +[PASS] gelu: all 424 words decode to the encoder's text +[PASS] rsqrt: all 344 words decode to the encoder's text +VERDICT PASS +exit=0 diff --git a/evidence/C6-DISASM/04-ldst-on-sm121dis-20261024.log b/evidence/C6-DISASM/04-ldst-on-sm121dis-20261024.log new file mode 100644 index 000000000..d84ade4ee --- /dev/null +++ b/evidence/C6-DISASM/04-ldst-on-sm121dis-20261024.log @@ -0,0 +1,6 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:38Z +# command: sh tools/ldst_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[PASS] ldst: 148 of 148 kernels decode, every word, to the encoder's text +VERDICT PASS +# exit 0 diff --git a/evidence/C6-DISASM/04-ldst-on-sm121dis.log b/evidence/C6-DISASM/04-ldst-on-sm121dis.log new file mode 100644 index 000000000..27143c32a --- /dev/null +++ b/evidence/C6-DISASM/04-ldst-on-sm121dis.log @@ -0,0 +1,6 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:45Z +# command: quiet-build tools/ldst_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[PASS] ldst: 148 of 148 kernels decode, every word, to the encoder's text +VERDICT PASS +exit=0 diff --git a/evidence/C6-DISASM/05-red-divsqrt-faulty-decoder-20261024.log b/evidence/C6-DISASM/05-red-divsqrt-faulty-decoder-20261024.log new file mode 100644 index 000000000..da862ec15 --- /dev/null +++ b/evidence/C6-DISASM/05-red-divsqrt-faulty-decoder-20261024.log @@ -0,0 +1,35 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:38Z +# command: env DISASM=build/sm121dis_red sh tools/divsqrt_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[FAIL] div: disassembler text differs from the encoder's listing +--- /tmp/tmp.DFTRRIOEzF/div.lst 2026-10-24 18:37:45.796376486 -0500 ++++ /tmp/tmp.DFTRRIOEzF/div.got 2026-10-24 18:37:45.801573440 -0500 +@@ -3,261 +3,261 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +# ... 422 lines of per-word differences left out of this receipt (the full output is reproducible with the command above) ... +-0150 SEL R10, R21, R8, P0 ; ++0130 FMUL R21, R9, R18 ; ++0140 ISETP.LT.U32.AND P0, PT, R9, 0x800000, PT ; ++0150 SEL R10, R20, R8, P0 ; + 0160 IADD3 R18, PT, PT, RZ, 0x45800000, RZ ; +-0170 SEL R16, R18, 0x3f800000, P0 ; ++0170 SEL R16, R19, 0x3f800000, P0 ; + 0180 SHF.R.U32.HI R11, RZ, 0x17, R10 ; +-0190 IADD3 R18, PT, PT, R11, 0x1, RZ ; +-01a0 LOP3.LUT R12, R18, 0x1, RZ, 0xc0, !PT ; +VERDICT FAIL +# exit 1 diff --git a/evidence/C6-DISASM/05-red-divsqrt-faulty-decoder.log b/evidence/C6-DISASM/05-red-divsqrt-faulty-decoder.log new file mode 100644 index 000000000..48351f365 --- /dev/null +++ b/evidence/C6-DISASM/05-red-divsqrt-faulty-decoder.log @@ -0,0 +1,456 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:47Z +# command: env DISASM=/tmp/c6/build/sm121dis_red tools/divsqrt_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[FAIL] div: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/div.lst 2026-10-21 20:59:49.316310531 -0500 ++++ /tmp/tmp.bPfISWW3tI/div.got 2026-10-21 20:59:49.325883436 -0500 +@@ -3,261 +3,261 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R8, R2, 0x7fffffff, RZ, 0xc0, !PT ; +-0120 LOP3.LUT R10, R5, 0x7fffffff, RZ, 0xc0, !PT ; +-0130 LOP3.LUT R11, R2, R5, RZ, 0x3c, !PT ; +-0140 LOP3.LUT R11, R11, 0x80000000, RZ, 0xc0, !PT ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R8, R3, 0x7fffffff, RZ, 0xc0, !PT ; ++0120 LOP3.LUT R10, R4, 0x7fffffff, RZ, 0xc0, !PT ; ++0130 LOP3.LUT R11, R3, R5, RZ, 0x3c, !PT ; ++0140 LOP3.LUT R11, R10, 0x80000000, RZ, 0xc0, !PT ; + 0150 SHF.R.U32.HI R16, RZ, 0x17, R8 ; +-0160 LOP3.LUT R12, R8, 0x7fffff, RZ, 0xc0, !PT ; +-0170 LOP3.LUT R12, R12, 0x800000, RZ, 0xfc, !PT ; +-0180 IADD3 R13, PT, PT, R16, -0x96, RZ ; ++0160 LOP3.LUT R12, R9, 0x7fffff, RZ, 0xc0, !PT ; ++0170 LOP3.LUT R12, R13, 0x800000, RZ, 0xfc, !PT ; ++0180 IADD3 R13, PT, PT, R17, -0x96, RZ ; +[FAIL] sqrt: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/sqrt.lst 2026-10-21 20:59:49.316494100 -0500 ++++ /tmp/tmp.bPfISWW3tI/sqrt.got 2026-10-21 20:59:49.340883576 -0500 +@@ -3,329 +3,329 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R8, R2, 0x7fffffff, RZ, 0xc0, !PT ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R8, R3, 0x7fffffff, RZ, 0xc0, !PT ; + 0120 SHF.R.U32.HI R16, RZ, 0x17, R8 ; +-0130 LOP3.LUT R12, R8, 0x7fffff, RZ, 0xc0, !PT ; +-0140 LOP3.LUT R12, R12, 0x800000, RZ, 0xfc, !PT ; +-0150 IADD3 R13, PT, PT, R16, -0x96, RZ ; ++0130 LOP3.LUT R12, R9, 0x7fffff, RZ, 0xc0, !PT ; ++0140 LOP3.LUT R12, R13, 0x800000, RZ, 0xfc, !PT ; ++0150 IADD3 R13, PT, PT, R17, -0x96, RZ ; + 0160 I2FP.F32.S32 R17, R8 ; + 0170 SHF.R.U32.HI R17, RZ, 0x17, R17 ; +-0180 IADD3 R18, PT, PT, -R17, 0x96, RZ ; +-0190 SHF.L.U32 R18, R8, R18, RZ ; +-01a0 IADD3 R17, PT, PT, R17, -0x12b, RZ ; +-01b0 ISETP.EQ.U32.AND P0, PT, R16, RZ, PT ; +[FAIL] exp2: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/exp2.lst 2026-10-21 20:59:49.316554069 -0500 ++++ /tmp/tmp.bPfISWW3tI/exp2.got 2026-10-21 20:59:49.350883670 -0500 +@@ -3,66 +3,66 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; + 0110 IADD3 R10, PT, PT, RZ, 0x4b400000, RZ ; +-0120 FADD R11, R2, R10 ; +-0130 FADD R12, R11, -R10 ; +-0140 IADD3 R13, PT, PT, R11, -R10, RZ ; +-0150 FADD R14, R2, -R12 ; ++0120 FADD R11, R3, R10 ; ++0130 FADD R12, R10, -R10 ; ++0140 IADD3 R13, PT, PT, R10, -R10, RZ ; ++0150 FADD R14, R3, -R12 ; + 0160 IADD3 R15, PT, PT, RZ, 0x35b16011, RZ ; + 0170 IADD3 R10, PT, PT, RZ, 0x377fe5fe, RZ ; +-0180 FFMA R15, R15, R14, R10 ; ++0180 FFMA R15, R14, R14, R10 ; + 0190 IADD3 R10, PT, PT, RZ, 0x39218489, RZ ; +-01a0 FFMA R15, R15, R14, R10 ; +[FAIL] log2: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/log2.lst 2026-10-21 20:59:49.316845719 -0500 ++++ /tmp/tmp.bPfISWW3tI/log2.got 2026-10-21 20:59:49.365883810 -0500 +@@ -3,572 +3,572 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 IADD3 R3, PT, PT, R2, RZ, RZ ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 IADD3 R3, PT, PT, R3, RZ, RZ ; + 0120 IADD3 R10, PT, PT, RZ, 0x4b000000, RZ ; +-0130 FMUL R11, R2, R10 ; +-0140 LOP3.LUT R12, R2, 0x7f800000, RZ, 0xc0, !PT ; +-0150 ISETP.EQ.U32.AND P0, PT, R12, RZ, PT ; +-0160 SEL R13, R11, R2, P0 ; ++0130 FMUL R11, R3, R10 ; ++0140 LOP3.LUT R12, R3, 0x7f800000, RZ, 0xc0, !PT ; ++0150 ISETP.EQ.U32.AND P0, PT, R13, RZ, PT ; ++0160 SEL R13, R10, R2, P0 ; + 0170 SEL R14, RZ, 0xffffffe9, !P0 ; + 0180 SHF.R.U32.HI R15, RZ, 0x17, R13 ; +-0190 LOP3.LUT R15, R15, 0xff, RZ, 0xc0, !PT ; +-01a0 IADD3 R31, PT, PT, R15, -0x7f, R14 ; +[FAIL] sigmoid: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/sigmoid.lst 2026-10-21 20:59:49.317033865 -0500 ++++ /tmp/tmp.bPfISWW3tI/sigmoid.got 2026-10-21 20:59:49.383883978 -0500 +@@ -3,341 +3,341 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R10, R2, 0x80000000, RZ, 0xfc, !PT ; +-0120 IADD3 R18, PT, PT, R10, RZ, RZ ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R10, R3, 0x80000000, RZ, 0xfc, !PT ; ++0120 IADD3 R18, PT, PT, R11, RZ, RZ ; + 0130 IADD3 R10, PT, PT, RZ, 0x3fb8aa3b, RZ ; +-0140 FMUL R11, R18, R10 ; ++0140 FMUL R11, R19, R10 ; + 0150 IADD3 R16, PT, PT, RZ, 0x4b400000, RZ ; +-0160 FADD R11, R11, R16 ; +-0170 FADD R12, R11, -R16 ; +-0180 IADD3 R29, PT, PT, R11, -R16, RZ ; +-0190 LOP3.LUT R13, R12, 0x80000000, RZ, 0x3c, !PT ; ++0160 FADD R11, R10, R16 ; ++0170 FADD R12, R10, -R16 ; ++0180 IADD3 R29, PT, PT, R10, -R16, RZ ; +[FAIL] tanh: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/tanh.lst 2026-10-21 20:59:49.317233019 -0500 ++++ /tmp/tmp.bPfISWW3tI/tanh.got 2026-10-21 20:59:49.406884194 -0500 +@@ -3,344 +3,344 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R0, R2, 0x80000000, RZ, 0xc0, !PT ; +-0120 LOP3.LUT R3, R2, 0x7fffffff, RZ, 0xc0, !PT ; +-0130 FMUL R10, R3, R3 ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R0, R3, 0x80000000, RZ, 0xc0, !PT ; ++0120 LOP3.LUT R3, R3, 0x7fffffff, RZ, 0xc0, !PT ; ++0130 FMUL R10, R2, R3 ; + 0140 IADD3 R11, PT, PT, RZ, 0x38cb3f0c, RZ ; + 0150 IADD3 R12, PT, PT, RZ, -0x46854144, RZ ; +-0160 FFMA R11, R11, R10, R12 ; ++0160 FFMA R11, R10, R10, R12 ; + 0170 IADD3 R12, PT, PT, RZ, 0x3a1aac12, RZ ; +-0180 FFMA R11, R11, R10, R12 ; ++0180 FFMA R11, R10, R10, R12 ; + 0190 IADD3 R12, PT, PT, RZ, -0x45412e4e, RZ ; +-01a0 FFMA R11, R11, R10, R12 ; +[FAIL] sin: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/sin.lst 2026-10-21 20:59:49.317316748 -0500 ++++ /tmp/tmp.bPfISWW3tI/sin.got 2026-10-21 20:59:49.422884343 -0500 +@@ -3,114 +3,114 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R3, R2, 0x7fffffff, RZ, 0xc0, !PT ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R3, R3, 0x7fffffff, RZ, 0xc0, !PT ; + 0120 IADD3 R4, PT, PT, RZ, 0x3f22f983, RZ ; +-0130 FMUL R10, R2, R4 ; ++0130 FMUL R10, R3, R4 ; + 0140 IADD3 R26, PT, PT, RZ, 0x4b400000, RZ ; +-0150 FADD R10, R10, R26 ; +-0160 FADD R11, R10, -R26 ; +-0170 IADD3 R12, PT, PT, R10, -R26, RZ ; +-0180 LOP3.LUT R13, R11, 0x80000000, RZ, 0x3c, !PT ; ++0150 FADD R10, R11, R26 ; ++0160 FADD R11, R11, -R26 ; ++0170 IADD3 R12, PT, PT, R11, -R26, RZ ; ++0180 LOP3.LUT R13, R10, 0x80000000, RZ, 0x3c, !PT ; + 0190 IADD3 R4, PT, PT, RZ, 0x3fc90fdb, RZ ; +[FAIL] cos: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/cos.lst 2026-10-21 20:59:49.317388109 -0500 ++++ /tmp/tmp.bPfISWW3tI/cos.got 2026-10-21 20:59:49.433884446 -0500 +@@ -3,112 +3,112 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R3, R2, 0x7fffffff, RZ, 0xc0, !PT ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R3, R3, 0x7fffffff, RZ, 0xc0, !PT ; + 0120 IADD3 R4, PT, PT, RZ, 0x3f22f983, RZ ; +-0130 FMUL R10, R2, R4 ; ++0130 FMUL R10, R3, R4 ; + 0140 IADD3 R26, PT, PT, RZ, 0x4b400000, RZ ; +-0150 FADD R10, R10, R26 ; +-0160 FADD R11, R10, -R26 ; +-0170 IADD3 R12, PT, PT, R10, -R26, RZ ; +-0180 LOP3.LUT R13, R11, 0x80000000, RZ, 0x3c, !PT ; ++0150 FADD R10, R11, R26 ; ++0160 FADD R11, R11, -R26 ; ++0170 IADD3 R12, PT, PT, R11, -R26, RZ ; ++0180 LOP3.LUT R13, R10, 0x80000000, RZ, 0x3c, !PT ; + 0190 IADD3 R4, PT, PT, RZ, 0x3fc90fdb, RZ ; +[FAIL] erf: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/erf.lst 2026-10-21 20:59:49.317579438 -0500 ++++ /tmp/tmp.bPfISWW3tI/erf.got 2026-10-21 20:59:49.450884605 -0500 +@@ -3,78 +3,78 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R3, R2, 0x7fffffff, RZ, 0xc0, !PT ; +-0120 LOP3.LUT R4, R2, 0x80000000, RZ, 0xc0, !PT ; +-0130 FMUL R10, R3, R3 ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R3, R3, 0x7fffffff, RZ, 0xc0, !PT ; ++0120 LOP3.LUT R4, R3, 0x80000000, RZ, 0xc0, !PT ; ++0130 FMUL R10, R2, R3 ; + 0140 IADD3 R11, PT, PT, RZ, -0x48a21443, RZ ; + 0150 IADD3 R17, PT, PT, RZ, 0x38e00e01, RZ ; +-0160 FFMA R11, R11, R10, R17 ; ++0160 FFMA R11, R10, R10, R17 ; + 0170 IADD3 R17, PT, PT, RZ, -0x45b967f4, RZ ; +-0180 FFMA R11, R11, R10, R17 ; ++0180 FFMA R11, R10, R10, R17 ; + 0190 IADD3 R17, PT, PT, RZ, 0x3b97b426, RZ ; +-01a0 FFMA R11, R11, R10, R17 ; +[FAIL] gelu: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/gelu.lst 2026-10-21 20:59:49.317805328 -0500 ++++ /tmp/tmp.bPfISWW3tI/gelu.got 2026-10-21 20:59:49.468884774 -0500 +@@ -3,91 +3,91 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R3, R2, 0x7fffffff, RZ, 0xc0, !PT ; +-0120 LOP3.LUT R4, R2, 0x80000000, RZ, 0xc0, !PT ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R3, R3, 0x7fffffff, RZ, 0xc0, !PT ; ++0120 LOP3.LUT R4, R3, 0x80000000, RZ, 0xc0, !PT ; + 0130 IADD3 R40, PT, PT, RZ, 0x3f3504f3, RZ ; +-0140 FMUL R23, R2, R40 ; +-0150 LOP3.LUT R24, R23, 0x7fffffff, RZ, 0xc0, !PT ; ++0140 FMUL R23, R3, R40 ; ++0150 LOP3.LUT R24, R22, 0x7fffffff, RZ, 0xc0, !PT ; + 0160 IADD3 R41, PT, PT, RZ, 0x3f000000, RZ ; +-0170 FMUL R25, R2, R41 ; +-0180 FMUL R10, R24, R24 ; ++0170 FMUL R25, R3, R41 ; ++0180 FMUL R10, R25, R24 ; + 0190 IADD3 R11, PT, PT, RZ, -0x48a21443, RZ ; +[FAIL] rsqrt: disassembler text differs from the encoder's listing +--- /tmp/tmp.bPfISWW3tI/rsqrt.lst 2026-10-21 20:59:49.317988914 -0500 ++++ /tmp/tmp.bPfISWW3tI/rsqrt.got 2026-10-21 20:59:49.480884886 -0500 +@@ -3,337 +3,337 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R2, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +-0110 LOP3.LUT R8, R2, 0x7fffffff, RZ, 0xc0, !PT ; ++00c0 IMAD.WIDE.U32 R2, R8, 0x4, R2 ; ++00d0 LDG.E R2, desc[UR4][R3.64] ; ++00e0 IMAD.WIDE.U32 R4, R8, 0x4, R4 ; ++00f0 LDG.E R5, desc[UR4][R5.64] ; ++0100 IMAD.WIDE.U32 R6, R8, 0x4, R6 ; ++0110 LOP3.LUT R8, R3, 0x7fffffff, RZ, 0xc0, !PT ; + 0120 IADD3 R18, PT, PT, RZ, 0x4b800000, RZ ; +-0130 FMUL R21, R8, R18 ; +-0140 ISETP.LT.U32.AND P0, PT, R8, 0x800000, PT ; +-0150 SEL R10, R21, R8, P0 ; ++0130 FMUL R21, R9, R18 ; ++0140 ISETP.LT.U32.AND P0, PT, R9, 0x800000, PT ; ++0150 SEL R10, R20, R8, P0 ; + 0160 IADD3 R18, PT, PT, RZ, 0x45800000, RZ ; +-0170 SEL R16, R18, 0x3f800000, P0 ; ++0170 SEL R16, R19, 0x3f800000, P0 ; + 0180 SHF.R.U32.HI R11, RZ, 0x17, R10 ; +-0190 IADD3 R18, PT, PT, R11, 0x1, RZ ; +-01a0 LOP3.LUT R12, R18, 0x1, RZ, 0xc0, !PT ; +VERDICT FAIL +exit=1 diff --git a/evidence/C6-DISASM/06-red-ldst-faulty-decoder-20261024.log b/evidence/C6-DISASM/06-red-ldst-faulty-decoder-20261024.log new file mode 100644 index 000000000..24b5d9688 --- /dev/null +++ b/evidence/C6-DISASM/06-red-ldst-faulty-decoder-20261024.log @@ -0,0 +1,35 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:38Z +# command: env DISASM=build/sm121dis_red sh tools/ldst_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[FAIL] k000: disassembler text differs from the encoder's listing +--- /tmp/tmp.tfOG6VTEcF/k000.lst 2026-10-24 18:37:46.686329261 -0500 ++++ /tmp/tmp.tfOG6VTEcF/k000.got 2026-10-24 18:37:46.698580736 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +# ... 3080 lines of per-word differences left out of this receipt (the full output is reproducible with the command above) ... + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] ldst: 0 of 148 kernels decode, every word, to the encoder's text +VERDICT FAIL +# exit 1 diff --git a/evidence/C6-DISASM/06-red-ldst-faulty-decoder.log b/evidence/C6-DISASM/06-red-ldst-faulty-decoder.log new file mode 100644 index 000000000..ffe70dcad --- /dev/null +++ b/evidence/C6-DISASM/06-red-ldst-faulty-decoder.log @@ -0,0 +1,3114 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:49Z +# command: env DISASM=/tmp/c6/build/sm121dis_red tools/ldst_nvdisasm_check.sh +disassembler: sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c) +[FAIL] k000: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k000.lst 2026-10-21 20:59:50.943439622 -0500 ++++ /tmp/tmp.njDQd0vVEk/k000.got 2026-10-21 20:59:50.963898757 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k001: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k001.lst 2026-10-21 20:59:50.943497222 -0500 ++++ /tmp/tmp.njDQd0vVEk/k001.got 2026-10-21 20:59:50.973898851 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k002: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k002.lst 2026-10-21 20:59:50.943533431 -0500 ++++ /tmp/tmp.njDQd0vVEk/k002.got 2026-10-21 20:59:50.980898916 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+-0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x3, R6 ; +[FAIL] k003: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k003.lst 2026-10-21 20:59:50.943569783 -0500 ++++ /tmp/tmp.njDQd0vVEk/k003.got 2026-10-21 20:59:50.988898991 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x5, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x5, R6 ; +[FAIL] k004: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k004.lst 2026-10-21 20:59:50.943623815 -0500 ++++ /tmp/tmp.njDQd0vVEk/k004.got 2026-10-21 20:59:50.999899094 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+-0x3] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k005: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k005.lst 2026-10-21 20:59:50.943661064 -0500 ++++ /tmp/tmp.njDQd0vVEk/k005.got 2026-10-21 20:59:51.018899272 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x5] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k006: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k006.lst 2026-10-21 20:59:50.943692984 -0500 ++++ /tmp/tmp.njDQd0vVEk/k006.got 2026-10-21 20:59:51.028899365 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k007: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k007.lst 2026-10-21 20:59:50.943746713 -0500 ++++ /tmp/tmp.njDQd0vVEk/k007.got 2026-10-21 20:59:51.044899515 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+-0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k008: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k008.lst 2026-10-21 20:59:50.943787049 -0500 ++++ /tmp/tmp.njDQd0vVEk/k008.got 2026-10-21 20:59:51.060899664 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xa, R6 ; +[FAIL] k009: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k009.lst 2026-10-21 20:59:50.943830425 -0500 ++++ /tmp/tmp.njDQd0vVEk/k009.got 2026-10-21 20:59:51.070050150 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x5, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+-0x3] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k010: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k010.lst 2026-10-21 20:59:50.943866730 -0500 ++++ /tmp/tmp.njDQd0vVEk/k010.got 2026-10-21 20:59:51.076899814 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x5] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k011: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k011.lst 2026-10-21 20:59:50.943913834 -0500 ++++ /tmp/tmp.njDQd0vVEk/k011.got 2026-10-21 20:59:51.092899964 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k012: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k012.lst 2026-10-21 20:59:50.944014827 -0500 ++++ /tmp/tmp.njDQd0vVEk/k012.got 2026-10-21 20:59:51.105900085 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+-0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k013: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k013.lst 2026-10-21 20:59:50.944048251 -0500 ++++ /tmp/tmp.njDQd0vVEk/k013.got 2026-10-21 20:59:51.134900356 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k014: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k014.lst 2026-10-21 20:59:50.944088844 -0500 ++++ /tmp/tmp.njDQd0vVEk/k014.got 2026-10-21 20:59:51.151801059 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+-0x3] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k015: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k015.lst 2026-10-21 20:59:50.944122044 -0500 ++++ /tmp/tmp.njDQd0vVEk/k015.got 2026-10-21 20:59:51.156900562 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x5, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x5] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k016: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k016.lst 2026-10-21 20:59:50.944171613 -0500 ++++ /tmp/tmp.njDQd0vVEk/k016.got 2026-10-21 20:59:51.163147549 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k017: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k017.lst 2026-10-21 20:59:50.944211533 -0500 ++++ /tmp/tmp.njDQd0vVEk/k017.got 2026-10-21 20:59:51.167900665 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U8 R12, desc[UR4][R2.64+0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k018: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k018.lst 2026-10-21 20:59:50.944246717 -0500 ++++ /tmp/tmp.njDQd0vVEk/k018.got 2026-10-21 20:59:51.172900712 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k019: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k019.lst 2026-10-21 20:59:50.944302942 -0500 ++++ /tmp/tmp.njDQd0vVEk/k019.got 2026-10-21 20:59:51.177900759 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k020: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k020.lst 2026-10-21 20:59:50.944339470 -0500 ++++ /tmp/tmp.njDQd0vVEk/k020.got 2026-10-21 20:59:51.190079977 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x5, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+-0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x3, R6 ; +[FAIL] k021: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k021.lst 2026-10-21 20:59:50.944371326 -0500 ++++ /tmp/tmp.njDQd0vVEk/k021.got 2026-10-21 20:59:51.207901039 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x5, R6 ; +[FAIL] k022: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k022.lst 2026-10-21 20:59:50.944412735 -0500 ++++ /tmp/tmp.njDQd0vVEk/k022.got 2026-10-21 20:59:51.225901208 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+-0x3] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k023: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k023.lst 2026-10-21 20:59:50.944446543 -0500 ++++ /tmp/tmp.njDQd0vVEk/k023.got 2026-10-21 20:59:51.241965630 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x5] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k024: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k024.lst 2026-10-21 20:59:50.944479407 -0500 ++++ /tmp/tmp.njDQd0vVEk/k024.got 2026-10-21 20:59:51.255901488 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k025: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k025.lst 2026-10-21 20:59:50.944522864 -0500 ++++ /tmp/tmp.njDQd0vVEk/k025.got 2026-10-21 20:59:51.269901619 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+-0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k026: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k026.lst 2026-10-21 20:59:50.944559904 -0500 ++++ /tmp/tmp.njDQd0vVEk/k026.got 2026-10-21 20:59:51.287901788 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x5, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xa, R6 ; +[FAIL] k027: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k027.lst 2026-10-21 20:59:50.944602657 -0500 ++++ /tmp/tmp.njDQd0vVEk/k027.got 2026-10-21 20:59:51.304969339 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+-0x3] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k028: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k028.lst 2026-10-21 20:59:50.944639249 -0500 ++++ /tmp/tmp.njDQd0vVEk/k028.got 2026-10-21 20:59:51.319902087 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x5] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k029: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k029.lst 2026-10-21 20:59:50.944677329 -0500 ++++ /tmp/tmp.njDQd0vVEk/k029.got 2026-10-21 20:59:51.332902208 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k030: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k030.lst 2026-10-21 20:59:50.944727378 -0500 ++++ /tmp/tmp.njDQd0vVEk/k030.got 2026-10-21 20:59:51.345966507 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+-0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k031: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k031.lst 2026-10-21 20:59:50.944769698 -0500 ++++ /tmp/tmp.njDQd0vVEk/k031.got 2026-10-21 20:59:51.358902452 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k032: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k032.lst 2026-10-21 20:59:50.944819347 -0500 ++++ /tmp/tmp.njDQd0vVEk/k032.got 2026-10-21 20:59:51.378902639 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x5, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+-0x3] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k033: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k033.lst 2026-10-21 20:59:50.944861251 -0500 ++++ /tmp/tmp.njDQd0vVEk/k033.got 2026-10-21 20:59:51.391969241 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x5] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k034: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k034.lst 2026-10-21 20:59:50.944898867 -0500 ++++ /tmp/tmp.njDQd0vVEk/k034.got 2026-10-21 20:59:51.410902938 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k035: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k035.lst 2026-10-21 20:59:50.944959108 -0500 ++++ /tmp/tmp.njDQd0vVEk/k035.got 2026-10-21 20:59:51.424903069 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x3, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64+0x1] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k036: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k036.lst 2026-10-21 20:59:50.945003092 -0500 ++++ /tmp/tmp.njDQd0vVEk/k036.got 2026-10-21 20:59:51.444903256 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k037: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k037.lst 2026-10-21 20:59:50.945050837 -0500 ++++ /tmp/tmp.njDQd0vVEk/k037.got 2026-10-21 20:59:51.451903322 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k038: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k038.lst 2026-10-21 20:59:50.945087829 -0500 ++++ /tmp/tmp.njDQd0vVEk/k038.got 2026-10-21 20:59:51.461903415 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x3, R6 ; +[FAIL] k039: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k039.lst 2026-10-21 20:59:50.945128182 -0500 ++++ /tmp/tmp.njDQd0vVEk/k039.got 2026-10-21 20:59:51.474903537 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x5, R6 ; +[FAIL] k040: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k040.lst 2026-10-21 20:59:50.945190326 -0500 ++++ /tmp/tmp.njDQd0vVEk/k040.got 2026-10-21 20:59:51.491903696 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+-0x6] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k041: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k041.lst 2026-10-21 20:59:50.945231062 -0500 ++++ /tmp/tmp.njDQd0vVEk/k041.got 2026-10-21 20:59:51.508903855 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0xa] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k042: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k042.lst 2026-10-21 20:59:50.945282119 -0500 ++++ /tmp/tmp.njDQd0vVEk/k042.got 2026-10-21 20:59:51.522975298 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k043: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k043.lst 2026-10-21 20:59:50.945321687 -0500 ++++ /tmp/tmp.njDQd0vVEk/k043.got 2026-10-21 20:59:51.540904154 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k044: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k044.lst 2026-10-21 20:59:50.945370616 -0500 ++++ /tmp/tmp.njDQd0vVEk/k044.got 2026-10-21 20:59:51.556904304 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xa, R6 ; +[FAIL] k045: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k045.lst 2026-10-21 20:59:50.945420888 -0500 ++++ /tmp/tmp.njDQd0vVEk/k045.got 2026-10-21 20:59:51.568904416 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+-0x6] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k046: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k046.lst 2026-10-21 20:59:50.945459929 -0500 ++++ /tmp/tmp.njDQd0vVEk/k046.got 2026-10-21 20:59:51.577904500 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0xa] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k047: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k047.lst 2026-10-21 20:59:50.945501673 -0500 ++++ /tmp/tmp.njDQd0vVEk/k047.got 2026-10-21 20:59:51.585904575 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k048: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k048.lst 2026-10-21 20:59:50.945538265 -0500 ++++ /tmp/tmp.njDQd0vVEk/k048.got 2026-10-21 20:59:51.592904640 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k049: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k049.lst 2026-10-21 20:59:50.945576810 -0500 ++++ /tmp/tmp.njDQd0vVEk/k049.got 2026-10-21 20:59:51.607093221 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k050: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k050.lst 2026-10-21 20:59:50.945617146 -0500 ++++ /tmp/tmp.njDQd0vVEk/k050.got 2026-10-21 20:59:51.617904874 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+-0x6] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k051: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k051.lst 2026-10-21 20:59:50.945654858 -0500 ++++ /tmp/tmp.njDQd0vVEk/k051.got 2026-10-21 20:59:51.630904996 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0xa] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k052: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k052.lst 2026-10-21 20:59:50.945699627 -0500 ++++ /tmp/tmp.njDQd0vVEk/k052.got 2026-10-21 20:59:51.647905155 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k053: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k053.lst 2026-10-21 20:59:50.945736043 -0500 ++++ /tmp/tmp.njDQd0vVEk/k053.got 2026-10-21 20:59:51.660905276 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.U16 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k054: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k054.lst 2026-10-21 20:59:50.945773388 -0500 ++++ /tmp/tmp.njDQd0vVEk/k054.got 2026-10-21 20:59:51.677905435 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k055: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k055.lst 2026-10-21 20:59:50.945816572 -0500 ++++ /tmp/tmp.njDQd0vVEk/k055.got 2026-10-21 20:59:51.693905585 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k056: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k056.lst 2026-10-21 20:59:50.945859836 -0500 ++++ /tmp/tmp.njDQd0vVEk/k056.got 2026-10-21 20:59:51.705905697 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x3, R6 ; +[FAIL] k057: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k057.lst 2026-10-21 20:59:50.945899805 -0500 ++++ /tmp/tmp.njDQd0vVEk/k057.got 2026-10-21 20:59:51.721905847 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x5, R6 ; +[FAIL] k058: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k058.lst 2026-10-21 20:59:50.945935805 -0500 ++++ /tmp/tmp.njDQd0vVEk/k058.got 2026-10-21 20:59:51.728905912 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x6] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k059: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k059.lst 2026-10-21 20:59:50.945972077 -0500 ++++ /tmp/tmp.njDQd0vVEk/k059.got 2026-10-21 20:59:51.736905987 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0xa] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k060: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k060.lst 2026-10-21 20:59:50.946020174 -0500 ++++ /tmp/tmp.njDQd0vVEk/k060.got 2026-10-21 20:59:51.747906090 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k061: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k061.lst 2026-10-21 20:59:50.946067358 -0500 ++++ /tmp/tmp.njDQd0vVEk/k061.got 2026-10-21 20:59:51.759970059 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k062: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k062.lst 2026-10-21 20:59:50.946108799 -0500 ++++ /tmp/tmp.njDQd0vVEk/k062.got 2026-10-21 20:59:51.775906352 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xa, R6 ; +[FAIL] k063: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k063.lst 2026-10-21 20:59:50.946160319 -0500 ++++ /tmp/tmp.njDQd0vVEk/k063.got 2026-10-21 20:59:51.792906511 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x6] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k064: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k064.lst 2026-10-21 20:59:50.946198015 -0500 ++++ /tmp/tmp.njDQd0vVEk/k064.got 2026-10-21 20:59:51.809906670 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0xa] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k065: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k065.lst 2026-10-21 20:59:50.946244320 -0500 ++++ /tmp/tmp.njDQd0vVEk/k065.got 2026-10-21 20:59:51.834906904 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k066: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k066.lst 2026-10-21 20:59:50.946287168 -0500 ++++ /tmp/tmp.njDQd0vVEk/k066.got 2026-10-21 20:59:51.848005138 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k067: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k067.lst 2026-10-21 20:59:50.946329393 -0500 ++++ /tmp/tmp.njDQd0vVEk/k067.got 2026-10-21 20:59:51.860072547 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k068: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k068.lst 2026-10-21 20:59:50.946368513 -0500 ++++ /tmp/tmp.njDQd0vVEk/k068.got 2026-10-21 20:59:51.867907213 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x6] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k069: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k069.lst 2026-10-21 20:59:50.946412401 -0500 ++++ /tmp/tmp.njDQd0vVEk/k069.got 2026-10-21 20:59:51.878907315 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x6, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0xa] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k070: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k070.lst 2026-10-21 20:59:50.946454226 -0500 ++++ /tmp/tmp.njDQd0vVEk/k070.got 2026-10-21 20:59:51.886907390 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xa, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k071: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k071.lst 2026-10-21 20:59:50.946503298 -0500 ++++ /tmp/tmp.njDQd0vVEk/k071.got 2026-10-21 20:59:51.901907531 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k072: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k072.lst 2026-10-21 20:59:50.946547731 -0500 ++++ /tmp/tmp.njDQd0vVEk/k072.got 2026-10-21 20:59:51.910907615 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k073: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k073.lst 2026-10-21 20:59:50.946583139 -0500 ++++ /tmp/tmp.njDQd0vVEk/k073.got 2026-10-21 20:59:51.932907820 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k074: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k074.lst 2026-10-21 20:59:50.946627027 -0500 ++++ /tmp/tmp.njDQd0vVEk/k074.got 2026-10-21 20:59:51.947907961 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xc, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+-0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x3, R6 ; +[FAIL] k075: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k075.lst 2026-10-21 20:59:50.946678324 -0500 ++++ /tmp/tmp.njDQd0vVEk/k075.got 2026-10-21 20:59:51.961908092 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x14, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x5, R6 ; +[FAIL] k076: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k076.lst 2026-10-21 20:59:50.946720724 -0500 ++++ /tmp/tmp.njDQd0vVEk/k076.got 2026-10-21 20:59:51.972908195 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+-0xc] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k077: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k077.lst 2026-10-21 20:59:50.946760453 -0500 ++++ /tmp/tmp.njDQd0vVEk/k077.got 2026-10-21 20:59:51.986908326 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x14] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k078: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k078.lst 2026-10-21 20:59:50.946826101 -0500 ++++ /tmp/tmp.njDQd0vVEk/k078.got 2026-10-21 20:59:51.999908447 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k079: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k079.lst 2026-10-21 20:59:50.946868358 -0500 ++++ /tmp/tmp.njDQd0vVEk/k079.got 2026-10-21 20:59:52.020908644 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+-0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k080: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k080.lst 2026-10-21 20:59:50.946905510 -0500 ++++ /tmp/tmp.njDQd0vVEk/k080.got 2026-10-21 20:59:52.032908756 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xc, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xa, R6 ; +[FAIL] k081: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k081.lst 2026-10-21 20:59:50.947618301 -0500 ++++ /tmp/tmp.njDQd0vVEk/k081.got 2026-10-21 20:59:52.039908821 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x14, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+-0xc] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k082: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k082.lst 2026-10-21 20:59:50.947700862 -0500 ++++ /tmp/tmp.njDQd0vVEk/k082.got 2026-10-21 20:59:52.046908887 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x14] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k083: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k083.lst 2026-10-21 20:59:50.947745166 -0500 ++++ /tmp/tmp.njDQd0vVEk/k083.got 2026-10-21 20:59:52.058908999 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k084: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k084.lst 2026-10-21 20:59:50.947786894 -0500 ++++ /tmp/tmp.njDQd0vVEk/k084.got 2026-10-21 20:59:52.066909074 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+-0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k085: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k085.lst 2026-10-21 20:59:50.948026625 -0500 ++++ /tmp/tmp.njDQd0vVEk/k085.got 2026-10-21 20:59:52.077909177 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k086: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k086.lst 2026-10-21 20:59:50.948077729 -0500 ++++ /tmp/tmp.njDQd0vVEk/k086.got 2026-10-21 20:59:52.091143477 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0xc, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+-0xc] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k087: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k087.lst 2026-10-21 20:59:50.948137026 -0500 ++++ /tmp/tmp.njDQd0vVEk/k087.got 2026-10-21 20:59:52.101909401 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x14, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x14] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k088: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k088.lst 2026-10-21 20:59:50.948193314 -0500 ++++ /tmp/tmp.njDQd0vVEk/k088.got 2026-10-21 20:59:52.113909514 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k089: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k089.lst 2026-10-21 20:59:50.948236179 -0500 ++++ /tmp/tmp.njDQd0vVEk/k089.got 2026-10-21 20:59:52.126909635 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64+0x4] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k090: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k090.lst 2026-10-21 20:59:50.948281091 -0500 ++++ /tmp/tmp.njDQd0vVEk/k090.got 2026-10-21 20:59:52.134909710 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k091: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k091.lst 2026-10-21 20:59:50.948320867 -0500 ++++ /tmp/tmp.njDQd0vVEk/k091.got 2026-10-21 20:59:52.151940861 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k092: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k092.lst 2026-10-21 20:59:50.948361732 -0500 ++++ /tmp/tmp.njDQd0vVEk/k092.got 2026-10-21 20:59:52.175910093 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x28, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x3, R6 ; +[FAIL] k093: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k093.lst 2026-10-21 20:59:50.948413700 -0500 ++++ /tmp/tmp.njDQd0vVEk/k093.got 2026-10-21 20:59:52.191910243 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x5, R6 ; +[FAIL] k094: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k094.lst 2026-10-21 20:59:50.948458885 -0500 ++++ /tmp/tmp.njDQd0vVEk/k094.got 2026-10-21 20:59:52.216910477 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x18] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k095: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k095.lst 2026-10-21 20:59:50.948518405 -0500 ++++ /tmp/tmp.njDQd0vVEk/k095.got 2026-10-21 20:59:52.231910617 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x28] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k096: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k096.lst 2026-10-21 20:59:50.948566230 -0500 ++++ /tmp/tmp.njDQd0vVEk/k096.got 2026-10-21 20:59:52.244910739 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k097: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k097.lst 2026-10-21 20:59:50.948615862 -0500 ++++ /tmp/tmp.njDQd0vVEk/k097.got 2026-10-21 20:59:52.261910898 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k098: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k098.lst 2026-10-21 20:59:50.948655334 -0500 ++++ /tmp/tmp.njDQd0vVEk/k098.got 2026-10-21 20:59:52.271910991 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x28, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xa, R6 ; +[FAIL] k099: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k099.lst 2026-10-21 20:59:50.948702615 -0500 ++++ /tmp/tmp.njDQd0vVEk/k099.got 2026-10-21 20:59:52.280911076 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x18] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k100: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k100.lst 2026-10-21 20:59:50.948748055 -0500 ++++ /tmp/tmp.njDQd0vVEk/k100.got 2026-10-21 20:59:52.290911169 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x28] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k101: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k101.lst 2026-10-21 20:59:50.948795480 -0500 ++++ /tmp/tmp.njDQd0vVEk/k101.got 2026-10-21 20:59:52.305911309 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k102: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k102.lst 2026-10-21 20:59:50.948846792 -0500 ++++ /tmp/tmp.njDQd0vVEk/k102.got 2026-10-21 20:59:52.318911431 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k103: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k103.lst 2026-10-21 20:59:50.948887513 -0500 ++++ /tmp/tmp.njDQd0vVEk/k103.got 2026-10-21 20:59:52.329911534 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k104: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k104.lst 2026-10-21 20:59:50.948931577 -0500 ++++ /tmp/tmp.njDQd0vVEk/k104.got 2026-10-21 20:59:52.342911655 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x28, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x18] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k105: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k105.lst 2026-10-21 20:59:50.948980585 -0500 ++++ /tmp/tmp.njDQd0vVEk/k105.got 2026-10-21 20:59:52.357911796 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x28] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k106: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k106.lst 2026-10-21 20:59:50.949023450 -0500 ++++ /tmp/tmp.njDQd0vVEk/k106.got 2026-10-21 20:59:52.366911880 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k107: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k107.lst 2026-10-21 20:59:50.949064394 -0500 ++++ /tmp/tmp.njDQd0vVEk/k107.got 2026-10-21 20:59:52.373911945 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k108: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k108.lst 2026-10-21 20:59:50.949105787 -0500 ++++ /tmp/tmp.njDQd0vVEk/k108.got 2026-10-21 20:59:52.383912039 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x28, R6 ; +[FAIL] k109: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k109.lst 2026-10-21 20:59:50.949150283 -0500 ++++ /tmp/tmp.njDQd0vVEk/k109.got 2026-10-21 20:59:52.398912179 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x18] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k110: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k110.lst 2026-10-21 20:59:50.949205660 -0500 ++++ /tmp/tmp.njDQd0vVEk/k110.got 2026-10-21 20:59:52.418912366 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x28, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x28] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x10, R6 ; +[FAIL] k111: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k111.lst 2026-10-21 20:59:50.949255324 -0500 ++++ /tmp/tmp.njDQd0vVEk/k111.got 2026-10-21 20:59:52.427912450 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x8, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x18, R6 ; +[FAIL] k112: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k112.lst 2026-10-21 20:59:50.949302668 -0500 ++++ /tmp/tmp.njDQd0vVEk/k112.got 2026-10-21 20:59:52.437912544 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x28, R6 ; +[FAIL] k113: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k113.lst 2026-10-21 20:59:50.949344413 -0500 ++++ /tmp/tmp.njDQd0vVEk/k113.got 2026-10-21 20:59:52.448912647 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x18, R2 ; +-00d0 LDG.E.64 R12, desc[UR4][R2.64+-0x8] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k114: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k114.lst 2026-10-21 20:59:50.949397805 -0500 ++++ /tmp/tmp.njDQd0vVEk/k114.got 2026-10-21 20:59:52.460912759 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k115: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k115.lst 2026-10-21 20:59:50.949444478 -0500 ++++ /tmp/tmp.njDQd0vVEk/k115.got 2026-10-21 20:59:52.476912909 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k116: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k116.lst 2026-10-21 20:59:50.949492078 -0500 ++++ /tmp/tmp.njDQd0vVEk/k116.got 2026-10-21 20:59:52.486073730 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x3, R6 ; +[FAIL] k117: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k117.lst 2026-10-21 20:59:50.949541775 -0500 ++++ /tmp/tmp.njDQd0vVEk/k117.got 2026-10-21 20:59:52.496913096 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x20, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x20] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x5, R6 ; +[FAIL] k118: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k118.lst 2026-10-21 20:59:50.949587119 -0500 ++++ /tmp/tmp.njDQd0vVEk/k118.got 2026-10-21 20:59:52.512913245 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x30] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x1, R6 ; +[FAIL] k119: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k119.lst 2026-10-21 20:59:50.949629344 -0500 ++++ /tmp/tmp.njDQd0vVEk/k119.got 2026-10-21 20:59:52.524913358 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x50] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k120: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k120.lst 2026-10-21 20:59:50.949673008 -0500 ++++ /tmp/tmp.njDQd0vVEk/k120.got 2026-10-21 20:59:52.535913461 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k121: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k121.lst 2026-10-21 20:59:50.949718688 -0500 ++++ /tmp/tmp.njDQd0vVEk/k121.got 2026-10-21 20:59:52.550026265 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k122: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k122.lst 2026-10-21 20:59:50.949761985 -0500 ++++ /tmp/tmp.njDQd0vVEk/k122.got 2026-10-21 20:59:52.560913694 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x20] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xa, R6 ; +[FAIL] k123: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k123.lst 2026-10-21 20:59:50.949809441 -0500 ++++ /tmp/tmp.njDQd0vVEk/k123.got 2026-10-21 20:59:52.571913797 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x20, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x30] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x2, R6 ; +[FAIL] k124: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k124.lst 2026-10-21 20:59:50.949851922 -0500 ++++ /tmp/tmp.njDQd0vVEk/k124.got 2026-10-21 20:59:52.579913872 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x50] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k125: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k125.lst 2026-10-21 20:59:50.949898658 -0500 ++++ /tmp/tmp.njDQd0vVEk/k125.got 2026-10-21 20:59:52.592913994 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x6, R6 ; +[FAIL] k126: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k126.lst 2026-10-21 20:59:50.950004963 -0500 ++++ /tmp/tmp.njDQd0vVEk/k126.got 2026-10-21 20:59:52.609914153 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k127: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k127.lst 2026-10-21 20:59:50.950043491 -0500 ++++ /tmp/tmp.njDQd0vVEk/k127.got 2026-10-21 20:59:52.620072280 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x20] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k128: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k128.lst 2026-10-21 20:59:50.950085284 -0500 ++++ /tmp/tmp.njDQd0vVEk/k128.got 2026-10-21 20:59:52.630914349 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x30] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k129: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k129.lst 2026-10-21 20:59:50.950130980 -0500 ++++ /tmp/tmp.njDQd0vVEk/k129.got 2026-10-21 20:59:52.642914461 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x20, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x50] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k130: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k130.lst 2026-10-21 20:59:50.950172261 -0500 ++++ /tmp/tmp.njDQd0vVEk/k130.got 2026-10-21 20:59:52.654120166 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0xc, R6 ; +[FAIL] k131: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k131.lst 2026-10-21 20:59:50.950209525 -0500 ++++ /tmp/tmp.njDQd0vVEk/k131.got 2026-10-21 20:59:52.667914695 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x14, R6 ; +[FAIL] k132: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k132.lst 2026-10-21 20:59:50.950256117 -0500 ++++ /tmp/tmp.njDQd0vVEk/k132.got 2026-10-21 20:59:52.678914798 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x20] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x28, R6 ; +[FAIL] k133: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k133.lst 2026-10-21 20:59:50.950292870 -0500 ++++ /tmp/tmp.njDQd0vVEk/k133.got 2026-10-21 20:59:52.688914892 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x30] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k134: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k134.lst 2026-10-21 20:59:50.950334806 -0500 ++++ /tmp/tmp.njDQd0vVEk/k134.got 2026-10-21 20:59:52.701915013 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x50] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x10, R6 ; +[FAIL] k135: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k135.lst 2026-10-21 20:59:50.950373495 -0500 ++++ /tmp/tmp.njDQd0vVEk/k135.got 2026-10-21 20:59:52.717915163 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x20, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x18, R6 ; +[FAIL] k136: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k136.lst 2026-10-21 20:59:50.950413351 -0500 ++++ /tmp/tmp.njDQd0vVEk/k136.got 2026-10-21 20:59:52.732915303 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x28, R6 ; +[FAIL] k137: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k137.lst 2026-10-21 20:59:50.950450199 -0500 ++++ /tmp/tmp.njDQd0vVEk/k137.got 2026-10-21 20:59:52.752915490 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x8, R6 ; +[FAIL] k138: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k138.lst 2026-10-21 20:59:50.950485240 -0500 ++++ /tmp/tmp.njDQd0vVEk/k138.got 2026-10-21 20:59:52.760915565 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x30] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x10, R6 ; +[FAIL] k139: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k139.lst 2026-10-21 20:59:50.950520184 -0500 ++++ /tmp/tmp.njDQd0vVEk/k139.got 2026-10-21 20:59:52.769915649 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x50] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x20, R6 ; +[FAIL] k140: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k140.lst 2026-10-21 20:59:50.950553624 -0500 ++++ /tmp/tmp.njDQd0vVEk/k140.got 2026-10-21 20:59:52.782915771 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x10, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x30, R6 ; +[FAIL] k141: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k141.lst 2026-10-21 20:59:50.950641897 -0500 ++++ /tmp/tmp.njDQd0vVEk/k141.got 2026-10-21 20:59:52.791915855 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x20, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x50, R6 ; +[FAIL] k142: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k142.lst 2026-10-21 20:59:50.950690393 -0500 ++++ /tmp/tmp.njDQd0vVEk/k142.got 2026-10-21 20:59:52.802915958 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x30, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+-0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x10, R6 ; +[FAIL] k143: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k143.lst 2026-10-21 20:59:50.950738570 -0500 ++++ /tmp/tmp.njDQd0vVEk/k143.got 2026-10-21 20:59:52.814916070 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x50, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x20] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x20, R6 ; +[FAIL] k144: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k144.lst 2026-10-21 20:59:50.950787178 -0500 ++++ /tmp/tmp.njDQd0vVEk/k144.got 2026-10-21 20:59:52.825916173 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x4, R2 ; +-00d0 LDG.E R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k145: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k145.lst 2026-10-21 20:59:50.950833163 -0500 ++++ /tmp/tmp.njDQd0vVEk/k145.got 2026-10-21 20:59:52.836916276 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1000, R2 ; +-00d0 LDG.E.128 R12, desc[UR4][R2.64+0x10] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x40, R6 ; +[FAIL] k146: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k146.lst 2026-10-21 20:59:50.950879595 -0500 ++++ /tmp/tmp.njDQd0vVEk/k146.got 2026-10-21 20:59:52.846916369 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x1, R2 ; +-00d0 LDG.E.S8 R12, desc[UR4][R2.64] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] k147: disassembler text differs from the encoder's listing +--- /tmp/tmp.njDQd0vVEk/k147.lst 2026-10-21 20:59:50.950935148 -0500 ++++ /tmp/tmp.njDQd0vVEk/k147.got 2026-10-21 20:59:52.874916631 -0500 +@@ -3,20 +3,20 @@ + 0020 LDCU UR4, c[0x0][0x360] ; + 0030 S2R R0, SR_TID.X ; + 0040 LDCU UR5, c[0x0][0x398] ; +-0050 IMAD R9, R9, UR4, R0 ; +-0060 ISETP.GE.U32.AND P0, PT, R9, UR5, PT ; ++0050 IMAD R9, R8, UR4, R0 ; ++0060 ISETP.GE.U32.AND P0, PT, R8, UR5, PT ; + 0070 @P0 EXIT ; + 0080 LDC.64 R2, c[0x0][0x380] ; + 0090 LDCU.64 UR4, c[0x0][0x358] ; + 00a0 LDC.64 R4, c[0x0][0x388] ; + 00b0 LDC.64 R6, c[0x0][0x390] ; +-00c0 IMAD.WIDE.U32 R2, R9, 0x2, R2 ; +-00d0 LDG.E.S16 R12, desc[UR4][R2.64+-0x2] ; +-00e0 IMAD.WIDE.U32 R4, R9, 0x4, R4 ; +-00f0 LDG.E R5, desc[UR4][R4.64] ; +-0100 IMAD.WIDE.U32 R6, R9, 0x4, R6 ; +[FAIL] ldst: 0 of 148 kernels decode, every word, to the encoder's text +VERDICT FAIL +exit=1 diff --git a/evidence/C6-DISASM/07-red-reduce-faulty-decoder-20261024.log b/evidence/C6-DISASM/07-red-reduce-faulty-decoder-20261024.log new file mode 100644 index 000000000..c331e60d4 --- /dev/null +++ b/evidence/C6-DISASM/07-red-reduce-faulty-decoder-20261024.log @@ -0,0 +1,31 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:38Z +# command: make PHYSICS_DIR=~/workspace/l386-physics-pr REDUCE_NVDISASM=build/sm121dis_red test-numeric-reduce-nvdisasm +--- /tmp/tmp.6J4zN7IEJX/max.lst 2026-10-24 18:37:48.117861226 -0500 ++++ /tmp/tmp.6J4zN7IEJX/max.got 2026-10-24 18:37:48.121592312 -0500 +@@ -1,12 +1,12 @@ +-0000 SHFL.DOWN PT, R9, R2, 0x10, 0x1f ; +-0010 FMNMX R2, R2, R9, !PT ; +-0020 SHFL.DOWN PT, R9, R2, 0x8, 0x1f ; +-0030 FMNMX R2, R2, R9, !PT ; +-0040 SHFL.DOWN PT, R9, R2, 0x4, 0x1f ; +-0050 FMNMX R2, R2, R9, !PT ; +-0060 SHFL.DOWN PT, R9, R2, 0x2, 0x1f ; +-0070 FMNMX R2, R2, R9, !PT ; +-0080 SHFL.DOWN PT, R9, R2, 0x1, 0x1f ; +-0090 FMNMX R9, R2, R9, !PT ; +-00a0 STG.E desc[UR4][R6.64], R9 ; ++0000 SHFL.DOWN PT, R9, R3, 0x10, 0x1f ; ++0010 FMNMX R2, R3, R9, !PT ; ++0020 SHFL.DOWN PT, R9, R3, 0x8, 0x1f ; ++0030 FMNMX R2, R3, R9, !PT ; ++0040 SHFL.DOWN PT, R9, R3, 0x4, 0x1f ; ++0050 FMNMX R2, R3, R9, !PT ; ++0060 SHFL.DOWN PT, R9, R3, 0x2, 0x1f ; ++0070 FMNMX R2, R3, R9, !PT ; ++0080 SHFL.DOWN PT, R9, R3, 0x1, 0x1f ; ++0090 FMNMX R9, R3, R9, !PT ; ++00a0 STG.E desc[UR4][R7.64], R9 ; + 00b0 EXIT ; +E1 Reduce nvdisasm: FAIL (max) +make: *** [Makefile:336: test-numeric-reduce-nvdisasm] Error 1 +# exit 2 diff --git a/evidence/C6-DISASM/07-red-reduce-faulty-decoder.log b/evidence/C6-DISASM/07-red-reduce-faulty-decoder.log new file mode 100644 index 000000000..c5b69ef50 --- /dev/null +++ b/evidence/C6-DISASM/07-red-reduce-faulty-decoder.log @@ -0,0 +1,31 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:52Z +# command: make PHYSICS_DIR=/home/drakestapleton/workspace/physics-l386 REDUCE_NVDISASM=/tmp/c6/build/sm121dis_red test-numeric-reduce-nvdisasm +--- /tmp/tmp.ydYmXvn4t8/max.lst 2026-10-21 20:59:53.585835969 -0500 ++++ /tmp/tmp.ydYmXvn4t8/max.got 2026-10-21 20:59:53.590923328 -0500 +@@ -1,12 +1,12 @@ +-0000 SHFL.DOWN PT, R9, R2, 0x10, 0x1f ; +-0010 FMNMX R2, R2, R9, !PT ; +-0020 SHFL.DOWN PT, R9, R2, 0x8, 0x1f ; +-0030 FMNMX R2, R2, R9, !PT ; +-0040 SHFL.DOWN PT, R9, R2, 0x4, 0x1f ; +-0050 FMNMX R2, R2, R9, !PT ; +-0060 SHFL.DOWN PT, R9, R2, 0x2, 0x1f ; +-0070 FMNMX R2, R2, R9, !PT ; +-0080 SHFL.DOWN PT, R9, R2, 0x1, 0x1f ; +-0090 FMNMX R9, R2, R9, !PT ; +-00a0 STG.E desc[UR4][R6.64], R9 ; ++0000 SHFL.DOWN PT, R9, R3, 0x10, 0x1f ; ++0010 FMNMX R2, R3, R9, !PT ; ++0020 SHFL.DOWN PT, R9, R3, 0x8, 0x1f ; ++0030 FMNMX R2, R3, R9, !PT ; ++0040 SHFL.DOWN PT, R9, R3, 0x4, 0x1f ; ++0050 FMNMX R2, R3, R9, !PT ; ++0060 SHFL.DOWN PT, R9, R3, 0x2, 0x1f ; ++0070 FMNMX R2, R3, R9, !PT ; ++0080 SHFL.DOWN PT, R9, R3, 0x1, 0x1f ; ++0090 FMNMX R9, R3, R9, !PT ; ++00a0 STG.E desc[UR4][R7.64], R9 ; + 00b0 EXIT ; +E1 Reduce nvdisasm: FAIL (max) +make: *** [Makefile:323: test-numeric-reduce-nvdisasm] Error 1 +exit=2 diff --git a/evidence/C6-DISASM/08-gpu_attention_test-20261024.log b/evidence/C6-DISASM/08-gpu_attention_test-20261024.log new file mode 100644 index 000000000..d41394bc7 --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_attention_test-20261024.log @@ -0,0 +1,8 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:36Z +# command: build/gpu_attention_test --host-only +codegen paged_bf16: 216 insns, 58 gprs, 6 ugprs +sm121dis paged_bf16: rc=0 insns=216 of 216 undecodable=0 missing=0 (/tmp/omega_attn_paged_bf16_1223858.sass.WWprbJ) +codegen gqa_f32: 184 insns, 56 gprs, 6 ugprs +sm121dis gqa_f32: rc=0 insns=184 of 184 undecodable=0 missing=0 (/tmp/omega_attn_gqa_f32_1223858.sass.dEMQfv) +PASS: 107 checks, 0 failed +# exit 0 diff --git a/evidence/C6-DISASM/08-gpu_attention_test-hd128-20261024.log b/evidence/C6-DISASM/08-gpu_attention_test-hd128-20261024.log new file mode 100644 index 000000000..50f7f6282 --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_attention_test-hd128-20261024.log @@ -0,0 +1,8 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:38Z +# command: build/gpu_attention_test --hd 128 --host-only +codegen paged_bf16: 624 insns, 84 gprs, 6 ugprs +sm121dis paged_bf16: rc=0 insns=624 of 624 undecodable=0 missing=0 (/tmp/omega_attn_paged_bf16_1296001.sass.W90xp8) +codegen gqa_f32: 512 insns, 72 gprs, 6 ugprs +sm121dis gqa_f32: rc=0 insns=512 of 512 undecodable=0 missing=0 (/tmp/omega_attn_gqa_f32_1296001.sass.u2Z01s) +PASS: 107 checks, 0 failed +# exit 0 diff --git a/evidence/C6-DISASM/08-gpu_attention_test-hd128.log b/evidence/C6-DISASM/08-gpu_attention_test-hd128.log new file mode 100644 index 000000000..de8d692cd --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_attention_test-hd128.log @@ -0,0 +1,22 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:57Z +# command: /tmp/c6/build/gpu_attention_test --hd 128 --host-only +FAIL: paged_bf16 kernel generated (rc OK, 624 insns, 84 gprs) +codegen paged_bf16: 624 insns, 84 gprs, 6 ugprs +FAIL: paged_bf16 mutant NO_MAX generated (rc OK, 84 gprs) +FAIL: paged_bf16 mutant KV_HEAD generated (rc OK, 84 gprs) +FAIL: paged_bf16 mutant SLOT generated (rc OK, 84 gprs) +FAIL: paged_bf16 mutant NO_RESCALE generated (rc OK, 84 gprs) +FAIL: paged_bf16 mutant Q_ROW generated (rc OK, 84 gprs) +FAIL: paged_bf16 mutant OUT_ROW generated (rc OK, 84 gprs) +sm121dis paged_bf16: rc=0 insns=624 undecodable=0 missing=0 (/tmp/omega_attn_paged_bf16_1298719.sass) +FAIL: gqa_f32 kernel generated (rc OK, 512 insns, 72 gprs) +codegen gqa_f32: 512 insns, 72 gprs, 6 ugprs +FAIL: gqa_f32 mutant NO_MAX generated (rc OK, 72 gprs) +FAIL: gqa_f32 mutant KV_HEAD generated (rc OK, 72 gprs) +FAIL: gqa_f32 mutant SLOT generated (rc OK, 72 gprs) +FAIL: gqa_f32 mutant NO_RESCALE generated (rc OK, 72 gprs) +FAIL: gqa_f32 mutant Q_ROW generated (rc OK, 72 gprs) +FAIL: gqa_f32 mutant OUT_ROW generated (rc OK, 72 gprs) +sm121dis gqa_f32: rc=0 insns=512 undecodable=0 missing=0 (/tmp/omega_attn_gqa_f32_1298719.sass) +FAIL: 107 checks, 14 failed +exit=1 diff --git a/evidence/C6-DISASM/08-gpu_attention_test.log b/evidence/C6-DISASM/08-gpu_attention_test.log new file mode 100644 index 000000000..d45aed0dc --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_attention_test.log @@ -0,0 +1,8 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:57Z +# command: /tmp/c6/build/gpu_attention_test --host-only +codegen paged_bf16: 216 insns, 58 gprs, 6 ugprs +sm121dis paged_bf16: rc=0 insns=216 undecodable=0 missing=0 (/tmp/omega_attn_paged_bf16_1298554.sass) +codegen gqa_f32: 184 insns, 56 gprs, 6 ugprs +sm121dis gqa_f32: rc=0 insns=184 undecodable=0 missing=0 (/tmp/omega_attn_gqa_f32_1298554.sass) +PASS: 107 checks, 0 failed +exit=0 diff --git a/evidence/C6-DISASM/08-gpu_elementwise_test-20261024.log b/evidence/C6-DISASM/08-gpu_elementwise_test-20261024.log new file mode 100644 index 000000000..6a263891d --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_elementwise_test-20261024.log @@ -0,0 +1,14 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:36Z +# command: build/gpu_elementwise_test --host-only +codegen ex2: 32 insns, 10 gprs, 6 ugprs +sm121dis ex2: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_ex2_1223888.sass.tlwD5W) +codegen xchg: 32 insns, 12 gprs, 6 ugprs +sm121dis xchg: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_xchg_1223888.sass.yNQ5zy) +codegen rmsnorm: 80 insns, 25 gprs, 6 ugprs +sm121dis rmsnorm: rc=0 insns=80 undecodable=0 missing=0 (/tmp/omega_ew_rmsnorm_1223888.sass.LlOx32) +codegen rope: 32 insns, 17 gprs, 6 ugprs +sm121dis rope: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_rope_1223888.sass.r10aZU) +codegen swiglu: 32 insns, 12 gprs, 6 ugprs +sm121dis swiglu: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_swiglu_1223888.sass.meQ7me) +PASS: 24 checks, 0 failed +# exit 0 diff --git a/evidence/C6-DISASM/08-gpu_elementwise_test.log b/evidence/C6-DISASM/08-gpu_elementwise_test.log new file mode 100644 index 000000000..c4ccdc81a --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_elementwise_test.log @@ -0,0 +1,14 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:53Z +# command: /tmp/c6/build/gpu_elementwise_test --host-only +codegen ex2: 32 insns, 10 gprs, 6 ugprs +sm121dis ex2: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_ex2_1296164.sass) +codegen xchg: 32 insns, 12 gprs, 6 ugprs +sm121dis xchg: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_xchg_1296164.sass) +codegen rmsnorm: 80 insns, 25 gprs, 6 ugprs +sm121dis rmsnorm: rc=0 insns=80 undecodable=0 missing=0 (/tmp/omega_ew_rmsnorm_1296164.sass) +codegen rope: 32 insns, 17 gprs, 6 ugprs +sm121dis rope: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_rope_1296164.sass) +codegen swiglu: 32 insns, 12 gprs, 6 ugprs +sm121dis swiglu: rc=0 insns=32 undecodable=0 missing=0 (/tmp/omega_ew_swiglu_1296164.sass) +PASS: 24 checks, 0 failed +exit=0 diff --git a/evidence/C6-DISASM/08-gpu_fp8_api_test-20261024.log b/evidence/C6-DISASM/08-gpu_fp8_api_test-20261024.log new file mode 100644 index 000000000..41c3e8e45 --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_fp8_api_test-20261024.log @@ -0,0 +1,32 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:36Z +# command: build/gpu_fp8_api_test --host-only +grouped CTA rule: 10/10 ok (8 groups -> 6, 9 groups -> 5) +coal default 1: gate_up 8 x 1536 x 2048 warps 32 rows 1 depth 0 -> spec.coal 1, STG 1, BAR.SYNC 1 +coal default 1: down 8 x 2048 x 768 warps 32 rows 1 depth 0 -> spec.coal 1, STG 1, BAR.SYNC 1 +coal default 1: o_proj 2048 x 4096 warps 8 rows 1 depth 0 -> spec.coal 1, STG 1, BAR.SYNC 1 +deep default 1: qkv 5120x2048 depth 4 (coal 1, shared 8272), o_proj 2048x4096 depth 0, gate_up 8x1536x2048 depth 0 +deep default: 4800 qkv spec_for calls 0.068 ms +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 244 kernels built, largest 884 IR instructions, peak 88 GPRs +sm121dis k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_1223907.sass.5XTdWO) +sm121dis k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_1223907.sass.d1k0TR) +sm121dis k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_1223907.sass.oSvfRJ) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +sm121dis v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_1223907.sass.eKlljR) +sched1 codegen: 244 kernels built, 0 stall-distance violations +sched1 gate_up k2048 lb16 w32: 153 insns (sched0 153), peak 57 GPRs (sched0 51), declared 64; stall cycles in program order 414 (sched0 875); shortened-stall control caught +sched1 down k768 lb8 w32: 111 insns (sched0 111), peak 47 GPRs (sched0 41), declared 56; stall cycles in program order 358 (sched0 627); shortened-stall control caught +A/B codegen: 1888 kernels built (coal, wfirst, both x sched 0/1 x mutants), 0 stall-distance violations +A/B gate_up k2048 lb16 w32: insns 153 / A 183 / B 153 / A+B 183; declared regs A 64 B 56 A+B 64; load batches 3 / 3 / 2 / 2 +A/B down k768 lb8 w32: insns 111 / A 141 / B 111 / A+B 141; declared regs A 56 B 48 A+B 56; load batches 3 / 3 / 2 / 2 +gpu_fp8_api_test: 4997 checks, 0 failed: PASS +# exit 0 diff --git a/evidence/C6-DISASM/08-gpu_fp8_api_test.log b/evidence/C6-DISASM/08-gpu_fp8_api_test.log new file mode 100644 index 000000000..4af7b3c99 --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_fp8_api_test.log @@ -0,0 +1,20 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:53Z +# command: /tmp/c6/build/gpu_fp8_api_test --host-only +conversion: 254/256 exact, 2 NaN codes refused, 14 codes travel as f32 subnormals (2^-129 .. 7 * 2^-129): the chip must not flush them +codegen: 180 kernels built, largest 884 IR instructions, peak 88 GPRs +sm121dis k2048_lb16_r8: rc=0 insns=832 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r8_1296201.sass) +sm121dis k2048_lb16_r1_deep4: rc=0 insns=456 undecodable=0 missing=0 (/tmp/omega_fp8_k2048_lb16_r1_deep4_1296201.sass) +sm121dis k768_lb8_r2: rc=0 insns=168 undecodable=0 missing=0 (/tmp/omega_fp8_k768_lb8_r2_1296201.sass) +v2 codegen k=768 lb=8 rows=1: 250 insns, peak 52 GPRs, declared 56 +v2 codegen k=768 lb=8 rows=2: 401 insns, peak 66 GPRs, declared 72 +v2 codegen k=768 lb=8 rows=4: 703 insns, peak 94 GPRs, declared 96 +v2 codegen k=2048 lb=16 rows=1: 473 insns, peak 74 GPRs, declared 80 +v2 codegen k=2048 lb=16 rows=2: 838 insns, peak 108 GPRs, declared 112 +v2 codegen k=4096 lb=16 rows=1: 877 insns, peak 114 GPRs, declared 120 +v2 codegen: 24 kernels built, largest 877 IR instructions, peak 114 GPRs +v2 k=768 rows=1 warps=16: declared 56 registers, 28672 per SM at one CTA +v2 k=2048 rows=1 warps=16: declared 80 registers, 40960 per SM at one CTA +v2 k=4096 rows=1 warps=16: declared 120 registers, 61440 per SM at one CTA +sm121dis v2_k2048_lb16_r1_w16: rc=0 insns=480 undecodable=0 missing=0 (/tmp/omega_fp8_v2_k2048_lb16_r1_w16_1296201.sass) +gpu_fp8_api_test: 1482 checks, 0 failed: PASS +exit=0 diff --git a/evidence/C6-DISASM/08-gpu_reconv_test-20261024.log b/evidence/C6-DISASM/08-gpu_reconv_test-20261024.log new file mode 100644 index 000000000..d278e4407 --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_reconv_test-20261024.log @@ -0,0 +1,23 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:36Z +# command: build/gpu_reconv_test --host-only +codegen rc_diamond: 37 insns, 14 gprs, 1 regions +codegen rc_loopbreak: 41 insns, 14 gprs, 1 regions +codegen rc_nested: 49 insns, 15 gprs, 2 regions +codegen rc_exit_bar: 40 insns, 18 gprs, 1 regions +codegen rc_depth16: 107 insns, 14 gprs, 16 regions +sm121dis diamond: rc=0 insns=40 undecodable=0 missing=0 (/tmp/omega_rc_diamond_1224112.sass.vb8aKe) +sm121dis depth16: rc=0 insns=112 undecodable=0 missing=0 (/tmp/omega_rc_depth16_1224112.sass.c5w1wY) +sm121dis sieve_div2: rc=0 insns=72 undecodable=0 missing=0 (/tmp/omega_rc_sieve_div2_1224112.sass.TUXgFe) +sm121dis forms: rc=0 insns=4 undecodable=0 missing=0 (/tmp/omega_rc_forms_1224112.sass.qPR68w) +model rc_diamond n=4096: warp_issues=4736 lane_util=0.878 splits=128 max_frags=2 peak_bars=1 +model rc_diamond n=4096: warp_issues=4736 lane_util=0.878 splits=128 max_frags=2 peak_bars=1 +model rc_loopbreak n=4096: warp_issues=115685 lane_util=0.193 splits=2889 max_frags=28 peak_bars=1 +model rc_loopbreak n=4096: warp_issues=116847 lane_util=0.195 splits=2876 max_frags=2 peak_bars=1 +model rc_nested n=4096: warp_issues=92819 lane_util=0.150 splits=1739 max_frags=20 peak_bars=2 +model rc_nested n=4096: warp_issues=91594 lane_util=0.148 splits=1694 max_frags=2 peak_bars=2 +model rc_exit_bar n=4096: warp_issues=5120 lane_util=0.963 splits=128 max_frags=2 peak_bars=1 +model rc_exit_bar n=4096: warp_issues=5120 lane_util=0.962 splits=128 max_frags=2 peak_bars=1 +model rc_depth16 n=4096: warp_issues=13696 lane_util=0.640 splits=128 max_frags=2 peak_bars=16 +model rc_depth16 n=4096: warp_issues=13696 lane_util=0.637 splits=128 max_frags=2 peak_bars=16 +PASS: 119 checks, 0 failed +# exit 0 diff --git a/evidence/C6-DISASM/08-gpu_reconv_test.log b/evidence/C6-DISASM/08-gpu_reconv_test.log new file mode 100644 index 000000000..c846d77ee --- /dev/null +++ b/evidence/C6-DISASM/08-gpu_reconv_test.log @@ -0,0 +1,23 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:53Z +# command: /tmp/c6/build/gpu_reconv_test --host-only +codegen rc_diamond: 37 insns, 14 gprs, 1 regions +codegen rc_loopbreak: 41 insns, 14 gprs, 1 regions +codegen rc_nested: 49 insns, 15 gprs, 2 regions +codegen rc_exit_bar: 40 insns, 18 gprs, 1 regions +codegen rc_depth16: 107 insns, 14 gprs, 16 regions +sm121dis diamond: rc=0 insns=40 undecodable=0 missing=0 (/tmp/omega_rc_diamond_1296284.sass) +sm121dis depth16: rc=0 insns=112 undecodable=0 missing=0 (/tmp/omega_rc_depth16_1296284.sass) +sm121dis sieve_div2: rc=0 insns=72 undecodable=0 missing=0 (/tmp/omega_rc_sieve_div2_1296284.sass) +sm121dis forms: rc=0 insns=4 undecodable=0 missing=0 (/tmp/omega_rc_forms_1296284.sass) +model rc_diamond n=4096: warp_issues=4736 lane_util=0.878 splits=128 max_frags=2 peak_bars=1 +model rc_diamond n=4096: warp_issues=4736 lane_util=0.878 splits=128 max_frags=2 peak_bars=1 +model rc_loopbreak n=4096: warp_issues=115685 lane_util=0.193 splits=2889 max_frags=28 peak_bars=1 +model rc_loopbreak n=4096: warp_issues=116847 lane_util=0.195 splits=2876 max_frags=2 peak_bars=1 +model rc_nested n=4096: warp_issues=92819 lane_util=0.150 splits=1739 max_frags=20 peak_bars=2 +model rc_nested n=4096: warp_issues=91594 lane_util=0.148 splits=1694 max_frags=2 peak_bars=2 +model rc_exit_bar n=4096: warp_issues=5120 lane_util=0.963 splits=128 max_frags=2 peak_bars=1 +model rc_exit_bar n=4096: warp_issues=5120 lane_util=0.962 splits=128 max_frags=2 peak_bars=1 +model rc_depth16 n=4096: warp_issues=13696 lane_util=0.640 splits=128 max_frags=2 peak_bars=16 +model rc_depth16 n=4096: warp_issues=13696 lane_util=0.637 splits=128 max_frags=2 peak_bars=16 +PASS: 119 checks, 0 failed +exit=0 diff --git a/evidence/C6-DISASM/09-prime-race-host-20261024.log b/evidence/C6-DISASM/09-prime-race-host-20261024.log new file mode 100644 index 000000000..9e060bd4b --- /dev/null +++ b/evidence/C6-DISASM/09-prime-race-host-20261024.log @@ -0,0 +1,44 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:43Z +# command: make PHYSICS_DIR=~/workspace/l386-physics-pr prime-race-gb10-host-test +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/l386-physics-pr/m16 -I/home/drakestapleton/workspace/l386-physics-pr/nvrm -I/home/drakestapleton/workspace/l386-physics-pr/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/l386-physics-pr/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/l386-physics-pr/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/l386-physics-pr/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -Ibench/prime_race -Itests -o bench/prime_race/build/gb10_sieve_host_test bench/prime_race/tests/gb10_sieve_host_test.c build/libomega_gpu.a -lpthread -lm +./bench/prime_race/build/gb10_sieve_host_test +kernel: 71 IR insns, 72 encoded words, 29 GPRs, sha256 5fff3f7872a5098a77679898a6c0ab01070ca6c1f8113397acdbe903f2f06c39 +sm121dis (global table): 72 words, 0 undecodable, 6 branch targets checked (/tmp/pr_gb10_sieve_1505284.sass.diXsPR) +fixed RAW: 0 hazards; negative controls ALU=4: 1, predicate=13: 1 +scoreboard: 0 hazards; negative control (one wait dropped) found 6 +simulator: 155 limits, 0 differ, 932159769 IR steps +budget sweep: 16 cases (budgets 1, 2, 128, 256), 0 differ +staged kernel: 85 IR insns, 29 GPRs, sha256 7e6b6facfddf93d37bf0a73f222b8719e374750e4dc92a57b3b362cdd226c622 +sm121dis (staged): 88 words, 0 undecodable, 8 branch targets checked (/tmp/pr_gb10_sieve_1505284.sass.BqJyqj) +fixed RAW: 0 hazards; negative controls ALU=4: 1, predicate=13: 1 +staged simulator: 167 cases, 0 differ, races seen 0 +negative control, barrier removed: rc -1 err 6 (6 = race) +negative control, shared memory one entry short: rc -1 err 5 (5 = out of bounds) +warp-sim model C5 (global) 1e6: warp_issues=2254892 lane_util=0.996 splits=163 max_frags=11 +warp-sim model C5 (staged) 1e6: warp_issues=2836282 lane_util=0.798 splits=283 max_frags=11 bar_split_arrivals=246 +div1 kernel: 67 IR insns, 26 GPRs, 1 regions, sha256 e096269dc9ec4b9207ebb3ed030ffdd348214d2426b7eac0675a29e002bf8131 +sm121dis (div1): 72 words, 0 undecodable, 6 branch targets checked (/tmp/pr_gb10_sieve_1505284.sass.F5aNtC) +warp-sim model div1 1e6: warp_issues=2010666 lane_util=0.829 splits=57764 max_frags=12 peak_bars=1 bar_split_arrivals=0 +div1 warp simulator: 322 cases (both orders), 0 differ +div1 mutant 2: warp simulator says BSSY_REARM +div1 mutant 3: warp simulator says JOIN_MISMATCH +shared_div1 kernel: 83 IR insns, 26 GPRs, 2 regions, sha256 e0b6875f06943750110d3d83bd86e73c803c4fe599100af965117854ca06df20 +warp-sim model shared_div1 1e6: warp_issues=2031453 lane_util=0.831 splits=57887 max_frags=12 peak_bars=1 bar_split_arrivals=0 +shared_div1 warp simulator: 322 cases (both orders), 0 differ +shared_div1 mutant 2: warp simulator says BSSY_REARM +shared_div1 mutant 3: warp simulator says JOIN_MISMATCH +div2 kernel: 69 IR insns, 26 GPRs, 2 regions, sha256 fbd1c66e3ff8bdbdc9575cdc1b4d51986c050a79a2e3103ab3677468351512c6 +sm121dis (div2): 72 words, 0 undecodable, 6 branch targets checked (/tmp/pr_gb10_sieve_1505284.sass.8MczoF) +warp-sim model div2 1e6: warp_issues=2009525 lane_util=0.830 splits=57764 max_frags=12 peak_bars=2 bar_split_arrivals=0 +div2 warp simulator: 322 cases (both orders), 0 differ +div2 mutant 2: warp simulator says BSSY_REARM +div2 mutant 3: warp simulator says JOIN_MISMATCH +shared_div2 kernel: 85 IR insns, 26 GPRs, 3 regions, sha256 abb30b5505f7d4e26571e3e40092bcf35b6f868a5ccfe1316d323f32ae7d7a06 +warp-sim model shared_div2 1e6: warp_issues=2030312 lane_util=0.832 splits=57887 max_frags=12 peak_bars=2 bar_split_arrivals=0 +shared_div2 warp simulator: 322 cases (both orders), 0 differ +shared_div2 mutant 2: warp simulator says BSSY_REARM +shared_div2 mutant 3: warp simulator says JOIN_MISMATCH +magic model limit 1000000: 1838283 word/prime pairs, 0 needed the correction, 0 wrong +checks=180 failed=0 +VERDICT PASS +# exit 0 diff --git a/evidence/C6-DISASM/09-prime-race-host.log b/evidence/C6-DISASM/09-prime-race-host.log new file mode 100644 index 000000000..c6ce47770 --- /dev/null +++ b/evidence/C6-DISASM/09-prime-race-host.log @@ -0,0 +1,44 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T01:59:57Z +# command: quiet-build make PHYSICS_DIR=/home/drakestapleton/workspace/physics-l386 OUT_DIR=/tmp/c6/build prime-race-gb10-host-test +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/physics-l386/m16 -I/home/drakestapleton/workspace/physics-l386/nvrm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/physics-l386/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -Ibench/prime_race -Itests -o bench/prime_race/build/gb10_sieve_host_test bench/prime_race/tests/gb10_sieve_host_test.c /tmp/c6/build/libomega_gpu.a -lpthread -lm +./bench/prime_race/build/gb10_sieve_host_test +kernel: 71 IR insns, 72 encoded words, 29 GPRs, sha256 813279aa5a034f0a902f055d7a81ad19da002d499e2e01dcfa4ad765cb4fac43 +sm121dis (global table): 72 words, 0 undecodable, 6 branch targets checked (/tmp/pr_gb10_sieve_1300353.sass) +fixed RAW: 0 hazards; negative controls ALU=4: 1, predicate=13: 1 +scoreboard: 0 hazards; negative control (one wait dropped) found 6 +simulator: 155 limits, 0 differ, 932159769 IR steps +budget sweep: 16 cases (budgets 1, 2, 128, 256), 0 differ +staged kernel: 85 IR insns, 29 GPRs, sha256 8ff80476574a13272c81df93c0bd60f2b000cdab9811f60183c86c2965cb3b50 +sm121dis (staged): 88 words, 0 undecodable, 8 branch targets checked (/tmp/pr_gb10_sieve_1300353.sass) +fixed RAW: 0 hazards; negative controls ALU=4: 1, predicate=13: 1 +staged simulator: 167 cases, 0 differ, races seen 0 +negative control, barrier removed: rc -1 err 6 (6 = race) +negative control, shared memory one entry short: rc -1 err 5 (5 = out of bounds) +warp-sim model C5 (global) 1e6: warp_issues=2254892 lane_util=0.996 splits=163 max_frags=11 +warp-sim model C5 (staged) 1e6: warp_issues=2836282 lane_util=0.798 splits=283 max_frags=11 bar_split_arrivals=246 +div1 kernel: 67 IR insns, 26 GPRs, 1 regions, sha256 be5aa2e4673a9f31acca298ed0f64c286a8663e9cb444bf17b132c07ed92010b +sm121dis (div1): 72 words, 0 undecodable, 6 branch targets checked (/tmp/pr_gb10_sieve_1300353.sass) +warp-sim model div1 1e6: warp_issues=2010666 lane_util=0.829 splits=57764 max_frags=12 peak_bars=1 bar_split_arrivals=0 +div1 warp simulator: 322 cases (both orders), 0 differ +div1 mutant 2: warp simulator says BSSY_REARM +div1 mutant 3: warp simulator says JOIN_MISMATCH +shared_div1 kernel: 83 IR insns, 26 GPRs, 2 regions, sha256 ad14a9c538b8d1b9e3c07af78a0a855c0c98a7fb5147e3253ab8889f9e1a24b9 +warp-sim model shared_div1 1e6: warp_issues=2031453 lane_util=0.831 splits=57887 max_frags=12 peak_bars=1 bar_split_arrivals=0 +shared_div1 warp simulator: 322 cases (both orders), 0 differ +shared_div1 mutant 2: warp simulator says BSSY_REARM +shared_div1 mutant 3: warp simulator says JOIN_MISMATCH +div2 kernel: 69 IR insns, 26 GPRs, 2 regions, sha256 822e7fa3c5c18bfa1e0d5af968f3e03606299fd7af447c223c041d9a7d2684c1 +sm121dis (div2): 72 words, 0 undecodable, 6 branch targets checked (/tmp/pr_gb10_sieve_1300353.sass) +warp-sim model div2 1e6: warp_issues=2009525 lane_util=0.830 splits=57764 max_frags=12 peak_bars=2 bar_split_arrivals=0 +div2 warp simulator: 322 cases (both orders), 0 differ +div2 mutant 2: warp simulator says BSSY_REARM +div2 mutant 3: warp simulator says JOIN_MISMATCH +shared_div2 kernel: 85 IR insns, 26 GPRs, 3 regions, sha256 070d829ddf8d75613af5f85d6c6b7ded5019f026d669bc07d877452349f5634b +warp-sim model shared_div2 1e6: warp_issues=2030312 lane_util=0.832 splits=57887 max_frags=12 peak_bars=2 bar_split_arrivals=0 +shared_div2 warp simulator: 322 cases (both orders), 0 differ +shared_div2 mutant 2: warp simulator says BSSY_REARM +shared_div2 mutant 3: warp simulator says JOIN_MISMATCH +magic model limit 1000000: 1838283 word/prime pairs, 0 needed the correction, 0 wrong +checks=172 failed=0 +VERDICT PASS +exit=0 diff --git a/evidence/C6-DISASM/10-red-previous-decoder-strict-spacing.log b/evidence/C6-DISASM/10-red-previous-decoder-strict-spacing.log new file mode 100644 index 000000000..07d6e26ab --- /dev/null +++ b/evidence/C6-DISASM/10-red-previous-decoder-strict-spacing.log @@ -0,0 +1,2289 @@ +# omega c6/disasm b6a96d10 (worktree diff sha e3b0c44298fc1c14), 2026-10-22T02:00:45Z +# command: sh tools/sm121dis/check.sh /tmp/c6/old/sm121dis /tmp/c6/build/sm121dis-kernels /tmp/c6/build/sm121dis-old +oracle: release 13.0, V13.0.85 +[FAIL] 003134be24d4042f: 7 of 80 words differ +74,80c74,80 +< 0490 fffffffc00fc7947 000fc0000383ffff BRA 0x490; +< 04a0 0000000000007918 000fc00000000000 NOP; +< 04b0 0000000000007918 000fc00000000000 NOP; +< 04c0 0000000000007918 000fc00000000000 NOP; +< 04d0 0000000000007918 000fc00000000000 NOP; +[FAIL] 00ab8c0563fe7dd1: 5 of 184 words differ +180,184c180,184 +< 0b30 fffffffc00fc7947 000fc0000383ffff BRA 0xb30; +< 0b40 0000000000007918 000fc00000000000 NOP; +< 0b50 0000000000007918 000fc00000000000 NOP; +< 0b60 0000000000007918 000fc00000000000 NOP; +< 0b70 0000000000007918 000fc00000000000 NOP; +[FAIL] 0166a31f74b9d75f: 3 of 128 words differ +126,128c126,128 +< 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0; +< 07e0 0000000000007918 000fc00000000000 NOP; +< 07f0 0000000000007918 000fc00000000000 NOP; +--- +> 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0 ; +[FAIL] 01b6edddda38f891: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 03e029ac69774b9f: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 040255e13deee836: 6 of 224 words differ +219,224c219,224 +< 0da0 fffffffc00fc7947 000fc0000383ffff BRA 0xda0; +< 0db0 0000000000007918 000fc00000000000 NOP; +< 0dc0 0000000000007918 000fc00000000000 NOP; +< 0dd0 0000000000007918 000fc00000000000 NOP; +< 0de0 0000000000007918 000fc00000000000 NOP; +[FAIL] 05086e9139bae531: 1 of 192 words differ +192c192 +< 0bf0 fffffffc00fc7947 000fc0000383ffff BRA 0xbf0; +--- +> 0bf0 fffffffc00fc7947 000fc0000383ffff BRA 0xbf0 ; +[FAIL] 0675cdb98d176181: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 070d829ddf8d7561: 4 of 88 words differ +85,88c85,88 +< 0540 fffffffc00fc7947 000fc0000383ffff BRA 0x540; +< 0550 0000000000007918 000fc00000000000 NOP; +< 0560 0000000000007918 000fc00000000000 NOP; +< 0570 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 0723b0739d0f4caf: 2 of 624 words differ +623,624c623,624 +< 26e0 fffffffc00fc7947 000fc0000383ffff BRA 0x26e0; +< 26f0 0000000000007918 000fc00000000000 NOP; +--- +> 26e0 fffffffc00fc7947 000fc0000383ffff BRA 0x26e0 ; +> 26f0 0000000000007918 000fc00000000000 NOP ; +[FAIL] 075feda1149ebe8f: 2 of 624 words differ +623,624c623,624 +< 26e0 fffffffc00fc7947 000fc0000383ffff BRA 0x26e0; +< 26f0 0000000000007918 000fc00000000000 NOP; +--- +> 26e0 fffffffc00fc7947 000fc0000383ffff BRA 0x26e0 ; +> 26f0 0000000000007918 000fc00000000000 NOP ; +[FAIL] 0796d8bb451f1b2e: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 09274e6e0a3f90a3: 19 of 752 words differ +540c540 +< 21b0 0c201f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x1, 0x1f ; +--- +> 21b0 0c201f0016187f89 00022800000e0000 ?? 0x00022800000e00000c201f0016187f89 ; +542c542 +< 21d0 0c401f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x2, 0x1f ; +[FAIL] 092ac422ee8b6b28: 7 of 48 words differ +42,48c42,48 +< 0290 fffffffc00fc7947 000fc0000383ffff BRA 0x290; +< 02a0 0000000000007918 000fc00000000000 NOP; +< 02b0 0000000000007918 000fc00000000000 NOP; +< 02c0 0000000000007918 000fc00000000000 NOP; +< 02d0 0000000000007918 000fc00000000000 NOP; +[FAIL] 0a0231842ac86c54: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 0a61c9f1c52fab0e: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 0afd2c335a46a06f: 8 of 56 words differ +49,56c49,56 +< 0300 fffffffc00fc7947 000fc0000383ffff BRA 0x300; +< 0310 0000000000007918 000fc00000000000 NOP; +< 0320 0000000000007918 000fc00000000000 NOP; +< 0330 0000000000007918 000fc00000000000 NOP; +< 0340 0000000000007918 000fc00000000000 NOP; +[FAIL] 0b392ac277b4b6b9: 7 of 192 words differ +186,192c186,192 +< 0b90 fffffffc00fc7947 000fc0000383ffff BRA 0xb90; +< 0ba0 0000000000007918 000fc00000000000 NOP; +< 0bb0 0000000000007918 000fc00000000000 NOP; +< 0bc0 0000000000007918 000fc00000000000 NOP; +< 0bd0 0000000000007918 000fc00000000000 NOP; +[FAIL] 0b78320e4fc3cbfd: 2 of 624 words differ +623,624c623,624 +< 26e0 fffffffc00fc7947 000fc0000383ffff BRA 0x26e0; +< 26f0 0000000000007918 000fc00000000000 NOP; +--- +> 26e0 fffffffc00fc7947 000fc0000383ffff BRA 0x26e0 ; +> 26f0 0000000000007918 000fc00000000000 NOP ; +[FAIL] 0bf5bff13889c556: 2 of 512 words differ +511,512c511,512 +< 1fe0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fe0; +< 1ff0 0000000000007918 000fc00000000000 NOP; +--- +> 1fe0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fe0 ; +> 1ff0 0000000000007918 000fc00000000000 NOP ; +[FAIL] 0c2c583da93da3fb: 3 of 56 words differ +54,56c54,56 +< 0350 fffffffc00fc7947 000fc0000383ffff BRA 0x350; +< 0360 0000000000007918 000fc00000000000 NOP; +< 0370 0000000000007918 000fc00000000000 NOP; +--- +> 0350 fffffffc00fc7947 000fc0000383ffff BRA 0x350 ; +[FAIL] 0f317e0e3bf61b3e: 6 of 168 words differ +163,168c163,168 +< 0a20 fffffffc00fc7947 000fc0000383ffff BRA 0xa20; +< 0a30 0000000000007918 000fc00000000000 NOP; +< 0a40 0000000000007918 000fc00000000000 NOP; +< 0a50 0000000000007918 000fc00000000000 NOP; +< 0a60 0000000000007918 000fc00000000000 NOP; +[FAIL] 0f3f74284966f59c: 2 of 184 words differ +183,184c183,184 +< 0b60 fffffffc00fc7947 000fc0000383ffff BRA 0xb60; +< 0b70 0000000000007918 000fc00000000000 NOP; +--- +> 0b60 fffffffc00fc7947 000fc0000383ffff BRA 0xb60 ; +> 0b70 0000000000007918 000fc00000000000 NOP ; +[FAIL] 1269ff0807ea5a65: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 14654907604eb54b: 4 of 40 words differ +37,40c37,40 +< 0240 fffffffc00fc7947 000fc0000383ffff BRA 0x240; +< 0250 0000000000007918 000fc00000000000 NOP; +< 0260 0000000000007918 000fc00000000000 NOP; +< 0270 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 148b279d1f6c01f0: 7 of 840 words differ +834,840c834,840 +< 3410 fffffffc00fc7947 000fc0000383ffff BRA 0x3410; +< 3420 0000000000007918 000fc00000000000 NOP; +< 3430 0000000000007918 000fc00000000000 NOP; +< 3440 0000000000007918 000fc00000000000 NOP; +< 3450 0000000000007918 000fc00000000000 NOP; +[FAIL] 180cb2890eeecac4: 2 of 216 words differ +215,216c215,216 +< 0d60 fffffffc00fc7947 000fc0000383ffff BRA 0xd60; +< 0d70 0000000000007918 000fc00000000000 NOP; +--- +> 0d60 fffffffc00fc7947 000fc0000383ffff BRA 0xd60 ; +> 0d70 0000000000007918 000fc00000000000 NOP ; +[FAIL] 1916f790c0d70279: 23 of 912 words differ +664c664 +< 2970 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 2970 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +666c666 +< 2990 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] 1ab5f61815999863: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 1c252d2df9417ad6: 4 of 920 words differ +917,920c917,920 +< 3940 fffffffc00fc7947 000fc0000383ffff BRA 0x3940; +< 3950 0000000000007918 000fc00000000000 NOP; +< 3960 0000000000007918 000fc00000000000 NOP; +< 3970 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 1c8868c5267660e9: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] 1f7a30932580c346: 4 of 184 words differ +181,184c181,184 +< 0b40 fffffffc00fc7947 000fc0000383ffff BRA 0xb40; +< 0b50 0000000000007918 000fc00000000000 NOP; +< 0b60 0000000000007918 000fc00000000000 NOP; +< 0b70 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 22b0817480fb9c06: 8 of 56 words differ +49,56c49,56 +< 0300 fffffffc00fc7947 000fc0000383ffff BRA 0x300; +< 0310 0000000000007918 000fc00000000000 NOP; +< 0320 0000000000007918 000fc00000000000 NOP; +< 0330 0000000000007918 000fc00000000000 NOP; +< 0340 0000000000007918 000fc00000000000 NOP; +[FAIL] 2309771849649424: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] 238fc586aad3bf25: 16 of 32 words differ +17,32c17,32 +< 0100 fffffffc00fc7947 000fc0000383ffff BRA 0x100; +< 0110 0000000000007918 000fc00000000000 NOP; +< 0120 0000000000007918 000fc00000000000 NOP; +< 0130 0000000000007918 000fc00000000000 NOP; +< 0140 0000000000007918 000fc00000000000 NOP; +[FAIL] 2a1fc2738a754269: 1 of 456 words differ +456c456 +< 1c70 fffffffc00fc7947 000fc0000383ffff BRA 0x1c70; +--- +> 1c70 fffffffc00fc7947 000fc0000383ffff BRA 0x1c70 ; +[FAIL] 2af2f45df935262c: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 2b57d5d96269a829: 2 of 512 words differ +511,512c511,512 +< 1fe0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fe0; +< 1ff0 0000000000007918 000fc00000000000 NOP; +--- +> 1fe0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fe0 ; +> 1ff0 0000000000007918 000fc00000000000 NOP ; +[FAIL] 329eb0433f9fe756: 2 of 64 words differ +63,64c63,64 +< 03e0 fffffffc00fc7947 000fc0000383ffff BRA 0x3e0; +< 03f0 0000000000007918 000fc00000000000 NOP; +--- +> 03e0 fffffffc00fc7947 000fc0000383ffff BRA 0x3e0 ; +> 03f0 0000000000007918 000fc00000000000 NOP ; +[FAIL] 359c5fc37631c204: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] 37a7f4bdec50464f: 22 of 736 words differ +489c489 +< 1e80 0c201f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x1, 0x1f ; +--- +> 1e80 0c201f0016187f89 00022800000e0000 ?? 0x00022800000e00000c201f0016187f89 ; +491c491 +< 1ea0 0c401f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x2, 0x1f ; +[FAIL] 38c17d79c26e3c9b: 1 of 40 words differ +40c40 +< 0270 fffffffc00fc7947 000fc0000383ffff BRA 0x270; +--- +> 0270 fffffffc00fc7947 000fc0000383ffff BRA 0x270 ; +[FAIL] 3901a529ddace557: 22 of 704 words differ +489c489 +< 1e80 0c201f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x1, 0x1f ; +--- +> 1e80 0c201f0016187f89 00022800000e0000 ?? 0x00022800000e00000c201f0016187f89 ; +491c491 +< 1ea0 0c401f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x2, 0x1f ; +[FAIL] 3a17e8add2022b2e: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] 3a66f6982b5f2f63: 1 of 40 words differ +40c40 +< 0270 fffffffc00fc7947 000fc0000383ffff BRA 0x270; +--- +> 0270 fffffffc00fc7947 000fc0000383ffff BRA 0x270 ; +[FAIL] 3bc79d4a54fd0d82: 1 of 216 words differ +216c216 +< 0d70 fffffffc00fc7947 000fc0000383ffff BRA 0xd70; +--- +> 0d70 fffffffc00fc7947 000fc0000383ffff BRA 0xd70 ; +[FAIL] 3c6c1b9785621469: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 3d39a34f3878396b: 6 of 112 words differ +107,112c107,112 +< 06a0 fffffffc00fc7947 000fc0000383ffff BRA 0x6a0; +< 06b0 0000000000007918 000fc00000000000 NOP; +< 06c0 0000000000007918 000fc00000000000 NOP; +< 06d0 0000000000007918 000fc00000000000 NOP; +< 06e0 0000000000007918 000fc00000000000 NOP; +[FAIL] 3d96936a5880dbe5: 22 of 800 words differ +553c553 +< 2280 0c201f00151d7f89 00022800000e0000 SHFL.BFLY PT, R29, R21, 0x1, 0x1f ; +--- +> 2280 0c201f00151d7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151d7f89 ; +555c555 +< 22a0 0c401f00151d7f89 00022800000e0000 SHFL.BFLY PT, R29, R21, 0x2, 0x1f ; +[FAIL] 3ec70ae580eb1dda: 3 of 56 words differ +54,56c54,56 +< 0350 fffffffc00fc7947 000fc0000383ffff BRA 0x350; +< 0360 0000000000007918 000fc00000000000 NOP; +< 0370 0000000000007918 000fc00000000000 NOP; +--- +> 0350 fffffffc00fc7947 000fc0000383ffff BRA 0x350 ; +[FAIL] 40e950b30214f350: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 4357d1b9343cb602: 23 of 872 words differ +624c624 +< 26f0 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 26f0 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +626c626 +< 2710 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] 43d280bb67f4f86a: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 4449e43c627821d3: 1 of 40 words differ +40c40 +< 0270 fffffffc00fc7947 000fc0000383ffff BRA 0x270; +--- +> 0270 fffffffc00fc7947 000fc0000383ffff BRA 0x270 ; +[FAIL] 44605dfc84fe4e3a: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 44d27fae78ea21ee: 1 of 216 words differ +216c216 +< 0d70 fffffffc00fc7947 000fc0000383ffff BRA 0xd70; +--- +> 0d70 fffffffc00fc7947 000fc0000383ffff BRA 0xd70 ; +[FAIL] 46a2b82ebcb55237: 3 of 184 words differ +182,184c182,184 +< 0b50 fffffffc00fc7947 000fc0000383ffff BRA 0xb50; +< 0b60 0000000000007918 000fc00000000000 NOP; +< 0b70 0000000000007918 000fc00000000000 NOP; +--- +> 0b50 fffffffc00fc7947 000fc0000383ffff BRA 0xb50 ; +[FAIL] 4cb8d11dc137fe97: 8 of 480 words differ +473,480c473,480 +< 1d80 fffffffc00fc7947 000fc0000383ffff BRA 0x1d80; +< 1d90 0000000000007918 000fc00000000000 NOP; +< 1da0 0000000000007918 000fc00000000000 NOP; +< 1db0 0000000000007918 000fc00000000000 NOP; +< 1dc0 0000000000007918 000fc00000000000 NOP; +[FAIL] 4d5d65d6e32e2a6e: 14 of 32 words differ +19,32c19,32 +< 0120 fffffffc00fc7947 000fc0000383ffff BRA 0x120; +< 0130 0000000000007918 000fc00000000000 NOP; +< 0140 0000000000007918 000fc00000000000 NOP; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +[FAIL] 4fd4d8f9b930cbef: 13 of 32 words differ +20,32c20,32 +< 0130 fffffffc00fc7947 000fc0000383ffff BRA 0x130; +< 0140 0000000000007918 000fc00000000000 NOP; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +[FAIL] 50b7708d363e725b: 2 of 168 words differ +167,168c167,168 +< 0a60 fffffffc00fc7947 000fc0000383ffff BRA 0xa60; +< 0a70 0000000000007918 000fc00000000000 NOP; +--- +> 0a60 fffffffc00fc7947 000fc0000383ffff BRA 0xa60 ; +> 0a70 0000000000007918 000fc00000000000 NOP ; +[FAIL] 50ea0186c4352602: 2 of 504 words differ +503,504c503,504 +< 1f60 fffffffc00fc7947 000fc0000383ffff BRA 0x1f60; +< 1f70 0000000000007918 000fc00000000000 NOP; +--- +> 1f60 fffffffc00fc7947 000fc0000383ffff BRA 0x1f60 ; +> 1f70 0000000000007918 000fc00000000000 NOP ; +[FAIL] 51c6ff99ae62a674: 7 of 856 words differ +850,856c850,856 +< 3510 fffffffc00fc7947 000fc0000383ffff BRA 0x3510; +< 3520 0000000000007918 000fc00000000000 NOP; +< 3530 0000000000007918 000fc00000000000 NOP; +< 3540 0000000000007918 000fc00000000000 NOP; +< 3550 0000000000007918 000fc00000000000 NOP; +[FAIL] 5302cea4b66ac31f: 4 of 888 words differ +885,888c885,888 +< 3740 fffffffc00fc7947 000fc0000383ffff BRA 0x3740; +< 3750 0000000000007918 000fc00000000000 NOP; +< 3760 0000000000007918 000fc00000000000 NOP; +< 3770 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 532b55d0058995bb: 2 of 712 words differ +711,712c711,712 +< 2c60 fffffffc00fc7947 000fc0000383ffff BRA 0x2c60; +< 2c70 0000000000007918 000fc00000000000 NOP; +--- +> 2c60 fffffffc00fc7947 000fc0000383ffff BRA 0x2c60 ; +> 2c70 0000000000007918 000fc00000000000 NOP ; +[FAIL] 53fcb4c3c7b280bb: 8 of 56 words differ +49,56c49,56 +< 0300 fffffffc00fc7947 000fc0000383ffff BRA 0x300; +< 0310 0000000000007918 000fc00000000000 NOP; +< 0320 0000000000007918 000fc00000000000 NOP; +< 0330 0000000000007918 000fc00000000000 NOP; +< 0340 0000000000007918 000fc00000000000 NOP; +[FAIL] 5421095ea37a0c94: 3 of 32 words differ +30,32c30,32 +< 01d0 fffffffc00fc7947 000fc0000383ffff BRA 0x1d0; +< 01e0 0000000000007918 000fc00000000000 NOP; +< 01f0 0000000000007918 000fc00000000000 NOP; +--- +> 01d0 fffffffc00fc7947 000fc0000383ffff BRA 0x1d0 ; +[FAIL] 58aeba3d8e6970c3: 20 of 904 words differ +659c659 +< 2920 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 2920 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +661c661 +< 2940 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] 5b158f02cc14f8c7: 16 of 32 words differ +17,32c17,32 +< 0100 fffffffc00fc7947 000fc0000383ffff BRA 0x100; +< 0110 0000000000007918 000fc00000000000 NOP; +< 0120 0000000000007918 000fc00000000000 NOP; +< 0130 0000000000007918 000fc00000000000 NOP; +< 0140 0000000000007918 000fc00000000000 NOP; +[FAIL] 611cbd4fc2f556a9: 18 of 712 words differ +469c469 +< 1d40 0c201f0015177f89 00022800000e0000 SHFL.BFLY PT, R23, R21, 0x1, 0x1f ; +--- +> 1d40 0c201f0015177f89 00022800000e0000 ?? 0x00022800000e00000c201f0015177f89 ; +471c471 +< 1d60 0c401f0015177f89 00022800000e0000 SHFL.BFLY PT, R23, R21, 0x2, 0x1f ; +[FAIL] 6566dce1602409cf: 4 of 40 words differ +37,40c37,40 +< 0240 fffffffc00fc7947 000fc0000383ffff BRA 0x240; +< 0250 0000000000007918 000fc00000000000 NOP; +< 0260 0000000000007918 000fc00000000000 NOP; +< 0270 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 65d89fbe3f779a76: 3 of 168 words differ +166,168c166,168 +< 0a50 fffffffc00fc7947 000fc0000383ffff BRA 0xa50; +< 0a60 0000000000007918 000fc00000000000 NOP; +< 0a70 0000000000007918 000fc00000000000 NOP; +--- +> 0a50 fffffffc00fc7947 000fc0000383ffff BRA 0xa50 ; +[FAIL] 66d1e2ed7a3ceb9a: 6 of 112 words differ +107,112c107,112 +< 06a0 fffffffc00fc7947 000fc0000383ffff BRA 0x6a0; +< 06b0 0000000000007918 000fc00000000000 NOP; +< 06c0 0000000000007918 000fc00000000000 NOP; +< 06d0 0000000000007918 000fc00000000000 NOP; +< 06e0 0000000000007918 000fc00000000000 NOP; +[FAIL] 675625eb9a0931b5: 8 of 192 words differ +185,192c185,192 +< 0b80 fffffffc00fc7947 000fc0000383ffff BRA 0xb80; +< 0b90 0000000000007918 000fc00000000000 NOP; +< 0ba0 0000000000007918 000fc00000000000 NOP; +< 0bb0 0000000000007918 000fc00000000000 NOP; +< 0bc0 0000000000007918 000fc00000000000 NOP; +[FAIL] 683f6a471c6cb46f: 8 of 48 words differ +41,48c41,48 +< 0280 fffffffc00fc7947 000fc0000383ffff BRA 0x280; +< 0290 0000000000007918 000fc00000000000 NOP; +< 02a0 0000000000007918 000fc00000000000 NOP; +< 02b0 0000000000007918 000fc00000000000 NOP; +< 02c0 0000000000007918 000fc00000000000 NOP; +[FAIL] 68810571d02ee2a3: 6 of 624 words differ +619,624c619,624 +< 26a0 fffffffc00fc7947 000fc0000383ffff BRA 0x26a0; +< 26b0 0000000000007918 000fc00000000000 NOP; +< 26c0 0000000000007918 000fc00000000000 NOP; +< 26d0 0000000000007918 000fc00000000000 NOP; +< 26e0 0000000000007918 000fc00000000000 NOP; +[FAIL] 696a5b12799b4869: 8 of 192 words differ +185,192c185,192 +< 0b80 fffffffc00fc7947 000fc0000383ffff BRA 0xb80; +< 0b90 0000000000007918 000fc00000000000 NOP; +< 0ba0 0000000000007918 000fc00000000000 NOP; +< 0bb0 0000000000007918 000fc00000000000 NOP; +< 0bc0 0000000000007918 000fc00000000000 NOP; +[FAIL] 6c04d09909a236be: 8 of 48 words differ +41,48c41,48 +< 0280 fffffffc00fc7947 000fc0000383ffff BRA 0x280; +< 0290 0000000000007918 000fc00000000000 NOP; +< 02a0 0000000000007918 000fc00000000000 NOP; +< 02b0 0000000000007918 000fc00000000000 NOP; +< 02c0 0000000000007918 000fc00000000000 NOP; +[FAIL] 6c4aaa22d7e72751: 3 of 32 words differ +30,32c30,32 +< 01d0 fffffffc00fc7947 000fc0000383ffff BRA 0x1d0; +< 01e0 0000000000007918 000fc00000000000 NOP; +< 01f0 0000000000007918 000fc00000000000 NOP; +--- +> 01d0 fffffffc00fc7947 000fc0000383ffff BRA 0x1d0 ; +[FAIL] 6c4b61dd7c6e3821: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 6d91a2543cf32e37: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 6f96d1312cf5e2d4: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] 703dfb93281de0f6: 20 of 888 words differ +675c675 +< 2a20 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 2a20 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +677c677 +< 2a40 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] 70a3c66f91c434e6: 6 of 112 words differ +107,112c107,112 +< 06a0 fffffffc00fc7947 000fc0000383ffff BRA 0x6a0; +< 06b0 0000000000007918 000fc00000000000 NOP; +< 06c0 0000000000007918 000fc00000000000 NOP; +< 06d0 0000000000007918 000fc00000000000 NOP; +< 06e0 0000000000007918 000fc00000000000 NOP; +[FAIL] 74b53ca328c9ed32: 4 of 88 words differ +85,88c85,88 +< 0540 fffffffc00fc7947 000fc0000383ffff BRA 0x540; +< 0550 0000000000007918 000fc00000000000 NOP; +< 0560 0000000000007918 000fc00000000000 NOP; +< 0570 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 7a6fa49d650c91aa: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 7ca7d53247f4a27c: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] 7e537150dd31f94d: 3 of 168 words differ +166,168c166,168 +< 0a50 fffffffc00fc7947 000fc0000383ffff BRA 0xa50; +< 0a60 0000000000007918 000fc00000000000 NOP; +< 0a70 0000000000007918 000fc00000000000 NOP; +--- +> 0a50 fffffffc00fc7947 000fc0000383ffff BRA 0xa50 ; +[FAIL] 7f570b1989698629: 5 of 512 words differ +508,512c508,512 +< 1fb0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fb0; +< 1fc0 0000000000007918 000fc00000000000 NOP; +< 1fd0 0000000000007918 000fc00000000000 NOP; +< 1fe0 0000000000007918 000fc00000000000 NOP; +< 1ff0 0000000000007918 000fc00000000000 NOP; +[FAIL] 80ae705ea1c9d6b2: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] 8211c22b21558aca: 19 of 784 words differ +540c540 +< 21b0 0c201f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x1, 0x1f ; +--- +> 21b0 0c201f0016187f89 00022800000e0000 ?? 0x00022800000e00000c201f0016187f89 ; +542c542 +< 21d0 0c401f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x2, 0x1f ; +[FAIL] 822e7fa3c5c18bfa: 4 of 72 words differ +69,72c69,72 +< 0440 fffffffc00fc7947 000fc0000383ffff BRA 0x440; +< 0450 0000000000007918 000fc00000000000 NOP; +< 0460 0000000000007918 000fc00000000000 NOP; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] 823124ae67a139f9: 16 of 32 words differ +17,32c17,32 +< 0100 fffffffc00fc7947 000fc0000383ffff BRA 0x100; +< 0110 0000000000007918 000fc00000000000 NOP; +< 0120 0000000000007918 000fc00000000000 NOP; +< 0130 0000000000007918 000fc00000000000 NOP; +< 0140 0000000000007918 000fc00000000000 NOP; +[FAIL] 83eca9872e32c173: 1 of 216 words differ +216c216 +< 0d70 fffffffc00fc7947 000fc0000383ffff BRA 0xd70; +--- +> 0d70 fffffffc00fc7947 000fc0000383ffff BRA 0xd70 ; +[FAIL] 84296b7303aa0341: 16 of 32 words differ +17,32c17,32 +< 0100 fffffffc00fc7947 000fc0000383ffff BRA 0x100; +< 0110 0000000000007918 000fc00000000000 NOP; +< 0120 0000000000007918 000fc00000000000 NOP; +< 0130 0000000000007918 000fc00000000000 NOP; +< 0140 0000000000007918 000fc00000000000 NOP; +[FAIL] 899c917428da45c3: 6 of 504 words differ +499,504c499,504 +< 1f20 fffffffc00fc7947 000fc0000383ffff BRA 0x1f20; +< 1f30 0000000000007918 000fc00000000000 NOP; +< 1f40 0000000000007918 000fc00000000000 NOP; +< 1f50 0000000000007918 000fc00000000000 NOP; +< 1f60 0000000000007918 000fc00000000000 NOP; +[FAIL] 8f997651b59bc8eb: 6 of 512 words differ +507,512c507,512 +< 1fa0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fa0; +< 1fb0 0000000000007918 000fc00000000000 NOP; +< 1fc0 0000000000007918 000fc00000000000 NOP; +< 1fd0 0000000000007918 000fc00000000000 NOP; +< 1fe0 0000000000007918 000fc00000000000 NOP; +[FAIL] 8fd282f4584b9512: 7 of 32 words differ +26,32c26,32 +< 0190 fffffffc00fc7947 000fc0000383ffff BRA 0x190; +< 01a0 0000000000007918 000fc00000000000 NOP; +< 01b0 0000000000007918 000fc00000000000 NOP; +< 01c0 0000000000007918 000fc00000000000 NOP; +< 01d0 0000000000007918 000fc00000000000 NOP; +[FAIL] 8ff335f4b6d2ad51: 6 of 624 words differ +619,624c619,624 +< 26a0 fffffffc00fc7947 000fc0000383ffff BRA 0x26a0; +< 26b0 0000000000007918 000fc00000000000 NOP; +< 26c0 0000000000007918 000fc00000000000 NOP; +< 26d0 0000000000007918 000fc00000000000 NOP; +< 26e0 0000000000007918 000fc00000000000 NOP; +[FAIL] 9026fb3912f7d681: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 93b0ae705ff2671c: 5 of 88 words differ +84,88c84,88 +< 0530 fffffffc00fc7947 000fc0000383ffff BRA 0x530; +< 0540 0000000000007918 000fc00000000000 NOP; +< 0550 0000000000007918 000fc00000000000 NOP; +< 0560 0000000000007918 000fc00000000000 NOP; +< 0570 0000000000007918 000fc00000000000 NOP; +[FAIL] 953ce8f6dcedcfb5: 19 of 848 words differ +604c604 +< 25b0 0c201f00151d7f89 00022800000e0000 SHFL.BFLY PT, R29, R21, 0x1, 0x1f ; +--- +> 25b0 0c201f00151d7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151d7f89 ; +606c606 +< 25d0 0c401f00151d7f89 00022800000e0000 SHFL.BFLY PT, R29, R21, 0x2, 0x1f ; +[FAIL] 956e20d57f875606: 6 of 728 words differ +723,728c723,728 +< 2d20 fffffffc00fc7947 000fc0000383ffff BRA 0x2d20; +< 2d30 0000000000007918 000fc00000000000 NOP; +< 2d40 0000000000007918 000fc00000000000 NOP; +< 2d50 0000000000007918 000fc00000000000 NOP; +< 2d60 0000000000007918 000fc00000000000 NOP; +[FAIL] 95aa47327e8cd56f: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 970db9533c836eca: 3 of 184 words differ +182,184c182,184 +< 0b50 fffffffc00fc7947 000fc0000383ffff BRA 0xb50; +< 0b60 0000000000007918 000fc00000000000 NOP; +< 0b70 0000000000007918 000fc00000000000 NOP; +--- +> 0b50 fffffffc00fc7947 000fc0000383ffff BRA 0xb50 ; +[FAIL] 97890779eab08c81: 3 of 40 words differ +38,40c38,40 +< 0250 fffffffc00fc7947 000fc0000383ffff BRA 0x250; +< 0260 0000000000007918 000fc00000000000 NOP; +< 0270 0000000000007918 000fc00000000000 NOP; +--- +> 0250 fffffffc00fc7947 000fc0000383ffff BRA 0x250 ; +[FAIL] 99179ec7a69e9987: 3 of 128 words differ +126,128c126,128 +< 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0; +< 07e0 0000000000007918 000fc00000000000 NOP; +< 07f0 0000000000007918 000fc00000000000 NOP; +--- +> 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0 ; +[FAIL] 9a90d2ecb762c744: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] 9c5ad6a3aec5a2de: 2 of 616 words differ +615,616c615,616 +< 2660 fffffffc00fc7947 000fc0000383ffff BRA 0x2660; +< 2670 0000000000007918 000fc00000000000 NOP; +--- +> 2660 fffffffc00fc7947 000fc0000383ffff BRA 0x2660 ; +> 2670 0000000000007918 000fc00000000000 NOP ; +[FAIL] 9ee9ee8653de5d02: 2 of 856 words differ +855,856c855,856 +< 3560 fffffffc00fc7947 000fc0000383ffff BRA 0x3560; +< 3570 0000000000007918 000fc00000000000 NOP; +--- +> 3560 fffffffc00fc7947 000fc0000383ffff BRA 0x3560 ; +> 3570 0000000000007918 000fc00000000000 NOP ; +[FAIL] a661cba549ba8bd1: 8 of 48 words differ +41,48c41,48 +< 0280 fffffffc00fc7947 000fc0000383ffff BRA 0x280; +< 0290 0000000000007918 000fc00000000000 NOP; +< 02a0 0000000000007918 000fc00000000000 NOP; +< 02b0 0000000000007918 000fc00000000000 NOP; +< 02c0 0000000000007918 000fc00000000000 NOP; +[FAIL] a7120202c46968f3: 6 of 736 words differ +731,736c731,736 +< 2da0 fffffffc00fc7947 000fc0000383ffff BRA 0x2da0; +< 2db0 0000000000007918 000fc00000000000 NOP; +< 2dc0 0000000000007918 000fc00000000000 NOP; +< 2dd0 0000000000007918 000fc00000000000 NOP; +< 2de0 0000000000007918 000fc00000000000 NOP; +[FAIL] a731b2bd167acef8: 3 of 752 words differ +750,752c750,752 +< 2ed0 fffffffc00fc7947 000fc0000383ffff BRA 0x2ed0; +< 2ee0 0000000000007918 000fc00000000000 NOP; +< 2ef0 0000000000007918 000fc00000000000 NOP; +--- +> 2ed0 fffffffc00fc7947 000fc0000383ffff BRA 0x2ed0 ; +[FAIL] aa2e71300a473abe: 1 of 72 words differ +72c72 +< 0470 fffffffc00fc7947 000fc0000383ffff BRA 0x470; +--- +> 0470 fffffffc00fc7947 000fc0000383ffff BRA 0x470 ; +[FAIL] aa70ec72d6327f6b: 6 of 800 words differ +795,800c795,800 +< 31a0 fffffffc00fc7947 000fc0000383ffff BRA 0x31a0; +< 31b0 0000000000007918 000fc00000000000 NOP; +< 31c0 0000000000007918 000fc00000000000 NOP; +< 31d0 0000000000007918 000fc00000000000 NOP; +< 31e0 0000000000007918 000fc00000000000 NOP; +[FAIL] abb1b024cdf477af: 3 of 176 words differ +174,176c174,176 +< 0ad0 fffffffc00fc7947 000fc0000383ffff BRA 0xad0; +< 0ae0 0000000000007918 000fc00000000000 NOP; +< 0af0 0000000000007918 000fc00000000000 NOP; +--- +> 0ad0 fffffffc00fc7947 000fc0000383ffff BRA 0xad0 ; +[FAIL] ad0e17a9d92abd99: 3 of 56 words differ +54,56c54,56 +< 0350 fffffffc00fc7947 000fc0000383ffff BRA 0x350; +< 0360 0000000000007918 000fc00000000000 NOP; +< 0370 0000000000007918 000fc00000000000 NOP; +--- +> 0350 fffffffc00fc7947 000fc0000383ffff BRA 0x350 ; +[FAIL] ad14a9c538b8d1b9: 6 of 88 words differ +83,88c83,88 +< 0520 fffffffc00fc7947 000fc0000383ffff BRA 0x520; +< 0530 0000000000007918 000fc00000000000 NOP; +< 0540 0000000000007918 000fc00000000000 NOP; +< 0550 0000000000007918 000fc00000000000 NOP; +< 0560 0000000000007918 000fc00000000000 NOP; +[FAIL] af714031dc417c22: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] af9bf924eecc0bd4: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] b0081a181add263d: 3 of 216 words differ +214,216c214,216 +< 0d50 fffffffc00fc7947 000fc0000383ffff BRA 0xd50; +< 0d60 0000000000007918 000fc00000000000 NOP; +< 0d70 0000000000007918 000fc00000000000 NOP; +--- +> 0d50 fffffffc00fc7947 000fc0000383ffff BRA 0xd50 ; +[FAIL] b1ca47243d5ab24b: 4 of 40 words differ +37,40c37,40 +< 0240 fffffffc00fc7947 000fc0000383ffff BRA 0x240; +< 0250 0000000000007918 000fc00000000000 NOP; +< 0260 0000000000007918 000fc00000000000 NOP; +< 0270 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] b27f883e08263980: 19 of 776 words differ +532c532 +< 2130 0c201f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x1, 0x1f ; +--- +> 2130 0c201f0016187f89 00022800000e0000 ?? 0x00022800000e00000c201f0016187f89 ; +534c534 +< 2150 0c401f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x2, 0x1f ; +[FAIL] b4e3acb923aea99a: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] b6a25d8739185bbd: 3 of 184 words differ +182,184c182,184 +< 0b50 fffffffc00fc7947 000fc0000383ffff BRA 0xb50; +< 0b60 0000000000007918 000fc00000000000 NOP; +< 0b70 0000000000007918 000fc00000000000 NOP; +--- +> 0b50 fffffffc00fc7947 000fc0000383ffff BRA 0xb50 ; +[FAIL] b6af468e224fe471: 3 of 128 words differ +126,128c126,128 +< 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0; +< 07e0 0000000000007918 000fc00000000000 NOP; +< 07f0 0000000000007918 000fc00000000000 NOP; +--- +> 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0 ; +[FAIL] b778dc5ae9c3d358: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] b8843d8615e24e05: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] b8a1c4470e3828a3: 21 of 664 words differ +418c418 +< 1a10 0c201f0015177f89 00022800000e0000 SHFL.BFLY PT, R23, R21, 0x1, 0x1f ; +--- +> 1a10 0c201f0015177f89 00022800000e0000 ?? 0x00022800000e00000c201f0015177f89 ; +420c420 +< 1a30 0c401f0015177f89 00022800000e0000 SHFL.BFLY PT, R23, R21, 0x2, 0x1f ; +[FAIL] b8fdd5a91e1ec4d9: 21 of 32 words differ +12,32c12,32 +< 00b0 fffffffc00fc7947 000fc0000383ffff BRA 0xb0; +< 00c0 0000000000007918 000fc00000000000 NOP; +< 00d0 0000000000007918 000fc00000000000 NOP; +< 00e0 0000000000007918 000fc00000000000 NOP; +< 00f0 0000000000007918 000fc00000000000 NOP; +[FAIL] b9468a55ba06e0fb: 20 of 920 words differ +675c675 +< 2a20 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 2a20 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +677c677 +< 2a40 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] bac2bcf6382f30a8: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] bc0ccfea454ce470: 8 of 48 words differ +41,48c41,48 +< 0280 fffffffc00fc7947 000fc0000383ffff BRA 0x280; +< 0290 0000000000007918 000fc00000000000 NOP; +< 02a0 0000000000007918 000fc00000000000 NOP; +< 02b0 0000000000007918 000fc00000000000 NOP; +< 02c0 0000000000007918 000fc00000000000 NOP; +[FAIL] be5aa2e4673a9f31: 6 of 72 words differ +67,72c67,72 +< 0420 fffffffc00fc7947 000fc0000383ffff BRA 0x420; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +< 0460 0000000000007918 000fc00000000000 NOP; +[FAIL] c045fa6d0a757e42: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] c54c1652e38838d2: 6 of 704 words differ +699,704c699,704 +< 2ba0 fffffffc00fc7947 000fc0000383ffff BRA 0x2ba0; +< 2bb0 0000000000007918 000fc00000000000 NOP; +< 2bc0 0000000000007918 000fc00000000000 NOP; +< 2bd0 0000000000007918 000fc00000000000 NOP; +< 2be0 0000000000007918 000fc00000000000 NOP; +[FAIL] cbcb53f08d37c052: 8 of 832 words differ +825,832c825,832 +< 3380 fffffffc00fc7947 000fc0000383ffff BRA 0x3380; +< 3390 0000000000007918 000fc00000000000 NOP; +< 33a0 0000000000007918 000fc00000000000 NOP; +< 33b0 0000000000007918 000fc00000000000 NOP; +< 33c0 0000000000007918 000fc00000000000 NOP; +[FAIL] cd9cfbab2e6ff8c1: 23 of 856 words differ +608c608 +< 25f0 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 25f0 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +610c610 +< 2610 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] cdbcb9dedb91c1f6: 5 of 88 words differ +84,88c84,88 +< 0530 fffffffc00fc7947 000fc0000383ffff BRA 0x530; +< 0540 0000000000007918 000fc00000000000 NOP; +< 0550 0000000000007918 000fc00000000000 NOP; +< 0560 0000000000007918 000fc00000000000 NOP; +< 0570 0000000000007918 000fc00000000000 NOP; +[FAIL] ce2912ef123e3b44: 7 of 872 words differ +866,872c866,872 +< 3610 fffffffc00fc7947 000fc0000383ffff BRA 0x3610; +< 3620 0000000000007918 000fc00000000000 NOP; +< 3630 0000000000007918 000fc00000000000 NOP; +< 3640 0000000000007918 000fc00000000000 NOP; +< 3650 0000000000007918 000fc00000000000 NOP; +[FAIL] d066ef273a57c300: 2 of 512 words differ +511,512c511,512 +< 1fe0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fe0; +< 1ff0 0000000000007918 000fc00000000000 NOP; +--- +> 1fe0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fe0 ; +> 1ff0 0000000000007918 000fc00000000000 NOP ; +[FAIL] d137f039f55e4c6e: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] d1b72ec0de84b094: 1 of 208 words differ +208c208 +< 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0; +--- +> 0cf0 fffffffc00fc7947 000fc0000383ffff BRA 0xcf0 ; +[FAIL] d3687aca9100d2da: 4 of 904 words differ +901,904c901,904 +< 3840 fffffffc00fc7947 000fc0000383ffff BRA 0x3840; +< 3850 0000000000007918 000fc00000000000 NOP; +< 3860 0000000000007918 000fc00000000000 NOP; +< 3870 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] d3c212fb6dd9d6f1: 3 of 776 words differ +774,776c774,776 +< 3050 fffffffc00fc7947 000fc0000383ffff BRA 0x3050; +< 3060 0000000000007918 000fc00000000000 NOP; +< 3070 0000000000007918 000fc00000000000 NOP; +--- +> 3050 fffffffc00fc7947 000fc0000383ffff BRA 0x3050 ; +[FAIL] d4db1618662aa48b: 5 of 624 words differ +620,624c620,624 +< 26b0 fffffffc00fc7947 000fc0000383ffff BRA 0x26b0; +< 26c0 0000000000007918 000fc00000000000 NOP; +< 26d0 0000000000007918 000fc00000000000 NOP; +< 26e0 0000000000007918 000fc00000000000 NOP; +< 26f0 0000000000007918 000fc00000000000 NOP; +[FAIL] d554fa5746fe20b1: 3 of 784 words differ +782,784c782,784 +< 30d0 fffffffc00fc7947 000fc0000383ffff BRA 0x30d0; +< 30e0 0000000000007918 000fc00000000000 NOP; +< 30f0 0000000000007918 000fc00000000000 NOP; +--- +> 30d0 fffffffc00fc7947 000fc0000383ffff BRA 0x30d0 ; +[FAIL] d738e01b18ee0ceb: 3 of 848 words differ +846,848c846,848 +< 34d0 fffffffc00fc7947 000fc0000383ffff BRA 0x34d0; +< 34e0 0000000000007918 000fc00000000000 NOP; +< 34f0 0000000000007918 000fc00000000000 NOP; +--- +> 34d0 fffffffc00fc7947 000fc0000383ffff BRA 0x34d0 ; +[FAIL] d74d1274dc65a555: 7 of 232 words differ +226,232c226,232 +< 0e10 fffffffc00fc7947 000fc0000383ffff BRA 0xe10; +< 0e20 0000000000007918 000fc00000000000 NOP; +< 0e30 0000000000007918 000fc00000000000 NOP; +< 0e40 0000000000007918 000fc00000000000 NOP; +< 0e50 0000000000007918 000fc00000000000 NOP; +[FAIL] d81678712d70b3f0: 5 of 224 words differ +220,224c220,224 +< 0db0 fffffffc00fc7947 000fc0000383ffff BRA 0xdb0; +< 0dc0 0000000000007918 000fc00000000000 NOP; +< 0dd0 0000000000007918 000fc00000000000 NOP; +< 0de0 0000000000007918 000fc00000000000 NOP; +< 0df0 0000000000007918 000fc00000000000 NOP; +[FAIL] d819fcc65676ff36: 3 of 128 words differ +126,128c126,128 +< 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0; +< 07e0 0000000000007918 000fc00000000000 NOP; +< 07f0 0000000000007918 000fc00000000000 NOP; +--- +> 07d0 fffffffc00fc7947 000fc0000383ffff BRA 0x7d0 ; +[FAIL] d9ad9c4b7cbe0f1b: 3 of 176 words differ +174,176c174,176 +< 0ad0 fffffffc00fc7947 000fc0000383ffff BRA 0xad0; +< 0ae0 0000000000007918 000fc00000000000 NOP; +< 0af0 0000000000007918 000fc00000000000 NOP; +--- +> 0ad0 fffffffc00fc7947 000fc0000383ffff BRA 0xad0 ; +[FAIL] d9d3180ed00aa71b: 7 of 32 words differ +26,32c26,32 +< 0190 fffffffc00fc7947 000fc0000383ffff BRA 0x190; +< 01a0 0000000000007918 000fc00000000000 NOP; +< 01b0 0000000000007918 000fc00000000000 NOP; +< 01c0 0000000000007918 000fc00000000000 NOP; +< 01d0 0000000000007918 000fc00000000000 NOP; +[FAIL] da8c64451b222c14: 7 of 912 words differ +906,912c906,912 +< 3890 fffffffc00fc7947 000fc0000383ffff BRA 0x3890; +< 38a0 0000000000007918 000fc00000000000 NOP; +< 38b0 0000000000007918 000fc00000000000 NOP; +< 38c0 0000000000007918 000fc00000000000 NOP; +< 38d0 0000000000007918 000fc00000000000 NOP; +[FAIL] dc3525596d00d5f8: 7 of 88 words differ +82,88c82,88 +< 0510 fffffffc00fc7947 000fc0000383ffff BRA 0x510; +< 0520 0000000000007918 000fc00000000000 NOP; +< 0530 0000000000007918 000fc00000000000 NOP; +< 0540 0000000000007918 000fc00000000000 NOP; +< 0550 0000000000007918 000fc00000000000 NOP; +[FAIL] dca37bf932216398: 24 of 32 words differ +4,5c4,5 +< 0030 0c201f0004057f89 00322800000e0000 SHFL.BFLY PT, R5, R4, 0x1, 0x1f ; +< 0040 0c401f0005067f89 00322800000e0000 SHFL.BFLY PT, R6, R5, 0x2, 0x1f ; +--- +> 0030 0c201f0004057f89 00322800000e0000 ?? 0x00322800000e00000c201f0004057f89 ; +> 0040 0c401f0005067f89 00322800000e0000 ?? 0x00322800000e00000c401f0005067f89 ; +[FAIL] e1c55da7de04f655: 5 of 664 words differ +660,664c660,664 +< 2930 fffffffc00fc7947 000fc0000383ffff BRA 0x2930; +< 2940 0000000000007918 000fc00000000000 NOP; +< 2950 0000000000007918 000fc00000000000 NOP; +< 2960 0000000000007918 000fc00000000000 NOP; +< 2970 0000000000007918 000fc00000000000 NOP; +[FAIL] e46f066800c4f93a: 6 of 512 words differ +507,512c507,512 +< 1fa0 fffffffc00fc7947 000fc0000383ffff BRA 0x1fa0; +< 1fb0 0000000000007918 000fc00000000000 NOP; +< 1fc0 0000000000007918 000fc00000000000 NOP; +< 1fd0 0000000000007918 000fc00000000000 NOP; +< 1fe0 0000000000007918 000fc00000000000 NOP; +[FAIL] e51e3f82d92092e3: 23 of 840 words differ +624c624 +< 26f0 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 26f0 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +626c626 +< 2710 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] e5f2a6b1ccc46616: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] e8f3b705937e66ec: 4 of 88 words differ +85,88c85,88 +< 0540 fffffffc00fc7947 000fc0000383ffff BRA 0x540; +< 0550 0000000000007918 000fc00000000000 NOP; +< 0560 0000000000007918 000fc00000000000 NOP; +< 0570 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] f58b4d2ded9ffb34: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] f888f2b57f436e74: 6 of 168 words differ +163,168c163,168 +< 0a20 fffffffc00fc7947 000fc0000383ffff BRA 0xa20; +< 0a30 0000000000007918 000fc00000000000 NOP; +< 0a40 0000000000007918 000fc00000000000 NOP; +< 0a50 0000000000007918 000fc00000000000 NOP; +< 0a60 0000000000007918 000fc00000000000 NOP; +[FAIL] f989e654f62d3927: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] f9ebbb0b64acc6f8: 18 of 856 words differ +613c613 +< 2640 0c201f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x1, 0x1f ; +--- +> 2640 0c201f00151e7f89 00022800000e0000 ?? 0x00022800000e00000c201f00151e7f89 ; +615c615 +< 2660 0c401f00151e7f89 00022800000e0000 SHFL.BFLY PT, R30, R21, 0x2, 0x1f ; +[FAIL] fa05eb9dd9fdd1d0: 6 of 616 words differ +611,616c611,616 +< 2620 fffffffc00fc7947 000fc0000383ffff BRA 0x2620; +< 2630 0000000000007918 000fc00000000000 NOP; +< 2640 0000000000007918 000fc00000000000 NOP; +< 2650 0000000000007918 000fc00000000000 NOP; +< 2660 0000000000007918 000fc00000000000 NOP; +[FAIL] fcef14086ae0c920: 8 of 56 words differ +49,56c49,56 +< 0300 fffffffc00fc7947 000fc0000383ffff BRA 0x300; +< 0310 0000000000007918 000fc00000000000 NOP; +< 0320 0000000000007918 000fc00000000000 NOP; +< 0330 0000000000007918 000fc00000000000 NOP; +< 0340 0000000000007918 000fc00000000000 NOP; +[FAIL] fd737eb7a152928a: 8 of 224 words differ +217,224c217,224 +< 0d80 fffffffc00fc7947 000fc0000383ffff BRA 0xd80; +< 0d90 0000000000007918 000fc00000000000 NOP; +< 0da0 0000000000007918 000fc00000000000 NOP; +< 0db0 0000000000007918 000fc00000000000 NOP; +< 0dc0 0000000000007918 000fc00000000000 NOP; +[FAIL] fe3d5eeafea8dfe2: 2 of 72 words differ +71,72c71,72 +< 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460; +< 0470 0000000000007918 000fc00000000000 NOP; +--- +> 0460 fffffffc00fc7947 000fc0000383ffff BRA 0x460 ; +> 0470 0000000000007918 000fc00000000000 NOP ; +[FAIL] fe6f3da9e188abb9: 22 of 728 words differ +481c481 +< 1e00 0c201f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x1, 0x1f ; +--- +> 1e00 0c201f0016187f89 00022800000e0000 ?? 0x00022800000e00000c201f0016187f89 ; +483c483 +< 1e20 0c401f0016187f89 00022800000e0000 SHFL.BFLY PT, R24, R22, 0x2, 0x1f ; +[FAIL] ff08f272777bc4fd: 7 of 72 words differ +66,72c66,72 +< 0410 fffffffc00fc7947 000fc0000383ffff BRA 0x410; +< 0420 0000000000007918 000fc00000000000 NOP; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +[FAIL] ffc76a034ae32524: 6 of 224 words differ +219,224c219,224 +< 0da0 fffffffc00fc7947 000fc0000383ffff BRA 0xda0; +< 0db0 0000000000007918 000fc00000000000 NOP; +< 0dc0 0000000000007918 000fc00000000000 NOP; +< 0dd0 0000000000007918 000fc00000000000 NOP; +< 0de0 0000000000007918 000fc00000000000 NOP; +[FAIL] num_cos: 8 of 120 words differ +113,120c113,120 +< 0700 fffffffc00fc7947 000fc0000383ffff BRA 0x700; +< 0710 0000000000007918 000fc00000000000 NOP; +< 0720 0000000000007918 000fc00000000000 NOP; +< 0730 0000000000007918 000fc00000000000 NOP; +< 0740 0000000000007918 000fc00000000000 NOP; +[FAIL] num_div: 3 of 264 words differ +262,264c262,264 +< 1050 fffffffc00fc7947 000fc0000383ffff BRA 0x1050; +< 1060 0000000000007918 000fc00000000000 NOP; +< 1070 0000000000007918 000fc00000000000 NOP; +--- +> 1050 fffffffc00fc7947 000fc0000383ffff BRA 0x1050 ; +[FAIL] num_erf: 7 of 360 words differ +354,360c354,360 +< 1610 fffffffc00fc7947 000fc0000383ffff BRA 0x1610; +< 1620 0000000000007918 000fc00000000000 NOP; +< 1630 0000000000007918 000fc00000000000 NOP; +< 1640 0000000000007918 000fc00000000000 NOP; +< 1650 0000000000007918 000fc00000000000 NOP; +[FAIL] num_exp2: 6 of 72 words differ +67,72c67,72 +< 0420 fffffffc00fc7947 000fc0000383ffff BRA 0x420; +< 0430 0000000000007918 000fc00000000000 NOP; +< 0440 0000000000007918 000fc00000000000 NOP; +< 0450 0000000000007918 000fc00000000000 NOP; +< 0460 0000000000007918 000fc00000000000 NOP; +[FAIL] num_gelu: 6 of 424 words differ +419,424c419,424 +< 1a20 fffffffc00fc7947 000fc0000383ffff BRA 0x1a20; +< 1a30 0000000000007918 000fc00000000000 NOP; +< 1a40 0000000000007918 000fc00000000000 NOP; +< 1a50 0000000000007918 000fc00000000000 NOP; +< 1a60 0000000000007918 000fc00000000000 NOP; +[FAIL] num_k000: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k001: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k002: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k003: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k004: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k005: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k006: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k007: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k008: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k009: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k010: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k011: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k012: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k013: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k014: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k015: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k016: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k017: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k018: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k019: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k020: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k021: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k022: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k023: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k024: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k025: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k026: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k027: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k028: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k029: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k030: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k031: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k032: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k033: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k034: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k035: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k036: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k037: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k038: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k039: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k040: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k041: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k042: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k043: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k044: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k045: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k046: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k047: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k048: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k049: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k050: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k051: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k052: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k053: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k054: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k055: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k056: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k057: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k058: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k059: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k060: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k061: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k062: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k063: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k064: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k065: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k066: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k067: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k068: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k069: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k070: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k071: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k072: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k073: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k074: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k075: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k076: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k077: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k078: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k079: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k080: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k081: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k082: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k083: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k084: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k085: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k086: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k087: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k088: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k089: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k090: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k091: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k092: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k093: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k094: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k095: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k096: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k097: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k098: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k099: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k100: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k101: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k102: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k103: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k104: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k105: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k106: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k107: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k108: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k109: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k110: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k111: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k112: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k113: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k114: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k115: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k116: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k117: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k118: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k119: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k120: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k121: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k122: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k123: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k124: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k125: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k126: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k127: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k128: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k129: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k130: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k131: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k132: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k133: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k134: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k135: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k136: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k137: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k138: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k139: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k140: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k141: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k142: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k143: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k144: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k145: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k146: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_k147: 4 of 24 words differ +21,24c21,24 +< 0140 fffffffc00fc7947 000fc0000383ffff BRA 0x140; +< 0150 0000000000007918 000fc00000000000 NOP; +< 0160 0000000000007918 000fc00000000000 NOP; +< 0170 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_log2: 4 of 576 words differ +573,576c573,576 +< 23c0 fffffffc00fc7947 000fc0000383ffff BRA 0x23c0; +< 23d0 0000000000007918 000fc00000000000 NOP; +< 23e0 0000000000007918 000fc00000000000 NOP; +< 23f0 0000000000007918 000fc00000000000 NOP; +--- +[FAIL] num_rsqrt: 7 of 344 words differ +338,344c338,344 +< 1510 fffffffc00fc7947 000fc0000383ffff BRA 0x1510; +< 1520 0000000000007918 000fc00000000000 NOP; +< 1530 0000000000007918 000fc00000000000 NOP; +< 1540 0000000000007918 000fc00000000000 NOP; +< 1550 0000000000007918 000fc00000000000 NOP; +[FAIL] num_sigmoid: 3 of 344 words differ +342,344c342,344 +< 1550 fffffffc00fc7947 000fc0000383ffff BRA 0x1550; +< 1560 0000000000007918 000fc00000000000 NOP; +< 1570 0000000000007918 000fc00000000000 NOP; +--- +> 1550 fffffffc00fc7947 000fc0000383ffff BRA 0x1550 ; +[FAIL] num_sin: 6 of 120 words differ +115,120c115,120 +< 0720 fffffffc00fc7947 000fc0000383ffff BRA 0x720; +< 0730 0000000000007918 000fc00000000000 NOP; +< 0740 0000000000007918 000fc00000000000 NOP; +< 0750 0000000000007918 000fc00000000000 NOP; +< 0760 0000000000007918 000fc00000000000 NOP; +[FAIL] num_sqrt: 7 of 336 words differ +330,336c330,336 +< 1490 fffffffc00fc7947 000fc0000383ffff BRA 0x1490; +< 14a0 0000000000007918 000fc00000000000 NOP; +< 14b0 0000000000007918 000fc00000000000 NOP; +< 14c0 0000000000007918 000fc00000000000 NOP; +< 14d0 0000000000007918 000fc00000000000 NOP; +[FAIL] num_tanh: 8 of 352 words differ +345,352c345,352 +< 1580 fffffffc00fc7947 000fc0000383ffff BRA 0x1580; +< 1590 0000000000007918 000fc00000000000 NOP; +< 15a0 0000000000007918 000fc00000000000 NOP; +< 15b0 0000000000007918 000fc00000000000 NOP; +< 15c0 0000000000007918 000fc00000000000 NOP; +kernels: 331, words: 59152, failed kernels: 331 +VERDICT FAIL +exit=1 diff --git a/evidence/C6-DISASM/11-zero-nvdisasm-20261024.log b/evidence/C6-DISASM/11-zero-nvdisasm-20261024.log new file mode 100644 index 000000000..893904091 --- /dev/null +++ b/evidence/C6-DISASM/11-zero-nvdisasm-20261024.log @@ -0,0 +1,14 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:46Z +# command: PHYSICS_DIR=~/workspace/l386-physics-pr sh tools/sm121dis/zero_nvdisasm.sh build +static: PASS, no file outside the oracle harness names the CUDA toolkit or looks up nvdisasm +attention_hd64: exit 0, execve naming nvdisasm: 0 ok +attention_hd128: exit 0, execve naming nvdisasm: 0 ok +elementwise: exit 0, execve naming nvdisasm: 0 ok +fp8: exit 0, execve naming nvdisasm: 0 ok +reconv: exit 0, execve naming nvdisasm: 0 ok +divsqrt: exit 0, execve naming nvdisasm: 0 ok +ldst: exit 0, execve naming nvdisasm: 0 ok +reduce: exit 0, execve naming nvdisasm: 0 ok +decoy: never called +ZERO-NVDISASM: PASS (8 commands under strace, decoy calls 0, no execve of nvdisasm, static clean) +# exit 0 diff --git a/evidence/C6-DISASM/12-red-zero-nvdisasm-planted-calls-20261024.log b/evidence/C6-DISASM/12-red-zero-nvdisasm-planted-calls-20261024.log new file mode 100644 index 000000000..85740cc0c --- /dev/null +++ b/evidence/C6-DISASM/12-red-zero-nvdisasm-planted-calls-20261024.log @@ -0,0 +1,17 @@ +# omega c6/disasm c8d7d5294 (L386 train tip: over c5/isolation 934c1521, c3/gemm, c3/reduce-scan, main 0d72560a), 2026-10-24T23:46Z +# command: PHYSICS_DIR=~/workspace/l386-physics-pr sh tools/sm121dis/zero_nvdisasm.sh build --red +static: PASS, no file outside the oracle harness names the CUDA toolkit or looks up nvdisasm +attention_hd64: exit 0, execve naming nvdisasm: 0 ok +attention_hd128: exit 0, execve naming nvdisasm: 0 ok +elementwise: exit 0, execve naming nvdisasm: 0 ok +fp8: exit 0, execve naming nvdisasm: 0 ok +reconv: exit 0, execve naming nvdisasm: 0 ok +divsqrt: exit 0, execve naming nvdisasm: 0 ok +ldst: exit 0, execve naming nvdisasm: 0 ok +reduce: exit 0, execve naming nvdisasm: 0 ok +planted_by_name: exit 1, execve naming nvdisasm: 1 FAIL +planted_by_path: exit 0, execve naming nvdisasm: 1 FAIL +decoy: FAIL, called 1 time(s): +DECOY nvdisasm called with: --version +ZERO-NVDISASM: FAIL (details in /tmp/zero_nvdisasm.rFuB22) +# exit 1 diff --git a/evidence/C6-DISASM/13-corpus-producer-controls-20261025.log b/evidence/C6-DISASM/13-corpus-producer-controls-20261025.log new file mode 100644 index 000000000..ca5e761fd --- /dev/null +++ b/evidence/C6-DISASM/13-corpus-producer-controls-20261025.log @@ -0,0 +1,18 @@ +# corpus producer controls, 2026-10-25 (L386 resume, continuing Codex L386) +# tools/sm121dis/corpus.sh must refuse a corpus whose producer is missing or fails. +# BEFORE (origin/c6/disasm 1a5307c4a): 31 missing programs, corpus still reported success: +build/codex-resume/missing-bin/gpu_matmul_api_test --host-only: exit 127, 0 kernels so far +build/codex-resume/missing-bin/gpu_elementwise_test --host-only: exit 127, 0 kernels so far +build/codex-resume/missing-bin/gpu_reconv_test --host-only: exit 127, 0 kernels so far +build/codex-resume/missing-bin/gpu_attention_test --host-only: exit 127, 0 kernels so far +build/test_omega_ldst_gb10_cpu --dump /home/drakestapleton/workspace/l386-c6/build/codex-resume/missing-corpus/numeric: exit 0, 1 kernels so far +corpus: 159 kernels in /home/drakestapleton/workspace/l386-c6/build/codex-resume/missing-corpus + +# AFTER (this commit): the same missing program stops the corpus with a verdict and the producer's own words: +build/codex-resume/missing-bin/gpu_matmul_api_test --host-only: exit 127, 159 kernels so far +tools/sm121dis/corpus.sh: 13: build/codex-resume/missing-bin/gpu_matmul_api_test: not found +VERDICT FAIL: corpus producer failed: build/codex-resume/missing-bin/gpu_matmul_api_test --host-only + +# Permanent control (runs in make test-sm121dis): +PASS: missing and failing corpus producers are refused +exit 0 diff --git a/evidence/C6-DISASM/14-test-sm121dis-20261025.log b/evidence/C6-DISASM/14-test-sm121dis-20261025.log new file mode 100644 index 000000000..759b24471 --- /dev/null +++ b/evidence/C6-DISASM/14-test-sm121dis-20261025.log @@ -0,0 +1,452 @@ +sh tools/sm121dis/corpus_selftest.sh +PASS: missing and failing corpus producers are refused +rm -rf build/sm121dis-kernels && sh tools/sm121dis/corpus.sh build build/sm121dis-kernels +build/gpu_matmul_api_test --host-only: exit 0, 53 kernels so far +build/gpu_elementwise_test --host-only: exit 0, 63 kernels so far +build/gpu_reconv_test --host-only: exit 0, 86 kernels so far +build/gpu_attention_test --host-only: exit 0, 110 kernels so far +build/gpu_moe_window_test --host-only: exit 0, 110 kernels so far +build/gpu_fp8_api_test --host-only: exit 0, 114 kernels so far +build/gpu_decode_attn_test --host-only: exit 0, 114 kernels so far +build/gpu_router_test --host-only: exit 0, 114 kernels so far +build/gpu_bf16_gemv_test --host-only: exit 0, 114 kernels so far +build/gpu_tern_test --host-only: exit 0, 114 kernels so far +build/gpu_fp8gemm_test --host-only: exit 0, 114 kernels so far +build/gpu_tc_probe_test --host-only: exit 0, 114 kernels so far +build/gpu_tc_peak_test --host-only: exit 0, 114 kernels so far +build/gpu_pf_mem_test --host-only: exit 0, 114 kernels so far +build/gpu_qmma_probe_test --host-only: exit 0, 116 kernels so far +build/gpu_cmdlist_test --host-only: exit 0, 116 kernels so far +build/gpu_decode_graph_test --host-only: exit 0, 116 kernels so far +build/gpu_attention_test --hd 128 --host-only: exit 0, 128 kernels so far +build/gpu_tcgemm_test --host-only: exit 0, 130 kernels so far +build/gpu_tcgemm_test --sim: exit 0, 130 kernels so far +build/gpu_prefill_attn_test --host-only: exit 0, 172 kernels so far +build/gpu_prefill_attn_test --sim: exit 0, 172 kernels so far +build/gpu_pfgemm_test --host-only: exit 0, 172 kernels so far +build/gpu_pfgemm_test --sim: exit 0, 172 kernels so far +build/gpu_qgemm_test --host-only: exit 0, 172 kernels so far +build/gpu_qgemm_test --sim: exit 0, 172 kernels so far +build/gpu_pfhost_test --host-only: exit 0, 172 kernels so far +build/gpu_pfhost_test --sim: exit 0, 172 kernels so far +build/gpu_cmdlist_test --host-only: exit 0, 172 kernels so far +build/gpu_cmdlist_test --sim: exit 0, 172 kernels so far +build/gpu_gpr_boundary_test: exit 0, 172 kernels so far +build/gpu_scan_test --host-only: exit 0, 182 kernels so far +build/gpu_scan_test --sim: exit 0, 182 kernels so far +build/gpu_gemm_test --host-only: exit 0, 236 kernels so far +build/gpu_gemm_test --sim: exit 0, 236 kernels so far +build/gpu_streams_test --host-only: exit 0, 240 kernels so far +build/gpu_streams_test --sim: exit 0, 240 kernels so far +build/gpu_isolation_test --host-only: exit 0, 243 kernels so far +build/test_omega_divsqrt_gb10_cpu --dump /home/drakestapleton/workspace/l386-c6/build/sm121dis-kernels/numeric: exit 0, 243 kernels so far +build/test_omega_ldst_gb10_cpu --dump /home/drakestapleton/workspace/l386-c6/build/sm121dis-kernels/numeric: exit 0, 243 kernels so far +corpus: 402 kernels in /home/drakestapleton/workspace/l386-c6/build/sm121dis-kernels +sh tools/sm121dis/check.sh build/sm121dis build/sm121dis-kernels build/sm121dis-work +oracle: release 13.0, V13.0.85 +[PASS] 00733af6d7091ab3: 168 words +[PASS] 0095f8fb408efad9: 184 words +[PASS] 0166a31f74b9d75f: 128 words +[PASS] 01b6edddda38f891: 72 words +[PASS] 03e029ac69774b9f: 72 words +[PASS] 0406e3ac61074990: 248 words +[PASS] 048fe6deffe06648: 784 words +[PASS] 051f02c49bd52308: 488 words +[PASS] 0616d5fbe7dee323: 56 words +[PASS] 0675cdb98d176181: 72 words +[PASS] 078c48453d6e5bbf: 512 words +[PASS] 0796d8bb451f1b2e: 72 words +[PASS] 07d9bc84c576550e: 48 words +[PASS] 08d4bfdb07ad4378: 32 words +[PASS] 09066bb17070ac3e: 840 words +[PASS] 0a0231842ac86c54: 72 words +[PASS] 0a1bdba95fd851d7: 624 words +[PASS] 0a61c9f1c52fab0e: 72 words +[PASS] 0a9fb7ff033c200c: 168 words +[PASS] 0b89af4de7c28066: 120 words +[PASS] 0c2c583da93da3fb: 56 words +[PASS] 0d5530291875bb5a: 856 words +[PASS] 116585efce134a82: 320 words +[PASS] 11f5207f34a10b3c: 192 words +[PASS] 1269ff0807ea5a65: 72 words +[PASS] 13f152af843ca9cd: 512 words +[PASS] 16b66ef90b3f376d: 136 words +[PASS] 1a1f34c53ab6d575: 80 words +[PASS] 1ab5f61815999863: 72 words +[PASS] 1c67e49eb178a0c1: 136 words +[PASS] 1c8868c5267660e9: 208 words +[PASS] 1cf6c41ee43b609a: 456 words +[PASS] 1dd156ef6c9ba200: 800 words +[PASS] 1e6250a1bae1d728: 184 words +[PASS] 212312c7371d19fb: 648 words +[PASS] 21e1c1b9752882ca: 168 words +[PASS] 2309771849649424: 208 words +[PASS] 245372e21274f975: 320 words +[PASS] 2509d3bfd62f57d9: 48 words +[PASS] 2594d946283ceacc: 624 words +[PASS] 25dc586ec7ae0363: 776 words +[PASS] 2768ad846cb71d0f: 120 words +[PASS] 27b9d35e31957d37: 280 words +[PASS] 27e382eefa2d21bf: 504 words +[PASS] 28a1a0f232a4e4c4: 904 words +[PASS] 29b5bfe817bd1648: 296 words +[PASS] 2ac23f2d3928789e: 120 words +[PASS] 2af2f45df935262c: 72 words +[PASS] 2f14cae8512922fe: 56 words +[PASS] 329eb0433f9fe756: 64 words +[PASS] 33047e4cf0f5a637: 112 words +[PASS] 341358aedcb64957: 712 words +[PASS] 35554e39b80fe586: 40 words +[PASS] 359c5fc37631c204: 208 words +[PASS] 35dd01281aa7e112: 176 words +[PASS] 36dd0fb10af62765: 848 words +[PASS] 3a17e8add2022b2e: 208 words +[PASS] 3c6c1b9785621469: 72 words +[PASS] 3e5b18ebfda06127: 504 words +[PASS] 3ec70ae580eb1dda: 56 words +[PASS] 3ef5b1c6bf31891a: 32 words +[PASS] 3f570130025701f4: 32 words +[PASS] 40e950b30214f350: 72 words +[PASS] 410aa1810ddb4ced: 336 words +[PASS] 4343c7d7f8426564: 480 words +[PASS] 43d280bb67f4f86a: 72 words +[PASS] 444149ee3a861df3: 736 words +[PASS] 44605dfc84fe4e3a: 72 words +[PASS] 460240f53e74b10d: 48 words +[PASS] 47a8390626327f52: 336 words +[PASS] 493679c6d459d47c: 288 words +[PASS] 49906937ba073afd: 136 words +[PASS] 4a91466348e91695: 32 words +[PASS] 4b681c781cb561a9: 192 words +[PASS] 4c90b03071e057b4: 616 words +[PASS] 4ce50a2dd33ed235: 288 words +[PASS] 51017ac147bfa72a: 48 words +[PASS] 5348603e7223c844: 32 words +[PASS] 54a72771a3cb6341: 296 words +[PASS] 56f149f934c92301: 488 words +[PASS] 5716117a120fb074: 32 words +[PASS] 576cc4d78c7fab75: 664 words +[PASS] 5880593e8f2f91f0: 56 words +[PASS] 5e183059327a4b3f: 216 words +[PASS] 6110386bd42b0a35: 88 words +[PASS] 61dcaf9567a454cc: 832 words +[PASS] 61eab0c548f36364: 184 words +[PASS] 6242004ccaa18fff: 112 words +[PASS] 65f6bb76143f632e: 624 words +[PASS] 6656927ae80d3677: 216 words +[PASS] 695c1da16e98b0b9: 512 words +[PASS] 6ae84ca5a7ce9e62: 704 words +[PASS] 6b314a441afd4c1d: 48 words +[PASS] 6c4b61dd7c6e3821: 72 words +[PASS] 6d91a2543cf32e37: 72 words +[PASS] 6dfea5c67e11357b: 248 words +[PASS] 6e4de2ab9d3863b8: 288 words +[PASS] 6f96d1312cf5e2d4: 72 words +[PASS] 70b452d3948d7285: 512 words +[PASS] 71a1445a0b9d56fb: 184 words +[PASS] 73585e6751588b89: 40 words +[PASS] 74b53ca328c9ed32: 88 words +[PASS] 756412ef629268ab: 192 words +[PASS] 77b428410432af3c: 40 words +[PASS] 77b7ac4fb6f07012: 48 words +[PASS] 782913f99eddb6ef: 40 words +[PASS] 7a6fa49d650c91aa: 72 words +[PASS] 7ac24abb7eb29556: 120 words +[PASS] 7af4d06bd79efb91: 112 words +[PASS] 7b09d5db40f4322a: 32 words +[PASS] 7b988269d5e1eaa0: 800 words +[PASS] 7ca7d53247f4a27c: 208 words +[PASS] 7d76ebd2d49092a8: 288 words +[PASS] 7e3508b9f1db1630: 616 words +[PASS] 7fb7eae29cf3f732: 336 words +[PASS] 7ff5e261bb569198: 320 words +[PASS] 80ae705ea1c9d6b2: 208 words +[PASS] 8124543de959153e: 32 words +[PASS] 8246a9a2f53c8820: 72 words +[PASS] 83605a62c4182ae1: 856 words +[PASS] 84b407edce9b236f: 184 words +[PASS] 856917e53829e86d: 88 words +[PASS] 85e6742def9e8dd3: 504 words +[PASS] 8a89421a356ff3b4: 32 words +[PASS] 8ea03e1baf9a294d: 912 words +[PASS] 8f3c5fae4d54027f: 224 words +[PASS] 8f47e2b1c28d1357: 296 words +[PASS] 9026fb3912f7d681: 72 words +[PASS] 9035c15e45761df9: 56 words +[PASS] 916521486ee7b2ca: 40 words +[PASS] 920bdd0b84c5566f: 752 words +[PASS] 925729324e154291: 48 words +[PASS] 933751e18d6e5936: 912 words +[PASS] 93b0ae705ff2671c: 88 words +[PASS] 93dc81542d9c0424: 32 words +[PASS] 949d8abf1c6865f3: 920 words +[PASS] 95aa47327e8cd56f: 72 words +[PASS] 95eb24bc1eae924b: 288 words +[PASS] 9623377b4542b839: 168 words +[PASS] 97bc06b99a0e2f79: 120 words +[PASS] 99179ec7a69e9987: 128 words +[PASS] 9a90d2ecb762c744: 72 words +[PASS] 9a943d6e95138277: 336 words +[PASS] 9b56921514db7ba4: 40 words +[PASS] 9d3f5fe1fd516ec9: 320 words +[PASS] 9f4f41879851e0dc: 904 words +[PASS] a0c7d5432c97275e: 728 words +[PASS] a2f229363f560ade: 56 words +[PASS] a474fba68ee45423: 168 words +[PASS] a764227b3dc9b31f: 184 words +[PASS] aa78dd99ec3ec68f: 224 words +[PASS] abb30b5505f7d4e2: 88 words +[PASS] ad0e17a9d92abd99: 56 words +[PASS] ad1d06e587e40b3f: 32 words +[PASS] adf6b7aefd8b7acb: 80 words +[PASS] ae6c21646149f7e5: 216 words +[PASS] af714031dc417c22: 72 words +[PASS] af9bf924eecc0bd4: 72 words +[PASS] aff6f7b87350a3bd: 80 words +[PASS] b06860ac8328d5ee: 624 words +[PASS] b092b870d00ff17c: 856 words +[PASS] b0e009cf40c299f3: 624 words +[PASS] b35cefefe59c48c5: 512 words +[PASS] b3d40b99628c4bb9: 216 words +[PASS] b4e3acb923aea99a: 72 words +[PASS] b6af468e224fe471: 128 words +[PASS] b6f35b8a21472167: 136 words +[PASS] b73c0ab07c507c7f: 48 words +[PASS] b76c37f015469c89: 784 words +[PASS] b778dc5ae9c3d358: 72 words +[PASS] b8843d8615e24e05: 72 words +[PASS] b8f6b8409999d9e8: 48 words +[PASS] b9c869697a47f5d6: 920 words +[PASS] bac2bcf6382f30a8: 208 words +[PASS] bbcdb6f50445f7df: 872 words +[PASS] be94f2db7cbe6d60: 48 words +[PASS] bf3825bea205c9e1: 648 words +[PASS] bf948f28dbbfe347: 184 words +[PASS] c045fa6d0a757e42: 72 words +[PASS] c3f0d90e24596ee9: 280 words +[PASS] c4f0b10ccb2e166d: 888 words +[PASS] c50fea0425f376b3: 296 words +[PASS] c72c4e8d4340d98e: 848 words +[PASS] c81e27dc93f5dd6e: 752 words +[PASS] ca821475df8a5088: 712 words +[PASS] cad8600175f39d12: 32 words +[PASS] cc0430907bc5320e: 184 words +[PASS] cc3f7450e546808c: 40 words +[PASS] cc8f72be1a149dc3: 224 words +[PASS] cd42d50529ff66f0: 504 words +[PASS] cdbcb9dedb91c1f6: 88 words +[PASS] cdc4af0434d06ae6: 504 words +[PASS] ce4e0e4858bd747e: 56 words +[PASS] ce796fba113869f2: 216 words +[PASS] ceef021bc0d6723d: 32 words +[PASS] d05a92f581e14de2: 856 words +[PASS] d1300ea4e52033d8: 624 words +[PASS] d137f039f55e4c6e: 72 words +[PASS] d1b72ec0de84b094: 208 words +[PASS] d392c1a4ae9e48fa: 32 words +[PASS] d4b9a5d905777f57: 504 words +[PASS] d4f7881586aaffdc: 312 words +[PASS] d50e90bf5967aa94: 176 words +[PASS] d5d44b4471d6ef39: 32 words +[PASS] d6a345446d9ec8e7: 112 words +[PASS] d819fcc65676ff36: 128 words +[PASS] dad4d31c31d5358b: 32 words +[PASS] dad9736acdc838f9: 872 words +[PASS] dc3525596d00d5f8: 88 words +[PASS] dc6f0237c72c88ae: 88 words +[PASS] e0510715c2477973: 512 words +[PASS] e096269dc9ec4b92: 72 words +[PASS] e0b6875f06943750: 88 words +[PASS] e0c44b4924619876: 184 words +[PASS] e5100d76a2216f99: 32 words +[PASS] e5146093acf406ac: 40 words +[PASS] e5e6293d660bf14c: 704 words +[PASS] e5f2a6b1ccc46616: 72 words +[PASS] e6a275018ef4562d: 88 words +[PASS] e7385390aa2fd0c0: 232 words +[PASS] e78141e93dbfcc1e: 184 words +[PASS] e8a1d9a781a5fa37: 192 words +[PASS] e8f3b705937e66ec: 88 words +[PASS] e996d956312a248e: 728 words +[PASS] eaba9344aabde08f: 888 words +[PASS] edfc761937d4f6de: 288 words +[PASS] f05496e872080581: 32 words +[PASS] f100a7132e1141a1: 664 words +[PASS] f16e6c2951f2a0ed: 48 words +[PASS] f1d6c76892d19be0: 40 words +[PASS] f290ff213fc5cbb6: 736 words +[PASS] f5069da3323484ba: 120 words +[PASS] f58b4d2ded9ffb34: 72 words +[PASS] f89fe047da4d2a04: 112 words +[PASS] f989e654f62d3927: 72 words +[PASS] f9cb5081209cc91a: 312 words +[PASS] fa411cffb3b18eb3: 224 words +[PASS] fb77efcb313d4a41: 840 words +[PASS] fbd1c66e3ff8bdbd: 72 words +[PASS] fd75a993e8bf1454: 776 words +[PASS] fe3d5eeafea8dfe2: 72 words +[PASS] feaa16afde9122c4: 32 words +[PASS] ff08f272777bc4fd: 72 words +[PASS] num_cos: 120 words +[PASS] num_div: 264 words +[PASS] num_erf: 360 words +[PASS] num_exp2: 72 words +[PASS] num_gelu: 424 words +[PASS] num_k000: 24 words +[PASS] num_k001: 24 words +[PASS] num_k002: 24 words +[PASS] num_k003: 24 words +[PASS] num_k004: 24 words +[PASS] num_k005: 24 words +[PASS] num_k006: 24 words +[PASS] num_k007: 24 words +[PASS] num_k008: 24 words +[PASS] num_k009: 24 words +[PASS] num_k010: 24 words +[PASS] num_k011: 24 words +[PASS] num_k012: 24 words +[PASS] num_k013: 24 words +[PASS] num_k014: 24 words +[PASS] num_k015: 24 words +[PASS] num_k016: 24 words +[PASS] num_k017: 24 words +[PASS] num_k018: 24 words +[PASS] num_k019: 24 words +[PASS] num_k020: 24 words +[PASS] num_k021: 24 words +[PASS] num_k022: 24 words +[PASS] num_k023: 24 words +[PASS] num_k024: 24 words +[PASS] num_k025: 24 words +[PASS] num_k026: 24 words +[PASS] num_k027: 24 words +[PASS] num_k028: 24 words +[PASS] num_k029: 24 words +[PASS] num_k030: 24 words +[PASS] num_k031: 24 words +[PASS] num_k032: 24 words +[PASS] num_k033: 24 words +[PASS] num_k034: 24 words +[PASS] num_k035: 24 words +[PASS] num_k036: 24 words +[PASS] num_k037: 24 words +[PASS] num_k038: 24 words +[PASS] num_k039: 24 words +[PASS] num_k040: 24 words +[PASS] num_k041: 24 words +[PASS] num_k042: 24 words +[PASS] num_k043: 24 words +[PASS] num_k044: 24 words +[PASS] num_k045: 24 words +[PASS] num_k046: 24 words +[PASS] num_k047: 24 words +[PASS] num_k048: 24 words +[PASS] num_k049: 24 words +[PASS] num_k050: 24 words +[PASS] num_k051: 24 words +[PASS] num_k052: 24 words +[PASS] num_k053: 24 words +[PASS] num_k054: 24 words +[PASS] num_k055: 24 words +[PASS] num_k056: 24 words +[PASS] num_k057: 24 words +[PASS] num_k058: 24 words +[PASS] num_k059: 24 words +[PASS] num_k060: 24 words +[PASS] num_k061: 24 words +[PASS] num_k062: 24 words +[PASS] num_k063: 24 words +[PASS] num_k064: 24 words +[PASS] num_k065: 24 words +[PASS] num_k066: 24 words +[PASS] num_k067: 24 words +[PASS] num_k068: 24 words +[PASS] num_k069: 24 words +[PASS] num_k070: 24 words +[PASS] num_k071: 24 words +[PASS] num_k072: 24 words +[PASS] num_k073: 24 words +[PASS] num_k074: 24 words +[PASS] num_k075: 24 words +[PASS] num_k076: 24 words +[PASS] num_k077: 24 words +[PASS] num_k078: 24 words +[PASS] num_k079: 24 words +[PASS] num_k080: 24 words +[PASS] num_k081: 24 words +[PASS] num_k082: 24 words +[PASS] num_k083: 24 words +[PASS] num_k084: 24 words +[PASS] num_k085: 24 words +[PASS] num_k086: 24 words +[PASS] num_k087: 24 words +[PASS] num_k088: 24 words +[PASS] num_k089: 24 words +[PASS] num_k090: 24 words +[PASS] num_k091: 24 words +[PASS] num_k092: 24 words +[PASS] num_k093: 24 words +[PASS] num_k094: 24 words +[PASS] num_k095: 24 words +[PASS] num_k096: 24 words +[PASS] num_k097: 24 words +[PASS] num_k098: 24 words +[PASS] num_k099: 24 words +[PASS] num_k100: 24 words +[PASS] num_k101: 24 words +[PASS] num_k102: 24 words +[PASS] num_k103: 24 words +[PASS] num_k104: 24 words +[PASS] num_k105: 24 words +[PASS] num_k106: 24 words +[PASS] num_k107: 24 words +[PASS] num_k108: 24 words +[PASS] num_k109: 24 words +[PASS] num_k110: 24 words +[PASS] num_k111: 24 words +[PASS] num_k112: 24 words +[PASS] num_k113: 24 words +[PASS] num_k114: 24 words +[PASS] num_k115: 24 words +[PASS] num_k116: 24 words +[PASS] num_k117: 24 words +[PASS] num_k118: 24 words +[PASS] num_k119: 24 words +[PASS] num_k120: 24 words +[PASS] num_k121: 24 words +[PASS] num_k122: 24 words +[PASS] num_k123: 24 words +[PASS] num_k124: 24 words +[PASS] num_k125: 24 words +[PASS] num_k126: 24 words +[PASS] num_k127: 24 words +[PASS] num_k128: 24 words +[PASS] num_k129: 24 words +[PASS] num_k130: 24 words +[PASS] num_k131: 24 words +[PASS] num_k132: 24 words +[PASS] num_k133: 24 words +[PASS] num_k134: 24 words +[PASS] num_k135: 24 words +[PASS] num_k136: 24 words +[PASS] num_k137: 24 words +[PASS] num_k138: 24 words +[PASS] num_k139: 24 words +[PASS] num_k140: 24 words +[PASS] num_k141: 24 words +[PASS] num_k142: 24 words +[PASS] num_k143: 24 words +[PASS] num_k144: 24 words +[PASS] num_k145: 24 words +[PASS] num_k146: 24 words +[PASS] num_k147: 24 words +[PASS] num_log2: 576 words +[PASS] num_rsqrt: 344 words +[PASS] num_sigmoid: 344 words +[PASS] num_sin: 120 words +[PASS] num_sqrt: 336 words +[PASS] num_tanh: 352 words +kernels: 402, words: 74096, failed kernels: 0 +VERDICT PASS +red check: the faulty decoder FAILS the comparison, as it must (402 kernels) +rc=0 diff --git a/evidence/C6-DISASM/README.md b/evidence/C6-DISASM/README.md new file mode 100644 index 000000000..1cc09b2bf --- /dev/null +++ b/evidence/C6-DISASM/README.md @@ -0,0 +1,32 @@ +# C6 receipt: Omega's own disassembler + +Row C6 of `docs/OMEGA.md`: our own sm_121 disassembler agrees with nvdisasm on every library kernel, and every check +that called nvdisasm calls ours. Produced by one script run on the Spark (2026-10-21), physics reference pinned at +`~/workspace/physics-l386`. Each log ends with the exit code of the command it records. + +Re-run 2026-10-24 on the L386 train tip (this branch rebased over c5/isolation, c3/gemm, c3/reduce-scan and main 0d72560a; physics pinned at fb2ac4c, the commit physics.lock names): the `*-20261024.log` files beside the originals, one per row, same commands, PHYSICS_DIR=~/workspace/l386-physics-pr. New that day: rows 11 and 12, the ZERO-NVDISASM gate and its red check, and the judge gate `tests/gates/omega-sm121dis.gate` (step word `sm121dis` in tests/gates/run.sh) that runs rows 01 and 11 with their red checks on the Spark judge. + +| Log | What it checks | Needed | Result | +|---|---|---|---| +| 01-test-sm121dis | all 331 library kernels (59,152 words) word for word against nvdisasm, spacing included | exit 0 | exit 0, 0 kernels differ; 2026-10-24 on the L386 train tip c8d7d5294: exit 0, 331 kernels, 59,152 words, 0 differ, oracle nvdisasm release 13.0 V13.0.85; red decoder fails all 331 (01-test-sm121dis-20261024.log). Two corpus programs did not build on that tip, gpu_cmdlist_test and gpu_gpr_boundary_test, both main regressions (missing initializers under -Werror, fixer L825); the corpus still reached 331 kernels | +| 02-reduce-on-sm121dis | the E1 reduction listing check, now on `build/sm121dis` | exit 0 | exit 0; 2026-10-24 on the L386 train tip c8d7d5294: exit 0 (02-...-20261024.log) | +| 03-divsqrt-on-sm121dis | the divide and square root listing check, on ours | exit 0 | exit 0; 2026-10-24 on the L386 train tip c8d7d5294: exit 0, VERDICT PASS (03-...-20261024.log) | +| 04-ldst-on-sm121dis | the load and store listing check, on ours | exit 0 | exit 0; 2026-10-24 on the L386 train tip c8d7d5294: exit 0, VERDICT PASS (04-...-20261024.log) | +| 05, 06, 07 (red) | the same three checks with a decoder carrying one planted fault | must fail | all fail; 2026-10-24 on the L386 train tip c8d7d5294: all fail, exits 1, 1, 2 (05/06/07-...-20261024.log) | +| 08-gpu_* | the GPU tests whose listing checks now link our decoder | exit 0 | exit 0; 2026-10-24 on the L386 train tip c8d7d5294: exit 0 on all four: attention 107 checks (184 of 184 and 216 of 216 instruction lines decoded), elementwise 24, fp8 4,997, reconv 119 (08-...-20261024.log) | +| 08-gpu_attention_test-hd128 | head size 128, recorded for completeness | | exit 1, 14 failures, none from the disassembler: a known kernel-size bug, fixed separately (ledger L407); 2026-10-24 on the L386 train tip c8d7d5294: exit 0, 107 checks, 624 of 624 and 512 of 512 instruction lines decoded: the kernel-size bug is gone on the train tip (08-gpu_attention_test-hd128-20261024.log) | +| 09-prime-race-host | the sieve benchmark's host test, its listing check on ours | exit 0 | exit 0; 2026-10-24 on the L386 train tip c8d7d5294: exit 0, VERDICT PASS (09-...-20261024.log) | +| 10 (red) | the previous decoder, which printed `NOP ;` where nvdisasm prints `NOP;` after the last EXIT | must fail | fails on all 331 | +| 11-zero-nvdisasm-20261024 | ZERO-NVDISASM (bar C6, second half): no file outside the oracle harness names the CUDA toolkit; the five GPU host tiers and the three provenance checks run with a decoy nvdisasm first on PATH, the CUDA directories removed from PATH and strace on execve (tools/sm121dis/zero_nvdisasm.sh, `make test-zero-nvdisasm`, gate OMEGA-SM121DIS) | exit 0 | exit 0: 8 commands, decoy called 0 times, no execve of nvdisasm, static clean (2026-10-24, tip c8d7d5294) | +| 12-red-zero-nvdisasm-planted-calls-20261024 | the same gate with two planted shell-outs, `nvdisasm` by name and by the toolkit path | must fail | exit 1: the decoy caught the call by name, strace caught both (2026-10-24, tip c8d7d5294) | +| 13-corpus-producer-controls-20261025 | a missing or failing corpus producer must invalidate the corpus, permanently (tools/sm121dis/corpus_selftest.sh, run by `make test-sm121dis`) | before: exit 0 with 31 producers missing; after: exit 127 and a verdict, producer diagnostics kept; a producer that exits 42 stops the corpus with 42 | PASS: "missing and failing corpus producers are refused"; before/after captured in the log (2026-10-25) | +| 14-test-sm121dis-20261025 | the whole C6 host tier again after that repair, on the re-stacked train tip | exit 0 | exit 0: 402 kernels, 74,096 words, 0 differ; red decoder fails all 402. The four GPU families the corpus used to skip (scan, GEMM, streams, isolation) are in it, and the two programs that did not build on 2026-10-24 (gpu_cmdlist_test, gpu_gpr_boundary_test) build again after L825 landed | + +nvdisasm stays only as the reference in 01 and the red checks. No kernel and no other check depends on it. + +2026-10-25, L386 resumed (Codex session pickup): the corpus script reported success while 31 of its producer programs +were missing (the two main regressions above, plus programs no longer built), so a hidden or superseded producer could +silently shrink the corpus. `tools/sm121dis/corpus.sh` now refuses the first failed producer, keeps that producer's own +output, and exits with its status; `tools/sm121dis/corpus_selftest.sh` holds that behaviour permanently, and the corpus +now includes the scan, GEMM, streams and isolation GPU programs. Row 13 records the before/after, row 14 the full tier +on the repaired corpus (402 kernels). diff --git a/mk/.crumb b/mk/.crumb index 5f40c5976..79c40b88a 100644 --- a/mk/.crumb +++ b/mk/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-24T21:31:17Z", + "compiled_at": "2026-10-24T23:51:52Z", "compiler": "crumb-compile/1", - "digest": "sha256:28ca50efe4c6219607f80199b70e50807127d121c66550511606dede047a6200", + "digest": "sha256:4c711384133e933fc175aab7d48daae8b597767d17eaa17464d560c758a687b7", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 73, - "generated_at_commit": "f96020434a127d774dd54dfd665a3b89a65bea5a", - "source_tree": "sha256:7427592fdbaf30bfa73c711fc727b1fa497690af23bb04e5222fb990cff46e7a" + "files": 74, + "generated_at_commit": "c8d7d52946c22a7a8a730897dfff9e1cd9ad069a", + "source_tree": "sha256:035bce1bfdbd9e88ae98df0849e50d7bc64ab72563b896c9f506dbb9dd61eeca" }, "owner_lane": "", "provenance": { diff --git a/mk/omega-gpu-engine.mk b/mk/omega-gpu-engine.mk index db63683e4..0a8da68f2 100644 --- a/mk/omega-gpu-engine.mk +++ b/mk/omega-gpu-engine.mk @@ -228,4 +228,9 @@ test-gpu-session-mutants: $(GPU_FS_LINK) smut stale-not-counted 's|else { BUMP(g_stats.stale_refusals, 1u); fail_plat("dma_free", rc); }|else {}|'; \ smut marker-not-polled 's|RIGHTS_MARKER, PAGE|RIGHTS_DATA, PAGE|'; \ smut close-while-latched 's|if (g_open \&\& !LOAD(g_blocked) \&\& p) {|if (g_open \&\& p) {|; s|if (!LOAD(g_blocked)) { /\* a hook|if (1) { /* a hook|'; \ - echo "test-gpu-session-mutants: $$killed of 6 mutants killed" + smut recover-keeps-latch 's|STORE(g_blocked, 0u);|;|'; \ + smut recover-without-close 's|const int prc = p->device_close(p->ctx, g_s.dev);|const int prc = OMEGA_GPU_PLAT_OK;|'; \ + smut recover-when-not-latched 's|const int latched = LOAD(g_blocked) \|\| LOAD(g_module_latched);|const int latched = 1;|'; \ + smut recover-ignores-teardown-fault 's|if (prc != OMEGA_GPU_PLAT_OK) {|if (0) {|'; \ + smut recover-ignores-module-latch 's|const int latched = LOAD(g_blocked) \|\| LOAD(g_module_latched);|const int latched = LOAD(g_blocked);|'; \ + echo "test-gpu-session-mutants: $$killed of 11 mutants killed" diff --git a/mk/sm121dis.mk b/mk/sm121dis.mk new file mode 100644 index 000000000..d29fcba32 --- /dev/null +++ b/mk/sm121dis.mk @@ -0,0 +1,51 @@ +# C6 of docs/OMEGA.md: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c, tools/sm121dis/). +# make test-sm121dis collect every kernel the library builds (no GPU), compare our text with nvdisasm's, word by word; +# then the red check: a decoder built with one deliberate fault must FAIL the same comparison. +# Picked up by the `-include mk/*.mk` line of the Makefile. The test binaries are named as files, not through the +# GPU_*_TEST variables: this file is read before the Makefile defines them. +SM121DIS = $(OUT_DIR)/sm121dis +SM121DIS_RED = $(OUT_DIR)/sm121dis_red +SM121DIS_K = $(OUT_DIR)/sm121dis-kernels + +$(SM121DIS): tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c src/omega_sm121_disasm.h + @mkdir -p $(OUT_DIR) + $(CC) -std=gnu11 -Wall -Wextra -Werror -O2 -Isrc -o $@ tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c +$(SM121DIS_RED): tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c src/omega_sm121_disasm.h + @mkdir -p $(OUT_DIR) + $(CC) -std=gnu11 -Wall -Wextra -Werror -O2 -DSM121DIS_MUTANT=1 -Isrc -o $@ tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c + +sm121dis-corpus-bins: $(addprefix $(OUT_DIR)/,gpu_matmul_api_test gpu_elementwise_test gpu_reconv_test gpu_attention_test \ + gpu_moe_window_test gpu_fp8_api_test gpu_decode_attn_test gpu_router_test gpu_bf16_gemv_test gpu_tern_test gpu_fp8gemm_test \ + gpu_tc_probe_test gpu_tc_peak_test gpu_pf_mem_test gpu_qmma_probe_test gpu_cmdlist_test gpu_decode_graph_test gpu_tcgemm_test \ + gpu_prefill_attn_test gpu_pfgemm_test gpu_qgemm_test gpu_pfhost_test gpu_gpr_boundary_test \ + gpu_scan_test gpu_gemm_test gpu_streams_test gpu_isolation_test) \ + build/test_omega_divsqrt_gb10_cpu build/test_omega_ldst_gb10_cpu + +.PHONY: test-sm121dis sm121dis-corpus-bins test-sm121dis-corpus-controls +test-sm121dis-corpus-controls: + sh tools/sm121dis/corpus_selftest.sh + +test-sm121dis: $(SM121DIS) $(SM121DIS_RED) sm121dis-corpus-bins test-sm121dis-corpus-controls + rm -rf $(SM121DIS_K) && sh tools/sm121dis/corpus.sh $(OUT_DIR) $(SM121DIS_K) + sh tools/sm121dis/check.sh $(SM121DIS) $(SM121DIS_K) $(OUT_DIR)/sm121dis-work + @if sh tools/sm121dis/check.sh $(SM121DIS_RED) $(SM121DIS_K) $(OUT_DIR)/sm121dis-red > $(OUT_DIR)/sm121dis-red.log 2>&1; then \ + echo "RED CHECK BROKEN: the faulty decoder passed"; exit 1; \ + else echo "red check: the faulty decoder FAILS the comparison, as it must ($$(grep -c '^\[FAIL\]' $(OUT_DIR)/sm121dis-red.log) kernels)"; fi + +# The provenance checks (tools/divsqrt_nvdisasm_check.sh, tools/ldst_nvdisasm_check.sh, test-numeric-reduce-nvdisasm) +# call build/sm121dis by that name, whatever OUT_DIR is. +ifneq ($(OUT_DIR),build) +build/sm121dis: tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c src/omega_sm121_disasm.h + @mkdir -p build + $(CC) -std=gnu11 -Wall -Wextra -Werror -O2 -Isrc -o $@ tools/sm121dis/sm121dis.c src/omega_sm121_disasm.c +endif + +# ZERO-NVDISASM (bar C6, second half: nothing calls nvdisasm). tools/sm121dis/zero_nvdisasm.sh runs every listing and +# provenance check with a decoy nvdisasm first on PATH, the CUDA directories removed from PATH, and strace on execve; +# then its own red check plants two calls to nvdisasm and must see the gate FAIL. +.PHONY: test-zero-nvdisasm +test-zero-nvdisasm: $(SM121DIS) build/sm121dis $(addprefix $(OUT_DIR)/,gpu_attention_test gpu_elementwise_test gpu_fp8_api_test gpu_reconv_test) + PHYSICS_DIR="$(PHYSICS_DIR)" sh tools/sm121dis/zero_nvdisasm.sh $(OUT_DIR) + @if PHYSICS_DIR="$(PHYSICS_DIR)" sh tools/sm121dis/zero_nvdisasm.sh $(OUT_DIR) --red > $(OUT_DIR)/zero-nvdisasm-red.log 2>&1; then \ + echo "RED CHECK BROKEN: the planted nvdisasm calls passed the gate"; exit 1; \ + else echo "red check: the planted nvdisasm calls FAIL the gate, as they must ($$(grep -c 'FAIL$$' $(OUT_DIR)/zero-nvdisasm-red.log) lines)"; fi diff --git a/physics.lock b/physics.lock index be6c1e32a..33b0f73db 100644 --- a/physics.lock +++ b/physics.lock @@ -1 +1 @@ -6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf +048e5f5e881b092733baaf65d0ace46abda7f908 diff --git a/src/.crumb b/src/.crumb index 492b0dd03..76700a054 100644 --- a/src/.crumb +++ b/src/.crumb @@ -62,140 +62,140 @@ "children": [ { "digest": "728ab6985dea994eb78a7eb2521384a911492d1c36819c17970a5dc3a8a0c5e2", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "algebra", "purpose": "Directory src/algebra. Purpose not yet described by a human." }, { "digest": "1881ed1d139a405a777d24d4b26f97bc8405dee0552d6ce21841ce4833560ce2", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "ans", "purpose": "ANS (Alignment Navigation System), Inertial Alignment v1: frozen reference atoms, drift filter o" }, { "digest": "92c3e2481f7457afd6c7717e6c1a75ebab950ec9114b48025dd137a6edb2975c", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "autodiff", "purpose": "M21 OMEGA_AUTODIFF: reverse-mode tape over M20 tensor CPU ops, caller-owned nodes and scratch, p" }, { "digest": "3bd51397fcd28cd54db65c1df72c320883798bc8550779b2b79c8498b28ffb0d", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "compiler", "purpose": "Directory src/compiler. Purpose not yet described by a human." }, { "digest": "36a66980895553ae73884798bc09a92141e1aeba5e5068a7d9d62a99bad02548", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "crumbline", "purpose": "Directory src/crumbline. Purpose not yet described by a human." }, { "digest": "c75df77ddb2bae35ac5e1225a0ae9dcef77b24608775c7b8d02dce1af0ec3ca4", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "dual_experiment", "purpose": "DUAL applicability experiment library (ARCH-0031 offline evidence lane): deterministic discrete " }, { "digest": "8856d5162c55cb33997201cd580638f80ea933b46e11c61e1913185d419731d7", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "estimation", "purpose": "Directory src/estimation. Purpose not yet described by a human." }, { "digest": "391e337c60cb8b2ae549595394482c23717c1757d83747a7446e81cd780750c1", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "fabric", "purpose": "Directory src/fabric. Purpose not yet described by a human." }, { "digest": "2d33eb528dafb5954bb027cdd9a7c7923594c177f17181194311155b4e1f40b3", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "language", "purpose": "Directory src/language. Purpose not yet described by a human." }, { "digest": "cd0551dbfb6fc354741efe9a3ad1808ffaaf6a8d7e9e7345851333d7a721cee0", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "osh", "purpose": "osh (Omega-native shell, arch#158) lexer unit: layout list, generator, osh_lex.osc, C reference " }, { "digest": "2b5dd2c64d4bbba8c41471dc1af5a0b00bfc1361a2c680d78b99fb30b5b547fe", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "path", "purpose": "Directory src/path. Purpose not yet described by a human." }, { "digest": "e0b91129cc9c188fc0e47b7f3189a3a9a09f9c55eecd018786794571ffc39aad", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "physics0", "purpose": "PD-0 hidden-equation benchmark (Physics-0 Discovery Engine cut 1): world, oracle, scorer, ladder" }, { "digest": "8b923fb5dc1de3b04afae043a4770f7b1fb27d959a8f597191ae2556d822a1cf", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "polyglot", "purpose": "Directory src/polyglot. Purpose not yet described by a human." }, { "digest": "076f486fdf51e12a26160e7f0bf7686fea611db54216f7fef81367620e7a6bdb", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "reservoir", "purpose": "Ionic-droplet reservoir simulator (omega#440): binary32 fixed-step RK4 of the authors' droplet m" }, { "digest": "c6af24b823d6a18a8ad1593003a214fcd577955d1d134bc4304a5c097a71cd35", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "runtime", "purpose": "Directory src/runtime. Purpose not yet described by a human." }, { "digest": "af5fcc64fe83dc35f782724372854febde5461f5eab8b327f3c3ed75f8572053", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "searchtrace", "purpose": "Directory src/searchtrace. Purpose not yet described by a human." }, { "digest": "b82288db7e732d10f954e921ac98c60e19579a3e58118cc12c49230587929ea2", - "last_commit": "ed8de573", + "last_commit": "ed8de5736", "name": "synapse", "purpose": "Synapse ADR 0003 J1 binary codec port: layout list, generator, syn_codec.osc (A1 WAL records + c" }, { "digest": "9723dd7c18d4e2c22db631680974e1025bccb9c309619424e2f4dfcc43cc7068", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "tensor", "purpose": "M20 OMEGA_TENSOR: immutable tensor semantic layer, views, generation-checked storage, CPU realiz" }, { "digest": "06d9fb18dddf7ab0f8ad02fffd15ce8b80808c77d0904609b6baae83c2b05ce5", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "train", "purpose": "Directory src/train. Purpose not yet described by a human." }, { "digest": "812a7faed07b21e066b732ed596eb0aea609379a2b2af0e8b61dd1ea05bef602", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "turing", "purpose": "Directory src/turing. Purpose not yet described by a human." }, { "digest": "b2e34b2ea0392059ac30d17e27289b1146e523db60a02ef825edef96036817ab", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "visor", "purpose": "Directory src/visor. Purpose not yet described by a human." } ], "children_root": "sha256:4460b4a6d5ed4054d462af660a6a02691350a35a8f44197e60ce605e243f698e", - "compiled_at": "2026-10-24T23:28:54Z", + "compiled_at": "2026-10-24T23:55:01Z", "compiler": "crumb-compile/1", - "digest": "sha256:4718c14bd4052ff822a315892aebc3c2229900b338191d98c95945b109be4e91", + "digest": "sha256:8ab10b555fb095ec6fc706f96f7294d2b99ce62438600a493fe235ec11bcd0d6", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 558, - "generated_at_commit": "0d72560ad82c657b9b51b62119781b36484e2bdc", - "source_tree": "sha256:2c08e2cc72d20b23284775f67a56a7c759fe03ad159060f06ad765e7b76d1526" + "files": 565, + "generated_at_commit": "4cd9ad9845612038a49c15940811ce24c38c061d", + "source_tree": "sha256:093f3a2aba4e74fd82076e3921f29b215d8fe508982a525f3c5b487c950e64bd" }, "owner_lane": "", "provenance": { diff --git a/src/omega_blackwell_codegen.c b/src/omega_blackwell_codegen.c index be05fe37a..debdea0ea 100644 --- a/src/omega_blackwell_codegen.c +++ b/src/omega_blackwell_codegen.c @@ -23,8 +23,10 @@ * (omega_blackwell_kernel_encode_into: the caller supplies the code buffer and its capacity); the allocating * generators, their diagnostics and the printing variation self-test exist only in the hosted build. */ #ifndef OMEGA_GPU_NO_POSIX +#include #include #include +#include #define BW_DIAG(...) fprintf(stderr, __VA_ARGS__) #else #define BW_DIAG(...) ((void)0) @@ -1019,6 +1021,31 @@ int omega_blackwell_verify_codegen_fixtures_fb1cut4(void) { return 0; } +/* Kernel capture (C6 of docs/OMEGA.md, tools/sm121dis): with OMEGA_KERNEL_DUMP_DIR set, every encoded kernel is written + * there as .bin, once per distinct body, so the disassembler can be checked against nvdisasm on + * every kernel the library builds. Unset (the normal case) it does nothing; the freestanding build has no files. */ +void omega_kernel_dump(const uint8_t *code, size_t len) { +#ifndef OMEGA_GPU_NO_POSIX + const char *dir = getenv("OMEGA_KERNEL_DUMP_DIR"); + if (!dir || !dir[0] || !code || !len) return; + uint8_t d[SHA256_DIGEST_SIZE]; sha256_hash(code, len, d); + char path[4096]; + int n = snprintf(path, sizeof path, "%s/%02x%02x%02x%02x%02x%02x%02x%02x.bin", + dir, (unsigned)d[0], (unsigned)d[1], (unsigned)d[2], (unsigned)d[3], + (unsigned)d[4], (unsigned)d[5], (unsigned)d[6], (unsigned)d[7]); + if (n < 0 || (size_t)n >= sizeof path) return; + /* Private, exclusive creation: an existing body or symlink is left alone. */ + int fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0600); + if (fd < 0) return; + FILE *f = fdopen(fd, "wb"); + if (!f) { close(fd); return; } + if (fwrite(code, 1, len, f) != len) BW_DIAG("omega_kernel_dump: short write %s\n", path); + if (fclose(f) != 0) BW_DIAG("omega_kernel_dump: close failed %s\n", path); +#else + (void)code; (void)len; +#endif +} + int omega_bw_encode_program(const BlackwellIRProgram *prog, uint8_t *code_buf, size_t max_len, size_t *out_len) { if (!prog || !code_buf || !out_len) return -1; @@ -1066,6 +1093,7 @@ int omega_bw_encode_program(const BlackwellIRProgram *prog, uint8_t *code_buf, s p += 16; } + omega_kernel_dump(code_buf, req_bytes); *out_len = req_bytes; return 0; } diff --git a/src/omega_blackwell_codegen.h b/src/omega_blackwell_codegen.h index 8028135d4..30ff38983 100644 --- a/src/omega_blackwell_codegen.h +++ b/src/omega_blackwell_codegen.h @@ -222,6 +222,8 @@ int omega_bw_ir_set_gpr_limit(BlackwellIRProgram *prog, uint32_t limit); /* Encodes scheduled IR program into 128-bit sm_121 machine code */ int omega_bw_encode_program(const BlackwellIRProgram *prog, uint8_t *code_buf, size_t max_len, size_t *out_len); +/* C6 kernel capture: writes code to $OMEGA_KERNEL_DUMP_DIR/.bin when that is set; no-op otherwise (see the .c) */ +void omega_kernel_dump(const uint8_t *code, size_t len); /* ---- native v1 P07 cut A.2: allocation-free code generation (aienos#286) ---------------------------- * The freestanding build (OMEGA_GPU_NO_POSIX, make gpu-engine-freestanding) has no allocator: the caller diff --git a/src/omega_blackwell_codegen_qmma.c b/src/omega_blackwell_codegen_qmma.c index 3337395ae..388c162f7 100644 --- a/src/omega_blackwell_codegen_qmma.c +++ b/src/omega_blackwell_codegen_qmma.c @@ -42,6 +42,7 @@ int omega_qmma_patch_code(const BlackwellIRProgram *prog, uint8_t *code, size_t wr32q(w + 8, (w2 & 0xffu) | 0x00002c00u); n++; } + if (n > 0) { size_t b = omega_bw_program_code_bytes(prog); omega_kernel_dump(code, b && b <= len ? b : prog->count * 16u); } /* the patched body is a different kernel */ return n; } diff --git a/src/omega_blackwell_codegen_tc.c b/src/omega_blackwell_codegen_tc.c index acab0c42c..6a882d7e1 100644 --- a/src/omega_blackwell_codegen_tc.c +++ b/src/omega_blackwell_codegen_tc.c @@ -260,6 +260,7 @@ int omega_tc_patch_code(const BlackwellIRProgram *prog, uint8_t *code, size_t le wr32(w, (w0 & 0xffff0000u) | 0x723eu); wr32(w + 8, 0x000010ffu); n++; } } + if (n > 0) { size_t b = omega_bw_program_code_bytes(prog); omega_kernel_dump(code, b && b <= len ? b : prog->count * 16u); } /* the patched body is a different kernel */ return n; } diff --git a/src/omega_gpu_cmdlist.c b/src/omega_gpu_cmdlist.c index e7574d57c..809243d34 100644 --- a/src/omega_gpu_cmdlist.c +++ b/src/omega_gpu_cmdlist.c @@ -62,13 +62,34 @@ struct OmegaGpuCmdList { uint32_t nop_gpr; uint8_t *indep; /* per launch: 1 = shares no data with the launch before it (mark_independent): no barrier before it */ int stamped; /* the last submit had opts.stamps (the accessor refuses stale stamps from an earlier submit) */ + uint64_t *wait_va; /* per launch: semaphore word of another list's launch to wait for before it (wait_for), 0 = none */ + uint64_t pending_wait;/* wait_for recorded, taken by the next add */ + uint32_t nwaits; /* launches with a wait (6 more words each) */ + const OmegaGpuCmdList *wait_other; /* the one list this list waits on (it must be the other list of the pair) */ + uint32_t wait_max; /* highest launch index of wait_other waited on */ + uint32_t gen; /* omega_gpu_session_recoveries() at create: a list from before a recovery is stale (C5) */ }; -static uint32_t g_latched; +static uint32_t g_latched; /* 1 + omega_gpu_session_recoveries() at the latch; 0 never latched (C5: a recovery lifts it) */ -int omega_gpu_cmdlist_is_latched(void) { return __atomic_load_n(&g_latched, __ATOMIC_ACQUIRE) ? 1 : 0; } +int omega_gpu_cmdlist_is_latched(void) { return __atomic_load_n(&g_latched, __ATOMIC_ACQUIRE) == omega_gpu_session_recoveries() + 1u ? 1 : 0; } uint32_t omega_gpu_cmdlist_count(const OmegaGpuCmdList *cl) { return cl ? cl->n : 0; } -void omega_gpu_cmdlist_reset(OmegaGpuCmdList *cl) { if (cl) cl->n = 0; } +void omega_gpu_cmdlist_reset(OmegaGpuCmdList *cl) { if (cl) { cl->n = 0; cl->pending_wait = 0; cl->nwaits = 0; cl->wait_other = NULL; cl->wait_max = 0; } } +/* C5: every handle of a list made before the latest session recovery belongs to the closed device */ +static int stale(const OmegaGpuCmdList *cl) { + if (cl->gen == omega_gpu_session_recoveries()) return 0; + omega_gpu_session_set_error("cmdlist: made before a session recovery (its buffers are gone): create a new list"); + return 1; +} +int omega_gpu_cmdlist_wait_for(OmegaGpuCmdList *cl, const OmegaGpuCmdList *other, uint32_t index) { + if (!cl || !other || cl == other || index >= other->n) { omega_gpu_session_set_error("cmdlist wait_for: another list and one of its launches"); return -1; } + if (stale(cl) || stale(other)) return -1; + if (cl->wait_other && cl->wait_other != other) { omega_gpu_session_set_error("cmdlist wait_for: a list waits on one other list only"); return -1; } + cl->wait_other = other; + if (index > cl->wait_max) cl->wait_max = index; + cl->pending_wait = other->sems.va + (uint64_t)index * 16u; + return 0; +} int omega_gpu_cmdlist_mark_independent(OmegaGpuCmdList *cl) { if (!cl || cl->n == 0) { omega_gpu_session_set_error("cmdlist mark_independent: no launch recorded"); return -1; } cl->indep[cl->n - 1] = 1; @@ -101,10 +122,12 @@ int omega_gpu_cmdlist_create(uint32_t cap, OmegaGpuCmdList **out) { OmegaGpuCmdList *cl = omega_gpu_host_calloc(1, sizeof *cl); if (!cl) return -1; cl->cap = cap; + cl->gen = omega_gpu_session_recoveries(); cl->words_cap = RING_WORDS; cl->words = omega_gpu_host_alloc((size_t)cl->words_cap * 4u); cl->indep = omega_gpu_host_calloc(cap, 1); - int rc = cl->words && cl->indep ? 0 : -1; + cl->wait_va = omega_gpu_host_calloc(cap, sizeof *cl->wait_va); + int rc = cl->words && cl->indep && cl->wait_va ? 0 : -1; omega_gpu_session_lock(); if (rc == 0 && !omega_gpu_session_open()) rc = -1; if (rc == 0 && (omega_gpu_session_alloc((size_t)cap * OMEGA_GPU_CMDLIST_BANK_BYTES, &cl->banks) != 0 || @@ -132,6 +155,7 @@ void omega_gpu_cmdlist_free(OmegaGpuCmdList *cl) { omega_gpu_session_unlock(); omega_gpu_host_free(cl->words); omega_gpu_host_free(cl->indep); + omega_gpu_host_free(cl->wait_va); omega_gpu_host_free(cl); } @@ -140,6 +164,7 @@ static uint32_t round8(uint32_t v) { return (v + 7u) / 8u * 8u; } int omega_gpu_cmdlist_add(OmegaGpuCmdList *cl, const OmegaGpuLaunch *L) { if (!cl || !L || !L->args || L->n_args == 0 || L->n_args > OMEGA_GPU_SESSION_MAX_ARGS || L->threads_x == 0 || L->grid_x == 0 || L->grid_y == 0 || L->code_va == 0) { omega_gpu_session_set_error("cmdlist add: arguments"); return -1; } + if (stale(cl)) return -1; if (cl->n >= cl->cap) { omega_gpu_session_set_error("cmdlist add: list full"); return -1; } const uint32_t i = cl->n; const uint32_t ty = L->threads_y ? L->threads_y : 1; @@ -167,6 +192,9 @@ int omega_gpu_cmdlist_add(OmegaGpuCmdList *cl, const OmegaGpuLaunch *L) { memcpy(qs, q1, sizeof q1); memcpy(qs + 0x200, q0, sizeof q0); cl->indep[cl->n] = 0; + cl->wait_va[cl->n] = cl->pending_wait; + if (cl->pending_wait) cl->nwaits++; + cl->pending_wait = 0; cl->n++; return (int)i; } @@ -203,11 +231,12 @@ static int wait_word(const OmegaGpuPlatform *p, const OmegaGpuMem *marker, uint6 /* Uncertain completion: latch this module, then queue a 1 ms session launch behind the stuck list. If the channel is * still busy it times out and the session latches the whole process (parks every buffer, refuses every API). */ static void force_latch(OmegaGpuCmdList *cl, const char *why) { - __atomic_store_n(&g_latched, 1u, __ATOMIC_RELEASE); + __atomic_store_n(&g_latched, omega_gpu_session_recoveries() + 1u, __ATOMIC_RELEASE); uint32_t arg = 0; OmegaGpuLaunch L = { .code_va = cl->nop_code.va, .gpr_count = cl->nop_gpr, .threads_x = 32, .threads_y = 1, .grid_x = 1, .grid_y = 1, .num_elements = 1, .args = &arg, .n_args = 1, .timeout_ms = 1 }; (void)omega_gpu_session_launch(&L, NULL, NULL); + omega_gpu_session_note_module_latch(); /* C5: so omega_gpu_session_recover lifts it even when the check launch completed */ omega_gpu_session_set_error(why); } @@ -244,12 +273,70 @@ static size_t emit_inline_qmd(uint32_t *pb, size_t n, uint64_t va, const uint32_ memcpy(&pb[n], words, 96 * 4); return n + 96; } +/* One submission's method stream for launches [done, end) into cl->words, ending with the completion tail at marker_va. + * Shared by submit and submit_pair (L136) so both emit the same words. Returns the word count. */ +static size_t emit_chunk(OmegaGpuCmdList *cl, const OmegaGpuCmdListOpts *op, uint32_t done, uint32_t end, uint64_t marker_va) { + const OmegaGpuCmdListOpts o = *op; + uint32_t *pb = cl->words; + size_t n = 0; + memcpy(pb, SETUP_WORDS, sizeof SETUP_WORDS); n += 18; + for (uint32_t i = done; i < end; i++) { + if (cl->wait_va[i]) { + /* wait_for: host semaphore ACQUIRE (clc96f.h SEM_ADDR_LO 0x5c .. SEM_EXECUTE 0x6c, OPERATION_ACQUIRE 0, 32-bit + * payload; the omega-mv#580 ORDER_SEM words, chip-proven): this queue stops here until the other list's launch + * released DONE. Before the barrier, so the launch's cache invalidate comes after the wait. */ + const uint64_t va = cl->wait_va[i]; + pb[n++] = bw_mthd(0, 0x005c, 5); pb[n++] = (uint32_t)va; pb[n++] = (uint32_t)(va >> 32); + pb[n++] = OMEGA_BW_SEMAPHORE_INTERMEDIATE_DONE; pb[n++] = 0; pb[n++] = 0; + } + if (o.skip_launch && i == (uint32_t)(o.skip_launch - 1)) continue; + /* the first launch of a submission gets the full barrier (CPU-written QMDs, code and banks before it), unless + * opts.first_barrier_none (C4 streams measurement: a WAIT_FOR_IDLE may also wait for another queue's grids) */ + const int indep = i != done && cl->indep[i]; /* marked independent: no barrier, overlaps the launch before it */ + /* a launch that waited (wait_for) always gets the full barrier: its invalidate must come after the wait */ + const OmegaGpuCmdListBarrier b = cl->wait_va[i] ? OMEGA_GPU_CMDLIST_BARRIER_WFI + : i == done ? (i == 0 && o.first_barrier_none ? OMEGA_GPU_CMDLIST_BARRIER_NONE : OMEGA_GPU_CMDLIST_BARRIER_WFI) + : indep ? OMEGA_GPU_CMDLIST_BARRIER_NONE : o.barrier; + if (indep && o.stamps) n = emit_stamp(pb, n, cl->stamps.va, i); /* no WFI: slot i is the front-end time, launch i - 1 may still run */ + if (b != OMEGA_GPU_CMDLIST_BARRIER_NONE) { + if (b != OMEGA_GPU_CMDLIST_BARRIER_FLUSH_DATA) { pb[n++] = bw_mthd(1, MTHD_WAIT_FOR_IDLE, 1); pb[n++] = 0; } + else { pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = INVALIDATE_DATA | INVALIDATE_FLUSH_DATA; } /* implicit WFI (NVK) */ + if (o.stamps) n = emit_stamp(pb, n, cl->stamps.va, i); /* slot i: launch i - 1 done (slot `done`: submit start) */ + if (b == OMEGA_GPU_CMDLIST_BARRIER_WFI) { pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = OMEGA_BW_INVALIDATE_SHADER_CACHES_ALL; } + else if (b == OMEGA_GPU_CMDLIST_BARRIER_WFI_DATA) { pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = INVALIDATE_DATA; } + } + const uint64_t q1_va = cl->qmds.va + (uint64_t)i * OMEGA_GPU_CMDLIST_QMD_BYTES; + if (o.mode == OMEGA_GPU_CMDLIST_INLINE) { + const uint8_t *qs = (const uint8_t *)cl->qmds.cpu + (size_t)i * OMEGA_GPU_CMDLIST_QMD_BYTES; + uint32_t q1[OMEGA_BW_QMD_WORDS]; + memcpy(q1, qs, sizeof q1); + q1[10] = 0x00190000u; q1[12] = (uint32_t)((q1_va + 0x200) >> 8); /* the session pair: QMD1 decrements QMD0 */ + n = emit_inline_qmd(pb, n, q1_va + 0x200, (const uint32_t *)(qs + 0x200)); + n = emit_inline_qmd(pb, n, q1_va, q1); + } else { + /* standalone grid: no dependent QMD (NVK builds Blackwell QMDs without one, nak/qmd.rs Qmd5_0) */ + uint32_t *q1 = (uint32_t *)((uint8_t *)cl->qmds.cpu + (size_t)i * OMEGA_GPU_CMDLIST_QMD_BYTES); + q1[10] = 0; q1[12] = 0; + pb[n++] = bw_mthd(1, MTHD_SEND_PCAS_A, 1); pb[n++] = (uint32_t)(q1_va >> 8); + pb[n++] = bw_mthd(1, MTHD_SEND_SIGNALING_PCAS2_B, 1); pb[n++] = PCAS_ACTION_INVALIDATE_COPY_SCHEDULE; + } + } + if (o.stamps) { + pb[n++] = bw_mthd(1, MTHD_WAIT_FOR_IDLE, 1); pb[n++] = 0; + n = emit_stamp(pb, n, cl->stamps.va, end); /* slot end: the last launch done */ + } + n = emit_tail(pb, n, marker_va); + return n; +} + int omega_gpu_cmdlist_submit(OmegaGpuCmdList *cl, const OmegaGpuCmdListOpts *opts, OmegaGpuCmdListStats *st) { OmegaGpuCmdListOpts o; memset(&o, 0, sizeof o); if (opts) o = *opts; if (st) { memset(st, 0, sizeof *st); st->first_missing = -1; } const OmegaGpuPlatform *p = omega_gpu_session_platform(); if (!cl || cl->n == 0 || !p) { omega_gpu_session_set_error("cmdlist submit: empty list or no platform"); return -1; } + if (stale(cl)) return -1; + if (cl->nwaits) { omega_gpu_session_set_error("cmdlist submit: a list with waits (wait_for) runs only in a pair (submit_pair)"); return -1; } if (omega_gpu_cmdlist_is_latched() || omega_gpu_session_is_blocked()) { omega_gpu_session_set_error("cmdlist submit: latched"); return -1; } OmegaGpuSession *s = omega_gpu_session_open(); if (!s) return -1; @@ -272,7 +359,7 @@ int omega_gpu_cmdlist_submit(OmegaGpuCmdList *cl, const OmegaGpuCmdListOpts *opt omega_gpu_session_set_error("cmdlist submit: sync_cpu_to_gpu"); return -1; } - const uint32_t per_launch = (o.mode == OMEGA_GPU_CMDLIST_INLINE ? 4u + 2u * 99u : 8u) + (o.stamps ? STAMP_WORDS : 0u); + const uint32_t per_launch = (o.mode == OMEGA_GPU_CMDLIST_INLINE ? 4u + 2u * 99u : 8u) + (o.stamps ? STAMP_WORDS : 0u) + (cl->nwaits ? 6u : 0u); /* The platform may put its own words ahead of ours in the ring (the Linux reference: the omega #457 L2 invalidate * after a host write to a GPU-cached buffer). Budget what it publishes, or a near-full submission is refused. */ const uint32_t prefix = omega_gpu_session_submit_prefix_words(); @@ -291,44 +378,9 @@ int omega_gpu_cmdlist_submit(OmegaGpuCmdList *cl, const OmegaGpuCmdListOpts *opt uint32_t done = 0, submits = 0, words = 0; while (done < cl->n) { const uint64_t tb = p->time_now_ns(p->ctx); - uint32_t *pb = cl->words; - size_t n = 0; - memcpy(pb, SETUP_WORDS, sizeof SETUP_WORDS); n += 18; const uint32_t end = (cl->n - done > room) ? done + room : cl->n; - for (uint32_t i = done; i < end; i++) { - if (o.skip_launch && i == (uint32_t)(o.skip_launch - 1)) continue; - /* the first launch of a submission always gets the full barrier (CPU-written QMDs, code and banks before it) */ - const int indep = i != done && cl->indep[i]; /* marked independent: no barrier, overlaps the launch before it */ - const OmegaGpuCmdListBarrier b = i == done ? OMEGA_GPU_CMDLIST_BARRIER_WFI : indep ? OMEGA_GPU_CMDLIST_BARRIER_NONE : o.barrier; - if (indep && o.stamps) n = emit_stamp(pb, n, cl->stamps.va, i); /* no WFI: slot i is the front-end time, launch i - 1 may still run */ - if (b != OMEGA_GPU_CMDLIST_BARRIER_NONE) { - if (b != OMEGA_GPU_CMDLIST_BARRIER_FLUSH_DATA) { pb[n++] = bw_mthd(1, MTHD_WAIT_FOR_IDLE, 1); pb[n++] = 0; } - else { pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = INVALIDATE_DATA | INVALIDATE_FLUSH_DATA; } /* implicit WFI (NVK) */ - if (o.stamps) n = emit_stamp(pb, n, cl->stamps.va, i); /* slot i: launch i - 1 done (slot `done`: submit start) */ - if (b == OMEGA_GPU_CMDLIST_BARRIER_WFI) { pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = OMEGA_BW_INVALIDATE_SHADER_CACHES_ALL; } - else if (b == OMEGA_GPU_CMDLIST_BARRIER_WFI_DATA) { pb[n++] = bw_mthd(1, OMEGA_BW_MTHD_INVALIDATE_SHADER_CACHES, 1); pb[n++] = INVALIDATE_DATA; } - } - const uint64_t q1_va = cl->qmds.va + (uint64_t)i * OMEGA_GPU_CMDLIST_QMD_BYTES; - if (o.mode == OMEGA_GPU_CMDLIST_INLINE) { - const uint8_t *qs = (const uint8_t *)cl->qmds.cpu + (size_t)i * OMEGA_GPU_CMDLIST_QMD_BYTES; - uint32_t q1[OMEGA_BW_QMD_WORDS]; - memcpy(q1, qs, sizeof q1); - q1[10] = 0x00190000u; q1[12] = (uint32_t)((q1_va + 0x200) >> 8); /* the session pair: QMD1 decrements QMD0 */ - n = emit_inline_qmd(pb, n, q1_va + 0x200, (const uint32_t *)(qs + 0x200)); - n = emit_inline_qmd(pb, n, q1_va, q1); - } else { - /* standalone grid: no dependent QMD (NVK builds Blackwell QMDs without one, nak/qmd.rs Qmd5_0) */ - uint32_t *q1 = (uint32_t *)((uint8_t *)cl->qmds.cpu + (size_t)i * OMEGA_GPU_CMDLIST_QMD_BYTES); - q1[10] = 0; q1[12] = 0; - pb[n++] = bw_mthd(1, MTHD_SEND_PCAS_A, 1); pb[n++] = (uint32_t)(q1_va >> 8); - pb[n++] = bw_mthd(1, MTHD_SEND_SIGNALING_PCAS2_B, 1); pb[n++] = PCAS_ACTION_INVALIDATE_COPY_SCHEDULE; - } - } - if (o.stamps) { - pb[n++] = bw_mthd(1, MTHD_WAIT_FOR_IDLE, 1); pb[n++] = 0; - n = emit_stamp(pb, n, cl->stamps.va, end); /* slot end: the last launch done */ - } - n = emit_tail(pb, n, marker_va); + uint32_t *pb = cl->words; + size_t n = emit_chunk(cl, &o, done, end, marker_va); if (o.mode != OMEGA_GPU_CMDLIST_INLINE && p->sync_cpu_to_gpu(p->ctx, cl->qmds.handle, 0, (uint64_t)cl->n * OMEGA_GPU_CMDLIST_QMD_BYTES) != OMEGA_GPU_PLAT_OK) { omega_gpu_session_set_error("cmdlist submit: sync qmd"); return -1; @@ -360,6 +412,99 @@ int omega_gpu_cmdlist_submit(OmegaGpuCmdList *cl, const OmegaGpuCmdListOpts *opt return 0; } +/* L136: list a on the session queue and list b on extra queue 1, both in flight before either is waited. Each list gets + * the same prefix as submit (semaphores INIT, banks / QMDs / semaphores synced) and the same words (emit_chunk); b's + * completion markers sit at MARKER_OFF + PAIR_B_MARKER on the same uncached page. */ +#define PAIR_B_MARKER 0x80ull +static int pair_prep(const OmegaGpuPlatform *p, OmegaGpuCmdList *cl) { + uint32_t *sem = cl->sems.cpu; + for (uint32_t i = 0; i < cl->n; i++) sem[4 * i] = OMEGA_BW_SEMAPHORE_INTERMEDIATE_INIT; + cl->stamped = 0; + return p->sync_cpu_to_gpu(p->ctx, cl->banks.handle, 0, (uint64_t)cl->n * OMEGA_GPU_CMDLIST_BANK_BYTES) == OMEGA_GPU_PLAT_OK && + p->sync_cpu_to_gpu(p->ctx, cl->sems.handle, 0, (uint64_t)cl->n * 16u) == OMEGA_GPU_PLAT_OK ? 0 : -1; +} + +static int pair_check(const OmegaGpuPlatform *p, OmegaGpuCmdList *cl, uint32_t nwords, uint64_t elapsed, uint64_t host, OmegaGpuCmdListStats *st) { + (void)p->sync_gpu_to_cpu(p->ctx, cl->sems.handle, 0, (uint64_t)cl->n * 16u); + const uint32_t *sem = cl->sems.cpu; + uint32_t ok = 0; int32_t missing = -1; + for (uint32_t i = 0; i < cl->n; i++) { + if (sem[4 * i] == OMEGA_BW_SEMAPHORE_INTERMEDIATE_DONE) ok++; + else if (missing < 0) missing = (int32_t)i; + } + if (st) { st->launches = cl->n; st->submits = 1; st->words = nwords; st->elapsed_ns = elapsed; st->host_ns = host; st->sems_done = ok; st->first_missing = missing; } + if (missing >= 0) { omega_gpu_session_set_error("cmdlist pair: a launch semaphore is not DONE (launch did not run)"); return -1; } + return 0; +} + +/* Uncertain completion of a pair: queue 1 may still run, so a nop on queue 0 proves nothing; latch the session directly. */ +static void pair_latch(const char *why) { + __atomic_store_n(&g_latched, omega_gpu_session_recoveries() + 1u, __ATOMIC_RELEASE); + omega_gpu_session_latch_uncertain(why); +} + +int omega_gpu_cmdlist_submit_pair(OmegaGpuCmdList *a, OmegaGpuCmdList *b, const OmegaGpuCmdListOpts *opts, OmegaGpuCmdListStats *sa, OmegaGpuCmdListStats *sb) { + OmegaGpuCmdListOpts o; memset(&o, 0, sizeof o); + if (opts) o = *opts; + if (sa) { memset(sa, 0, sizeof *sa); sa->first_missing = -1; } + if (sb) { memset(sb, 0, sizeof *sb); sb->first_missing = -1; } + const OmegaGpuPlatform *p = omega_gpu_session_platform(); + if (!a || !b || a == b || a->n == 0 || b->n == 0 || !p) { omega_gpu_session_set_error("cmdlist pair: two distinct non-empty lists and a platform"); return -1; } + if (stale(a) || stale(b)) return -1; + for (int k = 0; k < 2; k++) { /* a wait must point into the other list of this pair, at a launch it still has */ + const OmegaGpuCmdList *me = k ? b : a, *peer = k ? a : b; + if (me->nwaits && (me->wait_other != peer || me->wait_max >= peer->n)) { + omega_gpu_session_set_error("cmdlist pair: a wait_for points outside the other list of this pair"); return -1; + } + } + if (o.mode != OMEGA_GPU_CMDLIST_PCAS || o.stamps || o.skip_launch) { omega_gpu_session_set_error("cmdlist pair: PCAS mode only, no stamps, no skip"); return -1; } + if (omega_gpu_cmdlist_is_latched() || omega_gpu_session_is_blocked()) { omega_gpu_session_set_error("cmdlist pair: latched"); return -1; } + OmegaGpuSession *s = omega_gpu_session_open(); + if (!s) return -1; + if (!s->marker.cpu || s->marker.size < MARKER_OFF + PAIR_B_MARKER + 0x20) { omega_gpu_session_set_error("cmdlist pair: session marker page"); return -1; } + OmegaGpuQueueHandle q1; + if (omega_gpu_session_extra_queue(1, &q1) != 0) return -1; /* names the refusing stage */ + const OmegaGpuMem *marker = &s->marker; + const uint64_t marker_va = marker->va + MARKER_OFF; + const uint64_t timeout = o.timeout_ms ? o.timeout_ms : DEFAULT_TIMEOUT_MS; + const uint32_t spin = o.spin_us ? o.spin_us : omega_gpu_session_spin_us(); + const uint64_t th0 = p->time_now_ns(p->ctx); + /* one submission per list: both must fit their ring with the platform prefix (a q38 token is ~650 launches x 8 words) */ + const uint32_t prefix = omega_gpu_session_submit_prefix_words(); + const OmegaGpuCmdList *L[2] = { a, b }; + for (int k = 0; k < 2; k++) { + const uint32_t avail = L[k]->words_cap - 18u - TAIL_WORDS - 2u - STAMP_WORDS; + if (prefix > avail || (avail - prefix) / (L[k]->nwaits ? 14u : 8u) < L[k]->n) { omega_gpu_session_set_error("cmdlist pair: a list does not fit one submission"); return -1; } + } + if (pair_prep(p, a) || pair_prep(p, b)) { omega_gpu_session_set_error("cmdlist pair: sync_cpu_to_gpu"); return -1; } + const size_t na = emit_chunk(a, &o, 0, a->n, marker_va), nb = emit_chunk(b, &o, 0, b->n, marker_va + PAIR_B_MARKER); + volatile uint32_t *mk = (volatile uint32_t *)((uint8_t *)marker->cpu + MARKER_OFF); + mk[0] = 0; mk[4] = 0; mk[PAIR_B_MARKER / 4] = 0; mk[PAIR_B_MARKER / 4 + 4] = 0; + if (p->sync_cpu_to_gpu(p->ctx, a->qmds.handle, 0, (uint64_t)a->n * OMEGA_GPU_CMDLIST_QMD_BYTES) != OMEGA_GPU_PLAT_OK || + p->sync_cpu_to_gpu(p->ctx, b->qmds.handle, 0, (uint64_t)b->n * OMEGA_GPU_CMDLIST_QMD_BYTES) != OMEGA_GPU_PLAT_OK || + p->sync_cpu_to_gpu(p->ctx, marker->handle, MARKER_OFF, PAIR_B_MARKER + 0x20) != OMEGA_GPU_PLAT_OK) { + omega_gpu_session_set_error("cmdlist pair: sync qmd / marker"); return -1; + } + const uint64_t t0 = p->time_now_ns(p->ctx); + const uint64_t host = t0 - th0; + if (p->queue_submit(p->ctx, s->queue, a->words, (uint32_t)na) != OMEGA_GPU_PLAT_OK) { + omega_gpu_session_set_error("cmdlist pair: queue_submit (queue 0) refused"); return -1; /* nothing in flight */ + } + const int b_ok = p->queue_submit(p->ctx, q1, b->words, (uint32_t)nb) == OMEGA_GPU_PLAT_OK; + int w = wait_word(p, marker, 0, OMEGA_BW_MARKER_COMPLETION_PAYLOAD, timeout, spin); + if (w == WAIT_OK) w = wait_word(p, marker, 0x10, OMEGA_BW_MARKER2_PAYLOAD, timeout, spin); + if (w == WAIT_OK && b_ok) w = wait_word(p, marker, PAIR_B_MARKER, OMEGA_BW_MARKER_COMPLETION_PAYLOAD, timeout, spin); + if (w == WAIT_OK && b_ok) w = wait_word(p, marker, PAIR_B_MARKER + 0x10, OMEGA_BW_MARKER2_PAYLOAD, timeout, spin); + if (w != WAIT_OK) { pair_latch(w == WAIT_TIMED_OUT ? "cmdlist pair: marker wait timed out (latched)" : "cmdlist pair: marker poll refused (latched)"); return -1; } + (void)p->sync_gpu_to_cpu(p->ctx, marker->handle, MARKER_OFF, PAIR_B_MARKER + 0x20); + const uint64_t elapsed = p->time_now_ns(p->ctx) - t0; + (void)p->queue_retire(p->ctx, s->queue); + if (!b_ok) { omega_gpu_session_set_error("cmdlist pair: queue_submit (queue 1) refused"); return -1; } /* a completed and is retired */ + (void)p->queue_retire(p->ctx, q1); + const int ra = pair_check(p, a, (uint32_t)na, elapsed, host, sa), rb = pair_check(p, b, (uint32_t)nb, elapsed, host, sb); + return ra == 0 && rb == 0 ? 0 : -1; +} + int omega_gpu_cmdlist_stamps(const OmegaGpuCmdList *cl, uint64_t *out, uint32_t cap) { if (!cl || !out || !cl->stamps.cpu) { omega_gpu_session_set_error("cmdlist stamps: arguments"); return -1; } if (!cl->stamped) { omega_gpu_session_set_error("cmdlist stamps: the last submit had stamps off"); return -1; } diff --git a/src/omega_gpu_cmdlist.h b/src/omega_gpu_cmdlist.h index c534c71d6..889bdd1e4 100644 --- a/src/omega_gpu_cmdlist.h +++ b/src/omega_gpu_cmdlist.h @@ -82,6 +82,9 @@ typedef struct { back by omega_gpu_cmdlist_stamps. Costs 6 words + the report per launch. 0 = off. */ int skip_launch; /* TEST ONLY: >= 1 drops launch (skip_launch - 1) from the method stream (its slot stays recorded), so the per-launch semaphore check must fail. 0 = off. */ + int first_barrier_none; /* C4 streams: no WAIT_FOR_IDLE + invalidate before launch 0 (the CPU-written code, banks and QMDs + must not sit in a stale cache line: fresh slots or unchanged contents). A WAIT_FOR_IDLE may also + wait for grids of another queue of the group; the streams test measures both. 0 = the barrier. */ } OmegaGpuCmdListOpts; typedef struct { @@ -96,7 +99,8 @@ typedef struct { typedef struct OmegaGpuCmdList OmegaGpuCmdList; -/* Takes the session lock itself. Allocates the slots for up to cap launches. 0 ok, -1 (session error names it). */ +/* Takes the session lock itself. Allocates the slots for up to cap launches. 0 ok, -1 (session error names it). A list + * belongs to the device it was made on: after omega_gpu_session_recover, add / submit / wait_for refuse it (C5). */ int omega_gpu_cmdlist_create(uint32_t cap, OmegaGpuCmdList **out); void omega_gpu_cmdlist_free(OmegaGpuCmdList *cl); /* Caller holds the lock. Empties the list (slots are rewritten by the next adds). */ @@ -114,7 +118,20 @@ int omega_gpu_cmdlist_add(OmegaGpuCmdList *cl, const OmegaGpuLaunch *L); /* Caller holds the lock, device open, not latched. Submits every recorded launch in order, waits for the completion, * checks every launch semaphore. 0 ok; -1 with the stage named (omega_gpu_session_last_error). */ int omega_gpu_cmdlist_submit(OmegaGpuCmdList *cl, const OmegaGpuCmdListOpts *opts, OmegaGpuCmdListStats *st); -/* 1 once a timeout latched this module. */ +/* L136 (roadblock R3): caller holds the lock. List a on the session queue and list b on extra queue 1 + * (omega_gpu_session_extra_queue; needs AIEN_OMEGA_GPU_CHANNELS >= 2 at device open), both submitted before either is + * waited, so the two may run at the same time. The lists must share no written buffer. PCAS mode, no stamps, each list in + * one submission. Both stats get the pair wall time (first submit to the last marker). 0 ok; -1 with the stage named; + * a marker timeout latches the session. */ +int omega_gpu_cmdlist_submit_pair(OmegaGpuCmdList *a, OmegaGpuCmdList *b, const OmegaGpuCmdListOpts *opts, OmegaGpuCmdListStats *sa, OmegaGpuCmdListStats *sb); +/* C4 events. Caller holds the lock. The next launch added to cl waits, on the chip, until launch `index` of list `other` + * (already added there) has completed: a host semaphore ACQUIRE on that launch's release semaphore (DONE), emitted + * before the launch's barrier, which is always the full WAIT_FOR_IDLE + invalidate (whatever the options say), so the + * launch reads what the other launch wrote. A list waits on one other list only, and a list with waits runs only in + * submit_pair with that list (submit refuses it; submit_pair refuses a wait outside the pair or past its launches). + * 0 ok, -1 (no such launch, a second other list, or a list made before a session recovery). */ +int omega_gpu_cmdlist_wait_for(OmegaGpuCmdList *cl, const OmegaGpuCmdList *other, uint32_t index); +/* 1 once a timeout latched this module, until omega_gpu_session_recover (C5). */ int omega_gpu_cmdlist_is_latched(void); /* After a submit with opts.stamps = 1: out[0] = GPU timestamp (ns, PTIMER) before launch 0, out[i + 1] = after launch i completed diff --git a/src/omega_gpu_gemm.c b/src/omega_gpu_gemm.c new file mode 100644 index 000000000..42b47a7d6 --- /dev/null +++ b/src/omega_gpu_gemm.c @@ -0,0 +1,381 @@ +/* omega_gpu_gemm.c -- matrix multiply of any shape on the GB10 tensor cores (C3). See the header. */ +#include "omega_gpu_gemm.h" +#include "omega_bw_em.h" +#include "omega_bw_em_q.h" +#include "omega_gpu_session.h" + +#include +#include + +#define POISON 0x7fa00badu /* a signalling NaN no tensor-core op writes: a word still holding it was never stored */ +#define TIMEOUT_MS 60000ull +#define FRAG 512u /* bytes of one warp fragment: 32 lanes x 16 */ + +static uint32_t esz(OmegaGpuGemmType t) { return t == OMEGA_GPU_GEMM_BF16 ? 2u : 1u; } +static uint32_t kstep(OmegaGpuGemmType t) { return t == OMEGA_GPU_GEMM_BF16 ? 16u : 32u; } +static int pow124(uint32_t v) { return v == 1u || v == 2u || v == 4u; } + +void omega_gpu_gemm_default_cfg(OmegaGpuGemmType type, OmegaGemmCfg *cfg) { + memset(cfg, 0, sizeof *cfg); + cfg->type = type; cfg->rt = 2; cfg->ct = 4; cfg->wm = 2; cfg->wn = 2; cfg->stall = type == OMEGA_GPU_GEMM_BF16 ? 4u : 2u; +} + +int omega_gpu_gemm_cfg_ok(const OmegaGemmCfg *c) { + return c && (c->type == OMEGA_GPU_GEMM_BF16 || c->type == OMEGA_GPU_GEMM_E4M3) && pow124(c->rt) && pow124(c->ct) && + pow124(c->wm) && pow124(c->wn) && c->stall >= 1u && c->stall <= 15u && c->mutant >= 0 && c->mutant <= 3 && + 4u * (4u * c->rt + 2u * c->ct + c->rt * c->ct) <= 100u; /* registers: two operand sets + accumulators, R2..R127 in all */ +} + +/* ------------------------------------------------------------------ IR helpers */ + +typedef struct { int bssy, bra; } Region; +static Region skip_if_p0(Em *e) { Region r; r.bssy = bssy_fwd(e); r.bra = bra_if_p0_fwd(e); return r; } +static void region_end(Em *e, Region r) { int at = here(e); bsync(e); patch_bra(e, r.bra, at); patch_bra(e, r.bssy, at + 1); } +/* d = a - b */ +static void isub(Em *e, int d, int a, int b) { imadi(e, d, b, 0, 0xffffffffu, a); } +/* d = 1 when a < b (both below 2^31), else 0 */ +static void lt_bit(Em *e, int d, int a, int b) { isub(e, d, a, b); shr(e, d, d, 0, 31); } +static void and_r(Em *e, int d, int a, int b) { lop3(e, d, a, b, NOREG, 0xc0u); } +/* tensor-core op d = a * b[bsub..bsub+1] + c */ +static void mma(Em *e, int fp8, int d, int a, int b, unsigned bsub, int c, uint32_t stall) { + BlackwellIRInsn i = I0(BW_IR_HMMA_BF16); + i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; i.src2_subreg = (uint8_t)bsub; i.src3_vreg = c; + if (fp8) i.imm = OMEGA_QMMA_MARK; + i.control = CW(stall, SB_NONE, SB_NONE, e->pending); e->pending = 0; + if (omega_bw_ir_append(e->p, &i) < 0) e->err = -1; +} + +/* ------------------------------------------------------------------ PACK_A / PACK_B + * CTA (pair cx, row group cy), 128 threads; thread tid writes word tid of each of the F fragments of the block: + * lane L = tid / 4, register q = tid % 4, g = L / 4, t = L % 4, r = elements per register (2 bf16, 4 e4m3). + * A fragment f = u * rt + i: row 16 (rt cy + i) + g + 8 (q & 1), k = 2 step cx + step u + r t + 4 r (q >> 1) + * B fragment f = j: row 8 (ct cy + j) + g, k = 2 step cx + step (q >> 1) + r t + 4 r (q & 1) + * Element (row, k) of the source is at (row * row_stride + k * k_stride) * esz; past rows or kdim it is 0. */ +static int gen_pack(Em *e, const OmegaGemmCfg *c, int isb) { + const int fp8 = c->type == OMEGA_GPU_GEMM_E4M3; + const uint32_t ks = kstep(c->type), r = 4u / esz(c->type), F = isb ? c->ct : 2u * c->rt; + int udesc = UV64(e), psrc = V64(e), pdst = V64(e), R = V(e), Kd = V(e), sr = V(e), sk = V(e), ks2 = V(e); + int tid = V(e), cx = V(e), cy = V(e), one = V(e), g = V(e), t = V(e), qa = V(e), qb = V(e), row0 = V(e), k0 = V(e); + int tmp = V(e), pd = V64(e), row = V(e), vrow = V(e), rowoff = V(e), kx = V(e), v = V(e), off = V(e), word = V(e); + int addr[4], val[4], mask[4], odd[4]; + for (unsigned x = 0; x < 4; x++) { addr[x] = V64(e); val[x] = V(e); mask[x] = V(e); odd[x] = V(e); } + if (e->err) return -1; + ldcu64(e, udesc, 0x358); + ldc64(e, psrc, 0x380); ldc64(e, pdst, 0x388); + ldc32(e, R, 0x390); ldc32(e, Kd, 0x394); ldc32(e, sr, 0x398); ldc32(e, sk, 0x39c); ldc32(e, ks2, 0x3a0); + s2r(e, tid, BW_SR_TID_X); s2r(e, cx, BW_SR_CTAID_X); s2r(e, cy, BW_SR_CTAID_Y); + movi(e, one, 1); + shr(e, g, tid, 0, 4); + shr(e, t, tid, 0, 2); andi(e, t, t, 0, 3); + andi(e, qa, tid, 0, 1); + shr(e, qb, tid, 0, 1); andi(e, qb, qb, 0, 1); + if (!isb) { + imadi(e, row0, cy, 0, 16u * c->rt, g); imadi(e, row0, qa, 0, 8u, row0); + imadi(e, k0, cx, 0, 2u * ks, NOREG); imadi(e, k0, t, 0, r, k0); imadi(e, k0, qb, 0, 4u * r, k0); + } else { + imadi(e, row0, cy, 0, 8u * c->ct, g); + imadi(e, k0, cx, 0, 2u * ks, NOREG); imadi(e, k0, t, 0, r, k0); imadi(e, k0, qb, 0, ks, k0); imadi(e, k0, qa, 0, 4u * r, k0); + } + /* this thread's word of fragment 0: ((cy * KS2 + cx) * F * 128 + tid) words */ + imadr(e, tmp, cy, ks2, cx); imadi(e, tmp, tmp, 0, F * 128u, tid); imadw(e, pd, tmp, 4u, pdst); + for (uint32_t f = 0; f < F; f++) { + const uint32_t drow = isb ? 8u * f : 16u * (f % c->rt), dk = isb ? 0u : ks * (f / c->rt); + imadi(e, row, one, 0, drow, row0); + lt_bit(e, vrow, row, R); + imadr(e, rowoff, row, sr, NOREG); + for (uint32_t x = 0; x < r; x++) { + imadi(e, kx, one, 0, dk + x, k0); + lt_bit(e, v, kx, Kd); + and_r(e, v, v, vrow); + imadr(e, off, kx, sk, rowoff); + imadr(e, off, off, v, NOREG); /* outside: element 0, always readable, then masked */ + if (c->mutant == 2) movi(e, mask[x], 0xffffffffu); /* the red check: element 0 leaks in past the edges */ + else imadi(e, mask[x], v, 0, 0xffffffffu, NOREG); + if (fp8) { andi(e, odd[x], off, 0, 1u); andi(e, off, off, 0, 0xfffffffeu); imadw(e, addr[x], off, 1u, psrc); } + else imadw(e, addr[x], off, 2u, psrc); + } + for (uint32_t x = 0; x < r; x++) ldg_wide(e, BW_IR_LDG_E_U16, val[x], addr[x], 0, udesc, x == 0); + for (uint32_t x = 0; x < r; x++) { + if (fp8) { /* the byte at off: low or high half of the u16 */ + andi(e, kx, val[x], 0, 0xffu); + shr(e, v, val[x], 0, 8); andi(e, v, v, 0, 0xffu); + isub(e, v, v, kx); + imadr(e, val[x], v, odd[x], kx); + } + and_r(e, val[x], val[x], mask[x]); + } + imadi(e, word, val[0], 0, 1u, NOREG); + for (uint32_t x = 1; x < r; x++) imadi(e, word, val[x], 0, 1u << (x * (32u / r)), word); + stg(e, pd, f * FRAG, word, udesc); + } + tail(e); + return e->err; +} + +/* ------------------------------------------------------------------ MAIN */ +static int gen_main(Em *e, const OmegaGemmCfg *c) { + const int fp8 = c->type == OMEGA_GPU_GEMM_E4M3; + const uint32_t RT = c->rt, CT = c->ct, FA = 2u * RT, FB = CT; + int udesc = UV64(e), pa = V64(e), pb = V64(e), pc = V64(e), M = V(e), N = V(e), ks2 = V(e); + int tid = V(e), cx = V(e), cy = V(e), warp = V(e), lane = V(e), g = V(e), t = V(e), one = V(e), zr = V(e); + int rga = V(e), rgb = V(e), tmp = V(e), cnt = V(e); + int acc[16], as[2][8], bs[2][4]; + for (uint32_t x = 0; x < RT * CT; x++) acc[x] = V128(e); + for (unsigned s = 0; s < 2; s++) { for (uint32_t f = 0; f < FA; f++) as[s][f] = V128(e); for (uint32_t j = 0; j < FB; j++) bs[s][j] = V128(e); } + if (e->err) return -1; + ldcu64(e, udesc, 0x358); + ldc64(e, pa, 0x380); ldc64(e, pb, 0x388); ldc64(e, pc, 0x390); + ldc32(e, M, 0x398); ldc32(e, N, 0x39c); ldc32(e, ks2, 0x3a0); + s2r(e, tid, BW_SR_TID_X); s2r(e, cx, BW_SR_CTAID_X); s2r(e, cy, BW_SR_CTAID_Y); + movi(e, one, 1); movrz(e, zr); + shr(e, warp, tid, 0, 5); andi(e, lane, tid, 0, 31u); + /* warp (wm, wn) = (warp / WN, warp % WN); row groups rga = cy WM + wm, rgb = cx WN + wn */ + shr(e, tmp, warp, 0, (uint32_t)log2u(c->wn)); imadi(e, rga, cy, 0, c->wm, tmp); + andi(e, tmp, warp, 0, c->wn - 1u); imadi(e, rgb, cx, 0, c->wn, tmp); + imadr(e, tmp, rga, ks2, NOREG); imadw(e, pa, tmp, FA * FRAG, pa); + imadr(e, tmp, rgb, ks2, NOREG); imadw(e, pb, tmp, FB * FRAG, pb); + imadi(e, tmp, lane, 0, 16u, NOREG); imadw(e, pa, tmp, 1u, pa); imadw(e, pb, tmp, 1u, pb); + for (uint32_t x = 0; x < RT * CT; x++) for (unsigned q = 0; q < 4; q++) { BlackwellIRInsn mz = I0(BW_IR_MOV_RZ); mz.dst_vreg = acc[x]; mz.dst_subreg = (uint8_t)q; emit(e, mz, K_FIXED); } + shr(e, cnt, ks2, 0, 1); /* loop iterations: two k pairs each */ + + #define ISSUE(s, sb) do { \ + for (uint32_t f = 0; f < FA; f++) ldw_pf(e, BW_IR_LDG_E_128, as[s][f], pa, f * FRAG, udesc, (sb)); \ + for (uint32_t j = 0; j < FB; j++) ldw_pf(e, BW_IR_LDG_E_128, bs[s][j], pb, j * FRAG, udesc, (sb)); \ + imadw(e, pa, one, FA * FRAG, pa); imadw(e, pb, one, FB * FRAG, pb); } while (0) + #define COMPUTE(s) do { \ + for (uint32_t u = 0; u < 2; u++) { \ + if (c->mutant == 1 && u == 1) break; \ + for (uint32_t i = 0; i < RT; i++) for (uint32_t j = 0; j < CT; j++) \ + mma(e, fp8, acc[i * CT + j], as[s][u * RT + i], bs[s][j], 2u * u, acc[i * CT + j], c->stall); } } while (0) + + ISSUE(0, 3u); + const int top = here(e); + loop_begin(e); + ISSUE(1, 4u); + consume(e, 3); + COMPUTE(0); + nop(e, 15); /* the tensor ops have read set 0 before it is reloaded */ + ISSUE(0, 3u); /* the last iteration reads one pair past the end: slack */ + consume(e, 4); + COMPUTE(1); + nop(e, 15); + imadi(e, cnt, one, 0, 0xffffffffu, cnt); + isetp_ge_u32(e, cnt, one); + bra_if_p0(e, top); + loop_end(e); + #undef ISSUE + #undef COMPUTE + consume(e, 3); + nop(e, 15); nop(e, 15); nop(e, 15); nop(e, 15); /* the last results settle before the stores read them */ + + /* stores: C[m][n] for m = 16 (RT rga + i) + 8 h + g, n = 8 (CT rgb + j) + 2 t + cc, when m < M and n < N */ + int mb = V(e), nb = V(e), m = V(e), n = V(e), vm = V(e), vn = V(e), rowoff = V(e), ca = V64(e); + if (e->err) return -1; + shr(e, g, lane, 0, 2); andi(e, t, lane, 0, 3u); + imadi(e, mb, rga, 0, 16u * RT, g); + imadi(e, tmp, t, 0, 2u, NOREG); imadi(e, nb, rgb, 0, 8u * CT, tmp); + for (uint32_t i = 0; i < RT; i++) for (uint32_t h = 0; h < 2; h++) { + imadi(e, m, one, 0, 16u * i + 8u * h, mb); + lt_bit(e, vm, m, M); + imadr(e, rowoff, m, N, NOREG); + for (uint32_t j = 0; j < CT; j++) for (uint32_t cc = 0; cc < 2; cc++) { + imadi(e, n, one, 0, 8u * j + cc, nb); + lt_bit(e, vn, n, N); + and_r(e, vn, vn, vm); + isetp_ge_u32(e, zr, vn); /* P0: 0 >= ok, i.e. outside: skip */ + Region rg = skip_if_p0(e); + iadd(e, tmp, rowoff, n); imadw(e, ca, tmp, 4u, pc); + BlackwellIRInsn st = I0(BW_IR_STG_E); st.src1_vreg = ca; st.src2_vreg = acc[i * CT + j]; + st.src2_subreg = (uint8_t)(2u * h + (c->mutant == 3 ? 1u - cc : cc)); st.ureg = udesc; emit(e, st, K_STORE); + region_end(e, rg); + } + } + tail(e); + return e->err; +} + +int omega_gpu_gemm_codegen(const OmegaGemmCfg *cfg, OmegaGemmKind kind, BlackwellIRProgram *prog) { + if (!omega_gpu_gemm_cfg_ok(cfg) || !prog || (unsigned)kind >= OMEGA_GEMM_K_COUNT) return -1; + omega_bw_ir_init(prog); + Em em; memset(&em, 0, sizeof em); em.p = prog; + int rc = kind == OMEGA_GEMM_K_MAIN ? gen_main(&em, cfg) : gen_pack(&em, cfg, kind == OMEGA_GEMM_K_PACK_B); + if (rc != 0 || em.err || em.depth != 0) return -1; + return omega_bw_regalloc_solve(prog); +} + +/* ------------------------------------------------------------------ plan and driver */ + +static uint32_t roundup(uint32_t v, uint32_t m) { return (v + m - 1u) / m * m; } + +int omega_gpu_gemm_plan(const OmegaGemmCfg *c, uint32_t M, uint32_t N, uint32_t K, OmegaGemmPlan *p) { + if (!omega_gpu_gemm_cfg_ok(c) || !p || !M || !N || !K) return OMEGA_GPU_GEMM_BAD_ARGS; + if (M > OMEGA_GPU_GEMM_MAX_DIM || N > OMEGA_GPU_GEMM_MAX_DIM || K > OMEGA_GPU_GEMM_MAX_DIM) return OMEGA_GPU_GEMM_TOO_LARGE; + memset(p, 0, sizeof *p); + const uint32_t ks = kstep(c->type), ga = 16u * c->rt, gb = 8u * c->ct, FA = 2u * c->rt, FB = c->ct; + p->Mp = roundup(M, ga * c->wm); p->Np = roundup(N, gb * c->wn); p->Kp = roundup(K, 4u * ks); + p->KS2 = p->Kp / (2u * ks); + p->a_bytes = (uint64_t)M * K * esz(c->type); p->b_bytes = (uint64_t)K * N * esz(c->type); + p->ap_bytes = (uint64_t)(p->Mp / ga) * p->KS2 * FA * FRAG + 2u * FA * FRAG; + p->bp_bytes = (uint64_t)(p->Np / gb) * p->KS2 * FB * FRAG + 2u * FB * FRAG; + p->grid[OMEGA_GEMM_K_PACK_A][0] = p->KS2; p->grid[OMEGA_GEMM_K_PACK_A][1] = p->Mp / ga; + p->grid[OMEGA_GEMM_K_PACK_B][0] = p->KS2; p->grid[OMEGA_GEMM_K_PACK_B][1] = p->Np / gb; + p->grid[OMEGA_GEMM_K_MAIN][0] = p->Np / (gb * c->wn); p->grid[OMEGA_GEMM_K_MAIN][1] = p->Mp / (ga * c->wm); + p->threads[OMEGA_GEMM_K_PACK_A] = p->threads[OMEGA_GEMM_K_PACK_B] = 128u; + p->threads[OMEGA_GEMM_K_MAIN] = 32u * c->wm * c->wn; + return OMEGA_GPU_GEMM_OK; +} + +static void put64(uint32_t *a, unsigned w, uint64_t v) { a[w] = (uint32_t)v; a[w + 1] = (uint32_t)(v >> 32); } + +int omega_gpu_gemm_drive(const OmegaGemmCfg *c, unsigned layout, uint32_t M, uint32_t N, uint32_t K, uint64_t a_va, + uint64_t b_va, uint64_t ap_va, uint64_t bp_va, uint64_t c_va, OmegaGemmLaunchFn launch, void *ctx) { + if (!launch || (layout & ~3u)) return OMEGA_GPU_GEMM_BAD_ARGS; + OmegaGemmPlan p; + int rc = omega_gpu_gemm_plan(c, M, N, K, &p); + if (rc != OMEGA_GPU_GEMM_OK) return rc; + uint32_t a[OMEGA_GPU_GEMM_ARGS_WORDS]; + /* A element (m, k): row-major m K + k, column-major k M + m */ + memset(a, 0, sizeof a); + put64(a, 0, a_va); put64(a, 2, ap_va); a[4] = M; a[5] = K; + a[6] = layout & OMEGA_GPU_GEMM_A_COL ? 1u : K; a[7] = layout & OMEGA_GPU_GEMM_A_COL ? M : 1u; a[8] = p.KS2; + if (launch(ctx, OMEGA_GEMM_K_PACK_A, a, p.grid[0][0], p.grid[0][1], p.threads[0]) != 0) return OMEGA_GPU_GEMM_CHIP_FAIL; + /* B element (k, n) as packed row n: row-major k N + n, column-major n K + k */ + memset(a, 0, sizeof a); + put64(a, 0, b_va); put64(a, 2, bp_va); a[4] = N; a[5] = K; + a[6] = layout & OMEGA_GPU_GEMM_B_COL ? K : 1u; a[7] = layout & OMEGA_GPU_GEMM_B_COL ? 1u : N; a[8] = p.KS2; + if (launch(ctx, OMEGA_GEMM_K_PACK_B, a, p.grid[1][0], p.grid[1][1], p.threads[1]) != 0) return OMEGA_GPU_GEMM_CHIP_FAIL; + memset(a, 0, sizeof a); + put64(a, 0, ap_va); put64(a, 2, bp_va); put64(a, 4, c_va); a[6] = M; a[7] = N; a[8] = p.KS2; + if (launch(ctx, OMEGA_GEMM_K_MAIN, a, p.grid[2][0], p.grid[2][1], p.threads[2]) != 0) return OMEGA_GPU_GEMM_CHIP_FAIL; + return OMEGA_GPU_GEMM_OK; +} + +/* ------------------------------------------------------------------ the chip */ + +static struct { + int set[2]; + OmegaGemmCfg cfg[2]; + OmegaGpuMem code[2][OMEGA_GEMM_K_COUNT]; + uint32_t gpr[2][OMEGA_GEMM_K_COUNT]; + int hooked; +} g; + +/* lock held; the session calls it right before it closes the device (also in omega_gpu_session_recover): the kernels go + * with the device, the next call builds them again on the new one */ +static void on_session_close(void) { + for (unsigned t = 0; t < 2; t++) + for (unsigned k = 0; k < OMEGA_GEMM_K_COUNT; k++) if (g.code[t][k].cpu) omega_gpu_session_free(&g.code[t][k]); + memset(g.code, 0, sizeof g.code); +} + +static const OmegaGemmCfg *cfg_of(OmegaGpuGemmType t) { + if (!g.set[t]) { omega_gpu_gemm_default_cfg(t, &g.cfg[t]); g.set[t] = 1; } + return &g.cfg[t]; +} + +int omega_gpu_gemm_test_set_cfg(OmegaGpuGemmType type, const OmegaGemmCfg *cfg) { + if ((unsigned)type > OMEGA_GPU_GEMM_E4M3 || (cfg && (!omega_gpu_gemm_cfg_ok(cfg) || cfg->type != type))) return OMEGA_GPU_GEMM_BAD_ARGS; + omega_gpu_session_lock(); + for (unsigned k = 0; k < OMEGA_GEMM_K_COUNT; k++) if (g.code[type][k].cpu) omega_gpu_session_free(&g.code[type][k]); + memset(g.code[type], 0, sizeof g.code[type]); + if (cfg) g.cfg[type] = *cfg; else omega_gpu_gemm_default_cfg(type, &g.cfg[type]); + g.set[type] = 1; + omega_gpu_session_unlock(); + return OMEGA_GPU_GEMM_OK; +} + +const char *omega_gpu_gemm_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_GEMM_OK: return "OK"; + case OMEGA_GPU_GEMM_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_GEMM_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_GEMM_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_GEMM_CHIP_FAIL: return "CHIP_FAIL"; + default: return "?"; + } +} + +/* lock held */ +static int kernel_locked(OmegaGpuGemmType t, OmegaGemmKind k) { + if (g.code[t][k].cpu) return OMEGA_GPU_GEMM_OK; + if (!g.hooked) { /* without the hook a kernel would outlive its device */ + if (omega_gpu_session_on_close(on_session_close) != 0) return OMEGA_GPU_GEMM_CHIP_FAIL; + g.hooked = 1; + } + BlackwellIRProgram *prog = omega_gpu_host_calloc(1, sizeof *prog); + if (!prog) return OMEGA_GPU_GEMM_CODEGEN_FAIL; + int rc = OMEGA_GPU_GEMM_OK; + size_t need = 0; + if (omega_gpu_gemm_codegen(cfg_of(t), k, prog) != 0 || (need = omega_bw_program_code_bytes(prog)) == 0) rc = OMEGA_GPU_GEMM_CODEGEN_FAIL; + else if (omega_gpu_session_alloc_code(need, &g.code[t][k]) != 0) rc = OMEGA_GPU_GEMM_CHIP_FAIL; + else { + OmegaBlackwellKernel kk; + if (omega_blackwell_kernel_encode_into(prog, g.code[t][k].cpu, need, &kk) != 0 || kk.code_size != need || + omega_qmma_patch_code(prog, g.code[t][k].cpu, need) < 0) rc = OMEGA_GPU_GEMM_CODEGEN_FAIL; + else if ((g.gpr[t][k] = omega_bw_gpr_declared(kk.gpr_count)) > 255u) rc = OMEGA_GPU_GEMM_CODEGEN_FAIL; + else if (omega_gpu_session_sync_to_gpu(&g.code[t][k]) != 0) rc = OMEGA_GPU_GEMM_CHIP_FAIL; + if (g.gpr[t][k] < 64u) g.gpr[t][k] = 64u; + if (rc != OMEGA_GPU_GEMM_OK) { omega_gpu_session_free(&g.code[t][k]); memset(&g.code[t][k], 0, sizeof g.code[t][k]); } + } + if (rc == OMEGA_GPU_GEMM_CODEGEN_FAIL) omega_gpu_session_set_error("gemm: our codegen refused a kernel"); + omega_gpu_host_free(prog); + return rc; +} + +typedef struct { OmegaGpuGemmType t; uint64_t pack_ns, main_ns; } ChipCtx; + +/* lock held */ +static int chip_launch(void *ctx, OmegaGemmKind k, const uint32_t args[OMEGA_GPU_GEMM_ARGS_WORDS], uint32_t gx, uint32_t gy, uint32_t threads) { + ChipCtx *c = ctx; + if (kernel_locked(c->t, k) != OMEGA_GPU_GEMM_OK) return -1; + OmegaGpuLaunch L = { + .code_va = g.code[c->t][k].va, .gpr_count = g.gpr[c->t][k], .threads_x = threads, .threads_y = 1, + .grid_x = gx, .grid_y = gy, .num_elements = (size_t)gx * gy * threads, + .args = args, .n_args = OMEGA_GPU_GEMM_ARGS_WORDS, .timeout_ms = TIMEOUT_MS, + }; + uint64_t ns = 0; + if (omega_gpu_session_launch(&L, &ns, NULL) != 0) return -1; + if (k == OMEGA_GEMM_K_MAIN) c->main_ns += ns; else c->pack_ns += ns; + return 0; +} + +static uint64_t up16(uint64_t v) { return (v + 255u) & ~(uint64_t)255u; } + +int omega_gpu_gemm(OmegaGpuGemmType type, unsigned layout, uint32_t M, uint32_t N, uint32_t K, const void *A, const void *B, + float *C, OmegaGpuGemmInfo *info) { + uint64_t t0 = omega_gpu_session_now_ns(); + if (info) memset(info, 0, sizeof *info); + if ((unsigned)type > OMEGA_GPU_GEMM_E4M3 || (layout & ~3u) || !A || !B || !C) return OMEGA_GPU_GEMM_BAD_ARGS; + omega_gpu_session_lock(); + const OmegaGemmCfg *cfg = cfg_of(type); + OmegaGemmPlan p; + int rc = omega_gpu_gemm_plan(cfg, M, N, K, &p); + if (rc != OMEGA_GPU_GEMM_OK) { omega_gpu_session_unlock(); return rc; } + /* one buffer: A | B | packed A | packed B | C (each 256-byte aligned; A and B carry 16 bytes of readable slack) */ + const uint64_t oa = 0, ob = up16(p.a_bytes + 16u), oap = ob + up16(p.b_bytes + 16u), obp = oap + up16(p.ap_bytes), + oc = obp + up16(p.bp_bytes), total = oc + (uint64_t)M * N * 4u; + OmegaGpuMem m; + if (!omega_gpu_session_open() || omega_gpu_session_alloc(total, &m) != 0) { omega_gpu_session_unlock(); return OMEGA_GPU_GEMM_CHIP_FAIL; } + uint8_t *base = m.cpu; + memcpy(base + oa, A, p.a_bytes); memcpy(base + ob, B, p.b_bytes); + uint32_t *cw = (uint32_t *)(base + oc); + for (uint64_t i = 0; i < (uint64_t)M * N; i++) cw[i] = POISON; + ChipCtx cc = { type, 0, 0 }; + if (omega_gpu_session_sync_to_gpu(&m) != 0) rc = OMEGA_GPU_GEMM_CHIP_FAIL; + else rc = omega_gpu_gemm_drive(cfg, layout, M, N, K, m.va + oa, m.va + ob, m.va + oap, m.va + obp, m.va + oc, chip_launch, &cc); + if (rc == OMEGA_GPU_GEMM_OK && omega_gpu_session_sync_to_cpu(&m) != 0) rc = OMEGA_GPU_GEMM_CHIP_FAIL; + if (rc == OMEGA_GPU_GEMM_OK) { + uint64_t unwritten = 0; + for (uint64_t i = 0; i < (uint64_t)M * N; i++) unwritten += cw[i] == POISON; + if (unwritten) { omega_gpu_session_set_error("gemm: output words never written"); rc = OMEGA_GPU_GEMM_CHIP_FAIL; } + else memcpy(C, cw, (size_t)M * N * 4u); + } + if (info) { + info->pack_ns = cc.pack_ns; info->main_ns = cc.main_ns; + for (unsigned k = 0; k < OMEGA_GEMM_K_COUNT; k++) info->gpr[k] = g.gpr[type][k]; + } + omega_gpu_session_free(&m); + omega_gpu_session_unlock(); + if (info) info->call_ns = omega_gpu_session_now_ns() - t0; + return rc; +} diff --git a/src/omega_gpu_gemm.h b/src/omega_gpu_gemm.h new file mode 100644 index 000000000..66a6b0485 --- /dev/null +++ b/src/omega_gpu_gemm.h @@ -0,0 +1,96 @@ +/* omega_gpu_gemm.h -- matrix multiply of any shape on the GB10 tensor cores (row C3 of docs/OMEGA.md). + * + * C = A * B A is M x K, B is K x N, C is M x N f32 (row-major), every M, N, K from 1 to OMEGA_GPU_GEMM_MAX_DIM + * BF16: A and B hold bf16 values, the product runs on HMMA.16816.F32.BF16 + * E4M3: A and B hold FP8 e4m3 bytes, the product runs on QMMA.16832.F32.E4M3.E4M3 + * Layouts: A row-major (M rows of K) or column-major (K rows of M); B row-major (K rows of N) or column-major (N rows of K). + * + * The arithmetic is fixed by the shape alone: every C[m][n] starts at +0 and takes one tensor-core step per 16 (BF16) or + * 32 (E4M3) values of k, in increasing k, k past K counting as zero. The rounding of one step is the chip-measured model + * (tests/bw_hmma_model.h { 16, 2, RZ, 2, 0 }, tests/bw_qmma_model.h { 32, 26, RZ, 2, 0 }), so a host model of the same + * steps reproduces the chip bit for bit (tests/gpu_gemm_test.c). + * + * Kernels, all from Omega's own code generator (no CUDA): + * PACK_A, PACK_B copy A and B, whatever their layout, into the tensor cores' fragment order (each lane's operand + * registers are 16 contiguous bytes; a warp's fragment is 512 contiguous bytes), zero past the edges. + * MAIN each warp computes a 16 rt x 8 ct block of C from the packed operands (LDG.128 straight into the + * operand registers, two register sets so the next loads fly while the tensor cores work), a CTA holds + * wm x wn warps; edge elements past M or N are not stored. + * Packed operand layout (bytes): block (row group, k pair) at ((group * KS2 + pair) * F + f) * 512, lane L at + 16 L, where + * a k pair is two tensor-core steps, KS2 = Kp / (2 * step), F = 2 rt (A: f = u * rt + i, step u of the pair, row tile i) + * or ct (B: f = column tile j; registers 0, 1 step 0 and 2, 3 step 1). */ +#ifndef OMEGA_GPU_GEMM_H +#define OMEGA_GPU_GEMM_H + +#include +#include +#include "omega_blackwell_codegen.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define OMEGA_GPU_GEMM_MAX_DIM 16384u + +enum { + OMEGA_GPU_GEMM_OK = 0, + OMEGA_GPU_GEMM_BAD_ARGS = -1, /* NULL pointer, a zero dimension, unknown type or layout bits, a bad configuration */ + OMEGA_GPU_GEMM_TOO_LARGE = -2, /* a dimension past OMEGA_GPU_GEMM_MAX_DIM */ + OMEGA_GPU_GEMM_CODEGEN_FAIL = -3, /* our codegen refused a kernel */ + OMEGA_GPU_GEMM_CHIP_FAIL = -4 /* device, allocation, launch, or an output word the chip never wrote */ +}; + +typedef enum { OMEGA_GPU_GEMM_BF16 = 0, OMEGA_GPU_GEMM_E4M3 = 1 } OmegaGpuGemmType; +#define OMEGA_GPU_GEMM_A_COL 1u /* A is column-major: K rows of M */ +#define OMEGA_GPU_GEMM_B_COL 2u /* B is column-major: N rows of K */ + +typedef enum { OMEGA_GEMM_K_PACK_A = 0, OMEGA_GEMM_K_PACK_B, OMEGA_GEMM_K_MAIN, OMEGA_GEMM_K_COUNT } OmegaGemmKind; + +/* rt row tiles of 16 and ct column tiles of 8 per warp (1, 2 or 4 each), wm x wn warps per CTA (1, 2 or 4 each), + * with 4 (4 rt + 2 ct + rt ct) <= 100 (the registers of two operand sets and the accumulators; rt 2 ct 4 is the largest), + * stall: issue cycles after each tensor-core op (1 .. 15). + * mutant (red checks): 1 MAIN drops the second step of every k pair, 2 the packs let element 0 in past the edges (instead of zero), + * 3 MAIN stores each column pair swapped. */ +typedef struct { OmegaGpuGemmType type; uint32_t rt, ct, wm, wn, stall; int mutant; } OmegaGemmCfg; +void omega_gpu_gemm_default_cfg(OmegaGpuGemmType type, OmegaGemmCfg *cfg); +int omega_gpu_gemm_cfg_ok(const OmegaGemmCfg *cfg); + +/* Argument words (constant bank 0x380). Packs: src u64, dst u64, rows, kdim, row stride, k stride (elements), KS2. + * MAIN: packed A u64, packed B u64, C u64, M, N, KS2. */ +#define OMEGA_GPU_GEMM_ARGS_WORDS 9u +int omega_gpu_gemm_codegen(const OmegaGemmCfg *cfg, OmegaGemmKind kind, BlackwellIRProgram *prog); + +typedef struct { + uint32_t Mp, Np, Kp, KS2; /* padded sizes; KS2 k pairs (even) */ + uint64_t a_bytes, b_bytes; /* the inputs as given */ + uint64_t ap_bytes, bp_bytes; /* the packed operands, slack for the last prefetch included */ + uint32_t grid[OMEGA_GEMM_K_COUNT][2]; + uint32_t threads[OMEGA_GEMM_K_COUNT]; +} OmegaGemmPlan; +int omega_gpu_gemm_plan(const OmegaGemmCfg *cfg, uint32_t M, uint32_t N, uint32_t K, OmegaGemmPlan *plan); + +/* Runs the three kernels through a launch callback (the chip, or the warp simulator in the test). Device addresses + * are plain numbers. */ +typedef int (*OmegaGemmLaunchFn)(void *ctx, OmegaGemmKind kind, const uint32_t args[OMEGA_GPU_GEMM_ARGS_WORDS], + uint32_t grid_x, uint32_t grid_y, uint32_t threads); +int omega_gpu_gemm_drive(const OmegaGemmCfg *cfg, unsigned layout, uint32_t M, uint32_t N, uint32_t K, uint64_t a_va, + uint64_t b_va, uint64_t ap_va, uint64_t bp_va, uint64_t c_va, OmegaGemmLaunchFn launch, void *ctx); + +typedef struct { + uint64_t pack_ns; /* the two pack kernels, launch to completion */ + uint64_t main_ns; /* the multiply kernel */ + uint64_t call_ns; /* the whole call, uploads and readback included */ + uint32_t gpr[OMEGA_GEMM_K_COUNT]; +} OmegaGpuGemmInfo; + +/* On the chip, with the configuration set by omega_gpu_gemm_test_set_cfg (default: omega_gpu_gemm_default_cfg). */ +int omega_gpu_gemm(OmegaGpuGemmType type, unsigned layout, uint32_t M, uint32_t N, uint32_t K, const void *A, const void *B, + float *C, OmegaGpuGemmInfo *info); +/* Tests and tuning: later calls of that type use cfg (NULL: back to the default); clears the kernel cache. */ +int omega_gpu_gemm_test_set_cfg(OmegaGpuGemmType type, const OmegaGemmCfg *cfg); +const char *omega_gpu_gemm_rc_name(int rc); + +#ifdef __cplusplus +} +#endif +#endif /* OMEGA_GPU_GEMM_H */ diff --git a/src/omega_gpu_platform_linux.c b/src/omega_gpu_platform_linux.c index e96a84d24..23f046209 100644 --- a/src/omega_gpu_platform_linux.c +++ b/src/omega_gpu_platform_linux.c @@ -52,6 +52,12 @@ typedef struct { M16NativeContext m16; OmegaGpuDeviceHandle dev; /* generation 0 = closed */ OmegaGpuQueueHandle queue; + /* L136: extra queues on extra channels of the same channel group (nvrm_channel_n), opened only when + * AIEN_OMEGA_GPU_CHANNELS > 1 at device_open; queue 0 above is unchanged. */ + uint32_t nchan; + OmegaGpuQueueHandle xq[NVRM_MAX_EXTRA_CHANNELS]; + NvrmMem xring[NVRM_MAX_EXTRA_CHANNELS]; + uint8_t x_l2_pending[NVRM_MAX_EXTRA_CHANNELS]; char diag[320]; } LinuxRef; @@ -73,7 +79,7 @@ static const OmegaGpuPlatformCaps g_caps = { .services = OMEGA_GPU_SVC_REQUIRED_SESSION, /* no MMIO (RM owns the registers), no IRQ (polling only) */ .max_devices = 1, .max_buffers = LINUX_REF_BUFFERS, - .max_queues = 1, + .max_queues = 1u + NVRM_MAX_EXTRA_CHANNELS, /* queues past the first need AIEN_OMEGA_GPU_CHANNELS (L136) */ .max_inflight = 1, .max_buffer_bytes = 1ull << 37, /* 128 GiB: the whole unified pool */ .max_total_bytes = 1ull << 37, @@ -140,6 +146,19 @@ static int ref_unlock_id(void *ctx, uint32_t id) { return pthread_mutex_unlock(&r->locks[id]) == 0 ? OMEGA_GPU_PLAT_OK : OMEGA_GPU_PLAT_REFUSED_ARGS; } +uint32_t omega_gpu_platform_linux_channels_env(void) { + const char *e = getenv("AIEN_OMEGA_GPU_CHANNELS"); + if (!e || e[1] != '\0' || e[0] < '2' || e[0] > (char)('1' + NVRM_MAX_EXTRA_CHANNELS)) return 1u; + return (uint32_t)(e[0] - '0'); +} + +/* Extra queue slot of q (0..nchan-2), or -1 when q is not an open extra queue. Caller holds r->mu. */ +static int xq_slot(const LinuxRef *r, OmegaGpuQueueHandle q) { + for (uint32_t i = 0; i + 1u < r->nchan; i++) + if (r->xq[i].generation != 0u && r->xq[i].index == q.index && r->xq[i].generation == q.generation) return (int)i; + return -1; +} + static int ref_device_open(void *ctx, uint32_t ordinal, OmegaGpuDeviceHandle *out) { LinuxRef *r = ctx; int rc; @@ -156,8 +175,9 @@ static int ref_device_open(void *ctx, uint32_t ordinal, OmegaGpuDeviceHandle *ou (void)nvrm_close(&r->m16.rm); goto out; } - if (m16_native_create_channel(&r->m16) != 0) { - rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "m16_native_create_channel"); + r->nchan = omega_gpu_platform_linux_channels_env(); + if (r->nchan == 1u ? m16_native_create_channel(&r->m16) != 0 : nvrm_channel_n(&r->m16.rm, r->nchan - 1u) != 0) { + rc = refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, r->nchan == 1u ? "m16_native_create_channel" : "nvrm_channel_n"); (void)m16_native_close(&r->m16); goto out; } @@ -188,9 +208,13 @@ static int ref_device_close(void *ctx, OmegaGpuDeviceHandle dev) { memset(&r->dev, 0, sizeof r->dev); r->l2_inval_pending = 0; /* omega #457: nothing pending survives the device */ memset(&r->queue, 0, sizeof r->queue); - (void)m16_native_close(&r->m16); + memset(r->xq, 0, sizeof r->xq); memset(r->xring, 0, sizeof r->xring); memset(r->x_l2_pending, 0, sizeof r->x_l2_pending); + r->nchan = 0; + /* C5: the driver's close result is the proof that this process's channels (and any grid still on them) are gone. + * The state above is closed either way; a teardown fault is reported so omega_gpu_session_recover stays latched. */ + rc = m16_native_close(&r->m16) == 0 ? OMEGA_GPU_PLAT_OK : refuse(r, OMEGA_GPU_PLAT_REFUSED_DEVICE, "device_close (driver teardown fault)"); ref_unlock(r); - return OMEGA_GPU_PLAT_OK; + return rc; } static const char *ref_diag_text(void *ctx) { return ((LinuxRef *)ctx)->diag; } @@ -241,6 +265,8 @@ static int ref_dma_free(void *ctx, OmegaGpuBufferHandle b) { if (rc == OMEGA_GPU_PLAT_OK && r->queue.generation != 0u && r->m16.pb_mem.handle == r->mem[b.index].handle && r->m16.pb_mem.cpu == r->mem[b.index].cpu) rc = OMEGA_GPU_PLAT_REFUSED_BUSY; /* the open queue still uses it as its ring */ + for (uint32_t i = 0; rc == OMEGA_GPU_PLAT_OK && i + 1u < r->nchan; i++) + if (r->xq[i].generation != 0u && r->xring[i].handle == r->mem[b.index].handle) rc = OMEGA_GPU_PLAT_REFUSED_BUSY; if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "dma_free"); ref_unlock(r); return rc; } (void)nvrm_free(&r->m16.rm, &r->mem[b.index]); (void)omega_gpu_handles_close(&r->t, b.index, b.generation, kind); @@ -268,7 +294,7 @@ static int ref_sync(void *ctx, OmegaGpuBufferHandle b, uint64_t off, uint64_t le /* omega #457 (chip, 2026-10-15): after the host rewrites a GPU-cached buffer the GPU already read, every later launch * read the old bytes from L2 (nvos.h:1117 "For system memory this will not be coherent with direct CPU mappings"). * The next submission therefore starts with L2_SYSMEM_NCOH_INVALIDATE (ref_queue_submit). */ - else if (to_gpu && r->gpu_cached[b.index]) r->l2_inval_pending = 1; + else if (to_gpu && r->gpu_cached[b.index]) { r->l2_inval_pending = 1; memset(r->x_l2_pending, 1, sizeof r->x_l2_pending); } ref_unlock(r); if (rc == OMEGA_GPU_PLAT_OK) barrier(); /* uncached system memory: a full barrier is the whole sync */ return rc; @@ -304,9 +330,15 @@ static int ref_queue_open(void *ctx, OmegaGpuDeviceHandle dev, OmegaGpuBufferHan int rc = dev_ok(r, dev); if (rc == OMEGA_GPU_PLAT_OK) rc = buf_ok(r, ring, &kind); if (rc == OMEGA_GPU_PLAT_OK && kind != OMEGA_GPU_HANDLE_BUF_QUEUE) rc = OMEGA_GPU_PLAT_REFUSED_BAD_KIND; - if (rc == OMEGA_GPU_PLAT_OK && r->queue.generation != 0u) rc = OMEGA_GPU_PLAT_REFUSED_LIMIT; - if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_handles_open(&r->t, OMEGA_GPU_HANDLE_QUEUE, 0, 1, 0, &out->index, &out->generation); + /* queue 0 first (channel 0); then, with AIEN_OMEGA_GPU_CHANNELS > 1, one queue per extra channel (L136) */ + int slot = -1; + if (rc == OMEGA_GPU_PLAT_OK && r->queue.generation != 0u) { + for (uint32_t i = 0; i + 1u < r->nchan && slot < 0; i++) if (r->xq[i].generation == 0u) slot = (int)i; + if (slot < 0) rc = OMEGA_GPU_PLAT_REFUSED_LIMIT; + } + if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_handles_open(&r->t, OMEGA_GPU_HANDLE_QUEUE, 0, r->nchan, 0, &out->index, &out->generation); /* one queue per channel (L136: nchan is 1 unless AIEN_OMEGA_GPU_CHANNELS) */ if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "queue_open"); ref_unlock(r); return rc; } + if (slot >= 0) { r->xring[slot] = r->mem[ring.index]; r->xq[slot] = *out; r->x_l2_pending[slot] = (uint8_t)r->l2_inval_pending; ref_unlock(r); return OMEGA_GPU_PLAT_OK; } r->m16.pb_mem = r->mem[ring.index]; /* m16_native_enqueue_methods copies the method stream here */ r->queue = *out; ref_unlock(r); @@ -319,6 +351,8 @@ static int ref_queue_close(void *ctx, OmegaGpuQueueHandle q) { int rc = queue_ok(r, q); if (rc == OMEGA_GPU_PLAT_OK) rc = omega_gpu_handles_close(&r->t, q.index, q.generation, OMEGA_GPU_HANDLE_QUEUE); if (rc != OMEGA_GPU_PLAT_OK) { rc = refuse(r, rc, "queue_close"); ref_unlock(r); return rc; } + const int slot = xq_slot(r, q); + if (slot >= 0) { memset(&r->xq[slot], 0, sizeof r->xq[slot]); memset(&r->xring[slot], 0, sizeof r->xring[slot]); ref_unlock(r); return OMEGA_GPU_PLAT_OK; } memset(&r->queue, 0, sizeof r->queue); memset(&r->m16.pb_mem, 0, sizeof r->m16.pb_mem); ref_unlock(r); @@ -330,6 +364,25 @@ static int ref_queue_submit(void *ctx, OmegaGpuQueueHandle q, const uint32_t *wo ref_lock(r); int rc = queue_ok(r, q); if (rc == OMEGA_GPU_PLAT_OK && (!words || nwords == 0u)) rc = OMEGA_GPU_PLAT_REFUSED_ARGS; + const int slot = rc == OMEGA_GPU_PLAT_OK ? xq_slot(r, q) : -1; + if (slot >= 0) { + /* an extra channel: the same #457 prefix rule (its own pending flag), the same copy-to-ring-offset-0 + one GP + * entry + doorbell as m16_native_submit_methods, on channel slot + 1 */ + NvrmMem *ring = &r->xring[slot]; + const uint32_t xpre = r->x_l2_pending[slot] ? L2_INVAL_PREFIX_WORDS : 0u; + if (((uint64_t)nwords + xpre) * 4u > ring->size) rc = OMEGA_GPU_PLAT_REFUSED_BAD_LENGTH; + else { + uint32_t *dst = ring->cpu; + if (xpre) memcpy(dst, L2_INVAL_PREFIX, sizeof L2_INVAL_PREFIX); + memcpy(dst + xpre, words, (size_t)nwords * 4u); + __asm__ volatile("dsb sy" ::: "memory"); + if (nvrm_chan_submit(&r->m16.rm, (uint32_t)slot + 1u, ring, 0, nwords + xpre) != 0) rc = OMEGA_GPU_PLAT_REFUSED_DEVICE; + else r->x_l2_pending[slot] = 0; + } + if (rc != OMEGA_GPU_PLAT_OK) rc = refuse(r, rc, "submit_methods (extra channel)"); + ref_unlock(r); + return rc; + } /* omega #457: a host sync into a GPU-cached buffer is pending, so this submission starts with L2_INVAL_PREFIX. * No dirty line is dropped: every earlier submission ended with L2_FLUSH_DIRTY and the host waited for it. * DOCS SILENT on ordering between this MEM_OP and the launch that follows (no WFI is inserted); the chip gate @@ -358,7 +411,9 @@ static int ref_queue_retire(void *ctx, OmegaGpuQueueHandle q) { LinuxRef *r = ctx; ref_lock(r); int rc = queue_ok(r, q); - if (rc == OMEGA_GPU_PLAT_OK) nvrm_retire(&r->m16.rm, r->m16.rm.put); /* both releases landed: the entry is consumed */ + const int slot = rc == OMEGA_GPU_PLAT_OK ? xq_slot(r, q) : -1; + if (slot >= 0) nvrm_chan_retire(&r->m16.rm, (uint32_t)slot + 1u, nvrm_chan_put(&r->m16.rm, (uint32_t)slot + 1u)); + else if (rc == OMEGA_GPU_PLAT_OK) nvrm_retire(&r->m16.rm, r->m16.rm.put); /* both releases landed: the entry is consumed */ else rc = refuse(r, rc, "queue_retire"); ref_unlock(r); return rc; diff --git a/src/omega_gpu_platform_linux.h b/src/omega_gpu_platform_linux.h index fc2369852..cee1b961d 100644 --- a/src/omega_gpu_platform_linux.h +++ b/src/omega_gpu_platform_linux.h @@ -50,6 +50,11 @@ extern "C" { /* The process-wide Linux reference platform and its caps (written to *caps when caps is not NULL). */ const OmegaGpuPlatform *omega_gpu_platform_linux(OmegaGpuPlatformCaps *caps); +/* L136: channels (GPFIFO queues) the next device_open creates, from env AIEN_OMEGA_GPU_CHANNELS: 1 (unset, empty, "1" or + * anything not 2..4) is today's single channel exactly; 2..4 adds that many minus one channels in the same channel group + * (nvrm_channel_n). Queue i (0-based, in queue_open order) submits on channel i. Read at every device_open. */ +uint32_t omega_gpu_platform_linux_channels_env(void); + #ifdef __cplusplus } #endif diff --git a/src/omega_gpu_scan.c b/src/omega_gpu_scan.c new file mode 100644 index 000000000..0094072e3 --- /dev/null +++ b/src/omega_gpu_scan.c @@ -0,0 +1,332 @@ +/* omega_gpu_scan.c -- see omega_gpu_scan.h. Kernels from Omega's IR (emitter helpers of omega_bw_em.h, the + * chip-proven scheduling rules of the tensor-core generators), host references, the level driver, the chip calls. */ +#include "omega_gpu_scan.h" +#include "omega_bw_em.h" +#include "omega_gpu_session.h" + +#include +#include + +#define PAD_SUM 0x80000000u /* -0.0: x + -0.0 == x for every x */ +#define PAD_MINMAX 0x7fc00000u /* quiet NaN: max(NaN, x) == min(NaN, x) == x */ +#define POISON 0x7fa00badu /* a signalling NaN: no FADD or FMNMX writes it, so a word still holding it was never written */ +#define TIMEOUT_MS 20000ull + +/* ------------------------------------------------------------------ IR */ + +static void fmnmx(Em *e, BlackwellIROpcode op, int d, int a, int b) { + BlackwellIRInsn i = I0(op); i.dst_vreg = d; i.src1_vreg = a; i.src2_vreg = b; emit(e, i, K_FIXED); +} +typedef struct { int bssy, bra; } Region; +/* the lanes with P0 set skip to the region's end; the warp joins again there */ +static Region skip_if_p0(Em *e) { Region r; r.bssy = bssy_fwd(e); r.bra = bra_if_p0_fwd(e); return r; } +static void region_end(Em *e, Region r) { int at = here(e); bsync(e); patch_bra(e, r.bra, at); patch_bra(e, r.bssy, at + 1); } + +static int gen(Em *e, const OmegaScanSpec *sp) { + const OmegaScanKind k = sp->kind; + const int red = k <= OMEGA_SCAN_K_RED_MIN; + int udesc = UV64(e), pin = V64(e), pout = V64(e), ptot = V64(e), len = V(e), tiles = V(e), warps = V(e); + int tid = V(e), cta = V(e), lane = V(e), gw = V(e), one = V(e), tile = V(e), el = V(e), v = V(e), t = V(e); + int a64 = V64(e), b64 = V64(e), rl = V(e), nz = V(e), c31 = V(e), m1 = V(e), off = V(e), tm1 = V(e); + int mask[5]; + for (unsigned s = 0; s < 5; s++) mask[s] = k == OMEGA_SCAN_K_TILE ? V(e) : NOREG; + if (e->err) return -1; + ldcu64(e, udesc, 0x358); + ldc64(e, pin, OMEGA_GPU_SCAN_A_IN); ldc64(e, pout, OMEGA_GPU_SCAN_A_OUT); + if (k == OMEGA_SCAN_K_TILE) ldc64(e, ptot, OMEGA_GPU_SCAN_A_TOT); + ldc32(e, len, OMEGA_GPU_SCAN_A_LEN); ldc32(e, tiles, OMEGA_GPU_SCAN_A_TILES); ldc32(e, warps, OMEGA_GPU_SCAN_A_WARPS); + s2r(e, tid, BW_SR_TID_X); s2r(e, cta, BW_SR_CTAID_X); + movi(e, one, 1); movi(e, m1, 0xffffffffu); movi(e, nz, PAD_SUM); + andi(e, lane, tid, 0, 31u); + shr(e, t, tid, 0, 5); + imadi(e, gw, cta, 0, OMEGA_GPU_SCAN_THREADS / 32u, t); /* global warp = cta * 8 + warp */ + if (k == OMEGA_SCAN_K_ADD) imadi(e, tile, gw, 0, 1u, one); /* the carry starts at tile 1 */ + else imadi(e, tile, gw, 0, 1u, NOREG); + if (k == OMEGA_SCAN_K_TILE) { + /* reversed lanes: lane L holds tile position 31 - L, so SHFL.DOWN by d reads position - d */ + movi(e, c31, 31u); + lop3(e, rl, lane, c31, NOREG, 0x3cu); /* 31 - L == L ^ 31 for L < 32 */ + /* mask[s] = all ones when position - d exists (L + d <= 31), else 0: ((L + d) >> 5) - 1 */ + for (unsigned s = 0; s < 5; s++) { + movi(e, t, 1u << s); + iadd(e, mask[s], lane, t); + shr(e, mask[s], mask[s], 0, 5); + imadi(e, mask[s], mask[s], 0, 1u, m1); + } + } + + const int top = here(e); + loop_begin(e); + isetp_ge_u32(e, tile, tiles); + const int done = bra_if_p0_fwd(e); + if (red) { + const BlackwellIROpcode op = k == OMEGA_SCAN_K_RED_MAX ? BW_IR_FMNMX_MAX : BW_IR_FMNMX_MIN; + imadi(e, el, tile, 0, 32u, lane); + movi(e, v, k == OMEGA_SCAN_K_RED_SUM ? PAD_SUM : PAD_MINMAX); + isetp_ge_u32(e, el, len); + { Region r = skip_if_p0(e); imadw(e, a64, el, 4u, pin); ldg32(e, v, a64, udesc, 1); region_end(e, r); } + for (uint32_t d = 16; d >= 1; d /= 2) { + if (sp->mutant == 1 && d == 1) break; + shfl_down(e, t, v, d); + if (k == OMEGA_SCAN_K_RED_SUM) fadd(e, v, v, t); else fmnmx(e, op, v, v, t); + } + isetp_ge_u32(e, lane, one); + { Region r = skip_if_p0(e); imadw(e, a64, tile, 4u, pout); stg(e, a64, 0, v, udesc); region_end(e, r); } + } else if (k == OMEGA_SCAN_K_TILE) { + imadi(e, el, tile, 0, 32u, rl); + movi(e, v, PAD_SUM); + isetp_ge_u32(e, el, len); + { Region r = skip_if_p0(e); imadw(e, a64, el, 4u, pin); ldg32(e, v, a64, udesc, 1); region_end(e, r); } + for (unsigned s = 0; s < 5; s++) { + if (sp->mutant == 2 && s == 4) break; + shfl_down(e, t, v, 1u << s); + lop3(e, t, t, mask[s], nz, 0xe2u); /* (t & mask) | (-0.0 & ~mask) */ + fadd(e, v, t, v); /* lower position on the left */ + } + isetp_ge_u32(e, el, len); + { Region r = skip_if_p0(e); imadw(e, a64, el, 4u, pout); stg(e, a64, 0, v, udesc); region_end(e, r); } + isetp_ge_u32(e, lane, one); /* lane 0 holds position 31: the tile total */ + { Region r = skip_if_p0(e); imadw(e, a64, tile, 4u, ptot); stg(e, a64, 0, v, udesc); region_end(e, r); } + } else { + imadi(e, el, tile, 0, 32u, lane); + isetp_ge_u32(e, el, len); + { + Region r = skip_if_p0(e); + if (sp->mutant == 3) imadi(e, tm1, tile, 0, 1u, NOREG); else imadi(e, tm1, tile, 0, 1u, m1); + imadw(e, b64, tm1, 4u, pout); imadw(e, a64, el, 4u, pin); + ldg32(e, off, b64, udesc, 1); ldg32(e, v, a64, udesc, 0); + fadd(e, v, off, v); + stg(e, a64, 0, v, udesc); + region_end(e, r); + } + } + iadd(e, tile, tile, warps); + bra(e, top); + loop_end(e); + patch_bra(e, done, here(e)); + tail(e); + return e->err; +} + +int omega_gpu_scan_codegen(const OmegaScanSpec *spec, BlackwellIRProgram *prog) { + if (!spec || !prog || (unsigned)spec->kind >= OMEGA_SCAN_K_COUNT) return -1; + omega_bw_ir_init(prog); + Em em; memset(&em, 0, sizeof em); em.p = prog; + if (gen(&em, spec) != 0 || em.err || em.depth != 0) return -1; + return omega_bw_regalloc_solve(prog); +} + +/* ------------------------------------------------------------------ the level driver */ + +uint32_t omega_gpu_scan_grid(size_t len) { + size_t tiles = (len + 31) / 32, ctas = (tiles + OMEGA_GPU_SCAN_THREADS / 32u - 1) / (OMEGA_GPU_SCAN_THREADS / 32u); + return ctas > OMEGA_GPU_SCAN_MAX_CTAS ? OMEGA_GPU_SCAN_MAX_CTAS : (uint32_t)(ctas ? ctas : 1); +} + +static void args_for(uint32_t a[OMEGA_GPU_SCAN_ARGS_WORDS], uint64_t in, uint64_t out, uint64_t tot, size_t len) { + memset(a, 0, OMEGA_GPU_SCAN_ARGS_WORDS * 4u); + a[0] = (uint32_t)in; a[1] = (uint32_t)(in >> 32); a[2] = (uint32_t)out; a[3] = (uint32_t)(out >> 32); + a[4] = (uint32_t)tot; a[5] = (uint32_t)(tot >> 32); + a[6] = (uint32_t)len; a[7] = (uint32_t)((len + 31) / 32); a[8] = omega_gpu_scan_grid(len) * (OMEGA_GPU_SCAN_THREADS / 32u); +} + +size_t omega_gpu_scan_reduce_scratch_words(size_t n) { + size_t w = 0; + do { n = (n + 31) / 32; w += n; } while (n > 1); + return w; +} + +size_t omega_gpu_scan_prefix_scratch_words(size_t n) { + size_t w = 0; + while (n > 32) { n = (n + 31) / 32; w += n; } + return w + 1; /* the last level's single total */ +} + +int omega_gpu_scan_drive_reduce(OmegaGpuRedOp op, size_t n, uint64_t in_va, uint64_t scratch_va, uint64_t *out_va, + OmegaScanLaunchFn launch, void *ctx, uint32_t *launches) { + if ((unsigned)op > OMEGA_GPU_RED_MIN || n == 0 || !launch || !out_va) return OMEGA_GPU_SCAN_BAD_ARGS; + if (n > OMEGA_GPU_SCAN_MAX_N) return OMEGA_GPU_SCAN_TOO_LARGE; + const OmegaScanKind k = (OmegaScanKind)(OMEGA_SCAN_K_RED_SUM + (int)op); + uint64_t in = in_va, out = scratch_va; + size_t len = n; + uint32_t a[OMEGA_GPU_SCAN_ARGS_WORDS]; + do { + args_for(a, in, out, 0, len); + if (launch(ctx, k, a, omega_gpu_scan_grid(len)) != 0) return OMEGA_GPU_SCAN_CHIP_FAIL; + if (launches) (*launches)++; + len = (len + 31) / 32; + in = out; out += len * 4u; + } while (len > 1); + *out_va = in; + return OMEGA_GPU_SCAN_OK; +} + +int omega_gpu_scan_drive_prefix(size_t n, uint64_t in_va, uint64_t out_va, uint64_t scratch_va, + OmegaScanLaunchFn launch, void *ctx, uint32_t *launches) { + if (n == 0 || !launch) return OMEGA_GPU_SCAN_BAD_ARGS; + if (n > OMEGA_GPU_SCAN_MAX_N) return OMEGA_GPU_SCAN_TOO_LARGE; + enum { MAXL = 8 }; /* 32^6 >= 2^28 */ + uint64_t buf[MAXL], tot[MAXL]; + size_t len[MAXL]; + unsigned L = 0; + uint64_t in = in_va, sp = scratch_va; + buf[0] = out_va; len[0] = n; + uint32_t a[OMEGA_GPU_SCAN_ARGS_WORDS]; + for (;;) { /* forward: scan every level, its totals become the next level (scanned in place) */ + size_t nt = (len[L] + 31) / 32; + tot[L] = sp; sp += nt * 4u; + args_for(a, in, buf[L], tot[L], len[L]); + if (launch(ctx, OMEGA_SCAN_K_TILE, a, omega_gpu_scan_grid(len[L])) != 0) return OMEGA_GPU_SCAN_CHIP_FAIL; + if (launches) (*launches)++; + if (nt == 1) break; + if (L + 1 >= MAXL) return OMEGA_GPU_SCAN_TOO_LARGE; + buf[L + 1] = tot[L]; len[L + 1] = nt; in = tot[L]; + L++; + } + while (L-- > 0) { /* back down: carry the scanned totals of level L + 1 into level L */ + args_for(a, buf[L], buf[L + 1], 0, len[L]); + if (launch(ctx, OMEGA_SCAN_K_ADD, a, omega_gpu_scan_grid(len[L])) != 0) return OMEGA_GPU_SCAN_CHIP_FAIL; + if (launches) (*launches)++; + } + return OMEGA_GPU_SCAN_OK; +} + +/* ------------------------------------------------------------------ the chip */ + +static struct { + int mutant; + OmegaGpuMem code[OMEGA_SCAN_K_COUNT]; + uint32_t gpr[OMEGA_SCAN_K_COUNT]; + int hooked; +} g; + +/* lock held; the session calls it right before it closes the device (also in omega_gpu_session_recover): the kernels go + * with the device, the next call builds them again on the new one */ +static void on_session_close(void) { + for (unsigned k = 0; k < OMEGA_SCAN_K_COUNT; k++) if (g.code[k].cpu) omega_gpu_session_free(&g.code[k]); + memset(g.code, 0, sizeof g.code); +} + +void omega_gpu_scan_test_set_mutant(int mutant) { + omega_gpu_session_lock(); + for (unsigned k = 0; k < OMEGA_SCAN_K_COUNT; k++) if (g.code[k].cpu) omega_gpu_session_free(&g.code[k]); + memset(g.code, 0, sizeof g.code); + g.mutant = mutant; + omega_gpu_session_unlock(); +} + +const char *omega_gpu_scan_rc_name(int rc) { + switch (rc) { + case OMEGA_GPU_SCAN_OK: return "OK"; + case OMEGA_GPU_SCAN_BAD_ARGS: return "BAD_ARGS"; + case OMEGA_GPU_SCAN_TOO_LARGE: return "TOO_LARGE"; + case OMEGA_GPU_SCAN_CODEGEN_FAIL: return "CODEGEN_FAIL"; + case OMEGA_GPU_SCAN_CHIP_FAIL: return "CHIP_FAIL"; + default: return "?"; + } +} + +/* lock held */ +static int kernel_locked(OmegaScanKind k) { + if (g.code[k].cpu) return OMEGA_GPU_SCAN_OK; + if (!g.hooked) { /* without the hook a kernel would outlive its device */ + if (omega_gpu_session_on_close(on_session_close) != 0) return OMEGA_GPU_SCAN_CHIP_FAIL; + g.hooked = 1; + } + BlackwellIRProgram *prog = omega_gpu_host_calloc(1, sizeof *prog); + if (!prog) return OMEGA_GPU_SCAN_CODEGEN_FAIL; + OmegaScanSpec s = { k, g.mutant }; + int rc = OMEGA_GPU_SCAN_OK; + size_t need = 0; + if (omega_gpu_scan_codegen(&s, prog) != 0 || (need = omega_bw_program_code_bytes(prog)) == 0) rc = OMEGA_GPU_SCAN_CODEGEN_FAIL; + else if (omega_gpu_session_alloc_code(need, &g.code[k]) != 0) rc = OMEGA_GPU_SCAN_CHIP_FAIL; + else { + OmegaBlackwellKernel kk; + if (omega_blackwell_kernel_encode_into(prog, g.code[k].cpu, need, &kk) != 0 || kk.code_size != need) rc = OMEGA_GPU_SCAN_CODEGEN_FAIL; + else if (omega_gpu_session_sync_to_gpu(&g.code[k]) != 0) rc = OMEGA_GPU_SCAN_CHIP_FAIL; + else { g.gpr[k] = omega_bw_gpr_declared(kk.gpr_count); if (g.gpr[k] < 64u) g.gpr[k] = 64u; } + if (rc != OMEGA_GPU_SCAN_OK) { omega_gpu_session_free(&g.code[k]); memset(&g.code[k], 0, sizeof g.code[k]); } + } + omega_gpu_host_free(prog); + return rc; +} + +typedef struct { uint64_t elapsed_ns; } ChipCtx; + +/* lock held */ +static int chip_launch(void *ctx, OmegaScanKind k, const uint32_t args[OMEGA_GPU_SCAN_ARGS_WORDS], uint32_t grid_x) { + if (kernel_locked(k) != OMEGA_GPU_SCAN_OK) return -1; + OmegaGpuLaunch L = { + .code_va = g.code[k].va, .gpr_count = g.gpr[k], .threads_x = OMEGA_GPU_SCAN_THREADS, .threads_y = 1, + .grid_x = grid_x, .grid_y = 1, .num_elements = (size_t)grid_x * OMEGA_GPU_SCAN_THREADS, + .args = args, .n_args = OMEGA_GPU_SCAN_ARGS_WORDS, .timeout_ms = TIMEOUT_MS, + }; + uint64_t ns = 0; + if (omega_gpu_session_launch(&L, &ns, NULL) != 0) return -1; + ((ChipCtx *)ctx)->elapsed_ns += ns; + return 0; +} + +/* lock held: one data buffer [in n | out n | scratch], the input copied in, outputs poisoned */ +static int stage_locked(const float *x, size_t n, size_t out_words, size_t scratch_words, OmegaGpuMem *m) { + if (!omega_gpu_session_open()) return OMEGA_GPU_SCAN_CHIP_FAIL; + if (omega_gpu_session_alloc((n + out_words + scratch_words) * 4u, m) != 0) return OMEGA_GPU_SCAN_CHIP_FAIL; + uint32_t *w = m->cpu; + memcpy(w, x, n * 4u); + for (size_t i = n; i < n + out_words + scratch_words; i++) w[i] = POISON; + if (omega_gpu_session_sync_to_gpu(m) != 0) { omega_gpu_session_free(m); return OMEGA_GPU_SCAN_CHIP_FAIL; } + return OMEGA_GPU_SCAN_OK; +} + +int omega_gpu_reduce(OmegaGpuRedOp op, const float *x, size_t n, float *out, OmegaGpuScanInfo *info) { + uint64_t t0 = omega_gpu_session_now_ns(); + if (info) memset(info, 0, sizeof *info); + if ((unsigned)op > OMEGA_GPU_RED_MIN || !x || !out || n == 0) return OMEGA_GPU_SCAN_BAD_ARGS; + if (n > OMEGA_GPU_SCAN_MAX_N) return OMEGA_GPU_SCAN_TOO_LARGE; + omega_gpu_session_lock(); + OmegaGpuMem m; + const size_t sw = omega_gpu_scan_reduce_scratch_words(n); + int rc = stage_locked(x, n, 0, sw, &m); + if (rc == OMEGA_GPU_SCAN_OK) { + ChipCtx c = { 0 }; uint64_t res = 0; uint32_t nl = 0; + rc = omega_gpu_scan_drive_reduce(op, n, m.va, m.va + n * 4u, &res, chip_launch, &c, &nl); + if (rc == OMEGA_GPU_SCAN_OK && omega_gpu_session_sync_to_cpu(&m) != 0) rc = OMEGA_GPU_SCAN_CHIP_FAIL; + if (rc == OMEGA_GPU_SCAN_OK) { + uint32_t r; memcpy(&r, (const uint8_t *)m.cpu + (res - m.va), 4); + if (r == POISON) { omega_gpu_session_set_error("reduce: the result word was never written"); rc = OMEGA_GPU_SCAN_CHIP_FAIL; } + else memcpy(out, &r, 4); + } + if (info) { info->launches = nl; info->elapsed_ns = c.elapsed_ns; } + omega_gpu_session_free(&m); + } + omega_gpu_session_unlock(); + if (info) info->call_ns = omega_gpu_session_now_ns() - t0; + return rc; +} + +int omega_gpu_prefix_sum(const float *x, size_t n, float *y, OmegaGpuScanInfo *info) { + uint64_t t0 = omega_gpu_session_now_ns(); + if (info) memset(info, 0, sizeof *info); + if (!x || !y || n == 0) return OMEGA_GPU_SCAN_BAD_ARGS; + if (n > OMEGA_GPU_SCAN_MAX_N) return OMEGA_GPU_SCAN_TOO_LARGE; + omega_gpu_session_lock(); + OmegaGpuMem m; + int rc = stage_locked(x, n, n, omega_gpu_scan_prefix_scratch_words(n), &m); + if (rc == OMEGA_GPU_SCAN_OK) { + ChipCtx c = { 0 }; uint32_t nl = 0; + rc = omega_gpu_scan_drive_prefix(n, m.va, m.va + n * 4u, m.va + 2 * n * 4u, chip_launch, &c, &nl); + if (rc == OMEGA_GPU_SCAN_OK && omega_gpu_session_sync_to_cpu(&m) != 0) rc = OMEGA_GPU_SCAN_CHIP_FAIL; + if (rc == OMEGA_GPU_SCAN_OK) { + const uint32_t *w = (const uint32_t *)m.cpu + n; + size_t unwritten = 0; + for (size_t i = 0; i < n; i++) unwritten += w[i] == POISON; + if (unwritten) { omega_gpu_session_set_error("prefix sum: output words never written"); rc = OMEGA_GPU_SCAN_CHIP_FAIL; } + else memcpy(y, w, n * 4u); + } + if (info) { info->launches = nl; info->elapsed_ns = c.elapsed_ns; } + omega_gpu_session_free(&m); + } + omega_gpu_session_unlock(); + if (info) info->call_ns = omega_gpu_session_now_ns() - t0; + return rc; +} diff --git a/src/omega_gpu_scan.h b/src/omega_gpu_scan.h new file mode 100644 index 000000000..3c775cf6a --- /dev/null +++ b/src/omega_gpu_scan.h @@ -0,0 +1,110 @@ +/* omega_gpu_scan.h -- reductions and prefix sums of any length on the GB10 (row C3 of docs/OMEGA.md). + * + * The sum, the maximum and the minimum of n float values, and the inclusive prefix sum (the running total + * y[i] = x[0] + ... + x[i]), for every n from 1 to 2^28. The order of the additions is frozen: it depends only on n + * and the element index, never on the grid, the scheduling or the chip, so the chip result equals the host + * reference below bit for bit. + * + * Reductions (the order of docs/numeric/E1_REDUCTION_CONTRACT.md, omega_numeric_reduce.h): one level turns len values + * into ceil(len / 32) values; value j is the 32-lane tree over values [32j, 32j + 32) with lane i combining lane i + d + * for d = 16, 8, 4, 2, 1 (lower lane on the left), positions past len filled with the identity (-0.0 for the sum, a + * quiet NaN for the maximum and minimum, which those operations ignore). Levels repeat until one value is left; at + * least one level runs. + * + * Prefix sum, same tile structure: + * level scan inside each tile of 32 (positions past len filled with -0.0), for d = 1, 2, 4, 8, 16 in that order, + * every position i >= d takes v[i - d] + v[i] (both from before the step); the tile total T[j] is the + * value at position 31. + * carry when there is more than one tile, the totals T are prefix-summed by the same definition (recursively) + * into S, and every element of tile j >= 1 becomes S[j - 1] + (its tile value). + * Inputs are any float values. Results with no NaN are bit-exact; a NaN result is a NaN (the chip writes one canonical + * NaN, the host may keep another payload). + * + * On the chip each level is one launch of a kernel from Omega's own codegen (no CUDA): the reduction tree and the + * tile scan are warp shuffles (SHFL.DOWN; the scan holds each tile in reversed lane order so a shuffle down reads the + * lower element), the carry is a separate pass. omega_gpu_scan_drive_* run the levels through a launch callback, so + * the same driver runs on the chip (omega_gpu_reduce, omega_gpu_prefix_sum) and in the warp simulator + * (tests/gpu_scan_test.c). */ +#ifndef OMEGA_GPU_SCAN_H +#define OMEGA_GPU_SCAN_H + +#include +#include +#include "omega_blackwell_codegen.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define OMEGA_GPU_SCAN_MAX_N ((size_t)1 << 28) +#define OMEGA_GPU_SCAN_THREADS 256u /* 8 warps per CTA; each warp walks tiles gw, gw + warps, ... */ +#define OMEGA_GPU_SCAN_MAX_CTAS 1024u + +enum { + OMEGA_GPU_SCAN_OK = 0, + OMEGA_GPU_SCAN_BAD_ARGS = -1, /* NULL pointer, n == 0, unknown op */ + OMEGA_GPU_SCAN_TOO_LARGE = -2, /* n > OMEGA_GPU_SCAN_MAX_N */ + OMEGA_GPU_SCAN_CODEGEN_FAIL = -3, /* our codegen refused a kernel */ + OMEGA_GPU_SCAN_CHIP_FAIL = -4 /* device, allocation, launch, or an output word the chip never wrote */ +}; + +typedef enum { OMEGA_GPU_RED_SUM = 0, OMEGA_GPU_RED_MAX = 1, OMEGA_GPU_RED_MIN = 2 } OmegaGpuRedOp; + +/* The kernels. Argument words at constant bank 0x380 (OMEGA_GPU_SCAN_A_*). */ +typedef enum { + OMEGA_SCAN_K_RED_SUM = 0, OMEGA_SCAN_K_RED_MAX, OMEGA_SCAN_K_RED_MIN, /* one reduction level: in -> out[tile] */ + OMEGA_SCAN_K_TILE, /* one scan level: in -> out (may alias), tot[tile] */ + OMEGA_SCAN_K_ADD, /* carry: out[e] = S[tile - 1] + out[e], tiles >= 1 */ + OMEGA_SCAN_K_COUNT +} OmegaScanKind; +#define OMEGA_GPU_SCAN_A_IN 0x380u /* u64: level input (K_ADD: the level being carried into) */ +#define OMEGA_GPU_SCAN_A_OUT 0x388u /* u64: level output (K_ADD: S, the scanned totals) */ +#define OMEGA_GPU_SCAN_A_TOT 0x390u /* u64: tile totals (K_TILE only) */ +#define OMEGA_GPU_SCAN_A_LEN 0x398u /* u32: values in this level */ +#define OMEGA_GPU_SCAN_A_TILES 0x39cu /* u32: ceil(len / 32) */ +#define OMEGA_GPU_SCAN_A_WARPS 0x3a0u /* u32: warps in the grid (the tile stride) */ +#define OMEGA_GPU_SCAN_ARGS_WORDS 9u + +/* Mutants for the red checks (each must change some result): 1 the reduction tree skips d = 1, 2 the tile scan skips + * d = 16, 3 the carry adds S[tile] instead of S[tile - 1]. 0 = the real kernels. */ +typedef struct { OmegaScanKind kind; int mutant; } OmegaScanSpec; + +/* Builds the IR program of one kernel and allocates its registers; 0 or -1. */ +int omega_gpu_scan_codegen(const OmegaScanSpec *spec, BlackwellIRProgram *prog); + +/* Host references, the frozen order above. 0, or -1 for bad arguments or out of memory. */ +int omega_gpu_reduce_reference(OmegaGpuRedOp op, const float *x, size_t n, float *out); +int omega_gpu_prefix_sum_reference(const float *x, size_t n, float *y); + +/* The level driver. Device addresses are plain numbers (host pointers in the simulator). launch runs one kernel over + * grid_x CTAs of OMEGA_GPU_SCAN_THREADS threads with the given argument words and returns 0 when it completed. */ +typedef int (*OmegaScanLaunchFn)(void *ctx, OmegaScanKind kind, const uint32_t args[OMEGA_GPU_SCAN_ARGS_WORDS], uint32_t grid_x); +/* Scratch words a call needs beyond its input and output. */ +size_t omega_gpu_scan_reduce_scratch_words(size_t n); +size_t omega_gpu_scan_prefix_scratch_words(size_t n); +/* Reduction: the result lands in the scratch word the function returns through *out_va. */ +int omega_gpu_scan_drive_reduce(OmegaGpuRedOp op, size_t n, uint64_t in_va, uint64_t scratch_va, uint64_t *out_va, + OmegaScanLaunchFn launch, void *ctx, uint32_t *launches); +/* Prefix sum of in into out (out may equal in). */ +int omega_gpu_scan_drive_prefix(size_t n, uint64_t in_va, uint64_t out_va, uint64_t scratch_va, + OmegaScanLaunchFn launch, void *ctx, uint32_t *launches); +/* CTAs for a level of len values. */ +uint32_t omega_gpu_scan_grid(size_t len); + +typedef struct { + uint32_t launches; /* kernels run */ + uint64_t elapsed_ns; /* sum of launch-to-completion over the launches */ + uint64_t call_ns; /* the whole call, uploads and readback included */ +} OmegaGpuScanInfo; + +/* On the chip. x is read, out / y written; nothing else is kept between calls except the kernels. */ +int omega_gpu_reduce(OmegaGpuRedOp op, const float *x, size_t n, float *out, OmegaGpuScanInfo *info); +int omega_gpu_prefix_sum(const float *x, size_t n, float *y, OmegaGpuScanInfo *info); +/* Red checks: every later call builds its kernels with this mutant (clears the kernel cache). */ +void omega_gpu_scan_test_set_mutant(int mutant); +const char *omega_gpu_scan_rc_name(int rc); + +#ifdef __cplusplus +} +#endif +#endif /* OMEGA_GPU_SCAN_H */ diff --git a/src/omega_gpu_scan_ref.c b/src/omega_gpu_scan_ref.c new file mode 100644 index 000000000..ab5ee16a5 --- /dev/null +++ b/src/omega_gpu_scan_ref.c @@ -0,0 +1,75 @@ +/* omega_gpu_scan_ref.c -- the host references of omega_gpu_scan.h: the frozen order, in plain C on the CPU. + * Separate from the chip code so a CPU-only program can check them against the E1 reduction reference + * (tests/gpu_scan_ref_check.c). Additions only, so no fused multiply-add can change a bit. */ +#include "omega_gpu_scan.h" + +#include +#include + +#define PAD_SUM 0x80000000u /* -0.0 */ +#define PAD_MINMAX 0x7fc00000u /* quiet NaN */ + + +static float u2f(uint32_t u) { float f; memcpy(&f, &u, 4); return f; } + +static float combine(OmegaGpuRedOp op, float a, float b) { + if (op == OMEGA_GPU_RED_SUM) return a + b; + return op == OMEGA_GPU_RED_MAX ? __builtin_fmaxf(a, b) : __builtin_fminf(a, b); /* AArch64 FMAXNM / FMINNM: NaN ignored */ +} + +int omega_gpu_reduce_reference(OmegaGpuRedOp op, const float *x, size_t n, float *out) { + if ((unsigned)op > OMEGA_GPU_RED_MIN || !x || !out || n == 0) return -1; + const float pad = u2f(op == OMEGA_GPU_RED_SUM ? PAD_SUM : PAD_MINMAX); + float *cur = NULL; + size_t len = n; + const float *in = x; + do { + size_t nt = (len + 31) / 32; + float *next = malloc(nt * sizeof *next); + if (!next) { free(cur); return -1; } + for (size_t j = 0; j < nt; j++) { + float v[32]; + for (size_t i = 0; i < 32; i++) v[i] = j * 32 + i < len ? in[j * 32 + i] : pad; + for (size_t d = 16; d >= 1; d /= 2) + for (size_t i = 0; i + d < 32; i++) v[i] = combine(op, v[i], v[i + d]); /* ascending: v[i + d] is still old */ + next[j] = v[0]; + } + free(cur); + cur = next; in = next; len = nt; + } while (len > 1); + *out = cur[0]; + free(cur); + return 0; +} + +/* one scan level of len values: out (may alias in) and the tile totals */ +static void ref_scan_level(const float *in, float *out, float *tot, size_t len) { + for (size_t j = 0; j * 32 < len; j++) { + float v[32]; + for (size_t i = 0; i < 32; i++) v[i] = j * 32 + i < len ? in[j * 32 + i] : u2f(PAD_SUM); + for (size_t d = 1; d <= 16; d *= 2) + for (size_t i = 31; i >= d; i--) v[i] = v[i - d] + v[i]; /* descending: v[i - d] is still old */ + for (size_t i = 0; i < 32 && j * 32 + i < len; i++) out[j * 32 + i] = v[i]; + tot[j] = v[31]; + } +} + +static int ref_prefix(const float *in, float *out, size_t len) { + size_t nt = (len + 31) / 32; + float *tot = malloc(nt * sizeof *tot); + if (!tot) return -1; + ref_scan_level(in, out, tot, len); + int rc = 0; + if (nt > 1) { + rc = ref_prefix(tot, tot, nt); + for (size_t e = 32; rc == 0 && e < len; e++) out[e] = tot[e / 32 - 1] + out[e]; + } + free(tot); + return rc; +} + +int omega_gpu_prefix_sum_reference(const float *x, size_t n, float *y) { + if (!x || !y || n == 0) return -1; + return ref_prefix(x, y, n); +} + diff --git a/src/omega_gpu_session.c b/src/omega_gpu_session.c index 0276bfd32..41a72e285 100644 --- a/src/omega_gpu_session.c +++ b/src/omega_gpu_session.c @@ -222,9 +222,16 @@ int omega_gpu_session_is_parked(OmegaGpuBufferHandle h) { return 0; } +/* L136: queues past the first (omega_gpu_session_extra_queue), each with its own 64 KB ring; opened on demand, closed + * and freed before queue 0 at close, parked at the latch like the session ring. */ +#define XQ_MAX 3u +static OmegaGpuQueueHandle g_xq[XQ_MAX]; +static OmegaGpuMem g_xpb[XQ_MAX]; + /* Uncertain completion: the device may still touch any session buffer. Keep everything, refuse everything. */ static void latch(const char *why) { STORE(g_blocked, 1u); + for (uint32_t i = 0; i < XQ_MAX; i++) if (g_xpb[i].cpu) park(&g_xpb[i]); if (g_s.pb.cpu) park(&g_s.pb); if (g_s.cbank.cpu) park(&g_s.cbank); if (g_s.marker.cpu) park(&g_s.marker); @@ -232,6 +239,8 @@ static void latch(const char *why) { omega_gpu_session_set_error(why); } +void omega_gpu_session_latch_uncertain(const char *why) { latch(why ? why : "uncertain completion (latched by a caller)"); } + /* ---- buffers ---- */ static size_t page_up(size_t b) { b = (b + PAGE - 1) & ~(PAGE - 1); return b < PAGE ? PAGE : b; } @@ -372,6 +381,25 @@ OmegaGpuSession *omega_gpu_session_open(void) { return &g_s; } +int omega_gpu_session_extra_queue(uint32_t i, OmegaGpuQueueHandle *out) { + const OmegaGpuPlatform *p = platform(); + if (!out || i == 0u || i > XQ_MAX) { omega_gpu_session_set_error("extra_queue: index outside 1..3"); return -1; } + if (LOAD(g_blocked) || !g_open || !p) { omega_gpu_session_set_error("extra_queue: device not open or latched"); return -1; } + if (g_xq[i - 1u].generation != 0u) { *out = g_xq[i - 1u]; return 0; } + for (uint32_t j = 0; j + 1u < i; j++) + if (g_xq[j].generation == 0u) { omega_gpu_session_set_error("extra_queue: open queues in order (1, then 2, ...)"); return -1; } + if (mem_alloc(OMEGA_GPU_HANDLE_BUF_QUEUE, RIGHTS_RING, 0x10000, &g_xpb[i - 1u])) return -1; + const int rc = p->queue_open(p->ctx, g_s.dev, g_xpb[i - 1u].handle, &g_xq[i - 1u]); + if (rc != OMEGA_GPU_PLAT_OK) { + fail_plat("queue_open (extra queue)", rc); + memset(&g_xq[i - 1u], 0, sizeof g_xq[i - 1u]); + omega_gpu_session_free(&g_xpb[i - 1u]); + return -1; + } + *out = g_xq[i - 1u]; + return 0; +} + int omega_gpu_session_on_close(void (*hook)(void)) { /* caller holds the lock (the APIs register from their open path) */ if (!hook) return -1; int rc = 0; @@ -387,6 +415,11 @@ void omega_gpu_session_close(void) { if (g_open && !LOAD(g_blocked) && p) { for (unsigned i = 0; i < g_nhooks; i++) g_hooks[i](); if (!LOAD(g_blocked)) { /* a hook's launch may have latched: then nothing below runs */ + for (uint32_t i = XQ_MAX; i-- > 0;) { /* L136: extra queues first, then queue 0 */ + if (g_xq[i].generation != 0u) (void)p->queue_close(p->ctx, g_xq[i]); + memset(&g_xq[i], 0, sizeof g_xq[i]); + omega_gpu_session_free(&g_xpb[i]); + } (void)p->queue_close(p->ctx, g_s.queue); memset(&g_s.queue, 0, sizeof g_s.queue); free_session_buffers(); @@ -398,6 +431,48 @@ void omega_gpu_session_close(void) { omega_gpu_session_unlock(); } + +/* C5: the way back from a latch without restarting the process. The on-close hooks run first, still latched, so the APIs + * drop their resident kernels and scratch (their frees park: nothing is released while the old device may run). Then + * the device closes: the Linux reference closes the RM client, which destroys every channel of this process (extra + * queues first) and with it every grid still running on them, then frees and unmaps every buffer, parked ones + * included. Only after the close returned OK is the latch lifted; the next open starts a new device. */ +static uint32_t g_recoveries; +static uint32_t g_module_latched; /* a module (the command lists) latched itself while the session stayed usable */ + +void omega_gpu_session_note_module_latch(void) { STORE(g_module_latched, 1u); } + +int omega_gpu_session_recover(void) { + omega_gpu_session_lock(); + const OmegaGpuPlatform *p = LOAD(g_p); + int rc = -1; + const int latched = LOAD(g_blocked) || LOAD(g_module_latched); + if (!latched || !g_open || !p) { + omega_gpu_session_set_error(latched ? "recover: latched but no device is open" : "recover: not latched (nothing to recover)"); + goto out; + } + for (unsigned i = 0; i < g_nhooks; i++) g_hooks[i](); + const int prc = p->device_close(p->ctx, g_s.dev); + if (prc != OMEGA_GPU_PLAT_OK) { fail_plat("recover: the device close reported a teardown fault (still latched: the old grid may live on, exit the process)", prc); goto out; } + memset(g_xq, 0, sizeof g_xq); + memset(g_xpb, 0, sizeof g_xpb); + const uint32_t opens = g_s.opens; + memset(&g_s, 0, sizeof g_s); + g_s.opens = opens; + g_open = false; + memset(g_parked, 0, sizeof g_parked); + memset(&g_park, 0, sizeof g_park); + BUMP(g_recoveries, 1u); + STORE(g_module_latched, 0u); + STORE(g_blocked, 0u); + omega_gpu_session_set_error(""); + rc = 0; +out: + omega_gpu_session_unlock(); + return rc; +} + +uint32_t omega_gpu_session_recoveries(void) { return LOAD(g_recoveries); } /* ---- launch ---- */ static uint32_t round_up(uint32_t v, uint32_t q) { return (v + q - 1) / q * q; } diff --git a/src/omega_gpu_session.h b/src/omega_gpu_session.h index 13a45abd7..8a4ae6727 100644 --- a/src/omega_gpu_session.h +++ b/src/omega_gpu_session.h @@ -226,6 +226,29 @@ void omega_gpu_session_cancel(void); const char *omega_gpu_session_last_error(void); void omega_gpu_session_set_error(const char *stage); +/* L136 (roadblock R3): caller holds the lock, device open. Queue i (1..3) past the session's own queue, with its own + * 64 KB ring, opened on first use (in order: 1, then 2, ...) and kept until close. The Linux reference grants it only + * when the device was opened with AIEN_OMEGA_GPU_CHANNELS > i (a second GPFIFO channel in the same channel group and + * VA space); otherwise the platform refuses and this returns -1 with the stage named. Work on different queues is not + * ordered against each other. 0 ok. */ +int omega_gpu_session_extra_queue(uint32_t i, OmegaGpuQueueHandle *out); +/* L136: latch the process now (uncertain completion seen by a caller that cannot prove it with a queue-0 launch, e.g. a + * list on an extra queue timed out). Parks every session buffer; every later launch of every API is refused. */ +void omega_gpu_session_latch_uncertain(const char *why); + +/* C5: after a latch (a timeout or a cancel after submit), throw the device away and lift the latch, in the same process. + * Takes the lock itself. Runs the on-close hooks (still latched), closes the device (Linux reference: the RM client + * close destroys this process's channels, and so any grid still running on them, then frees every buffer, parked ones + * included) and only then clears the latch and the parked list. Every handle and command list of the old device is + * stale; the next open starts a new device. 0 ok; -1 with the reason: not latched, or the close was refused or reported + * a driver teardown fault (then it stays latched for good: the old grid may still run, the process must exit). */ +int omega_gpu_session_recover(void); +/* A module that latched itself (the command lists after a timeout whose check launch completed) tells the session, so + * omega_gpu_session_recover accepts it as latched. Launches of other APIs are not refused by it. */ +void omega_gpu_session_note_module_latch(void); +/* Recoveries so far in this process (a command list latched before the latest recovery no longer blocks). */ +uint32_t omega_gpu_session_recoveries(void); + /* Caller holds the lock. Register a function the session calls (lock held, device * still open) right before it closes, so an API can drop its resident kernels and * scratch. Up to 8; the same function is registered once. (Taking the lock inside diff --git a/src/omega_sm121_disasm.c b/src/omega_sm121_disasm.c new file mode 100644 index 000000000..796db0339 --- /dev/null +++ b/src/omega_sm121_disasm.c @@ -0,0 +1,288 @@ +/* omega_sm121_disasm.c -- see omega_sm121_disasm.h. + * + * Layout of a word (lo = bits 0..63, hi = bits 64..127): opcode bits 0..11; guard predicate bits 12..14 with its + * negation at 15 (7 and no negation = no guard); destination register 16..23, first source 24..31, second source + * 32..39 or a 32-bit immediate at 32..63; third source at hi 0..7; modifiers in hi 8..40; control from hi 41 on. + * + * A row of the table is one instruction form: its opcode and fixed bits (lov, hiv) and a format. Each operand code + * in the format names the bits it reads; every other bit of lo and of hi 0..40 (outside the guard) must equal the + * row's fixed value, or the row does not match. The rows come from the words Omega's builders write + * (src/omega_blackwell_codegen.c encode_single_insn, the em helpers, src/omega_osc_gpu.c); the text of each was + * checked against nvdisasm 13.0 -b SM121 by tools/sm121dis/check.sh. */ +#include "omega_sm121_disasm.h" +#include +#include +#include + +#define HI_BITS 41 +#define HI_MASK ((1ULL << HI_BITS) - 1) + +typedef struct { + uint64_t lov, hiv; /* fixed bits (operand fields zero) */ + const char *fmt; /* text; %x codes are operands, see field() */ +} Row; + +/* operand codes: which bits they read (lo or hi, first bit, width); several fields for the branch target */ +typedef struct { char code; int hi; int at; int n; } Field; +static const Field FIELDS[] = { + {'d', 0, 16, 8}, {'a', 0, 24, 8}, {'b', 0, 32, 8}, {'c', 1, 0, 8}, /* R registers */ + {'D', 0, 16, 8}, {'A', 0, 24, 8}, {'B', 0, 32, 8}, {'C', 1, 0, 8}, /* uniform registers */ + {'i', 0, 32, 32}, {'s', 0, 32, 32}, {'f', 0, 32, 32}, /* 32-bit immediate: unsigned, signed, float */ + {'K', 0, 38, 21}, /* c[bank][offset]: offset 38..53, bank 54..58 */ + {'U', 0, 37, 22}, /* uniform load c[bank][offset]: offset 37..53 */ + {'o', 0, 40, 24}, /* signed 24-bit address offset */ + {'Y', 0, 32, 32}, /* BSSY target: signed byte distance */ + {'y', 0, 16, 4}, /* convergence barrier B0..B15 */ + {'P', 1, 17, 3}, {'Q', 1, 20, 3}, {'R', 1, 23, 4}, /* predicates; R carries its negation (hi 26) */ + {'l', 1, 8, 8}, /* LOP3 truth table */ + {'h', 0, 53, 5}, {'m', 0, 40, 13}, /* SHFL lane distance, clamp */ + {'S', 1, 8, 8}, /* special register */ + {'G', 1, 12, 3}, {'g', 1, 12, 4}, /* integer and float compare */ + {'Z', 1, 9, 1}, {'z', 1, 9, 3}, /* ISETP signed flag; memory access size */ + {'N', 1, 8, 1}, {'M', 0, 63, 1}, /* IADD3 negations: first, second source */ + {'j', 0, 32, 32}, /* ISETP immediate (printed signed) */ +}; + +static const Field *field_of(char c) { + for (size_t i = 0; i < sizeof FIELDS / sizeof FIELDS[0]; i++) if (FIELDS[i].code == c) return &FIELDS[i]; + return NULL; +} + +static uint64_t bits(uint64_t v, int at, int n) { return n >= 64 ? v >> at : (v >> at) & ((1ULL << n) - 1); } +static uint64_t mask(int at, int n) { return (n >= 64 ? ~0ULL : ((1ULL << n) - 1)) << at; } + +/* the BRA distance: 4-byte units, low 8 bits at 16..23, the rest (signed) at 34..81 */ +#define BRA_LO_MASK (mask(16, 8) | mask(34, 30)) +#define BRA_HI_MASK mask(0, 18) + +typedef struct { char *o; size_t n, at; int ok; } Out; + +static void put(Out *w, const char *fmt, ...) { + if (w->at >= w->n) { w->ok = 0; return; } + va_list ap; va_start(ap, fmt); + int k = vsnprintf(w->o + w->at, w->n - w->at, fmt, ap); + va_end(ap); + if (k < 0 || (size_t)k >= w->n - w->at) { w->ok = 0; w->at = w->n; return; } + w->at += (size_t)k; +} + +static void reg(Out *w, const char *p, uint64_t r) { if (r == 255) put(w, "%sZ", p); else put(w, "%s%u", p, (unsigned)r); } +static void hex_s(Out *w, int64_t v) { if (v < 0) put(w, "-0x%llx", (unsigned long long)(-v)); else put(w, "0x%llx", (unsigned long long)v); } +static void pred(Out *w, uint64_t p, int neg) { put(w, "%s", neg ? "!" : ""); if (p == 7) put(w, "PT"); else put(w, "P%u", (unsigned)p); } + +static const char *SR[256] = { + [0x21] = "SR_TID.X", [0x22] = "SR_TID.Y", [0x23] = "SR_TID.Z", + [0x25] = "SR_CTAID.X", [0x26] = "SR_CTAID.Y", [0x27] = "SR_CTAID.Z", + [0x00] = "SR_LANEID", [0x50] = "SR_CLOCKLO", [0x51] = "SR_CLOCKHI", +}; +static const char *ICMP[8] = { "F", "LT", "EQ", "LE", "GT", "NE", "GE", "T" }; +static const char *FCMP[16] = { "F", "LT", "EQ", "LE", "GT", "NE", "GE", "NUM", "NAN", "LTU", "EQU", "LEU", "GTU", "NEU", "GEU", "T" }; +static const char *MSIZE[8] = { ".U8" , ".S8", ".U16", ".S16", "", ".64", ".128", ".U.128" }; + +/* nvdisasm prints a float immediate the shortest way that reads back exactly, with INF and NAN by name */ +static void fimm(Out *w, uint32_t u) { + float f; memcpy(&f, &u, 4); + if ((u & 0x7f800000u) == 0x7f800000u) { + if (u & 0x007fffffu) put(w, "%sQNAN", (u >> 31) ? "-" : "+"); + else put(w, "%sINF", (u >> 31) ? "-" : "+"); + return; + } + char b[64]; + for (int p = 1; p <= 20; p++) { + snprintf(b, sizeof b, "%.*g", p, (double)f); + float g; if (sscanf(b, "%g", &g) == 1 && memcmp(&g, &f, 4) == 0) break; + } + put(w, "%s", b); +} + +/* Prints row's format for (lo, hi); 0 when every operand could be printed */ +static void render(Out *w, const char *fmt, uint64_t lo, uint64_t hi, uint64_t pc) { + for (const char *p = fmt; *p; p++) { + if (*p != '%') { put(w, "%c", *p); continue; } + char c = *++p; + const Field *f = field_of(c); + uint64_t v = f ? bits(f->hi ? hi : lo, f->at, f->n) : 0; + switch (c) { +#ifdef SM121DIS_MUTANT + case 'a': reg(w, "R", v == 255 ? v : v ^ 1); break; /* the red check: first source register off by one bit */ + case 'd': case 'b': case 'c': reg(w, "R", v); break; +#else + case 'd': case 'a': case 'b': case 'c': reg(w, "R", v); break; +#endif + case 'D': case 'A': case 'B': case 'C': reg(w, "UR", v); break; + case 'i': put(w, "0x%x", (unsigned)v); break; + case 's': hex_s(w, (int32_t)(uint32_t)v); break; + case 'f': fimm(w, (uint32_t)v); break; + case 'K': put(w, "c[0x%x][0x%x]", (unsigned)bits(lo, 54, 5), (unsigned)bits(lo, 38, 16)); break; + case 'U': put(w, "c[0x%x][0x%x]", (unsigned)bits(lo, 54, 5), (unsigned)bits(lo, 37, 17)); break; + case 'o': { int32_t off = (int32_t)((uint32_t)v << 8) >> 8; if (off) { put(w, "+"); hex_s(w, off); } /* nvdisasm writes a negative offset as +-0x4 */ break; } + case 'Y': put(w, "0x%llx", (unsigned long long)(pc + 16 + (int64_t)(int32_t)(uint32_t)v)); break; + case 'y': put(w, "B%u", (unsigned)v); break; + case 'P': case 'Q': pred(w, v, 0); break; + case 'R': pred(w, v & 7, (int)((v >> 3) & 1)); break; + case 'l': put(w, "0x%x", (unsigned)v); break; + case 'h': case 'm': put(w, "0x%x", (unsigned)v); break; + case 'S': if (SR[v]) put(w, "%s", SR[v]); else put(w, "SR%u", (unsigned)v); break; + case 'G': put(w, "%s", ICMP[v]); break; + case 'Z': if (!v) put(w, ".U32"); break; + case 'z': put(w, "%s", MSIZE[v]); break; + case 'N': case 'M': if (v) put(w, "-"); break; + case 'j': hex_s(w, (int32_t)(uint32_t)v); break; /* signed even in a .U32 compare, as nvdisasm prints it */ + case 'g': put(w, "%s", FCMP[v]); break; + case 'T': { + uint64_t units = bits(lo, 16, 8) | (bits(lo, 34, 30) << 8) | (bits(hi, 0, 18) << 38); + int64_t s = (int64_t)(units << 8) >> 8; /* 56-bit signed */ + put(w, "0x%llx", (unsigned long long)(pc + 16 + s * 4)); + break; + } + default: w->ok = 0; return; + } + } +} + +/* the bits a format reads */ +static void fields_mask(const char *fmt, uint64_t *lom, uint64_t *him) { + *lom = 0; *him = 0; + for (const char *p = fmt; *p; p++) { + if (*p != '%') continue; + char c = *++p; + if (c == 'T') { *lom |= BRA_LO_MASK; *him |= BRA_HI_MASK; continue; } + const Field *f = field_of(c); + if (!f) continue; + if (f->hi) *him |= mask(f->at, f->n); else *lom |= mask(f->at, f->n); + } +} + +/* The forms. lo values include the opcode (bits 0..11); guard bits 12..15 are never part of a row. */ +static const Row ROWS[] = { + /* moves, constants, special registers */ + { 0x0000000000007802ull, 0x00000f00ull, "MOV %d, %i" }, + { 0x00000000ff007202ull, 0x00000f00ull, "MOV %d, %b" }, + { 0x0000000000007202ull, 0x00000f00ull, "MOV %d, %b" }, + { 0x0000000000007919ull, 0x00000000ull, "S2R %d, %S" }, + { 0x00000000ff007b82ull, 0x00000800ull, "LDC %d, %K" }, + { 0x00000000ff007b82ull, 0x00000a00ull, "LDC.64 %d, %K" }, + { 0x00000000ff0077acull, 0x08000800ull, "LDCU %D, %U" }, + { 0x00000000ff0077acull, 0x08000a00ull, "LDCU.64 %D, %U" }, + /* integer */ + { 0x0000000000007224ull, 0x078e0200ull, "IMAD %d, %a, %b, %c" }, + { 0x0000000000007c24ull, 0x0f8e0200ull, "IMAD %d, %a, %B, %c" }, + { 0x0000000000007825ull, 0x078e0000ull, "IMAD.WIDE.U32 %d, %a, %i, %c" }, + { 0x0000000000007227ull, 0x078e0000ull, "IMAD.HI.U32 %d, %a, %b, %c" }, + { 0x0000000000007210ull, 0x07ffe000ull, "IADD3 %d, PT, PT, %N%a, %M%b, %c" }, + { 0x0000000000007810ull, 0x07ffe000ull, "IADD3 %d, PT, PT, %N%a, %s, %c" }, + { 0x0000000000007212ull, 0x000e0000ull, "LOP3.LUT %d, %a, %b, %c, %l, %R" }, + { 0x0000000000007812ull, 0x000e0000ull, "LOP3.LUT %d, %a, %i, %c, %l, %R" }, + { 0x0000000000007819ull, 0x00011600ull, "SHF.R.U32.HI %d, %a, %i, %c" }, + { 0x0000000000007219ull, 0x00011600ull, "SHF.R.U32.HI %d, %a, %b, %c" }, + { 0x0000000000007219ull, 0x00000600ull, "SHF.L.U32 %d, %a, %b, %c" }, + { 0x0000000000007819ull, 0x00000600ull, "SHF.L.U32 %d, %a, %i, %c" }, + { 0x000000000000720cull, 0x00000070ull, "ISETP.%G%Z.AND %P, %Q, %a, %b, %R" }, + { 0x000000000000780cull, 0x00000070ull, "ISETP.%G%Z.AND %P, %Q, %a, %j, %R" }, + { 0x0000000000007c0cull, 0x08000070ull, "ISETP.%G%Z.AND %P, %Q, %a, %B, %R" }, + { 0x0000000000007207ull, 0x00000000ull, "SEL %d, %a, %b, %R" }, + { 0x0000000000007807ull, 0x00000000ull, "SEL %d, %a, %i, %R" }, + /* float */ + { 0x0000000000007221ull, 0x00000000ull, "FADD %d, %a, %b" }, + { 0x8000000000007221ull, 0x00000000ull, "FADD %d, %a, -%b" }, + { 0x0000000000007220ull, 0x00400000ull, "FMUL %d, %a, %b" }, + { 0x0000000000007223ull, 0x00000000ull, "FFMA %d, %a, %b, %c" }, + { 0x0000000000007209ull, 0x00000000ull, "FMNMX %d, %a, %b, %R" }, + { 0x000000000000720bull, 0x00000000ull, "FSETP.%g.AND %P, %Q, %a, %b, %R" }, + { 0x0000000000007245ull, 0x00201000ull, "I2FP.F32.U32 %d, %b" }, + { 0x0000000000007245ull, 0x00201400ull, "I2FP.F32.S32 %d, %b" }, + { 0x0000000000007305ull, 0x0020f000ull, "F2I.U32.TRUNC.NTZ %d, %b" }, + { 0x000000000000723eull, 0x0004807000ull, "F2FP.SATFINITE.E4M3.F32.PACK_AB_MERGE_C %d, %a, %b, %c" }, + { 0x000000000000723eull, 0x00000010ffull, "F2FP.BF16.F32.PACK_AB %d, %a, %b" }, + /* tensor cores */ + { 0x000000000000723cull, 0x00041800ull, "HMMA.16816.F32.BF16 %d, %a, %b, %c" }, + { 0x000000000000727aull, 0x00002c00ull, "QMMA.16832.F32.E4M3.E4M3 %d, %a, %b, %c" }, + { 0x0000000000007308ull, 0x00000800ull, "MUFU.EX2 %d, %b" }, + { 0x0000000000007308ull, 0x00001000ull, "MUFU.RCP %d, %b" }, + { 0x0000000000007308ull, 0x00001400ull, "MUFU.RSQ %d, %b" }, + /* memory */ + { 0x0000000000007981ull, 0x0c1e1100ull, "LDG.E%z %d, desc[%B][%a.64%o]" }, + { 0x0000000000007986ull, 0x0c101100ull, "STG.E%z desc[%C][%a.64%o], %b" }, + { 0x0000000000007984ull, 0x08000800ull, "LDS %d, [%a+%B]" }, + { 0x0000000000007988ull, 0x08000800ull, "STS [%a+%C], %b" }, + { 0x0000000000007984ull, 0x00000000ull, "LDS%z %d, [%a%o]" }, + { 0x0000000000007992ull, 0x0000b000ull, "MEMBAR.ALL.SYS" }, + { 0x0800000000007f89ull, 0x000e0000ull, "SHFL.DOWN PT, %d, %a, %h, %m" }, + { 0x0c00000000007f89ull, 0x000e0000ull, "SHFL.BFLY PT, %d, %a, %h, %m" }, + /* control */ + { 0x0000000000007918ull, 0x00000000ull, "NOP" }, + { 0x000000000000794dull, 0x03800000ull, "EXIT" }, + { 0x0000000000007947ull, 0x03800000ull, "BRA %T" }, + { 0x0000000000007945ull, 0x03800200ull, "BSSY.RECONVERGENT %y, %Y" }, + { 0x0000000000007941ull, 0x03800200ull, "BSYNC.RECONVERGENT %y" }, + { 0x0000000000007b1dull, 0x00010000ull, "BAR.SYNC.DEFER_BLOCKING 0x0" }, +}; + +/* IMAD with an immediate: nvdisasm names the special cases. Returns 0 for another instruction, 1 when printed, + * -1 for a shift by a power of two whose name nvdisasm was never seen to print (so it is reported, not guessed). */ +static int imad_imm(Out *w, uint64_t lo, uint64_t hi) { + if (bits(lo, 0, 12) != 0x824 || (hi & HI_MASK & ~0xffull) != 0x078e0200ull) return 0; + uint32_t imm = (uint32_t)bits(lo, 32, 32); + uint64_t c = bits(hi, 0, 8); + const char *name = "IMAD"; + if (imm == 0) name = "IMAD.MOV"; /* d = c */ + else if (imm == 1) name = c == 255 ? "IMAD.MOV" : "IMAD.IADD"; /* d = a, d = a + c */ + else if (c == 255 && (imm & (imm - 1)) == 0) { + /* a shift. Seen in the corpus: .SHL for 2^1..2^6, 2^9, 2^10, 2^12, 2^20; plain IMAD for 2^16 and 2^31 */ + int n = __builtin_ctz(imm); + if (n == 16 || n == 31) name = "IMAD"; + else if (n <= 6 || n == 9 || n == 10 || n == 12 || n == 20) name = "IMAD.SHL"; + else return -1; + } + put(w, "%s ", name); + reg(w, "R", bits(lo, 16, 8)); put(w, ", "); reg(w, "R", bits(lo, 24, 8)); put(w, ", "); + hex_s(w, (int32_t)imm); put(w, ", "); reg(w, "R", c); + return 1; +} + +int omega_sm121_disasm(uint64_t lo, uint64_t hi, uint64_t pc, char *out, size_t outn) { + if (!out || outn < 40) return -2; + Out w = { out, outn, 0, 1 }; + out[0] = 0; + uint64_t g = bits(lo, 12, 3); int gneg = (int)bits(lo, 15, 1); + if (!(g == 7 && !gneg)) { put(&w, "@"); pred(&w, g, gneg); put(&w, " "); } + const uint64_t lo_body = lo & ~mask(12, 4), hi_body = hi & HI_MASK; + size_t start = w.at; + int im = imad_imm(&w, lo_body, hi_body); + if (im > 0) return w.ok ? 0 : -2; + for (size_t i = 0; im == 0 && i < sizeof ROWS / sizeof ROWS[0]; i++) { + const Row *r = &ROWS[i]; + if ((lo_body & 0xfff) != (r->lov & 0xfff)) continue; + uint64_t lom, him; fields_mask(r->fmt, &lom, &him); + lom = ~(lom | mask(12, 4)); him = HI_MASK & ~him; + if ((lo_body & lom) != (r->lov & lom) || (hi_body & him) != (r->hiv & him)) continue; + w.at = start; render(&w, r->fmt, lo, hi, pc); + return w.ok ? 0 : -2; + } + w.at = 0; + put(&w, "?? 0x%016llx%016llx", (unsigned long long)hi, (unsigned long long)lo); + return w.ok ? -1 : -2; +} + +static uint64_t word_half(const uint8_t *w) { uint64_t v = 0; for (int i = 7; i >= 0; i--) v = v << 8 | w[i]; return v; } + +size_t omega_sm121_padding_start(const uint8_t *code, size_t len) { + size_t end = 0; + for (size_t at = 0; code && at + 16 <= len; at += 16) + if ((word_half(code + at) & 0xfff) == 0x94d) end = at + 16; /* EXIT, any guard */ + return end; +} + +int omega_sm121_listing(const uint8_t *code, size_t len, FILE *out) { + if (!code || !out || len % 16) return -1; + size_t pad = omega_sm121_padding_start(code, len); + int unknown = 0; + for (size_t at = 0; at < len; at += 16) { + char t[256]; + int rc = omega_sm121_disasm(word_half(code + at), word_half(code + at + 8), at, t, sizeof t); + if (rc == -2) return -1; + if (rc) unknown++; + fprintf(out, " /*%04llx*/ %s%s;\n", (unsigned long long)at, t, pad && at >= pad ? "" : " "); + } + return unknown; +} diff --git a/src/omega_sm121_disasm.h b/src/omega_sm121_disasm.h new file mode 100644 index 000000000..aaf815d63 --- /dev/null +++ b/src/omega_sm121_disasm.h @@ -0,0 +1,35 @@ +/* omega_sm121_disasm.h -- Omega's own sm_121 (GB10) disassembler (C6 of docs/OMEGA.md). + * + * Turns one 128-bit instruction word into the text nvdisasm prints for it, so no NVIDIA tool is needed to read + * machine code back. It knows the instruction forms Omega's own builders emit (src/omega_blackwell_codegen*.c, + * src/omega_osc_gpu.c), each as an exact template: the fixed bits must match exactly and only the operand fields + * vary. A word that matches no template is printed as "?? " and reported, never guessed, so a comparison + * with nvdisasm fails on any form this file does not know. The control bits (stall, barriers, yield, reuse: + * bits 105..127) are not part of the text, as in nvdisasm's default listing. + * + * tools/sm121dis/sm121dis.c is the command line (a listing in nvdisasm's layout); tools/sm121dis/check.sh compares + * it with nvdisasm, the oracle, on every kernel the library builds (captured with OMEGA_KERNEL_DUMP_DIR). */ +#ifndef OMEGA_SM121_DISASM_H +#define OMEGA_SM121_DISASM_H + +#include +#include +#include + +/* Writes the text of the instruction (lo = bits 0..63, hi = bits 64..127) at byte address pc into out, without the + * trailing " ;". Returns 0 when the word matched a known form, -1 when it did not (out then holds "?? 0x"), + * -2 for a NULL or too small buffer. */ +int omega_sm121_disasm(uint64_t lo, uint64_t hi, uint64_t pc, char *out, size_t outn); + +/* Writes a listing of a whole kernel (len bytes, a whole number of 16-byte words) to out in nvdisasm's layout + * (one line per word: the address in a comment, then TEXT ;), the form the listing checks in tests/ read. Returns + * the number of words that matched no known form (printed "?? ..."), or -1 for a bad argument or a length that is + * not whole words. */ +int omega_sm121_listing(const uint8_t *code, size_t len, FILE *out); + +/* The byte offset where a kernel's padding starts: just after its last EXIT (0 when it has none). nvdisasm prints the + * words from there on (the branch to itself and the NOPs) as "TEXT;" with no space before the semicolon, and every + * word before as "TEXT ;" (so on every library kernel tools/sm121dis/check.sh compares). */ +size_t omega_sm121_padding_start(const uint8_t *code, size_t len); + +#endif /* OMEGA_SM121_DISASM_H */ diff --git a/tests/.crumb b/tests/.crumb index c816853a1..b2f41a3f8 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -110,206 +110,206 @@ "children": [ { "digest": "2c1deaaa1bae6257789749edde641df61413250fe91ce6aa61a99dfb3b271306", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "algebra", "purpose": "Directory tests/algebra. Purpose not yet described by a human." }, { "digest": "63f086b68bb9ffc032cbd74931309ab34df3c8c341b57935e5db43d8bf475800", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "ans", "purpose": "Tests 1-10 for ANS (docs/ans/INERTIAL_ALIGNMENT_SPEC_V1.md): freeze/digest, hostile reference mu" }, { "digest": "45c5f4fd157769cf0dcc4b8acbd76b0953580bc328714bab8e1d65e9264a5664", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "brownian", "purpose": "Directory tests/brownian. Purpose not yet described by a human." }, { "digest": "1cd97575b2b10d9313ca0df4997391612056754778bb2851bf052c146144f15e", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "canonicalization", "purpose": "Directory tests/canonicalization. Purpose not yet described by a human." }, { "digest": "646c083a94914e5726634c33cc1e694349cfcd4f43817864ffec83e506a52d4e", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "compiler", "purpose": "Directory tests/compiler. Purpose not yet described by a human." }, { "digest": "9e372cfc9747befacdcf31bc8643356aaff861e81ee6640b4866170be67b5e6c", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "constraints", "purpose": "Directory tests/constraints. Purpose not yet described by a human." }, { "digest": "87a3efa5cd0aefa7821046f9a31594bfa0a109e95005a1e12f40c99a1bc6cd3d", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "crumbline", "purpose": "Directory tests/crumbline. Purpose not yet described by a human." }, { "digest": "10aa3424eded7768fee0bae0eedd062b9deac3279d2e5721439fd024493bc42b", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "dual_experiment", "purpose": "Tests for the DUAL applicability experiment: determinism (same seed, byte-identical results dige" }, { "digest": "758dde696afa847d9347fad76b0c4935e968f8af4551f0f9810ec2a37ad9847a", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "effect", "purpose": "Directory tests/effect. Purpose not yet described by a human." }, { "digest": "23e559d13ff664995baca31dc157a8cf5a860615f3ecb07a9a40fe4626b57ae3", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "estimation", "purpose": "Directory tests/estimation. Purpose not yet described by a human." }, { "digest": "b7b6391caf653c76707a21f9969126abcbc730d1243259219225fdb9bc0084e0", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "fabric", "purpose": "Directory tests/fabric. Purpose not yet described by a human." }, { "digest": "defc52a44ea0f65ba5de3468de786148ba58d292ffa217fb95629a28a569a977", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "identity", "purpose": "Directory tests/identity. Purpose not yet described by a human." }, { "digest": "6ba43d622b712a4215767cab29425016f29cce4b28eb9e4961fc67fd20e9d765", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "language", "purpose": "Directory tests/language. Purpose not yet described by a human." }, { "digest": "54f43a3416595ff5d4e64bd12afe013359e706651c39c78e2896a5799638d263", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "malformed", "purpose": "Directory tests/malformed. Purpose not yet described by a human." }, { "digest": "a03a4dd9a72f7b449342e562f6d9df1a3348fb03fb640b662956caf163dcd7e9", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "numeric_native", "purpose": "Simulated M16 driver for numeric resource-lifecycle tests. No device execution or numeric parity" }, { "digest": "d958af5413726ddc48a47721800d9766939129f480b26492332ba094577837cb", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "osh", "purpose": "osh lexer host driver, vendored aien-protocols PR#16 draft vectors (5ae5292)" }, { "digest": "12b31dc2cd4f6a6c27983db11b4140c597025c9124da5ddcbe6a9230ab4f8410", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "path", "purpose": "Directory tests/path. Purpose not yet described by a human." }, { "digest": "51f14936b27d3d21379cf05ea1b6b532cf3175a40844dac85f023a61e7a0912c", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "physics0", "purpose": "PD-0 gates: world self-test, oracle calibration, learner L0/L1/NULL, mutations, OSC differential" }, { "digest": "c8524317c751fa8f464cabc31b760cef262abba822f1843482a02e239daa81b3", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "polyglot", "purpose": "Directory tests/polyglot. Purpose not yet described by a human." }, { "digest": "6569e2cd6dbf6f792edb5d83bf0715df9dece42ca7bd9b3a291535de0492d3aa", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "program", "purpose": "Directory tests/program. Purpose not yet described by a human." }, { "digest": "c549b5b82fd026d664b35e4b1a5d7fd2aaafa13b60b541cfbba87d7522517b1d", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "r16_inventory", "purpose": "Directory tests/r16_inventory. Purpose not yet described by a human." }, { "digest": "855bd23e4c526fb49eeb430c4ea5967d3f2f9da3a5b3aa3ec9dae5b814b11a21", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "r16_negative", "purpose": "Directory tests/r16_negative. Purpose not yet described by a human." }, { "digest": "f21be04969cbf51de17118c4f81b103f712db56fd517a1f12dd0d3ac4ff3afe4", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "r16_surface", "purpose": "Directory tests/r16_surface. Purpose not yet described by a human." }, { "digest": "b0ba3448394d5f27958c38b7233ae389e5e437e327f0859749a774fb252d6b02", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "realize", "purpose": "Directory tests/realize. Purpose not yet described by a human." }, { "digest": "157018d66de5bfd149015654cf0bda1346a9cfcefe5fd552c1d54859cd9ece81", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "relations", "purpose": "Directory tests/relations. Purpose not yet described by a human." }, { "digest": "e5f68362c083510e34c41f65de3ba2d553eac8a52fbc3e4cc1f69314eac9cc32", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "reservoir", "purpose": "Reservoir tests (omega#440): Gate 1 simulator and readout checks against an independent binary64" }, { "digest": "39bb8b5bc5bb91af7db77cc15bcd326cdb083060f27077e9f60670cad9086a11", - "last_commit": "843424ce", + "last_commit": "843424cea", "name": "runtime", "purpose": "Directory tests/runtime. Purpose not yet described by a human." }, { "digest": "467652c09505ecbd82d96a5e0e7ea24b19d9216cfd1dad7c60fa8258e47594c0", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "searchtrace", "purpose": "Directory tests/searchtrace. Purpose not yet described by a human." }, { "digest": "e69616ad471704066a86bf2796776301179eada5c0aa36a7166b9aca788619f4", - "last_commit": "ed8de573", + "last_commit": "ed8de5736", "name": "synapse", "purpose": "J1 parity driver for syn_codec.osc against the sealed Rust A1 corpus (aien-dev/synapse j1-codec-" }, { "digest": "5c97916fbf20310eff2e502c526337cb093e912cb48f18d44b0345ed8a3c3240", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "train", "purpose": "Directory tests/train. Purpose not yet described by a human." }, { "digest": "7679bd1c49c7e89d8c26ccf8dfb91478f4e6e2f584745806fa8d26061dbdbb9c", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "turing", "purpose": "Directory tests/turing. Purpose not yet described by a human." }, { "digest": "003966bc697c6f85cfffbae00fae992a634bc386f4a44340daaa8ddcb5618ef6", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "visor", "purpose": "Directory tests/visor. Purpose not yet described by a human." } ], "children_root": "sha256:21fc25ed991f4066326a9270e13961ed8a45edc12064ce9e7846ab6782d5b72b", - "compiled_at": "2026-10-24T23:32:51Z", + "compiled_at": "2026-10-24T23:55:01Z", "compiler": "crumb-compile/1", - "digest": "sha256:8fa4874233c906929082e779408ae009b381ade4590b930a2faf68c60fd7e48f", + "digest": "sha256:cc52017187608f4ee94d1480602ff214c614604c515bbabbde448c2733e555ab", "evidence_files": 16, "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a", - "files": 1287, - "generated_at_commit": "79b2b6329d552350efc62eecce2b298afa53fc10", - "source_tree": "sha256:66aa30eb539fb8432bd7571a91659a1ae9a174746c98fb2eeda085a373778a65" + "files": 1292, + "generated_at_commit": "4cd9ad9845612038a49c15940811ce24c38c061d", + "source_tree": "sha256:aa47c530df8df05215fc7536fe21612bfa187896b8f02e9219b525dc477ea8c3" }, "owner_lane": "", "provenance": { diff --git a/tests/bw_warp_sim_tc.h b/tests/bw_warp_sim_tc.h index 3f779e3f7..bf662ea6b 100644 --- a/tests/bw_warp_sim_tc.h +++ b/tests/bw_warp_sim_tc.h @@ -348,8 +348,8 @@ static int ws_run_warp(WsSim *s, WsWarp *w, uint32_t warp, uint32_t cx, uint32_t int gg = L / 4, tt = L % 4; const WsLane *ln = &w->lane[L]; uint32_t a4[4], b2[2], c4[4]; - for (unsigned q = 0; q < 4; q++) { a4[q] = ws_rds(ln, in->src1_vreg, q, p); c4[q] = in->src3_vreg >= 0 ? ws_rds(ln, in->src3_vreg, q, p) : 0u; } - for (unsigned q = 0; q < 2; q++) b2[q] = ws_rds(ln, in->src2_vreg, q, p); + for (unsigned q = 0; q < 4; q++) { a4[q] = ws_rds(ln, in->src1_vreg, in->src1_subreg + q, p); c4[q] = in->src3_vreg >= 0 ? ws_rds(ln, in->src3_vreg, in->src3_subreg + q, p) : 0u; } + for (unsigned q = 0; q < 2; q++) b2[q] = ws_rds(ln, in->src2_vreg, in->src2_subreg + q, p); /* operands may start at a subregister (the encoder adds it) */ const int ar[4] = { gg, gg + 8, gg, gg + 8 }, ac[4] = { 2 * tt, 2 * tt, 2 * tt + 8, 2 * tt + 8 }; for (unsigned q = 0; q < 4; q++) { A[ar[q]][ac[q]] = ws_u2f(a4[q] << 16); A[ar[q]][ac[q] + 1] = ws_u2f(a4[q] & 0xffff0000u); } for (unsigned q = 0; q < 2; q++) { B[2 * tt + 8 * q][gg] = ws_u2f(b2[q] << 16); B[2 * tt + 8 * q + 1][gg] = ws_u2f(b2[q] & 0xffff0000u); } diff --git a/tests/fake_m16_native.c b/tests/fake_m16_native.c index 6c7984524..f9ce918fb 100644 --- a/tests/fake_m16_native.c +++ b/tests/fake_m16_native.c @@ -472,3 +472,28 @@ int m16_native_close(M16NativeContext *ctx) if (fk.close_fail) rc = inject(&ctx->rm, -1); return rc; } + +/* L136: the simulated driver has one channel. Extra channels (AIEN_OMEGA_GPU_CHANNELS > 1) are refused here, so the + * platform's device_open refuses with stage "nvrm_channel_n"; the multi-channel path is proven on the chip only. */ +int nvrm_channel_n(Nvrm *rm, uint32_t extra) +{ + (void)rm; (void)extra; + return -1; +} + +int nvrm_chan_submit(Nvrm *rm, uint32_t ch, const NvrmMem *pb, uint32_t off_bytes, uint32_t nwords) +{ + (void)rm; (void)ch; (void)pb; (void)off_bytes; (void)nwords; + return -1; +} + +void nvrm_chan_retire(Nvrm *rm, uint32_t ch, uint32_t upto) +{ + (void)rm; (void)ch; (void)upto; +} + +uint32_t nvrm_chan_put(const Nvrm *rm, uint32_t ch) +{ + (void)rm; (void)ch; + return 0; +} diff --git a/tests/gates/omega-sm121dis.gate b/tests/gates/omega-sm121dis.gate new file mode 100644 index 000000000..6ca5d55e1 --- /dev/null +++ b/tests/gates/omega-sm121dis.gate @@ -0,0 +1,30 @@ +# tests/gates/omega-sm121dis.gate +# Bar C6 of docs/OMEGA.md (L386): Omega's own sm_121 disassembler. Host only, no GPU. Three parts, one step word: +# (1) make test-sm121dis: every kernel the library builds (331 on 2026-10-24) decoded by build/sm121dis and compared +# word for word with nvdisasm, the offline oracle the Spark has; then the red check, a decoder with one planted +# fault must fail the same comparison. (2) make test-zero-nvdisasm: the listing and provenance checks run with a +# decoy nvdisasm first on PATH, the CUDA directories removed from PATH and strace on execve; nothing may call +# nvdisasm; then the gate's own red check plants two calls and must fail. Evidence: evidence/C6-DISASM/. +gate: OMEGA-SM121DIS +manifest_version: 2 +owner: omega +requires: + - host +inputs: + - Makefile + - mk/ + - src/ + - tests/ + - tools/sm121dis/ + - tools/divsqrt_nvdisasm_check.sh + - tools/ldst_nvdisasm_check.sh + - physics.lock +run: + exec: tests/gates/run.sh + args: ["sm121dis"] +expects: + exit: 0 + verdict: PASS +timeout: 30m +exactness: EXACT +cache_scope: machine diff --git a/tests/gates/run.sh b/tests/gates/run.sh index cd61386a3..8ce9cccaf 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -182,6 +182,18 @@ case "$step" in test "$(grep -cE '^PASS: [0-9]+ checks, 0 failed$' build/attn.log)" -eq 6 ! grep -qE '^FAIL' build/attn.log ;; + sm121dis) # L386 bar C6 (docs/OMEGA.md): Omega's own sm_121 disassembler. Host only. Every kernel the + # library builds, decoded by build/sm121dis and compared word for word with nvdisasm (the + # offline oracle the Spark has), plus the faulty-decoder red check; then ZERO-NVDISASM: the + # listing and provenance checks under a decoy nvdisasm and strace, plus its planted-call red check. + physics_pin; set -o pipefail; mkdir -p build + make -j"$(nproc)" test-sm121dis | tee build/sm121dis.log + grep -qE '^kernels: [0-9]+, words: [0-9]+, failed kernels: 0$' build/sm121dis.log + grep -qE '^red check: the faulty decoder FAILS the comparison' build/sm121dis.log + make test-zero-nvdisasm | tee build/zero-nvdisasm.log + grep -qE '^ZERO-NVDISASM: PASS' build/zero-nvdisasm.log + grep -qE '^red check: the planted nvdisasm calls FAIL the gate' build/zero-nvdisasm.log + ;; gpu-libm-free) # omega-mv#471: no libm symbol left undefined in libomega_gpu.a (physics-src at physics.lock) physics_pin; set -o pipefail; mkdir -p build make -j"$(nproc)" test-gpu-libm-free | tee build/libm-free.log diff --git a/tests/gpu_attention_test.c b/tests/gpu_attention_test.c index 915a7e0d3..b42cd14dc 100644 --- a/tests/gpu_attention_test.c +++ b/tests/gpu_attention_test.c @@ -17,7 +17,7 @@ /* gpu_attention_test: FB-1 cut 5 gate for omega_gpu_attention_api. * * ./gpu_attention_test --host-only refusals, codegen (both kernel families and every - * mutant), register budget, nvdisasm listing check + * mutant), register budget, sm121dis listing check * ./gpu_attention_test --split-timing [--hd 128] [--spin-us N] [--out r.json] paged bf16 32q/8kv at ATTN_SPLIT_CTX * (default 1268): 100 calls per forced split 1,2,4,8 + auto, parity * ./gpu_attention_test --timing [--out r.json] cut 4b gate: 1 query x 32 heads x 2048 ctx, 100 calls @@ -48,6 +48,7 @@ #include "omega_gpu_attention_api.h" #include "omega_gpu_session.h" #include "omega_blackwell_codegen.h" +#include "omega_sm121_disasm.h" /* C6 (L386): Omega's own disassembler replaces nvdisasm here */ #include "bw_warp_sim.h" /* omega #308: SIMT warp simulator for --divergent */ #include #include @@ -151,7 +152,7 @@ static size_t compare(const float *got, const float *want, size_t n, double rel, } /* ------------------------------------------------------------- host only */ -/* One instruction line of an nvdisasm listing: leading blanks, then the byte offset as a hex comment, "/" "*" hex "*" "/". +/* One instruction line of a SASS listing (sm121dis prints the nvdisasm layout): leading blanks, then the byte offset as a hex comment, "/" "*" hex "*" "/". * omega#470: the old test matched the text "/" "*" "0", which stops at offset 0x1000, so every listing looked cut off at * 256 instructions and any opcode first emitted past 4 KiB (the hd 128 kernels are 512 and 624 instructions) was missed. */ static bool is_sass_insn_line(const char *line) { @@ -163,33 +164,31 @@ static bool is_sass_insn_line(const char *line) { return digits >= 4 && p[0] == '*' && p[1] == '/'; } -static int nvdisasm_check(bool f32, const char *name, const char *const *must, int n_must) { - const char *nv = "/usr/local/cuda/bin/nvdisasm"; - if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } +static int sm121dis_check(bool f32, const char *name, const char *const *must, int n_must) { OmegaBlackwellKernel k; memset(&k, 0, sizeof k); if (omega_gpu_attention_codegen_hd(f32, f32 ? 12 : 4, 3, g_hd, &k) != OMEGA_GPU_ATTN_OK) return -1; - char bin[64], lst[64], cmd[256]; - snprintf(bin, sizeof bin, "/tmp/omega_attn_%s_%d.bin", name, (int)getpid()); - snprintf(lst, sizeof lst, "/tmp/omega_attn_%s_%d.sass", name, (int)getpid()); - FILE *f = fopen(bin, "wb"); if (!f) { free(k.code); return -1; } - fwrite(k.code, 1, k.code_size, f); fclose(f); - snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); - int rc = system(cmd); + char lst[64]; + snprintf(lst, sizeof lst, "/tmp/omega_attn_%s_%d.sass.XXXXXX", name, (int)getpid()); + int fd = mkstemp(lst); /* private, unique listing; read back the same descriptor */ + FILE *f = fd >= 0 ? fdopen(fd, "w+") : NULL; + if (!f) { if (fd >= 0) close(fd); free(k.code); return -1; } + int rc = omega_sm121_listing(k.code, k.code_size, f); const int want_insns = (int)(k.code_size / 16); /* every 16-byte slot, padding included, is one listing line */ free(k.code); - FILE *l = fopen(lst, "r"); if (!l) return -1; + if (fflush(f) != 0 || fseek(f, 0, SEEK_SET) != 0) { fclose(f); return -1; } + FILE *l = f; char line[512]; int seen[16] = {0}; int bad = 0, insns = 0; while (fgets(line, sizeof line, l)) { - if (!is_sass_insn_line(line)) continue; + if (!is_sass_insn_line(line)) continue; /* every address line, 0x1000 and up too (omega#470) */ insns++; if (strstr(line, "?") || strstr(line, "error")) bad++; for (int i = 0; i < n_must; i++) if (strstr(line, must[i])) seen[i] = 1; } - fclose(l); + if (ferror(l)) rc = -1; + if (fclose(l) != 0) rc = -1; int miss = 0; - for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } - printf("nvdisasm %s: rc=%d insns=%d of %d undecodable=%d missing=%d (%s)\n", name, rc, insns, want_insns, bad, miss, lst); - unlink(bin); + for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: sm121dis listing lacks %s\n", name, must[i]); miss++; } + printf("sm121dis %s: rc=%d insns=%d of %d undecodable=%d missing=%d (%s)\n", name, rc, insns, want_insns, bad, miss, lst); return (rc == 0 && insns == want_insns && bad == 0 && miss == 0) ? 0 : -1; } @@ -255,7 +254,7 @@ static void host_only(void) { memset(&k, 0, sizeof k); CHECK(omega_gpu_attention_codegen_hd(f32 != 0, f32 ? 12 : 4, 2, g_hd, &k) == OMEGA_GPU_ATTN_OK && memcmp(digests[0], k.code_digest, 32) != 0, "%s log2gqa 2 kernel differs from log2gqa 3", name); free(k.code); - CHECK(nvdisasm_check(f32 != 0, name, f32 ? must_f32 : must_bf16, (f32 ? 11 : 14) + (g_divergent ? 2 : 0)) == 0, "%s nvdisasm listing decodes and shows the expected instructions", name); + CHECK(sm121dis_check(f32 != 0, name, f32 ? must_f32 : must_bf16, (f32 ? 11 : 14) + (g_divergent ? 2 : 0)) == 0, "%s sm121dis listing decodes and shows the expected instructions", name); } } diff --git a/tests/gpu_elementwise_test.c b/tests/gpu_elementwise_test.c index e06bee317..7a270eb5f 100644 --- a/tests/gpu_elementwise_test.c +++ b/tests/gpu_elementwise_test.c @@ -17,7 +17,7 @@ /* gpu_elementwise_test: FB-1 cut 4 gate for omega_gpu_elementwise_api. * * ./gpu_elementwise_test --host-only refusals, codegen, word fixtures, register budget, - * nvdisasm listing check when /usr/local/cuda/bin/nvdisasm exists + * listing check by Omega's own disassembler * ./gpu_elementwise_test --out receipt.json chip gate: every op against the host oracle, then its mutant * (a deliberately wrong kernel) which the same check must catch * ./gpu_elementwise_test --timing --out t.json cut 4b gate: persistent device, 100 calls each of rmsnorm 1x2048 @@ -36,6 +36,7 @@ #include "omega_gpu_elementwise_api.h" #include "omega_blackwell_codegen.h" #include "omega_gpu_session.h" +#include "omega_sm121_disasm.h" #include #include #include @@ -96,32 +97,30 @@ static size_t compare(const float *got, const float *want, size_t n, double rel, } /* ------------------------------------------------------------- host only */ -static int nvdisasm_check(OmegaGpuEwOp op, const char *name, const char *const *must, int n_must) { - const char *nv = "/usr/local/cuda/bin/nvdisasm"; - if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } +static int sm121dis_check(OmegaGpuEwOp op, const char *name, const char *const *must, int n_must) { OmegaBlackwellKernel k; memset(&k, 0, sizeof k); if (omega_gpu_elementwise_codegen(op, NULL, 0.0f, &k) != OMEGA_GPU_EW_OK) return -1; - char bin[64], lst[64], cmd[256]; - snprintf(bin, sizeof bin, "/tmp/omega_ew_%s_%d.bin", name, (int)getpid()); - snprintf(lst, sizeof lst, "/tmp/omega_ew_%s_%d.sass", name, (int)getpid()); - FILE *f = fopen(bin, "wb"); if (!f) { free(k.code); return -1; } - fwrite(k.code, 1, k.code_size, f); fclose(f); - snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); - int rc = system(cmd); + char lst[64]; + snprintf(lst, sizeof lst, "/tmp/omega_ew_%s_%d.sass.XXXXXX", name, (int)getpid()); + int fd = mkstemp(lst); /* private, unique listing; read back the same descriptor */ + FILE *f = fd >= 0 ? fdopen(fd, "w+") : NULL; + if (!f) { if (fd >= 0) close(fd); free(k.code); return -1; } + int rc = omega_sm121_listing(k.code, k.code_size, f); free(k.code); - FILE *l = fopen(lst, "r"); if (!l) return -1; + if (fflush(f) != 0 || fseek(f, 0, SEEK_SET) != 0) { fclose(f); return -1; } + FILE *l = f; char line[512]; int seen[16] = {0}; int bad = 0, insns = 0; while (fgets(line, sizeof line, l)) { - if (!strstr(line, "/*0")) continue; + if (!strstr(line, "/*")) continue; /* every address line, 0x1000 and up too */ insns++; if (strstr(line, "?") || strstr(line, "error")) bad++; for (int i = 0; i < n_must; i++) if (strstr(line, must[i])) seen[i] = 1; } - fclose(l); + if (ferror(l)) rc = -1; + if (fclose(l) != 0) rc = -1; int miss = 0; - for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } - printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); - unlink(bin); + for (int i = 0; i < n_must; i++) if (!seen[i]) { printf(" %s: sm121dis listing lacks %s\n", name, must[i]); miss++; } + printf("sm121dis %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; } @@ -157,7 +156,7 @@ static void host_only(void) { CHECK(omega_gpu_elementwise_codegen(ops[i].op, NULL, 0.0f, &k) == OMEGA_GPU_EW_OK && memcmp(digest, k.code_digest, 32) != 0, "%s mutant kernel differs", ops[i].name); free(k.code); omega_gpu_elementwise_test_set_mutant(0); - CHECK(nvdisasm_check(ops[i].op, ops[i].name, ops[i].must, ops[i].n) == 0, "%s nvdisasm listing decodes and shows the expected instructions", ops[i].name); + CHECK(sm121dis_check(ops[i].op, ops[i].name, ops[i].must, ops[i].n) == 0, "%s sm121dis listing decodes and shows the expected instructions", ops[i].name); } } diff --git a/tests/gpu_fp8_api_test.c b/tests/gpu_fp8_api_test.c index 2b35e2826..8fcf839dc 100644 --- a/tests/gpu_fp8_api_test.c +++ b/tests/gpu_fp8_api_test.c @@ -19,7 +19,7 @@ * ./gpu_fp8_api_test --host-only exhaustive 256-code e4m3 conversion vs the reference decode * (subnormals, both zeros, NaN codes refused), pack refusals, * codegen for every kernel shape (instruction and register budget), - * API argument refusals, nvdisasm listing when /usr/local/cuda/bin/nvdisasm exists + * API argument refusals, listing by Omega's own disassembler * ./gpu_fp8_api_test --sim the kernel through tests/bw_warp_sim.h (no chip): one-hot conversion * of every code through the kernel, parity battery vs the double oracle * (both fragment orders bit-identical), grouped experts, and the four @@ -49,6 +49,7 @@ #include "omega_gpu_cmdlist.h" #include "omega_blackwell_qmd.h" /* OMEGA_BW_QMD_MAX_SHARED_BYTES (deep_default_check) */ #include "bw_warp_sim.h" +#include "omega_sm121_disasm.h" #include #include #include @@ -161,23 +162,21 @@ static long fp8_stall_violations(const BlackwellIRProgram *p, uint64_t *cycles) } /* ------------------------------------------------------------- host-only */ -static int nvdisasm_check_v(int variant, const OmegaFp8GemvSpec *spec, const char *name); -static int nvdisasm_check(const OmegaFp8GemvSpec *spec, const char *name) { return nvdisasm_check_v(1, spec, name); } -static int nvdisasm_check_v(int variant, const OmegaFp8GemvSpec *spec, const char *name) { - const char *nv = "/usr/local/cuda/bin/nvdisasm"; - if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } +static int sm121dis_check_v(int variant, const OmegaFp8GemvSpec *spec, const char *name); +static int sm121dis_check(const OmegaFp8GemvSpec *spec, const char *name) { return sm121dis_check_v(1, spec, name); } +static int sm121dis_check_v(int variant, const OmegaFp8GemvSpec *spec, const char *name) { OmegaBlackwellKernel k; memset(&k, 0, sizeof k); if ((variant == 2 ? omega_blackwell_codegen_fp8_gemv2(spec, &k) : omega_blackwell_codegen_fp8_gemv(spec, &k)) != 0) return -1; - char bin[96], lst[96], cmd[320]; - snprintf(bin, sizeof bin, "/tmp/omega_fp8_%s_%d.bin", name, (int)getpid()); - snprintf(lst, sizeof lst, "/tmp/omega_fp8_%s_%d.sass", name, (int)getpid()); - FILE *f = fopen(bin, "wb"); if (!f) { omega_blackwell_kernel_free(&k); return -1; } - fwrite(k.code, 1, k.code_size, f); fclose(f); - snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); - int rc = system(cmd); + char lst[96]; + snprintf(lst, sizeof lst, "/tmp/omega_fp8_%s_%d.sass.XXXXXX", name, (int)getpid()); + int fd = mkstemp(lst); /* private, unique listing; read back the same descriptor */ + FILE *f = fd >= 0 ? fdopen(fd, "w+") : NULL; + if (!f) { if (fd >= 0) close(fd); omega_blackwell_kernel_free(&k); return -1; } + int rc = omega_sm121_listing(k.code, k.code_size, f); omega_blackwell_kernel_free(&k); static const char *const must[] = { "LDG.E.128", "FFMA", "SHFL.DOWN", "BSSY", "BSYNC", "STG.E", "LOP3.LUT", "IMAD" }; - FILE *l = fopen(lst, "r"); if (!l) return -1; + if (fflush(f) != 0 || fseek(f, 0, SEEK_SET) != 0) { fclose(f); return -1; } + FILE *l = f; char line[512]; int seen[8] = {0}; int bad = 0, insns = 0; while (fgets(line, sizeof line, l)) { if (!strstr(line, "/*") || !strstr(line, "*/")) continue; /* every address line */ @@ -186,11 +185,11 @@ static int nvdisasm_check_v(int variant, const OmegaFp8GemvSpec *spec, const cha if (strstr(line, ".FTZ")) { printf(" %s: flush-to-zero instruction: %s", name, line); bad++; } /* e4m3 subnormals travel as f32 subnormals */ for (int i = 0; i < 8; i++) if (strstr(line, must[i])) seen[i] = 1; } - fclose(l); + if (ferror(l)) rc = -1; + if (fclose(l) != 0) rc = -1; int miss = 0; - for (int i = 0; i < 8; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } - printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); - unlink(bin); + for (int i = 0; i < 8; i++) if (!seen[i]) { printf(" %s: sm121dis listing lacks %s\n", name, must[i]); miss++; } + printf("sm121dis %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; } @@ -406,12 +405,12 @@ static void host_only(void) { CHECK(strstr(omega_gpu_fp8_last_error(), "byte 77") != NULL, "error names the byte (%s)", omega_gpu_fp8_last_error()); float y[8]; CHECK(omega_gpu_fp8_gemv_f32(NULL, 0, y, y, NULL) == OMEGA_GPU_FP8_BAD_ARGS, "NULL tensor refused"); } - /* 5. nvdisasm listing of the production shapes */ + /* 5. sm121dis listing of the production shapes */ { OmegaFp8GemvSpec a = { .k = 2048, .lane_bytes = 16, .rows = 8, .warps = 8 }, b = { .k = 768, .lane_bytes = 8, .rows = 2, .warps = 8 }; - CHECK(nvdisasm_check(&a, "k2048_lb16_r8") == 0, "nvdisasm listing k=2048"); + CHECK(sm121dis_check(&a, "k2048_lb16_r8") == 0, "sm121dis listing k=2048"); OmegaFp8GemvSpec d = { .k = 2048, .lane_bytes = 16, .rows = 1, .warps = 8, .depth = 4 }; - CHECK(nvdisasm_check(&d, "k2048_lb16_r1_deep4") == 0, "nvdisasm listing deep k=2048"); - CHECK(nvdisasm_check(&b, "k768_lb8_r2") == 0, "nvdisasm listing k=768"); } + CHECK(sm121dis_check(&d, "k2048_lb16_r1_deep4") == 0, "sm121dis listing deep k=2048"); + CHECK(sm121dis_check(&b, "k768_lb8_r2") == 0, "sm121dis listing k=768"); } /* 6. variant 2 (W-L2c, omega_blackwell_codegen_moe2.c): every OWN-30B width builds inside the budgets at 16 warps, * the production shapes fit the register file, the whole-row-group rule refuses what it must */ @@ -441,7 +440,7 @@ static void host_only(void) { bad.warps = 16; bad.k = 16384; CHECK(omega_fp8_gemv2_prog_stats(&bad, NULL, NULL) != 0, "v2 k=16384 refused (row past 128 bytes per lane)"); bad.k = 2048; bad.lane_bytes = 8; bad.rows = 2; CHECK(omega_fp8_gemv2_prog_stats(&bad, NULL, NULL) == 0, "v2 k=2048 lb8 rows=2 (128 bytes per lane) builds"); } OmegaFp8GemvSpec v = { .k = 2048, .lane_bytes = 16, .rows = 1, .warps = 16 }; - CHECK(nvdisasm_check_v(2, &v, "v2_k2048_lb16_r1_w16") == 0, "nvdisasm listing v2 k=2048"); + CHECK(sm121dis_check_v(2, &v, "v2_k2048_lb16_r1_w16") == 0, "sm121dis listing v2 k=2048"); } /* 7. sched 1 (CUT5): pipelined decode + dependency stall pass. Every battery shape builds; the two grouped expert diff --git a/tests/gpu_gemm_test.c b/tests/gpu_gemm_test.c new file mode 100644 index 000000000..b60f70964 --- /dev/null +++ b/tests/gpu_gemm_test.c @@ -0,0 +1,337 @@ +/* gpu_gemm_test.c -- row C3 of docs/OMEGA.md: matrix multiply of any shape, BF16 and FP8 (e4m3), both layouts of A and B, + * on the GB10 tensor cores, checked bit for bit against a host model of the same tensor-core steps (src/omega_gpu_gemm.h). + * + * --host-only no device: refusals, every kernel (both types, several shapes of tile, the red-check mutants) through our + * code generator and encoder, register counts + * --sim the real kernels in the warp simulator (tensor-core ops computed with the chip-exact models), small shapes + * over every edge case, all four layouts, three tile configurations; the three mutants must be caught + * (no flag) the GB10: at least 200 shapes with M, N, K from 1 to 8192, both types, all four layouts. Every output word + * must be written; shapes up to 2^27 multiply-adds are compared in full, larger ones on 4096 sampled + * elements plus the last row and column. Speed: 2 M N K / kernel time, as a fraction of the measured + * tensor-core ceiling (BF16 HMMA 115.36 TFLOPS, evidence OWN30B-T3-TC-PEAK-BW-5faa0f70-20261013T2236Z; + * FP8 QMMA 237.52 TFLOPS, L151 as quoted in evidence/L403-roof-20261022). The mutants must be caught. + * --quick: 24 shapes, for a first look. + * Last line: "C3 gemm : PASS ( checks)" or "... FAIL ( of )". */ +#include "omega_gpu_gemm.h" +#include "omega_gpu_session.h" +#include "bw_warp_sim_tc.h" + +#include + +static int g_checks, g_failed; +static void check(int ok, const char *what) { + g_checks++; + if (!ok) { g_failed++; printf("FAIL: %s\n", what); } +} + +static const HmmaModel HM = { 16, 2, 0, 2, 0 }; /* chip-exact, evidence OWN30B-T3-HMMA-MODEL */ +static const QmmaModel QM = { 32, 26, 0, 2, 0 }; /* chip-exact, evidence OWN30B-L1G-QMMA-PFGEMM-c742aa13 */ +static const char *tname(OmegaGpuGemmType t) { return t == OMEGA_GPU_GEMM_BF16 ? "bf16" : "e4m3"; } +static const char *lname(unsigned l) { static const char *n[4] = { "A row B row", "A col B row", "A row B col", "A col B col" }; return n[l & 3u]; } + +static uint64_t g_rng = 1; +static uint32_t rnd(void) { g_rng = g_rng * 6364136223846793005ull + 1442695040888963407ull; return (uint32_t)(g_rng >> 33); } + +/* inputs: bf16 values 0 or +-(1 + m/128) 2^e, e in -8..8; e4m3 any code except the two NaNs */ +static void fill(OmegaGpuGemmType t, void *p, uint64_t n, uint64_t seed) { + g_rng = seed * 0x2545f4914f6cdd1dull + 7; + if (t == OMEGA_GPU_GEMM_BF16) { + uint16_t *h = p; + for (uint64_t i = 0; i < n; i++) { + uint32_t r = rnd(); + h[i] = r % 61u == 0 ? 0 : (uint16_t)(((r >> 8) & 1u) << 15 | (uint32_t)(127 + (int)((r >> 9) % 17u) - 8) << 7 | (r >> 16 & 0x7fu)); + } + } else { + uint8_t *b = p; + for (uint64_t i = 0; i < n; i++) { uint8_t c = (uint8_t)rnd(); b[i] = (c & 0x7fu) == 0x7fu ? (uint8_t)(c ^ 1u) : c; } + } +} + +static float val(OmegaGpuGemmType t, const void *p, uint64_t i) { + if (t == OMEGA_GPU_GEMM_BF16) { uint32_t u = (uint32_t)((const uint16_t *)p)[i] << 16; float f; memcpy(&f, &u, 4); return f; } + return qm_e4m3(((const uint8_t *)p)[i]); +} + +/* the host model: one tensor-core step per 16 (bf16) or 32 (e4m3) values of k, in increasing k, from +0 */ +static float ref_elem(OmegaGpuGemmType t, unsigned lay, uint32_t M, uint32_t N, uint32_t K, const void *A, const void *B, uint32_t m, uint32_t n) { + const uint32_t ks = t == OMEGA_GPU_GEMM_BF16 ? 16u : 32u; + float acc = 0.0f; + for (uint32_t k0 = 0; k0 < K; k0 += ks) { + float av[32], bv[32]; + for (uint32_t k = 0; k < ks; k++) { + uint32_t kk = k0 + k; + if (kk >= K) { av[k] = bv[k] = 0.0f; continue; } + av[k] = val(t, A, lay & OMEGA_GPU_GEMM_A_COL ? (uint64_t)kk * M + m : (uint64_t)m * K + kk); + bv[k] = val(t, B, lay & OMEGA_GPU_GEMM_B_COL ? (uint64_t)n * K + kk : (uint64_t)kk * N + n); + } + acc = t == OMEGA_GPU_GEMM_BF16 ? hm_dot16(&HM, av, bv, acc) : qm_dot32(&QM, av, bv, acc); + } + return acc; +} + +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } + +/* compare: every element when M N K <= 2^27, else 4096 samples + the last row and column; returns the mismatches */ +static uint64_t compare(OmegaGpuGemmType t, unsigned lay, uint32_t M, uint32_t N, uint32_t K, const void *A, const void *B, const float *C, + uint64_t *checked, char *first, size_t firstn) { + uint64_t bad = 0; *checked = 0; first[0] = 0; + #define ONE(mm, nn) do { uint32_t m_ = (mm), n_ = (nn); float w_ = ref_elem(t, lay, M, N, K, A, B, m_, n_), g_ = C[(uint64_t)m_ * N + n_]; (*checked)++; \ + if (f2u(w_) != f2u(g_)) { if (!bad) snprintf(first, firstn, "C[%u][%u] = %08x, model %08x", m_, n_, f2u(g_), f2u(w_)); bad++; } } while (0) + if ((uint64_t)M * N * K <= (1ull << 27)) { + for (uint32_t m = 0; m < M; m++) for (uint32_t n = 0; n < N; n++) ONE(m, n); + } else { + g_rng = (uint64_t)M * 31 + N * 7 + K; + for (int i = 0; i < 4096; i++) ONE(rnd() % M, rnd() % N); + for (uint32_t n = 0; n < N; n += N > 512 ? N / 512 : 1) ONE(M - 1, n); + for (uint32_t m = 0; m < M; m += M > 512 ? M / 512 : 1) ONE(m, N - 1); + ONE(M - 1, N - 1); + } + #undef ONE + return bad; +} + +/* ------------------------------------------------------------------ host only */ + +static void host_only(void) { + char w[200]; + uint16_t a[4] = { 0 }, b[4] = { 0 }; float c[4]; + check(omega_gpu_gemm(OMEGA_GPU_GEMM_BF16, 0, 0, 1, 1, a, b, c, NULL) == OMEGA_GPU_GEMM_BAD_ARGS, "M = 0 refused"); + check(omega_gpu_gemm(OMEGA_GPU_GEMM_BF16, 0, 1, 1, 0, a, b, c, NULL) == OMEGA_GPU_GEMM_BAD_ARGS, "K = 0 refused"); + check(omega_gpu_gemm(OMEGA_GPU_GEMM_BF16, 0, OMEGA_GPU_GEMM_MAX_DIM + 1, 1, 1, a, b, c, NULL) == OMEGA_GPU_GEMM_TOO_LARGE, "M past the maximum refused"); + check(omega_gpu_gemm(OMEGA_GPU_GEMM_BF16, 4, 1, 1, 1, a, b, c, NULL) == OMEGA_GPU_GEMM_BAD_ARGS, "unknown layout bits refused"); + check(omega_gpu_gemm((OmegaGpuGemmType)2, 0, 1, 1, 1, a, b, c, NULL) == OMEGA_GPU_GEMM_BAD_ARGS, "unknown type refused"); + check(omega_gpu_gemm(OMEGA_GPU_GEMM_E4M3, 0, 1, 1, 1, NULL, b, c, NULL) == OMEGA_GPU_GEMM_BAD_ARGS, "NULL A refused"); + OmegaGemmCfg bad; omega_gpu_gemm_default_cfg(OMEGA_GPU_GEMM_BF16, &bad); bad.rt = 3; + check(!omega_gpu_gemm_cfg_ok(&bad), "a tile of 3 row tiles refused"); + + /* the model itself is a multiply: within 2^-20 of the exact sum, relative to the sum of the magnitudes */ + for (int t = 0; t < 2; t++) for (unsigned lay = 0; lay < 4; lay++) { + enum { MM = 23, NN = 19, KK = 300 }; + static uint16_t A[MM * KK], B[KK * NN]; + fill((OmegaGpuGemmType)t, A, MM * KK, 5 + lay); fill((OmegaGpuGemmType)t, B, KK * NN, 9 + lay); + double worst = 0; + for (uint32_t m = 0; m < MM; m++) for (uint32_t n = 0; n < NN; n++) { + double ex = 0, mag = 0; + for (uint32_t k = 0; k < KK; k++) { + double p = (double)val((OmegaGpuGemmType)t, A, lay & OMEGA_GPU_GEMM_A_COL ? (uint64_t)k * MM + m : (uint64_t)m * KK + k) * + (double)val((OmegaGpuGemmType)t, B, lay & OMEGA_GPU_GEMM_B_COL ? (uint64_t)n * KK + k : (uint64_t)k * NN + n); + ex += p; mag += fabs(p); + } + double d = fabs((double)ref_elem((OmegaGpuGemmType)t, lay, MM, NN, KK, A, B, m, n) - ex) / (mag > 0 ? mag : 1); + if (d > worst) worst = d; + } + snprintf(w, sizeof w, "the %s model is a multiply (%s): worst error %.3g of the magnitude sum", tname((OmegaGpuGemmType)t), lname(lay), worst); + check(worst < ldexp(1.0, -20), w); + printf("%s\n", w); + } + + const OmegaGemmCfg shapes[] = { { 0, 2, 4, 2, 2, 4, 0 }, { 0, 1, 1, 1, 1, 4, 0 }, { 0, 4, 1, 2, 2, 2, 0 }, { 0, 1, 4, 4, 1, 2, 0 }, { 0, 2, 2, 1, 4, 8, 0 } }; + OmegaGemmCfg big; omega_gpu_gemm_default_cfg(OMEGA_GPU_GEMM_BF16, &big); big.rt = 4; big.ct = 2; + check(!omega_gpu_gemm_cfg_ok(&big), "a tile past the register budget (rt 4 ct 2) refused"); + for (int t = 0; t < 2; t++) + for (size_t s = 0; s < sizeof shapes / sizeof shapes[0]; s++) + for (int mut = 0; mut <= 3; mut++) + for (int k = 0; k < OMEGA_GEMM_K_COUNT; k++) { + OmegaGemmCfg c = shapes[s]; c.type = (OmegaGpuGemmType)t; c.mutant = mut; + BlackwellIRProgram *p = calloc(1, sizeof *p); + int rc = omega_gpu_gemm_codegen(&c, (OmegaGemmKind)k, p); + size_t bytes = rc == 0 ? omega_bw_program_code_bytes(p) : 0; + uint8_t *code = bytes ? malloc(bytes) : NULL; + OmegaBlackwellKernel kk; memset(&kk, 0, sizeof kk); + int enc = code ? omega_blackwell_kernel_encode_into(p, code, bytes, &kk) : -1; + int np = enc == 0 ? omega_qmma_patch_code(p, code, bytes) : -1; + snprintf(w, sizeof w, "%s rt %u ct %u wm %u wn %u kernel %d mutant %d: codegen %d, encode %d, qmma patches %d, %u gprs", tname(c.type), + c.rt, c.ct, c.wm, c.wn, k, mut, rc, enc, np, (unsigned)kk.gpr_count); + check(rc == 0 && enc == 0 && kk.code_size == bytes && np >= 0 && (t == 1 || np == 0) && omega_bw_gpr_declared(kk.gpr_count) <= 255u, w); + if (mut == 0) printf("%s\n", w); + free(code); free(p); + } +} + +/* ------------------------------------------------------------------ the simulator */ + +typedef struct { + BlackwellIRProgram *prog[OMEGA_GEMM_K_COUNT]; + WsRange ranges[5]; + int order; + char err[300]; +} SimCtx; + +static int sim_launch(void *ctx, OmegaGemmKind k, const uint32_t a[OMEGA_GPU_GEMM_ARGS_WORDS], uint32_t gx, uint32_t gy, uint32_t threads) { + SimCtx *c = ctx; + static WsSim s; + memset(&s, 0, sizeof s); + s.p = c->prog[k]; s.threads = threads; s.order = c->order; + for (unsigned i = 0; i < OMEGA_GPU_GEMM_ARGS_WORDS; i++) s.cbank[0x380 / 4 + i] = a[i]; + memcpy(s.ranges, c->ranges, sizeof c->ranges); s.nranges = 5; + if (ws_run(&s, gx, gy) != 0) { snprintf(c->err, sizeof c->err, "kernel %d: %s at pc %d", (int)k, s.msg, s.err_pc); return -1; } + return 0; +} + +static int sim_build(SimCtx *c, const OmegaGemmCfg *cfg) { + for (int k = 0; k < OMEGA_GEMM_K_COUNT; k++) { + c->prog[k] = calloc(1, sizeof *c->prog[k]); + if (!c->prog[k] || omega_gpu_gemm_codegen(cfg, (OmegaGemmKind)k, c->prog[k]) != 0) return -1; + } + return 0; +} +static void sim_free(SimCtx *c) { for (int k = 0; k < OMEGA_GEMM_K_COUNT; k++) { free(c->prog[k]); c->prog[k] = NULL; } } + +/* one multiply through the simulator; 0 when it ran and every output word was written */ +static int sim_gemm(SimCtx *c, const OmegaGemmCfg *cfg, unsigned lay, uint32_t M, uint32_t N, uint32_t K, const void *A, const void *B, float *C) { + OmegaGemmPlan p; + if (omega_gpu_gemm_plan(cfg, M, N, K, &p) != 0) return -2; + uint8_t *ap = malloc(p.ap_bytes), *bp = malloc(p.bp_bytes); + memset(ap, 0xa5, p.ap_bytes); memset(bp, 0x5a, p.bp_bytes); + for (uint64_t i = 0; i < (uint64_t)M * N; i++) { uint32_t u = 0x7fa00badu; memcpy(&C[i], &u, 4); } + c->ranges[0] = (WsRange){ (uintptr_t)A, (uintptr_t)A + p.a_bytes + 1 }; /* the e4m3 pack reads a u16 around the last byte */ + c->ranges[1] = (WsRange){ (uintptr_t)B, (uintptr_t)B + p.b_bytes + 1 }; + c->ranges[2] = (WsRange){ (uintptr_t)ap, (uintptr_t)ap + p.ap_bytes }; + c->ranges[3] = (WsRange){ (uintptr_t)bp, (uintptr_t)bp + p.bp_bytes }; + c->ranges[4] = (WsRange){ (uintptr_t)C, (uintptr_t)(C + (uint64_t)M * N) }; + int rc = omega_gpu_gemm_drive(cfg, lay, M, N, K, (uintptr_t)A, (uintptr_t)B, (uintptr_t)ap, (uintptr_t)bp, (uintptr_t)C, sim_launch, c); + for (uint64_t i = 0; rc == 0 && i < (uint64_t)M * N; i++) if (f2u(C[i]) == 0x7fa00badu) rc = -9; + free(ap); free(bp); + return rc; +} + +static void sim_tier(void) { + char w[600], first[200]; + static const uint32_t sh[][3] = { { 1, 1, 1 }, { 1, 1, 17 }, { 16, 8, 16 }, { 17, 9, 33 }, { 64, 64, 64 }, { 65, 63, 100 }, + { 3, 130, 70 }, { 100, 3, 257 }, { 129, 65, 31 }, { 31, 200, 129 } }; + const size_t nsh = sizeof sh / sizeof sh[0]; + const OmegaGemmCfg cfgs[] = { { 0, 2, 4, 2, 2, 4, 0 }, { 0, 1, 1, 1, 1, 4, 0 }, { 0, 4, 1, 1, 4, 2, 0 } }; + void *A = malloc(300 * 300 * 2), *B = malloc(300 * 300 * 2); + float *C = malloc(300 * 300 * 4); + for (int t = 0; t < 2; t++) + for (size_t ci = 0; ci < sizeof cfgs / sizeof cfgs[0]; ci++) { + OmegaGemmCfg cfg = cfgs[ci]; cfg.type = (OmegaGpuGemmType)t; + SimCtx c; memset(&c, 0, sizeof c); + check(sim_build(&c, &cfg) == 0, "simulator: kernels built"); + uint64_t runs = 0, wrong = 0; + for (size_t s = 0; s < nsh; s++) + for (unsigned lay = 0; lay < 4; lay++) { + if (ci > 0 && lay != (unsigned)(s % 4)) continue; /* the other tile shapes: one layout per shape */ + const uint32_t M = sh[s][0], N = sh[s][1], K = sh[s][2]; + fill(cfg.type, A, (uint64_t)M * K, s * 4 + lay); fill(cfg.type, B, (uint64_t)K * N, s * 4 + lay + 1000); + c.order = (int)(s & 1u); + int rc = sim_gemm(&c, &cfg, lay, M, N, K, A, B, C); + uint64_t checked = 0, bad = rc == 0 ? compare(cfg.type, lay, M, N, K, A, B, C, &checked, first, sizeof first) : 1; + runs++; + if (rc != 0 || bad) { + wrong++; + snprintf(w, sizeof w, "sim %s rt %u ct %u wm %u wn %u, %ux%ux%u %s: rc %d, %" PRIu64 " wrong of %" PRIu64 " %s %s", tname(cfg.type), cfg.rt, + cfg.ct, cfg.wm, cfg.wn, M, N, K, lname(lay), rc, bad, checked, first, c.err); + check(0, w); + } + } + snprintf(w, sizeof w, "simulator %s rt %u ct %u wm %u wn %u: %" PRIu64 " multiplies, %" PRIu64 " wrong", tname(cfg.type), cfg.rt, cfg.ct, cfg.wm, cfg.wn, runs, wrong); + check(wrong == 0, w); + printf("%s\n", w); + sim_free(&c); + } + /* red checks: each mutant must change a result the real kernels get right */ + for (int t = 0; t < 2; t++) + for (int mut = 1; mut <= 3; mut++) { + OmegaGemmCfg cfg; omega_gpu_gemm_default_cfg((OmegaGpuGemmType)t, &cfg); cfg.mutant = mut; + SimCtx c; memset(&c, 0, sizeof c); + const uint32_t M = 65, N = 63, K = 100; + fill(cfg.type, A, M * K, 77); fill(cfg.type, B, K * N, 78); + int built = sim_build(&c, &cfg) == 0, rc = built ? sim_gemm(&c, &cfg, 0, M, N, K, A, B, C) : -1; + uint64_t checked = 0, bad = rc == 0 ? compare(cfg.type, 0, M, N, K, A, B, C, &checked, first, sizeof first) : 1; + snprintf(w, sizeof w, "simulator red check: %s mutant %d is caught (%" PRIu64 " wrong)", tname(cfg.type), mut, bad); + check(built && bad > 0, w); + printf("%s\n", w); + sim_free(&c); + } + free(A); free(B); free(C); +} + +/* ------------------------------------------------------------------ the chip */ + +static size_t mem_available(void) { + FILE *f = fopen("/proc/meminfo", "r"); + char line[256]; size_t kb = 0; + while (f && fgets(line, sizeof line, f)) if (sscanf(line, "MemAvailable: %zu kB", &kb) == 1) break; + if (f) fclose(f); + return kb * 1024u; +} + +static const double CEIL_TFLOPS[2] = { 115.36, 237.52 }; + +static void chip_one(OmegaGpuGemmType t, unsigned lay, uint32_t M, uint32_t N, uint32_t K, void *A, void *B, float *C) { + char w[600], first[200]; + fill(t, A, (uint64_t)M * K, (uint64_t)M * 3 + N * 5 + K * 7 + lay); + fill(t, B, (uint64_t)K * N, (uint64_t)M * 11 + N * 13 + K * 17 + lay); + OmegaGpuGemmInfo info; + int rc = omega_gpu_gemm(t, lay, M, N, K, A, B, C, &info); + uint64_t checked = 0, bad = rc == 0 ? compare(t, lay, M, N, K, A, B, C, &checked, first, sizeof first) : 1; + double flop = 2.0 * M * N * K, tf = info.main_ns ? flop / (double)info.main_ns / 1e3 : 0, tfp = info.main_ns ? flop / (double)(info.main_ns + info.pack_ns) / 1e3 : 0; + snprintf(w, sizeof w, "%s %ux%ux%u %s: %s, %" PRIu64 " checked, %" PRIu64 " wrong%s%s; kernel %.3f ms %.2f TFLOPS = %.4f of ceiling, with packs %.2f TFLOPS = %.4f%s%s", + tname(t), M, N, K, lname(lay), omega_gpu_gemm_rc_name(rc), checked, bad, bad && rc == 0 ? ", first " : "", bad && rc == 0 ? first : "", + info.main_ns / 1e6, tf, tf / CEIL_TFLOPS[t], tfp, tfp / CEIL_TFLOPS[t], rc ? ": " : "", rc ? omega_gpu_session_last_error() : ""); + check(rc == 0 && bad == 0, w); + if (rc == 0 && bad == 0) printf("ok: %s\n", w); +} + +static void chip_tier(int quick) { + char w[200]; + const size_t need = (size_t)8192 * 8192 * 2 * 2 + (size_t)8192 * 8192 * 4 + ((size_t)8 << 30); + if (!quick && mem_available() < need * 2) { printf("NOT_RUN: MemAvailable %zu MiB < %zu MiB\n", mem_available() >> 20, need * 2 >> 20); exit(2); } + const uint32_t big = quick ? 1024u : 8192u; + void *A = malloc((size_t)big * big * 2), *B = malloc((size_t)big * big * 2); + float *C = malloc((size_t)big * big * 4); + if (!A || !B || !C) { printf("NOT_RUN: host allocation\n"); exit(2); } + /* the shapes: per type and layout, the same list (26 each, 208 in all): edges, odd sizes, skinny, square up to 8192 */ + static const uint32_t sh[][3] = { + { 1, 1, 1 }, { 1, 8192, 1 }, { 8192, 1, 1 }, { 1, 1, 8192 }, { 7, 13, 29 }, { 16, 8, 16 }, { 33, 65, 127 }, { 100, 100, 100 }, + { 128, 64, 64 }, { 255, 257, 511 }, { 1000, 999, 1001 }, { 1, 4096, 4096 }, { 4096, 1, 4096 }, { 4096, 4096, 1 }, + { 17, 8192, 3000 }, { 8192, 17, 3000 }, { 1024, 1024, 1024 }, { 2048, 2048, 2048 }, { 4096, 4096, 4096 }, { 3000, 5000, 700 }, + { 8192, 8192, 64 }, { 64, 8192, 8192 }, { 8192, 64, 8192 }, { 6000, 7000, 8000 }, { 8191, 8191, 8191 }, { 8192, 8192, 8192 } }; + const size_t nsh = quick ? 12 : sizeof sh / sizeof sh[0]; + int before = g_failed, shapes = 0; + for (int t = 0; t < 2; t++) + for (unsigned lay = 0; lay < 4; lay++) + for (size_t s = 0; s < nsh; s++) { + if (quick && lay != (unsigned)(s % 4)) continue; + uint32_t M = sh[s][0] > big ? big : sh[s][0], N = sh[s][1] > big ? big : sh[s][1], K = sh[s][2] > big ? big : sh[s][2]; + chip_one((OmegaGpuGemmType)t, lay, M, N, K, A, B, C); + shapes++; + } + printf("%d shapes, both types, all four layouts: %s\n", shapes, g_failed == before ? "PASS" : "FAIL"); + for (int t = 0; t < 2; t++) + for (int mut = 1; mut <= 3; mut++) { + OmegaGemmCfg cfg; omega_gpu_gemm_default_cfg((OmegaGpuGemmType)t, &cfg); cfg.mutant = mut; + omega_gpu_gemm_test_set_cfg((OmegaGpuGemmType)t, &cfg); + const uint32_t M = 65, N = 63, K = 100; + fill((OmegaGpuGemmType)t, A, M * K, 77); fill((OmegaGpuGemmType)t, B, K * N, 78); + int rc = omega_gpu_gemm((OmegaGpuGemmType)t, 0, M, N, K, A, B, C, NULL); + char first[200]; uint64_t checked = 0, bad = rc == 0 ? compare((OmegaGpuGemmType)t, 0, M, N, K, A, B, C, &checked, first, sizeof first) : 1; + snprintf(w, sizeof w, "chip red check: %s mutant %d is caught (%s, %" PRIu64 " wrong)", tname((OmegaGpuGemmType)t), mut, omega_gpu_gemm_rc_name(rc), bad); + check(bad > 0, w); + printf("%s\n", w); + omega_gpu_gemm_test_set_cfg((OmegaGpuGemmType)t, NULL); + } + for (int t = 0; t < 2; t++) chip_one((OmegaGpuGemmType)t, 3, 65, 63, 100, A, B, C); /* right again after the red checks */ + omega_gpu_session_close(); /* the kernels go with the device (close hook); the next call builds them on a new one */ + printf("after the device closed and opened again:\n"); + for (int t = 0; t < 2; t++) chip_one((OmegaGpuGemmType)t, 0, 70, 33, 129, A, B, C); + free(A); free(B); free(C); +} + +int main(int argc, char **argv) { + const char *tier = "chip"; + int quick = 0; + for (int i = 1; i < argc; i++) { + if (!strcmp(argv[i], "--host-only")) tier = "host"; + else if (!strcmp(argv[i], "--sim")) tier = "sim"; + else if (!strcmp(argv[i], "--quick")) quick = 1; + else { fprintf(stderr, "usage: %s [--host-only | --sim | --quick]\n", argv[0]); return 2; } + } + if (!strcmp(tier, "host")) host_only(); + else if (!strcmp(tier, "sim")) { host_only(); sim_tier(); } + else chip_tier(quick); + if (g_failed) printf("C3 gemm %s: FAIL (%d of %d)\n", tier, g_failed, g_checks); + else printf("C3 gemm %s: PASS (%d checks)\n", tier, g_checks); + return g_failed ? 1 : 0; +} diff --git a/tests/gpu_isolation_test.c b/tests/gpu_isolation_test.c new file mode 100644 index 000000000..786629e31 --- /dev/null +++ b/tests/gpu_isolation_test.c @@ -0,0 +1,371 @@ +/* gpu_isolation_test.c -- row C5 of docs/OMEGA.md: two processes on one GPU, and a never-ending kernel, on the GB10. + * + * --host-only codegen + encode of the work kernel, its mutant and the never-ending kernel; the simulator runs the work + * kernel exactly and catches the mutant; the never-ending kernel never reaches its exit in the simulator + * (no flag) the chip, under the GB10 lock, every part in its own child process: + * hang a work launch (values checked), then a never-ending kernel (one warp: count, branch back) with a + * HANG_MS timeout: the launch fails "timed out" and the process latches; red check: a work launch is + * refused "process latched"; omega_gpu_session_recover() closes the device (the RM client close destroys + * the channel and the grid on it); the work kernel uploaded again on the new device runs, values right. + * two two processes, each its own device, ROUNDS work launches with their own inputs: both all right. + * two-hang process 1 runs ROUNDS work launches while process 2 runs the hang part: process 1 all right (unharmed), + * process 2 recovers and is right too. + * Kernels from Omega's IR (omega_bw_em.h), our own sm_121 encoder; no CUDA. */ +#include "omega_gpu_cmdlist.h" +#include "omega_gpu_session.h" +#include "bw_warp_sim.h" /* brings math.h, whose fadd() / ffma() would hide the emitter's */ +#define fadd em_fadd +#define ffma em_ffma +#include "omega_bw_em.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#define THREADS 128u +#define CTAS 32u +#define NEL (THREADS * CTAS) +#define ROUNDS 300 +#define HANG_MS 2000ull +#define POISON 0x7fa00badu +#define ARGS 5u /* in u64, out u64, tag f32 */ + +static int g_failed, g_checks; +static void check(int ok, const char *what) { + g_checks++; + if (!ok) g_failed++; + printf("[%d] %s: %s\n", (int)getpid(), ok ? "ok" : "FAIL", what); + fflush(stdout); +} +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static uint64_t now_ns(void) { struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return (uint64_t)t.tv_sec * 1000000000ull + (uint64_t)t.tv_nsec; } + +/* ------------------------------------------------------------------ the kernels */ + +typedef struct { int bssy, bra; } Region; +static Region skip_if_p0(Em *e) { Region r; r.bssy = bssy_fwd(e); r.bra = bra_if_p0_fwd(e); return r; } +static void region_end(Em *e, Region r) { int at = here(e); bsync(e); patch_bra(e, r.bra, at); patch_bra(e, r.bssy, at + 1); } + +/* work: out[gid] = in[gid] * 2 + tag (mutant 1: * 2 + tag + 1) */ +static int gen_work(Em *e, int mutant) { + int udesc = UV64(e), pin = V64(e), pout = V64(e), a64 = V64(e), tag = V(e), n = V(e), tid = V(e), cta = V(e), gid = V(e), two = V(e), v = V(e), one = V(e); + if (e->err) return -1; + ldcu64(e, udesc, 0x358); + ldc64(e, pin, 0x380); ldc64(e, pout, 0x388); ldc32(e, tag, 0x390); + s2r(e, tid, BW_SR_TID_X); s2r(e, cta, BW_SR_CTAID_X); + imadi(e, gid, cta, 0, THREADS, tid); + movi(e, n, NEL); movi(e, two, 0x40000000u); movi(e, one, 0x3f800000u); + isetp_ge_u32(e, gid, n); + { + Region r = skip_if_p0(e); + imadw(e, a64, gid, 4u, pin); ldg32(e, v, a64, udesc, 1); + ffma(e, v, v, two, 0, tag); + if (mutant == 1) fadd(e, v, v, one); + imadw(e, a64, gid, 4u, pout); stg(e, a64, 0, v, udesc); + region_end(e, r); + } + tail(e); + return e->err; +} + +/* never-ending: x = x + 1, branch back, for ever; the exit after the loop is never reached */ +static int gen_hang(Em *e) { + int x = V(e), one = V(e); + if (e->err) return -1; + movi(e, x, 0); movi(e, one, 1); + const int top = here(e); + loop_begin(e); + iadd(e, x, x, one); + bra(e, top); + loop_end(e); + tail(e); + return e->err; +} + +static int codegen(int hang, int mutant, BlackwellIRProgram *prog) { + omega_bw_ir_init(prog); + Em em; memset(&em, 0, sizeof em); em.p = prog; + if ((hang ? gen_hang(&em) : gen_work(&em, mutant)) != 0 || em.err || em.depth != 0) return -1; + return omega_bw_regalloc_solve(prog); +} + +static float input(unsigned i, unsigned seed) { return (float)((i * 2654435761u + seed * 40503u) % 100000u); } +static float expect(unsigned i, unsigned seed, float tag) { return input(i, seed) * 2.0f + tag; } + +/* ------------------------------------------------------------------ host */ + +static const char *g_dump; /* --dump-hang PATH: code bytes for the disassembler; PATH must not already exist */ + +static void host_only(void) { + char w[200]; + for (int k = 0; k < 3; k++) { + BlackwellIRProgram *p = calloc(1, sizeof *p); + size_t need = 0; + int ok = p && codegen(k == 2, k == 1, p) == 0 && (need = omega_bw_program_code_bytes(p)) > 0; + void *code = ok ? calloc(1, need) : NULL; + OmegaBlackwellKernel kk; + ok = ok && code && omega_blackwell_kernel_encode_into(p, code, need, &kk) == 0 && kk.code_size == need; + if (ok && k == 2 && g_dump) { + /* Never truncate an existing file or follow a final-component symlink. + * A new dump is private even with a permissive caller umask. */ + int fd = open(g_dump, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0600); + FILE *f = fd >= 0 ? fdopen(fd, "wb") : NULL; + ok = f && fwrite(code, 1, need, f) == need; + if (f) { if (fclose(f) != 0) ok = 0; } + else if (fd >= 0) close(fd); + if (!ok) fprintf(stderr, "cannot write private kernel dump: %s (requires a new path)\n", g_dump); + } + snprintf(w, sizeof w, "codegen + encode: %s (%zu bytes)", k == 0 ? "work kernel" : k == 1 ? "work kernel mutant 1" : "never-ending kernel", need); + check(ok, w); + free(code); free(p); + } + static float in[NEL], out[NEL]; + WsRange rg[2] = { { (uintptr_t)in, (uintptr_t)(in + NEL) }, { (uintptr_t)out, (uintptr_t)(out + NEL) } }; + for (int mut = 0; mut < 2; mut++) { + BlackwellIRProgram *p = calloc(1, sizeof *p); + static WsSim s; + memset(&s, 0, sizeof s); + for (unsigned i = 0; i < NEL; i++) { in[i] = input(i, 7); uint32_t pz = POISON; memcpy(&out[i], &pz, 4); } + int rc = !p || codegen(0, mut, p) != 0; + if (!rc) { + const uint64_t a = (uintptr_t)in, b = (uintptr_t)out; + s.p = p; s.threads = THREADS; + s.cbank[0x380 / 4] = (uint32_t)a; s.cbank[0x384 / 4] = (uint32_t)(a >> 32); + s.cbank[0x388 / 4] = (uint32_t)b; s.cbank[0x38c / 4] = (uint32_t)(b >> 32); s.cbank[0x390 / 4] = f2u(3.0f); + memcpy(s.ranges, rg, sizeof rg); s.nranges = 2; + rc = ws_run(&s, CTAS, 1); + } + unsigned bad = 0; + for (unsigned i = 0; i < NEL; i++) bad += f2u(out[i]) != f2u(expect(i, 7, 3.0f)); + snprintf(w, sizeof w, mut ? "simulator red check: work mutant caught (%u wrong)" : "simulator: work kernel exact on all %u elements", mut ? bad : NEL); + check(mut ? rc != 0 || bad > 0 : rc == 0 && bad == 0, w); + free(p); + } +} + +/* ------------------------------------------------------------------ the chip */ + +typedef struct { BlackwellIRProgram prog; OmegaGpuMem code; uint32_t gpr; } Kern; + +/* lock held */ +static int upload(Kern *k, int hang) { + memset(&k->code, 0, sizeof k->code); + if (codegen(hang, 0, &k->prog) != 0) return -1; + size_t need = omega_bw_program_code_bytes(&k->prog); + if (need == 0 || omega_gpu_session_alloc_code(need, &k->code) != 0) return -1; + OmegaBlackwellKernel kk; + if (omega_blackwell_kernel_encode_into(&k->prog, k->code.cpu, need, &kk) != 0 || omega_gpu_session_sync_to_gpu(&k->code) != 0) return -1; + k->gpr = omega_bw_gpr_declared(kk.gpr_count); + if (k->gpr < 64u) k->gpr = 64u; + return 0; +} + +static Kern g_work, g_hang; +static OmegaGpuMem g_buf; /* [in | out] */ + +/* lock held, device open: device buffer + work kernel */ +static int setup(void) { + if (!omega_gpu_session_open()) return -1; + if (omega_gpu_session_alloc(2u * NEL * 4u, &g_buf) != 0) return -1; + return upload(&g_work, 0); +} + +/* lock held: one work launch with inputs from seed; returns the count of wrong outputs, or -1 if the launch failed */ +static long work_once(unsigned seed, float tag, uint64_t *ns) { + float *in = g_buf.cpu, *out = in + NEL; + for (unsigned i = 0; i < NEL; i++) { in[i] = input(i, seed); uint32_t pz = POISON; memcpy(&out[i], &pz, 4); } + if (omega_gpu_session_sync_to_gpu(&g_buf) != 0) return -1; + uint32_t a[ARGS]; + const uint64_t vi = g_buf.va, vo = g_buf.va + NEL * 4u; + a[0] = (uint32_t)vi; a[1] = (uint32_t)(vi >> 32); a[2] = (uint32_t)vo; a[3] = (uint32_t)(vo >> 32); a[4] = f2u(tag); + OmegaGpuLaunch L = { .code_va = g_work.code.va, .gpr_count = g_work.gpr, .threads_x = THREADS, .threads_y = 1, .grid_x = CTAS, .grid_y = 1, + .num_elements = NEL, .args = a, .n_args = ARGS, .timeout_ms = 20000 }; + uint64_t t = 0; + if (omega_gpu_session_launch(&L, &t, NULL) != 0) return -1; + if (ns) *ns = t; + if (omega_gpu_session_sync_to_cpu(&g_buf) != 0) return -1; + long bad = 0; + for (unsigned i = 0; i < NEL; i++) bad += f2u(out[i]) != f2u(expect(i, seed, tag)); + return bad; +} + +/* Child processes talk to the parent and to each other over pipes (one byte per event, then raw timestamps). */ +static void say(int fd, char c) { if (fd >= 0 && write(fd, &c, 1) != 1) printf("[%d] pipe write failed\n", (int)getpid()); } +static int hear(int fd) { char c = 0; return read(fd, &c, 1) == 1 ? c : -1; } +static int heard_now(int fd) { /* non-blocking: 1 when a byte is waiting */ + fd_set s; FD_ZERO(&s); FD_SET(fd, &s); + struct timeval tv = { 0, 0 }; + return select(fd + 1, &s, NULL, NULL, &tv) == 1; +} + +/* the hang part; sig_fd (or -1) gets 'H' right before the never-ending launch and 'D' when the part is over */ +static int part_hang(int sig_fd) { + char w[300]; + omega_gpu_session_lock(); + if (setup() != 0) { check(0, "hang part: device, buffer, work kernel"); printf(" %s\n", omega_gpu_session_last_error()); omega_gpu_session_unlock(); say(sig_fd, 'D'); return 1; } + uint64_t ns0 = 0; + long bad = work_once(11, 1.0f, &ns0); + snprintf(w, sizeof w, "hang part: a work launch before the hang is right (%ld wrong, %.3f ms)", bad, ns0 / 1e6); + check(bad == 0, w); + check(upload(&g_hang, 1) == 0, "hang part: never-ending kernel uploaded"); + OmegaGpuCmdList *old_list = NULL; /* made on the device the recovery throws away */ + omega_gpu_session_unlock(); + check(omega_gpu_cmdlist_create(2, &old_list) == 0, "hang part: a command list made before the hang"); + omega_gpu_session_lock(); + uint32_t dummy = 0; /* the kernel reads no argument; a launch needs at least one word */ + OmegaGpuLaunch H = { .code_va = g_hang.code.va, .gpr_count = g_hang.gpr, .threads_x = 32, .threads_y = 1, .grid_x = 1, .grid_y = 1, + .num_elements = 32, .args = &dummy, .n_args = 1, .timeout_ms = HANG_MS }; + say(sig_fd, 'H'); + const uint64_t t0 = now_ns(); + int rc = omega_gpu_session_launch(&H, NULL, NULL); + const double waited = (now_ns() - t0) / 1e6; + snprintf(w, sizeof w, "the never-ending kernel times out after %.0f ms (rc %d: %s), the process latches", waited, rc, omega_gpu_session_last_error()); + check(rc != 0 && strstr(omega_gpu_session_last_error(), "timed out") && omega_gpu_session_is_blocked() && waited >= (double)HANG_MS * 0.9, w); + bad = work_once(12, 1.0f, NULL); + snprintf(w, sizeof w, "red check: while latched a work launch is refused (%s)", omega_gpu_session_last_error()); + check(bad == -1 && strstr(omega_gpu_session_last_error(), "process latched") != NULL, w); + omega_gpu_session_unlock(); + + const uint64_t r0 = now_ns(); + rc = omega_gpu_session_recover(); + const double rec_ms = (now_ns() - r0) / 1e6; + /* the driver's clean close of the RM client is what says the channel, and the grid on it, are gone: a teardown fault + * would keep the session latched (tests/test_omega_gpu_session_platform.c RECOVER_TEARDOWN_FAULT_STAYS_LATCHED) */ + snprintf(w, sizeof w, "recover: the device closed with no driver teardown fault in %.1f ms (rc %d %s)", rec_ms, rc, rc ? omega_gpu_session_last_error() : ""); + check(rc == 0 && !omega_gpu_session_is_blocked() && omega_gpu_session_recoveries() == 1, w); + memset(&g_buf, 0, sizeof g_buf); /* handles of the old device are gone */ + omega_gpu_session_lock(); + if (setup() != 0) { check(0, "after recover: new device, buffer, work kernel"); printf(" %s\n", omega_gpu_session_last_error()); omega_gpu_session_unlock(); say(sig_fd, 'D'); return 1; } + uint64_t ns1 = 0, ns2 = 0; + bad = work_once(13, 4.0f, &ns1); + long bad2 = work_once(14, 5.0f, &ns2); + snprintf(w, sizeof w, "after recover, same process: work launches right (%ld, %ld wrong; %.3f, %.3f ms vs %.3f ms before the hang), device opens %u", + bad, bad2, ns1 / 1e6, ns2 / 1e6, ns0 / 1e6, omega_gpu_session_open_count()); + check(bad == 0 && bad2 == 0, w); + { + uint32_t a1 = 0; + OmegaGpuLaunch L = { .code_va = g_work.code.va, .gpr_count = g_work.gpr, .threads_x = 32, .threads_y = 1, .grid_x = 1, .grid_y = 1, + .num_elements = 32, .args = &a1, .n_args = 1 }; + int refused = old_list && omega_gpu_cmdlist_add(old_list, &L) == -1 && strstr(omega_gpu_session_last_error(), "before a session recovery") != NULL; + snprintf(w, sizeof w, "a command list from before the recovery is refused (%s)", omega_gpu_session_last_error()); + check(refused, w); + } + omega_gpu_session_unlock(); + omega_gpu_cmdlist_free(old_list); + omega_gpu_session_close(); + say(sig_fd, 'D'); + return g_failed ? 1 : 0; +} + +typedef struct { uint64_t start, end; uint32_t launches, during; } Span; + +/* work launches with own inputs. ready_fd gets 'R' once set up; then it waits for one byte on go_fd. It runs for at + * least RUN_MS and ROUNDS launches; with a hang_fd it waits for 'H' first and keeps going until 'D', counting the + * launches made in between. Writes its Span to span_fd. */ +#define RUN_MS 3000ull +static int part_rounds(unsigned seed_base, const char *who, int ready_fd, int go_fd, int hang_fd, int span_fd) { + char w[300]; + omega_gpu_session_lock(); + if (setup() != 0) { check(0, "rounds: device, buffer, work kernel"); printf(" %s\n", omega_gpu_session_last_error()); omega_gpu_session_unlock(); say(ready_fd, 'X'); return 1; } + say(ready_fd, 'R'); + if (go_fd >= 0) (void)hear(go_fd); + if (hang_fd >= 0 && hear(hang_fd) != 'H') { check(0, "rounds: the hang process never started its hang"); omega_gpu_session_unlock(); return 1; } + Span sp = { now_ns(), 0, 0, 0 }; + long wrong_total = 0; int failed = 0, hang_live = hang_fd >= 0; + uint64_t ns, worst = 0; + for (unsigned r = 0;; r++) { + if (hang_live && heard_now(hang_fd)) { (void)hear(hang_fd); hang_live = 0; } + if (!hang_live && r >= ROUNDS && now_ns() - sp.start >= RUN_MS * 1000000ull) break; + long bad = work_once(seed_base + r, (float)(r % 7), &ns); + if (bad < 0) { failed++; printf(" [%d] launch %u: %s\n", (int)getpid(), r, omega_gpu_session_last_error()); break; } + wrong_total += bad; + sp.launches++; + if (hang_live) sp.during++; + if (ns > worst) worst = ns; + } + sp.end = now_ns(); + snprintf(w, sizeof w, "%s: %u work launches over %.0f ms, own inputs: %ld wrong values, %d failed launches, slowest %.3f ms%s", + who, sp.launches, (sp.end - sp.start) / 1e6, wrong_total, failed, worst / 1e6, ""); + check(wrong_total == 0 && failed == 0, w); + if (hang_fd >= 0) { + snprintf(w, sizeof w, "%s: %u of its launches ran while the other process's kernel was hung or being torn down", who, sp.during); + check(sp.during > 0, w); + } + if (span_fd >= 0 && write(span_fd, &sp, sizeof sp) != (ssize_t)sizeof sp) printf("[%d] span write failed\n", (int)getpid()); + omega_gpu_session_unlock(); + omega_gpu_session_close(); + return g_failed ? 1 : 0; +} + +static int reap(pid_t p) { int st = 0; if (p < 0 || waitpid(p, &st, 0) != p) return -1; return WIFEXITED(st) ? WEXITSTATUS(st) : 128 + (WIFSIGNALED(st) ? WTERMSIG(st) : 0); } +static int pipe_or_die(int fd[2]) { if (pipe(fd) != 0) { printf("NOT_RUN: pipe\n"); exit(2); } return 0; } + +static void chip_tier(int values_only) { + char w[300]; + fflush(stdout); + if (!values_only) { + pid_t h = fork(); + if (h == 0) _exit(part_hang(-1)); + int rc = reap(h); + snprintf(w, sizeof w, "C5 hang: never-ending kernel timed out, recovered, correct launch in the same process (child exit %d)", rc); + check(rc == 0, w); + } + + /* two processes, started together after both are set up, each running RUN_MS: their spans must overlap */ + int ready[2], go[2], span[2]; + pipe_or_die(ready); pipe_or_die(go); pipe_or_die(span); + pid_t a = fork(); + if (a == 0) _exit(part_rounds(1000, "process 1", ready[1], go[0], -1, span[1])); + pid_t b = fork(); + if (b == 0) _exit(part_rounds(5000, "process 2", ready[1], go[0], -1, span[1])); + int r1 = hear(ready[0]), r2 = hear(ready[0]); + say(go[1], 'G'); say(go[1], 'G'); + int ra = reap(a), rb = reap(b); + Span s1 = {0}, s2 = {0}; + int got = read(span[0], &s1, sizeof s1) == (ssize_t)sizeof s1 && read(span[0], &s2, sizeof s2) == (ssize_t)sizeof s2; + const uint64_t lo = s1.start > s2.start ? s1.start : s2.start, hi = s1.end < s2.end ? s1.end : s2.end; + const double overlap_ms = got && hi > lo ? (hi - lo) / 1e6 : 0.0; + snprintf(w, sizeof w, "C5 two processes on one GPU: both right (ready %c %c, exits %d, %d), running side by side for %.0f ms", + r1 > 0 ? r1 : '?', r2 > 0 ? r2 : '?', ra, rb, overlap_ms); + check(ra == 0 && rb == 0 && overlap_ms >= (double)RUN_MS * 0.5, w); + close(ready[0]); close(ready[1]); close(go[0]); close(go[1]); close(span[0]); close(span[1]); + + if (values_only) { + puts("C5 recovery: NOT_RUN (values-only; hang needs a separate reservation)"); + return; + } + + /* a hang beside a working process: process 1 starts when process 2's hang begins and runs until process 2 is done */ + int sig[2], rdy[2]; + pipe_or_die(sig); pipe_or_die(rdy); + a = fork(); + if (a == 0) { close(sig[1]); _exit(part_rounds(9000, "process 1 beside a hang", rdy[1], -1, sig[0], -1)); } + b = fork(); + if (b == 0) { close(sig[0]); _exit(part_hang(sig[1])); } + close(sig[0]); close(sig[1]); + ra = reap(a); rb = reap(b); + snprintf(w, sizeof w, "C5 a hang in process 2 leaves process 1 unharmed, and process 2 recovers (exits %d, %d)", ra, rb); + check(ra == 0 && rb == 0, w); + close(rdy[0]); close(rdy[1]); +} + +int main(int argc, char **argv) { + const char *tier = "chip"; + for (int i = 1; i < argc; i++) { + if (!strcmp(argv[i], "--host-only")) tier = "host"; + else if (!strcmp(argv[i], "--values-only")) tier = "values"; + else if (!strcmp(argv[i], "--dump-hang") && i + 1 < argc) { tier = "host"; g_dump = argv[++i]; } + else { fprintf(stderr, "usage: %s [--host-only | --values-only] [--dump-hang PATH]\n", argv[0]); return 2; } + } + setvbuf(stdout, NULL, _IOLBF, 0); + if (!strcmp(tier, "host")) host_only(); + else chip_tier(!strcmp(tier, "values")); + if (g_failed) printf("C5 isolation %s: FAIL (%d of %d)\n", tier, g_failed, g_checks); + else printf("C5 isolation %s: PASS (%d checks)\n", tier, g_checks); + return g_failed ? 1 : 0; +} diff --git a/tests/gpu_reconv_test.c b/tests/gpu_reconv_test.c index 739044c36..3416fe6ea 100644 --- a/tests/gpu_reconv_test.c +++ b/tests/gpu_reconv_test.c @@ -17,7 +17,7 @@ /* gpu_reconv_test: structured warp reconvergence (omega #308) on Omega's own Blackwell codegen. * * ./gpu_reconv_test --host-only encoder golden words, region bookkeeping, codegen refusals, - * nvdisasm listing (when /usr/local/cuda/bin/nvdisasm exists), + * listing by Omega's own disassembler, * every probe kernel through the SIMT warp simulator against * the host oracle under both fragment orders, the mutation * controls, scoreboard and control-edge walks. No device. @@ -38,6 +38,7 @@ #include "omega_bw_reconv.h" #include "omega_gpu_session.h" #include "bw_warp_sim.h" +#include "omega_sm121_disasm.h" #include #include #include @@ -186,36 +187,34 @@ static int find_op(const BlackwellIRProgram *p, BlackwellIROpcode op, int nth) { return -1; } -/* --------------------------------------------------------- nvdisasm listing */ -static int nvdisasm_bytes(const uint8_t *code, size_t bytes, const char *name, const char *const *must, int n_must) { - const char *nv = "/usr/local/cuda/bin/nvdisasm"; - if (access(nv, X_OK) != 0) { printf("nvdisasm: not present, listing check skipped for %s\n", name); return 0; } - char bin[96], lst[96], cmd[320]; - snprintf(bin, sizeof bin, "/tmp/omega_rc_%s_%d.bin", name, (int)getpid()); - snprintf(lst, sizeof lst, "/tmp/omega_rc_%s_%d.sass", name, (int)getpid()); - FILE *f = fopen(bin, "wb"); if (!f) return -1; - fwrite(code, 1, bytes, f); fclose(f); - snprintf(cmd, sizeof cmd, "%s -b SM121 %s > %s 2>&1", nv, bin, lst); - int rc = system(cmd); - FILE *l = fopen(lst, "r"); if (!l) return -1; +/* --------------------------------------------------------- sm121dis listing */ +static int sm121dis_bytes(const uint8_t *code, size_t bytes, const char *name, const char *const *must, int n_must) { + char lst[96]; + snprintf(lst, sizeof lst, "/tmp/omega_rc_%s_%d.sass.XXXXXX", name, (int)getpid()); + int fd = mkstemp(lst); /* private, unique listing; read back the same descriptor */ + FILE *f = fd >= 0 ? fdopen(fd, "w+") : NULL; + if (!f) { if (fd >= 0) close(fd); return -1; } + int rc = omega_sm121_listing(code, bytes, f); + if (fflush(f) != 0 || fseek(f, 0, SEEK_SET) != 0) { fclose(f); return -1; } + FILE *l = f; char line[512]; int seen[16] = {0}, bad = 0, insns = 0; while (fgets(line, sizeof line, l)) { - if (!strstr(line, "/*0")) continue; + if (!strstr(line, "/*")) continue; /* every address line, 0x1000 and up too */ insns++; if (strstr(line, "?") || strstr(line, "error")) bad++; for (int i = 0; i < n_must && i < 16; i++) if (strstr(line, must[i])) seen[i] = 1; } - fclose(l); + if (ferror(l)) rc = -1; + if (fclose(l) != 0) rc = -1; int miss = 0; - for (int i = 0; i < n_must && i < 16; i++) if (!seen[i]) { printf(" %s: nvdisasm listing lacks %s\n", name, must[i]); miss++; } - printf("nvdisasm %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); - unlink(bin); + for (int i = 0; i < n_must && i < 16; i++) if (!seen[i]) { printf(" %s: sm121dis listing lacks %s\n", name, must[i]); miss++; } + printf("sm121dis %s: rc=%d insns=%d undecodable=%d missing=%d (%s)\n", name, rc, insns, bad, miss, lst); return (rc == 0 && bad == 0 && miss == 0) ? 0 : -1; } -static int nvdisasm_kernel(OmegaGpuEwOp op, int mutant, const char *name, const char *const *must, int n_must) { +static int sm121dis_kernel(OmegaGpuEwOp op, int mutant, const char *name, const char *const *must, int n_must) { BlackwellIRProgram *p = calloc(1, sizeof *p); OmegaBlackwellKernel k; if (!p || codegen(op, mutant, p, &k) != OMEGA_GPU_EW_OK) { free(p); return -1; } - int rc = nvdisasm_bytes(k.code, k.code_size, name, must, n_must); + int rc = sm121dis_bytes(k.code, k.code_size, name, must, n_must); free(k.code); free(p); return rc; } @@ -317,22 +316,22 @@ static int host_part(void) { free(p); } - /* 4. nvdisasm: the words decode as BSSY/BSYNC on the real barrier registers, and the predicated + /* 4. sm121dis: the words decode as BSSY/BSYNC on the real barrier registers, and the predicated * and B15 forms the encoder can produce decode too (built by hand: encode_one) */ { static const char *const m0[] = { "BSSY", "BSYNC", "B0", "SHFL.DOWN", "@P0 BRA" }; - CHECK(nvdisasm_kernel(OMEGA_GPU_EW_RC_DIAMOND, 0, "diamond", m0, 5) == 0, "diamond listing decodes with BSSY/BSYNC B0"); + CHECK(sm121dis_kernel(OMEGA_GPU_EW_RC_DIAMOND, 0, "diamond", m0, 5) == 0, "diamond listing decodes with BSSY/BSYNC B0"); static const char *const m1[] = { "BSSY", "BSYNC", "B15", "B7" }; - CHECK(nvdisasm_kernel(OMEGA_GPU_EW_RC_DEPTH16, 0, "depth16", m1, 4) == 0, "depth16 listing decodes with B15"); + CHECK(sm121dis_kernel(OMEGA_GPU_EW_RC_DEPTH16, 0, "depth16", m1, 4) == 0, "depth16 listing decodes with B15"); static const char *const m2[] = { "BSSY", "B1", "BSYNC" }; - CHECK(nvdisasm_kernel(OMEGA_GPU_EW_PRIME_SIEVE_DIV2, 0, "sieve_div2", m2, 3) == 0, "nested sieve listing decodes with B1"); + CHECK(sm121dis_kernel(OMEGA_GPU_EW_PRIME_SIEVE_DIV2, 0, "sieve_div2", m2, 3) == 0, "nested sieve listing decodes with B1"); uint8_t code[64]; uint32_t w[4]; BlackwellIRInsn in; memset(&in, 0, sizeof in); in.dst_vreg = in.src1_vreg = in.src2_vreg = in.src3_vreg = -1; in.op = BW_IR_BSSY; in.bar_reg = 3; in.imm = 2; in.predicate_p0 = true; omega_blackwell_encode_one(&in, w); memcpy(code, w, 16); in.op = BW_IR_BSYNC; in.bar_reg = 3; in.predicate_p0 = true; in.predicate_not = true; omega_blackwell_encode_one(&in, w); memcpy(code + 16, w, 16); in.op = BW_IR_BSYNC; in.bar_reg = 15; in.predicate_p0 = false; in.predicate_not = false; omega_blackwell_encode_one(&in, w); memcpy(code + 32, w, 16); in.op = BW_IR_EXIT; omega_blackwell_encode_one(&in, w); memcpy(code + 48, w, 16); static const char *const m3[] = { "@P0 BSSY", "B3", "@!P0 BSYNC", "BSYNC.RECONVERGENT B15" }; - CHECK(nvdisasm_bytes(code, 64, "forms", m3, 4) == 0, "predicated BSSY/BSYNC and B15 decode"); + CHECK(sm121dis_bytes(code, 64, "forms", m3, 4) == 0, "predicated BSSY/BSYNC and B15 decode"); } /* 5. simulator: every probe, every n, both fragment orders, exact against the oracle */ diff --git a/tests/gpu_scan_test.c b/tests/gpu_scan_test.c new file mode 100644 index 000000000..1e1b608fc --- /dev/null +++ b/tests/gpu_scan_test.c @@ -0,0 +1,379 @@ +/* gpu_scan_test.c -- row C3 of docs/OMEGA.md: reductions and prefix sums of any length, bit-exact against the + * frozen-order host reference (src/omega_gpu_scan.h). + * + * --host-only no device: refusals, every kernel through our codegen and encoder, the references checked against + * exact integer sums and against the E1 reduction reference (omega_reduce_reference) + * --sim the real kernels through the warp simulator (tests/bw_warp_sim.h), both scheduling orders, lengths + * that cross every tile, CTA and grid-stride edge; the three mutants must be caught + * (no flag) the GB10: every n from 1 to 2048, then 2^k - 1, 2^k, 2^k + 1 up to 2^28, then random lengths; + * bit-exact (a NaN result must be a NaN); the three mutants must be caught. + * --max-log2 K stops the power-of-two ladder at 2^K (default 28). + * Last line: "C3 scan : PASS ( checks)" or "... FAIL ( of )". */ +#include "omega_gpu_scan.h" +#include "omega_gpu_session.h" +#include "omega_numeric_reduce.h" +#include "bw_warp_sim.h" + +#include +#include +#include +#include + +static int g_checks, g_failed; +static void check(int ok, const char *what) { + g_checks++; + if (!ok) { g_failed++; printf("FAIL: %s\n", what); } +} + +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } +static float u2f(uint32_t u) { float f; memcpy(&f, &u, 4); return f; } +static int is_nan(uint32_t u) { return (u & 0x7f800000u) == 0x7f800000u && (u & 0x007fffffu); } +static int same(float a, float b) { uint32_t x = f2u(a), y = f2u(b); return x == y || (is_nan(x) && is_nan(y)); } + +static uint64_t g_rng = 0x9e3779b97f4a7c15ull; +static uint32_t rnd(void) { g_rng = g_rng * 6364136223846793005ull + 1442695040888963407ull; return (uint32_t)(g_rng >> 33); } + +/* inputs: 0 small integers (every sum exact), 1 mixed magnitudes and signed zeros, 2 mixed plus NaN and infinities */ +static void fill(float *x, size_t n, int kind, uint64_t seed) { + g_rng = seed * 0x2545f4914f6cdd1dull + 1; + for (size_t i = 0; i < n; i++) { + if (kind == 0) { x[i] = (float)((int)(rnd() % 2001u) - 1000); continue; } + float m = (float)((rnd() & 0x7fffffu) | 1u) * (rnd() & 1 ? -1.0f : 1.0f); + int e = (int)(rnd() % 41u) - 20 - 23; + x[i] = m * u2f((uint32_t)(127 + e) << 23); + if (i % 97u == 5u) x[i] = 0.0f; + if (i % 131u == 7u) x[i] = -0.0f; + if (kind == 2 && i % 53u == 11u) x[i] = u2f(0x7fc00000u | (rnd() & 0xffffu)); + if (kind == 2 && i == n / 3) x[i] = u2f(0x7f800000u); + if (kind == 2 && i == n / 2 && n > 4) x[i] = u2f(0xff800000u); + } +} + +static const char *op_name(OmegaGpuRedOp op) { return op == OMEGA_GPU_RED_SUM ? "sum" : op == OMEGA_GPU_RED_MAX ? "max" : "min"; } + +/* ------------------------------------------------------------------ host only */ + +static int fake_fail(void *ctx, OmegaScanKind k, const uint32_t a[OMEGA_GPU_SCAN_ARGS_WORDS], uint32_t g) { + (void)ctx; (void)k; (void)a; (void)g; return -1; +} + +static void host_only(void) { + char w[200]; + float x[4] = { 1, 2, 3, 4 }, o; + check(omega_gpu_reduce(OMEGA_GPU_RED_SUM, x, 0, &o, NULL) == OMEGA_GPU_SCAN_BAD_ARGS, "reduce n = 0 refused"); + check(omega_gpu_reduce(OMEGA_GPU_RED_SUM, NULL, 4, &o, NULL) == OMEGA_GPU_SCAN_BAD_ARGS, "reduce NULL input refused"); + check(omega_gpu_reduce((OmegaGpuRedOp)7, x, 4, &o, NULL) == OMEGA_GPU_SCAN_BAD_ARGS, "reduce unknown op refused"); + check(omega_gpu_reduce(OMEGA_GPU_RED_SUM, x, OMEGA_GPU_SCAN_MAX_N + 1, &o, NULL) == OMEGA_GPU_SCAN_TOO_LARGE, "reduce 2^28 + 1 refused"); + check(omega_gpu_prefix_sum(x, 0, x, NULL) == OMEGA_GPU_SCAN_BAD_ARGS, "prefix n = 0 refused"); + check(omega_gpu_prefix_sum(x, OMEGA_GPU_SCAN_MAX_N + 1, x, NULL) == OMEGA_GPU_SCAN_TOO_LARGE, "prefix 2^28 + 1 refused"); + uint64_t r; + check(omega_gpu_scan_drive_reduce(OMEGA_GPU_RED_SUM, 100, 0, 0, &r, fake_fail, NULL, NULL) == OMEGA_GPU_SCAN_CHIP_FAIL, "a failed launch is reported (reduce)"); + check(omega_gpu_scan_drive_prefix(100, 0, 0, 0, fake_fail, NULL, NULL) == OMEGA_GPU_SCAN_CHIP_FAIL, "a failed launch is reported (prefix)"); + + for (int mut = 0; mut <= 3; mut++) + for (int k = 0; k < OMEGA_SCAN_K_COUNT; k++) { + BlackwellIRProgram *p = calloc(1, sizeof *p); + OmegaScanSpec s = { (OmegaScanKind)k, mut }; + int rc = omega_gpu_scan_codegen(&s, p); + size_t bytes = rc == 0 ? omega_bw_program_code_bytes(p) : 0; + uint8_t *code = bytes ? malloc(bytes) : NULL; + OmegaBlackwellKernel kk; memset(&kk, 0, sizeof kk); + int enc = code ? omega_blackwell_kernel_encode_into(p, code, bytes, &kk) : -1; + snprintf(w, sizeof w, "kernel %d mutant %d through codegen and encoder (%zu bytes, %u gprs)", k, mut, bytes, (unsigned)kk.gpr_count); + check(rc == 0 && enc == 0 && kk.code_size == bytes, w); + if (mut == 0 && rc == 0) printf("kernel %d: %u insns, %zu bytes, %u gprs\n", k, (unsigned)p->count, bytes, (unsigned)kk.gpr_count); + free(code); free(p); + } + + /* the references against exact sums: integers in [-1000, 1000], n <= 16384, every partial sum below 2^24 */ + static float a[16384], y[16384]; + const size_t ns[] = { 1, 2, 31, 32, 33, 63, 64, 65, 1023, 1024, 1025, 1057, 16384 }; + for (size_t t = 0; t < sizeof ns / sizeof ns[0]; t++) { + size_t n = ns[t]; + fill(a, n, 0, n); + double s = 0, mx = -1e9, mn = 1e9; + for (size_t i = 0; i < n; i++) { s += a[i]; if (a[i] > mx) mx = a[i]; if (a[i] < mn) mn = a[i]; } + float rs, rmx, rmn; + int ok = omega_gpu_reduce_reference(OMEGA_GPU_RED_SUM, a, n, &rs) == 0 && omega_gpu_reduce_reference(OMEGA_GPU_RED_MAX, a, n, &rmx) == 0 && + omega_gpu_reduce_reference(OMEGA_GPU_RED_MIN, a, n, &rmn) == 0; + snprintf(w, sizeof w, "reference sum/max/min exact at n = %zu", n); + check(ok && rs == (float)s && rmx == (float)mx && rmn == (float)mn, w); + ok = omega_gpu_prefix_sum_reference(a, n, y) == 0; + double run = 0; size_t bad = 0; + for (size_t i = 0; i < n; i++) { run += a[i]; bad += y[i] != (float)run; } + snprintf(w, sizeof w, "reference prefix sum exact at n = %zu (%zu wrong)", n, bad); + check(ok && bad == 0, w); + } + + /* the reduction reference is the E1 order: equal bit for bit to omega_reduce_reference on any input */ + static float b[300000]; + const size_t ms[] = { 1, 2, 17, 32, 33, 100, 1000, 1024, 1025, 4097, 32768, 32769, 299999 }; + for (int kind = 1; kind <= 2; kind++) + for (size_t t = 0; t < sizeof ms / sizeof ms[0]; t++) + for (int op = 0; op < 3; op++) { + size_t n = ms[t]; + fill(b, n, kind, n * 3 + (size_t)op); + float mine, e1; + int ok = omega_gpu_reduce_reference((OmegaGpuRedOp)op, b, n, &mine) == 0 && omega_reduce_reference((OmegaReduceOp)op, b, n, &e1) == 0; + snprintf(w, sizeof w, "reference %s equals the E1 reference, inputs %d, n = %zu (%08x vs %08x)", op_name(op), kind, n, f2u(mine), f2u(e1)); + check(ok && same(mine, e1), w); + } + + /* the frozen order is a real order: summing left to right gives a different answer on mixed inputs */ + fill(b, 4097, 1, 99); + float tree, seq = -0.0f; + for (size_t i = 0; i < 4097; i++) seq += b[i]; + omega_gpu_reduce_reference(OMEGA_GPU_RED_SUM, b, 4097, &tree); + check(f2u(tree) != f2u(seq), "the frozen tree differs from a left-to-right sum (the order is pinned, not luck)"); +} + +/* ------------------------------------------------------------------ the simulator */ + +typedef struct { + BlackwellIRProgram *prog[OMEGA_SCAN_K_COUNT]; + int order; + WsRange ranges[3]; + char err[260]; +} SimCtx; + +static int sim_launch(void *ctx, OmegaScanKind k, const uint32_t a[OMEGA_GPU_SCAN_ARGS_WORDS], uint32_t grid_x) { + SimCtx *c = ctx; + static WsSim s; + memset(&s, 0, sizeof s); + s.p = c->prog[k]; s.threads = OMEGA_GPU_SCAN_THREADS; s.order = c->order; + for (unsigned i = 0; i < OMEGA_GPU_SCAN_ARGS_WORDS; i++) s.cbank[0x380 / 4 + i] = a[i]; + memcpy(s.ranges, c->ranges, sizeof c->ranges); s.nranges = 3; + if (ws_run(&s, grid_x, 1) != 0) { snprintf(c->err, sizeof c->err, "kernel %d: %s at pc %d", (int)k, s.msg, s.err_pc); return -1; } + return 0; +} + +static int sim_build(SimCtx *c, int mutant) { + for (int k = 0; k < OMEGA_SCAN_K_COUNT; k++) { + c->prog[k] = calloc(1, sizeof *c->prog[k]); + OmegaScanSpec s = { (OmegaScanKind)k, mutant }; + if (!c->prog[k] || omega_gpu_scan_codegen(&s, c->prog[k]) != 0) return -1; + } + return 0; +} +static void sim_free(SimCtx *c) { for (int k = 0; k < OMEGA_SCAN_K_COUNT; k++) free(c->prog[k]); } + +#define POISON 0x7fa00badu +static void poison(float *p, size_t n) { for (size_t i = 0; i < n; i++) memcpy(&p[i], &(uint32_t){ POISON }, 4); } + +/* one reduction through the simulator; 0 when it ran, the result in *out */ +static int sim_reduce(SimCtx *c, OmegaGpuRedOp op, const float *x, size_t n, float *out) { + size_t sw = omega_gpu_scan_reduce_scratch_words(n); + float *scr = malloc(sw * 4u); + poison(scr, sw); + c->ranges[0] = (WsRange){ (uintptr_t)x, (uintptr_t)(x + n) }; + c->ranges[1] = (WsRange){ (uintptr_t)scr, (uintptr_t)(scr + sw) }; + c->ranges[2] = c->ranges[1]; + uint64_t res = 0; + int rc = omega_gpu_scan_drive_reduce(op, n, (uintptr_t)x, (uintptr_t)scr, &res, sim_launch, c, NULL); + if (rc == 0) { memcpy(out, (const void *)(uintptr_t)res, 4); if (f2u(*out) == POISON) rc = -9; } + free(scr); + return rc; +} + +static int sim_prefix(SimCtx *c, const float *x, size_t n, float *y) { + size_t sw = omega_gpu_scan_prefix_scratch_words(n); + float *scr = malloc(sw * 4u); + poison(scr, sw); poison(y, n); + c->ranges[0] = (WsRange){ (uintptr_t)x, (uintptr_t)(x + n) }; + c->ranges[1] = (WsRange){ (uintptr_t)y, (uintptr_t)(y + n) }; + c->ranges[2] = (WsRange){ (uintptr_t)scr, (uintptr_t)(scr + sw) }; + int rc = omega_gpu_scan_drive_prefix(n, (uintptr_t)x, (uintptr_t)y, (uintptr_t)scr, sim_launch, c, NULL); + for (size_t i = 0; rc == 0 && i < n; i++) if (f2u(y[i]) == POISON) rc = -9; + free(scr); + return rc; +} + +static size_t diff(const float *a, const float *b, size_t n, size_t *first) { + size_t d = 0; + for (size_t i = 0; i < n; i++) if (!same(a[i], b[i])) { if (!d) *first = i; d++; } + return d; +} + +static void sim_tier(void) { + char w[600]; + static size_t ns[200]; size_t nn = 0; + for (size_t n = 1; n <= 70; n++) ns[nn++] = n; + const size_t more[] = { 255, 256, 257, 1000, 1023, 1024, 1025, 2047, 2048, 2049, 32767, 32768, 32769, 40000, 270000 }; + for (size_t i = 0; i < sizeof more / sizeof more[0]; i++) ns[nn++] = more[i]; + float *x = malloc(270000 * 4u), *y = malloc(270000 * 4u), *ref = malloc(270000 * 4u); + SimCtx c; memset(&c, 0, sizeof c); + check(sim_build(&c, 0) == 0, "simulator: all kernels built"); + for (int order = 0; order <= 1; order++) { + c.order = order; + size_t bad_red = 0, bad_pre = 0, runs = 0; + for (size_t t = 0; t < nn; t++) { + size_t n = ns[t]; + if (order == 1 && n > 40000) continue; + int kind = (int)(t % 3); + fill(x, n, kind, n * 7 + (size_t)order); + for (int op = 0; op < 3; op++) { + float got, want; + omega_gpu_reduce_reference((OmegaGpuRedOp)op, x, n, &want); + int rc = sim_reduce(&c, (OmegaGpuRedOp)op, x, n, &got); + runs++; + if (rc != 0 || !same(got, want)) { + bad_red++; + snprintf(w, sizeof w, "sim order %d %s n = %zu: rc %d got %08x want %08x %s", order, op_name(op), n, rc, f2u(got), f2u(want), c.err); + check(0, w); + } + } + omega_gpu_prefix_sum_reference(x, n, ref); + int rc = sim_prefix(&c, x, n, y); + size_t first = 0, d = rc == 0 ? diff(y, ref, n, &first) : n; + runs++; + if (rc != 0 || d) { + bad_pre++; + snprintf(w, sizeof w, "sim order %d prefix n = %zu: rc %d, %zu wrong, first at %zu (%08x vs %08x) %s", order, n, rc, d, first, + f2u(y[first]), f2u(ref[first]), c.err); + check(0, w); + } + } + snprintf(w, sizeof w, "simulator order %d: %zu runs, reductions wrong %zu, prefix sums wrong %zu", order, runs, bad_red, bad_pre); + check(bad_red == 0 && bad_pre == 0, w); + printf("%s\n", w); + } + sim_free(&c); + + /* red checks: each mutant must change a result the real kernels get right */ + for (int mut = 1; mut <= 3; mut++) { + SimCtx m; memset(&m, 0, sizeof m); + int built = sim_build(&m, mut) == 0, caught = 0; + const size_t n = 1000; + fill(x, n, 1, 4242); + if (built && mut == 1) { + for (int op = 0; op < 3 && !caught; op++) { + float got = 0, want; omega_gpu_reduce_reference((OmegaGpuRedOp)op, x, n, &want); + caught = sim_reduce(&m, (OmegaGpuRedOp)op, x, n, &got) != 0 || !same(got, want); + } + } else if (built) { + omega_gpu_prefix_sum_reference(x, n, ref); + size_t first; + caught = sim_prefix(&m, x, n, y) != 0 || diff(y, ref, n, &first) != 0; + } + snprintf(w, sizeof w, "simulator red check: mutant %d is caught", mut); + check(built && caught, w); + sim_free(&m); + } + free(x); free(y); free(ref); +} + +/* ------------------------------------------------------------------ the chip */ + +static size_t mem_available(void) { + FILE *f = fopen("/proc/meminfo", "r"); + char line[256]; size_t kb = 0; + while (f && fgets(line, sizeof line, f)) if (sscanf(line, "MemAvailable: %zu kB", &kb) == 1) break; + if (f) fclose(f); + return kb * 1024u; +} + +static float *g_x, *g_y, *g_ref; + +static void chip_one(size_t n, int kind, int verbose) { + char w[600]; + fill(g_x, n, kind, n * 11 + (size_t)kind); + for (int op = 0; op < 3; op++) { + float got = 0, want; OmegaGpuScanInfo info; + omega_gpu_reduce_reference((OmegaGpuRedOp)op, g_x, n, &want); + int rc = omega_gpu_reduce((OmegaGpuRedOp)op, g_x, n, &got, &info); + int ok = rc == 0 && same(got, want); + if (!ok || verbose) { + snprintf(w, sizeof w, "chip %s n = %zu inputs %d: %s, got %08x want %08x, %u launches, kernels %.3f ms%s%s", op_name(op), n, kind, + omega_gpu_scan_rc_name(rc), f2u(got), f2u(want), info.launches, info.elapsed_ns / 1e6, rc ? ": " : "", + rc ? omega_gpu_session_last_error() : ""); + if (ok) { g_checks++; printf("ok: %s\n", w); } else check(0, w); + } else g_checks++; + } + OmegaGpuScanInfo info; + omega_gpu_prefix_sum_reference(g_x, n, g_ref); + int rc = omega_gpu_prefix_sum(g_x, n, g_y, &info); + size_t first = 0, d = rc == 0 ? diff(g_y, g_ref, n, &first) : n; + if (rc || d || verbose) { + snprintf(w, sizeof w, "chip prefix n = %zu inputs %d: %s, %zu wrong (first at %zu), %u launches, kernels %.3f ms%s%s", n, kind, + omega_gpu_scan_rc_name(rc), d, first, info.launches, info.elapsed_ns / 1e6, rc ? ": " : "", rc ? omega_gpu_session_last_error() : ""); + if (!rc && !d) { g_checks++; printf("ok: %s\n", w); } else check(0, w); + } else g_checks++; +} + +static void chip_tier(unsigned max_log2) { + char w[200]; + size_t cap = (size_t)1 << max_log2; + if (cap > OMEGA_GPU_SCAN_MAX_N) cap = OMEGA_GPU_SCAN_MAX_N; + /* host: input, output, reference (3 x 4n); device buffer: in + out + scratch (~ 8n); plus 8 GiB for everyone else */ + size_t need = cap * 4u * 5u + ((size_t)8 << 30), have = mem_available(); + if (have < need) { + printf("NOT_RUN: MemAvailable %zu MiB < %zu MiB needed for n up to %zu\n", have >> 20, need >> 20, cap); + exit(2); + } + g_x = malloc(cap * 4u); g_y = malloc(cap * 4u); g_ref = malloc(cap * 4u); + if (!g_x || !g_y || !g_ref) { printf("NOT_RUN: host allocation\n"); exit(2); } + + int before = g_failed; + for (size_t n = 1; n <= 2048; n++) chip_one(n, (int)(n % 3), 0); + printf("every n from 1 to 2048 (sum, max, min, prefix): %s\n", g_failed == before ? "PASS" : "FAIL"); + before = g_failed; + for (unsigned k = 11; k <= max_log2 && k <= 28; k++) { + size_t p = (size_t)1 << k; + chip_one(p - 1, 1, 0); + chip_one(p, 2, k >= 20); + if (p + 1 <= cap) chip_one(p + 1, 1, 0); + } + printf("2^k - 1, 2^k, 2^k + 1 up to 2^%u: %s\n", max_log2, g_failed == before ? "PASS" : "FAIL"); + before = g_failed; + g_rng = 0xc3c3c3c3ull; + for (int i = 0; i < 64; i++) { + size_t n = 2049 + (((size_t)rnd() << 16) ^ rnd()) % (cap > (1u << 24) ? (1u << 24) : cap - 2048); + chip_one(n, i % 3, 0); + } + printf("64 random lengths: %s\n", g_failed == before ? "PASS" : "FAIL"); + + for (int mut = 1; mut <= 3; mut++) { + omega_gpu_scan_test_set_mutant(mut); + const size_t n = 1000; + fill(g_x, n, 1, 4242); + int caught = 0; + if (mut == 1) { + for (int op = 0; op < 3 && !caught; op++) { + float got = 0, want; omega_gpu_reduce_reference((OmegaGpuRedOp)op, g_x, n, &want); + caught = omega_gpu_reduce((OmegaGpuRedOp)op, g_x, n, &got, NULL) != 0 || !same(got, want); + } + } else { + size_t first; + omega_gpu_prefix_sum_reference(g_x, n, g_ref); + caught = omega_gpu_prefix_sum(g_x, n, g_y, NULL) != 0 || diff(g_y, g_ref, n, &first) != 0; + } + snprintf(w, sizeof w, "chip red check: mutant %d is caught", mut); + check(caught, w); + } + omega_gpu_scan_test_set_mutant(0); + fill(g_x, 1000, 1, 4242); + omega_gpu_prefix_sum_reference(g_x, 1000, g_ref); + size_t first; + check(omega_gpu_prefix_sum(g_x, 1000, g_y, NULL) == 0 && diff(g_y, g_ref, 1000, &first) == 0, "the real kernels are right again after the red checks"); + omega_gpu_session_close(); /* the kernels go with the device (close hook); the next call builds them on a new one */ + check(omega_gpu_prefix_sum(g_x, 1000, g_y, NULL) == 0 && diff(g_y, g_ref, 1000, &first) == 0, "after the device closed and opened again the kernels are rebuilt and right"); + free(g_x); free(g_y); free(g_ref); +} + +int main(int argc, char **argv) { + const char *tier = "chip"; + unsigned max_log2 = 28; + for (int i = 1; i < argc; i++) { + if (!strcmp(argv[i], "--host-only")) tier = "host"; + else if (!strcmp(argv[i], "--sim")) tier = "sim"; + else if (!strcmp(argv[i], "--max-log2") && i + 1 < argc) max_log2 = (unsigned)atoi(argv[++i]); + else { fprintf(stderr, "usage: %s [--host-only | --sim] [--max-log2 K]\n", argv[0]); return 2; } + } + if (max_log2 < 11 || max_log2 > 28) { fprintf(stderr, "--max-log2 must be 11..28\n"); return 2; } + if (!strcmp(tier, "host")) host_only(); + else if (!strcmp(tier, "sim")) { host_only(); sim_tier(); } + else chip_tier(max_log2); + if (g_failed) printf("C3 scan %s: FAIL (%d of %d)\n", tier, g_failed, g_checks); + else printf("C3 scan %s: PASS (%d checks)\n", tier, g_checks); + return g_failed ? 1 : 0; +} diff --git a/tests/gpu_streams_test.c b/tests/gpu_streams_test.c new file mode 100644 index 000000000..621049e14 --- /dev/null +++ b/tests/gpu_streams_test.c @@ -0,0 +1,392 @@ +/* gpu_streams_test.c -- row C4 of docs/OMEGA.md: two independent queues and an event between them, on the GB10. + * + * --host-only codegen + encode of the two kernels (and their mutants), refusals of omega_gpu_cmdlist_wait_for + * --sim the kernels through the warp simulator (tests/bw_warp_sim.h): exact values, mutants caught + * (no flag) the chip, under the GB10 lock, AIEN_OMEGA_GPU_CHANNELS = 2 (L136 extra queue): + * overlap list A and list B each hold the same half-chip spin kernel (24 CTAs x 128 threads); solo A, solo B + * (session queue, one submit each) and the pair (A on queue 0, B on queue 1, omega_gpu_cmdlist_submit_pair), + * medians of REPS: PASS when pair < 0.75 (solo A + solo B), for the default barrier or first_barrier_none + * (both are printed). Red check: both spins in ONE list on one queue (WAIT_FOR_IDLE between them) must + * NOT come in under 0.75, or the measurement cannot tell overlap from order. + * event A: a long spin writes X. B: omega_gpu_cmdlist_wait_for(A, 0), then copy Y = X + 1. X and Y start as a + * signalling-NaN poison; every Y must be the spin's value + 1. Negative control: the same pair without the + * wait must leave at least one Y wrong (B ran while A spun), else the event is "not demonstrated" (FAIL). + * Every kernel comes from Omega's IR (omega_bw_em.h), encoded by our own sm_121 encoder; no CUDA. */ +#include "omega_gpu_cmdlist.h" +#include "omega_gpu_session.h" +#include "bw_warp_sim.h" /* brings math.h, whose fadd() would hide the emitter's */ +#define fadd em_fadd +#define ffma em_ffma +#include "omega_bw_em.h" + +#include +#include +#include + +#define THREADS 128u +#define CTAS 24u /* half of the GB10's 48 SMs */ +#define NEL (THREADS * CTAS) +#define UNROLL 4u /* FFMAs per loop turn: x = x * 1 + 1 */ +#define MAX_ITERS ((1u << 22) - 1024u) /* UNROLL * iters + tag stays below 2^24: every value exact in f32 */ +#define POISON 0x7fa00badu /* a signalling NaN no FFMA / FADD writes */ +#define REPS 5 + +/* argument words (constant bank 0x380) */ +#define A_OUT 0x380 /* spin: out u64 | copy: in u64 */ +#define A_ITERS 0x388 /* spin: loop turns | copy: out u64 (0x388..0x38f) */ +#define A_TAG 0x38c /* spin: f32 added at the end */ +#define A_N 0x390 /* elements */ +#define ARGS 5u + +static int g_failed, g_checks; +static void check(int ok, const char *what) { + g_checks++; + if (!ok) g_failed++; + printf("%s: %s\n", ok ? "ok" : "FAIL", what); +} +static uint32_t f2u(float f) { uint32_t u; memcpy(&u, &f, 4); return u; } + +/* ------------------------------------------------------------------ the kernels */ + +typedef struct { int bssy, bra; } Region; +static Region skip_if_p0(Em *e) { Region r; r.bssy = bssy_fwd(e); r.bra = bra_if_p0_fwd(e); return r; } +static void region_end(Em *e, Region r) { int at = here(e); bsync(e); patch_bra(e, r.bra, at); patch_bra(e, r.bssy, at + 1); } + +/* spin: out[gid] = UNROLL * iters + tag (mutant 1: one FFMA short per turn) */ +static int gen_spin(Em *e, int mutant) { + int udesc = UV64(e), pout = V64(e), a64 = V64(e), iters = V(e), tag = V(e), n = V(e), tid = V(e), cta = V(e), gid = V(e); + int i = V(e), one = V(e), fone = V(e), x = V(e); + if (e->err) return -1; + ldcu64(e, udesc, 0x358); + ldc64(e, pout, A_OUT); ldc32(e, iters, A_ITERS); ldc32(e, tag, A_TAG); ldc32(e, n, A_N); + s2r(e, tid, BW_SR_TID_X); s2r(e, cta, BW_SR_CTAID_X); + imadi(e, gid, cta, 0, THREADS, tid); + movi(e, one, 1); movi(e, fone, 0x3f800000u); movi(e, x, 0); movi(e, i, 0); + const int top = here(e); + loop_begin(e); + isetp_ge_u32(e, i, iters); + const int done = bra_if_p0_fwd(e); + for (unsigned u = 0; u < UNROLL - (mutant == 1 ? 1u : 0u); u++) ffma(e, x, x, fone, 0, fone); + iadd(e, i, i, one); + bra(e, top); + loop_end(e); + patch_bra(e, done, here(e)); + fadd(e, x, x, tag); + isetp_ge_u32(e, gid, n); + { Region r = skip_if_p0(e); imadw(e, a64, gid, 4u, pout); stg(e, a64, 0, x, udesc); region_end(e, r); } + tail(e); + return e->err; +} + +/* copy: out[gid] = in[gid] + 1 (mutant 1: + 2) */ +static int gen_copy(Em *e, int mutant) { + int udesc = UV64(e), pin = V64(e), pout = V64(e), a64 = V64(e), n = V(e), tid = V(e), cta = V(e), gid = V(e), add = V(e), v = V(e); + if (e->err) return -1; + ldcu64(e, udesc, 0x358); + ldc64(e, pin, A_OUT); ldc64(e, pout, A_ITERS); ldc32(e, n, A_N); + s2r(e, tid, BW_SR_TID_X); s2r(e, cta, BW_SR_CTAID_X); + imadi(e, gid, cta, 0, THREADS, tid); + movi(e, add, mutant == 1 ? 0x40000000u : 0x3f800000u); + isetp_ge_u32(e, gid, n); + { + Region r = skip_if_p0(e); + imadw(e, a64, gid, 4u, pin); ldg32(e, v, a64, udesc, 1); + fadd(e, v, v, add); + imadw(e, a64, gid, 4u, pout); stg(e, a64, 0, v, udesc); + region_end(e, r); + } + tail(e); + return e->err; +} + +static int codegen(int copy, int mutant, BlackwellIRProgram *prog) { + omega_bw_ir_init(prog); + Em em; memset(&em, 0, sizeof em); em.p = prog; + if ((copy ? gen_copy(&em, mutant) : gen_spin(&em, mutant)) != 0 || em.err || em.depth != 0) return -1; + return omega_bw_regalloc_solve(prog); +} + +static void spin_args(uint32_t a[ARGS], uint64_t out, uint32_t iters, float tag) { + memset(a, 0, ARGS * 4u); + a[0] = (uint32_t)out; a[1] = (uint32_t)(out >> 32); a[2] = iters; a[3] = f2u(tag); a[4] = NEL; +} +static void copy_args(uint32_t a[ARGS], uint64_t in, uint64_t out) { + memset(a, 0, ARGS * 4u); + a[0] = (uint32_t)in; a[1] = (uint32_t)(in >> 32); a[2] = (uint32_t)out; a[3] = (uint32_t)(out >> 32); a[4] = NEL; +} +static float spin_value(uint32_t iters, float tag) { return (float)(UNROLL * iters) + tag; } + +/* ------------------------------------------------------------------ host + simulator */ + +static void host_only(void) { + char w[200]; + for (int copy = 0; copy < 2; copy++) + for (int mut = 0; mut < 2; mut++) { + BlackwellIRProgram *p = calloc(1, sizeof *p); + size_t need = 0; + int ok = p && codegen(copy, mut, p) == 0 && (need = omega_bw_program_code_bytes(p)) > 0; + void *code = ok ? calloc(1, need) : NULL; + OmegaBlackwellKernel kk; + ok = ok && code && omega_blackwell_kernel_encode_into(p, code, need, &kk) == 0 && kk.code_size == need; + snprintf(w, sizeof w, "codegen + encode: %s kernel%s (%zu bytes, %u registers)", copy ? "copy" : "spin", mut ? " mutant 1" : "", + need, ok ? kk.gpr_count : 0u); + check(ok, w); + free(code); free(p); + } + check(omega_gpu_cmdlist_wait_for(NULL, NULL, 0) == -1, "wait_for refuses missing lists"); +} + +static int sim_run(BlackwellIRProgram *p, const uint32_t a[ARGS], WsRange *rg, int nrg, int order) { + static WsSim s; + memset(&s, 0, sizeof s); + s.p = p; s.threads = THREADS; s.order = order; + for (unsigned i = 0; i < ARGS; i++) s.cbank[0x380 / 4 + i] = a[i]; + memcpy(s.ranges, rg, (size_t)nrg * sizeof *rg); s.nranges = nrg; + if (ws_run(&s, CTAS, 1) != 0) { printf(" simulator: %s at pc %d\n", s.msg, s.err_pc); return -1; } + return 0; +} + +static void sim_tier(void) { + char w[200]; + static float X[NEL], Y[NEL]; + WsRange rg[2] = { { (uintptr_t)X, (uintptr_t)(X + NEL) }, { (uintptr_t)Y, (uintptr_t)(Y + NEL) } }; + for (int mut = 0; mut < 2; mut++) { + BlackwellIRProgram *ps = calloc(1, sizeof *ps), *pc = calloc(1, sizeof *pc); + if (!ps || !pc || codegen(0, mut, ps) || codegen(1, mut, pc)) { check(0, "simulator: kernels built"); free(ps); free(pc); return; } + for (int order = 0; order < 2; order++) { + const uint32_t iters = 37u + (uint32_t)order; + const float tag = 5.0f + (float)order; + uint32_t a[ARGS]; + for (unsigned i = 0; i < NEL; i++) { uint32_t pz = POISON; memcpy(&X[i], &pz, 4); memcpy(&Y[i], &pz, 4); } + spin_args(a, (uintptr_t)X, iters, tag); + int rc = sim_run(ps, a, rg, 2, order); + copy_args(a, (uintptr_t)X, (uintptr_t)Y); + rc = rc || sim_run(pc, a, rg, 2, order); + unsigned wx = 0, wy = 0; + for (unsigned i = 0; i < NEL; i++) { + wx += f2u(X[i]) != f2u(spin_value(iters, tag)); + wy += f2u(Y[i]) != f2u(spin_value(iters, tag) + 1.0f); + } + if (mut == 0) snprintf(w, sizeof w, "simulator order %d: spin + copy exact on all %u elements (%u, %u wrong)", order, NEL, wx, wy); + else snprintf(w, sizeof w, "simulator red check order %d: mutant 1 caught (%u, %u wrong)", order, wx, wy); + check(mut == 0 ? rc == 0 && wx == 0 && wy == 0 : rc != 0 || (wx > 0 && wy > 0), w); + } + free(ps); free(pc); + } +} + +/* ------------------------------------------------------------------ the chip */ + +typedef struct { BlackwellIRProgram prog; OmegaGpuMem code; uint32_t gpr; } Kern; +static Kern K_spin, K_copy; + +static int kern_upload(Kern *k, int copy) { + if (codegen(copy, 0, &k->prog) != 0) return -1; + size_t need = omega_bw_program_code_bytes(&k->prog); + if (need == 0 || omega_gpu_session_alloc_code(need, &k->code) != 0) return -1; + OmegaBlackwellKernel kk; + if (omega_blackwell_kernel_encode_into(&k->prog, k->code.cpu, need, &kk) != 0 || omega_gpu_session_sync_to_gpu(&k->code) != 0) return -1; + k->gpr = omega_bw_gpr_declared(kk.gpr_count); + if (k->gpr < 64u) k->gpr = 64u; + return 0; +} + +static OmegaGpuMem g_buf; /* [OA | OB | X | Y], NEL floats each */ +static float *buf_at(int i) { return (float *)g_buf.cpu + (size_t)i * NEL; } +static uint64_t va_at(int i) { return g_buf.va + (uint64_t)i * NEL * 4u; } +enum { B_OA = 0, B_OB = 1, B_X = 2, B_Y = 3 }; + +static void poison_all(void) { + uint32_t *u = g_buf.cpu; + for (size_t i = 0; i < 4u * NEL; i++) u[i] = POISON; + (void)omega_gpu_session_sync_to_gpu(&g_buf); +} +static unsigned wrong(int b, float want) { + (void)omega_gpu_session_sync_to_cpu(&g_buf); + const float *p = buf_at(b); + unsigned n = 0; + for (unsigned i = 0; i < NEL; i++) n += f2u(p[i]) != f2u(want); + return n; +} + +static uint32_t g_args[8][ARGS]; /* the launches' argument words stay alive until submit */ +static int add_spin(OmegaGpuCmdList *cl, int slot, int out_buf, uint32_t iters, float tag) { + spin_args(g_args[slot], va_at(out_buf), iters, tag); + OmegaGpuLaunch L = { .code_va = K_spin.code.va, .gpr_count = K_spin.gpr, .threads_x = THREADS, .threads_y = 1, .grid_x = CTAS, .grid_y = 1, + .num_elements = NEL, .args = g_args[slot], .n_args = ARGS }; + return omega_gpu_cmdlist_add(cl, &L) < 0 ? -1 : 0; +} +static int add_copy(OmegaGpuCmdList *cl, int slot) { + copy_args(g_args[slot], va_at(B_X), va_at(B_Y)); + OmegaGpuLaunch L = { .code_va = K_copy.code.va, .gpr_count = K_copy.gpr, .threads_x = THREADS, .threads_y = 1, .grid_x = CTAS, .grid_y = 1, + .num_elements = NEL, .args = g_args[slot], .n_args = ARGS }; + return omega_gpu_cmdlist_add(cl, &L) < 0 ? -1 : 0; +} + +static int cmp_u64(const void *a, const void *b) { uint64_t x = *(const uint64_t *)a, y = *(const uint64_t *)b; return x < y ? -1 : x > y; } +static uint64_t median(uint64_t *v, int n) { qsort(v, (size_t)n, sizeof *v, cmp_u64); return v[n / 2]; } + +static OmegaGpuCmdList *g_a, *g_b, *g_ab; + +/* one solo submit of a one-spin list; values checked; elapsed ns or 0 on failure */ +static uint64_t solo(OmegaGpuCmdList *cl, int out_buf, uint32_t iters, float tag, const OmegaGpuCmdListOpts *o) { + OmegaGpuCmdListStats st; + poison_all(); + if (omega_gpu_cmdlist_submit(cl, o, &st) != 0) { printf(" solo submit: %s\n", omega_gpu_session_last_error()); return 0; } + unsigned bad = wrong(out_buf, spin_value(iters, tag)); + if (bad) { printf(" solo: %u wrong values\n", bad); return 0; } + return st.elapsed_ns; +} + +static int overlap(uint32_t iters, int fbn, double *ratio_out) { + char w[300]; + OmegaGpuCmdListOpts o; memset(&o, 0, sizeof o); + o.first_barrier_none = fbn; + uint64_t sa[REPS], sb[REPS], sp[REPS]; + for (int r = 0; r < REPS; r++) { + sa[r] = solo(g_a, B_OA, iters, 1.0f, &o); + sb[r] = solo(g_b, B_OB, iters, 2.0f, &o); + OmegaGpuCmdListStats s1, s2; + poison_all(); + int rc = omega_gpu_cmdlist_submit_pair(g_a, g_b, &o, &s1, &s2); + unsigned bad = rc ? NEL : wrong(B_OA, spin_value(iters, 1.0f)) + wrong(B_OB, spin_value(iters, 2.0f)); + if (rc || bad) { printf(" pair: %s, %u wrong values\n", rc ? omega_gpu_session_last_error() : "ok", bad); sp[r] = 0; } + else sp[r] = s1.elapsed_ns; + if (!sa[r] || !sb[r] || !sp[r]) { check(0, "overlap: every submit ran and every value is right"); return -1; } + } + const uint64_t ma = median(sa, REPS), mb = median(sb, REPS), mp = median(sp, REPS); + const double ratio = (double)mp / (double)(ma + mb); + *ratio_out = ratio; + snprintf(w, sizeof w, "overlap (%s): solo A %.3f ms, solo B %.3f ms, pair %.3f ms (medians of %d, values right): pair / (A + B) = %.3f", + fbn ? "first_barrier_none" : "default barrier", ma / 1e6, mb / 1e6, mp / 1e6, REPS, ratio); + printf("%s\n", w); + return 0; +} + +static int serial_control(uint32_t iters, double *ratio_out) { + OmegaGpuCmdListOpts o; memset(&o, 0, sizeof o); + uint64_t sa[REPS], sab[REPS]; + for (int r = 0; r < REPS; r++) { + sa[r] = solo(g_a, B_OA, iters, 1.0f, &o); + OmegaGpuCmdListStats st; + poison_all(); + int rc = omega_gpu_cmdlist_submit(g_ab, &o, &st); + unsigned bad = rc ? NEL : wrong(B_OA, spin_value(iters, 1.0f)) + wrong(B_OB, spin_value(iters, 2.0f)); + if (!sa[r] || rc || bad) { check(0, "serial control: every submit ran and every value is right"); return -1; } + sab[r] = st.elapsed_ns; + } + const uint64_t ma = median(sa, REPS), mab = median(sab, REPS); + *ratio_out = (double)mab / (double)(2 * ma); + printf("serial control: solo %.3f ms, both in one list on one queue %.3f ms: ratio %.3f\n", ma / 1e6, mab / 1e6, *ratio_out); + return 0; +} + +/* list A: spin into X; list B: [wait for A launch 0] copy X -> Y. Returns the count of wrong Y, or -1 on a submit failure. */ +static long event_run(uint32_t iters, int with_wait, int fbn) { + OmegaGpuCmdList *a = NULL, *b = NULL; + long res = -1; + if (omega_gpu_cmdlist_create(1, &a) || omega_gpu_cmdlist_create(1, &b)) { printf(" event: create: %s\n", omega_gpu_session_last_error()); goto out; } + omega_gpu_session_lock(); + if (add_spin(a, 4, B_X, iters, 3.0f) || (with_wait && omega_gpu_cmdlist_wait_for(b, a, 0)) || add_copy(b, 5)) { + omega_gpu_session_unlock(); printf(" event: add: %s\n", omega_gpu_session_last_error()); goto out; + } + OmegaGpuCmdListOpts o; memset(&o, 0, sizeof o); + o.first_barrier_none = fbn; + OmegaGpuCmdListStats s1, s2; + if (with_wait) { /* the refusals: a list with a wait never runs alone, nor waits on a second list */ + OmegaGpuCmdList *c = NULL; + int alone = omega_gpu_cmdlist_submit(b, &o, &s2) == -1 && strstr(omega_gpu_session_last_error(), "only in a pair") != NULL; + omega_gpu_session_unlock(); + int third = omega_gpu_cmdlist_create(1, &c) == 0; + omega_gpu_session_lock(); + third = third && add_spin(c, 6, B_OA, 1, 0.0f) == 0 && omega_gpu_cmdlist_wait_for(b, c, 0) == -1; + omega_gpu_session_unlock(); + omega_gpu_cmdlist_free(c); + omega_gpu_session_lock(); + check(alone && third, "event refusals: a list with a wait is refused alone, and cannot wait on a second list"); + } + poison_all(); + int rc = omega_gpu_cmdlist_submit_pair(a, b, &o, &s1, &s2); + if (rc) printf(" event: pair: %s\n", omega_gpu_session_last_error()); + else { + unsigned bx = wrong(B_X, spin_value(iters, 3.0f)), by = wrong(B_Y, spin_value(iters, 3.0f) + 1.0f); + printf(" event (%s, %s): X %u wrong, Y %u wrong of %u, pair %.3f ms\n", with_wait ? "wait" : "NO wait", fbn ? "first_barrier_none" : "default barrier", + bx, by, NEL, s1.elapsed_ns / 1e6); + res = bx ? -1 : (long)by; + } + omega_gpu_session_unlock(); +out: + omega_gpu_cmdlist_free(a); omega_gpu_cmdlist_free(b); + return res; +} + +static void chip_tier(int values_only) { + char w[300]; + setenv("AIEN_OMEGA_GPU_CHANNELS", "2", 1); + if (omega_gpu_cmdlist_create(1, &g_a) || omega_gpu_cmdlist_create(1, &g_b) || omega_gpu_cmdlist_create(2, &g_ab)) { + printf("NOT_RUN: command lists: %s\n", omega_gpu_session_last_error()); exit(2); + } + omega_gpu_session_lock(); + if (!omega_gpu_session_open() || omega_gpu_session_alloc(4u * NEL * 4u, &g_buf) || kern_upload(&K_spin, 0) || kern_upload(&K_copy, 1)) { + printf("NOT_RUN: device, buffer or kernels: %s\n", omega_gpu_session_last_error()); omega_gpu_session_unlock(); exit(2); + } + OmegaGpuQueueHandle q1; + check(omega_gpu_session_extra_queue(1, &q1) == 0, "the second queue opens (AIEN_OMEGA_GPU_CHANNELS = 2)"); + + /* calibrate: one spin of about 60 ms */ + uint32_t iters = 1u << 16; + OmegaGpuCmdListOpts o0; memset(&o0, 0, sizeof o0); + omega_gpu_cmdlist_reset(g_a); + if (add_spin(g_a, 0, B_OA, iters, 1.0f)) { check(0, "calibration list"); omega_gpu_session_unlock(); return; } + uint64_t t = solo(g_a, B_OA, iters, 1.0f, &o0); + if (!t) { check(0, "calibration spin ran with right values"); omega_gpu_session_unlock(); return; } + double scaled = (double)iters * 60e6 / (double)t; + iters = scaled > MAX_ITERS ? MAX_ITERS : (uint32_t)scaled; + printf("calibration: 2^16 turns took %.3f ms; using %u turns\n", t / 1e6, iters); + + omega_gpu_cmdlist_reset(g_a); omega_gpu_cmdlist_reset(g_b); omega_gpu_cmdlist_reset(g_ab); + if (add_spin(g_a, 0, B_OA, iters, 1.0f) || add_spin(g_b, 1, B_OB, iters, 2.0f) || + add_spin(g_ab, 2, B_OA, iters, 1.0f) || add_spin(g_ab, 3, B_OB, iters, 2.0f)) { check(0, "timing lists"); omega_gpu_session_unlock(); return; } + + if (!values_only) { + double r_def = 9, r_fbn = 9, r_ser = 0; + int ok_def = overlap(iters, 0, &r_def) == 0, ok_fbn = overlap(iters, 1, &r_fbn) == 0, ok_ser = serial_control(iters, &r_ser) == 0; + snprintf(w, sizeof w, "C4 overlap: two queues of the same work finish in under 0.75 of the solo sum (default %.3f, first_barrier_none %.3f)", r_def, r_fbn); + check((ok_def && r_def < 0.75) || (ok_fbn && r_fbn < 0.75), w); + snprintf(w, sizeof w, "red check: the same two spins in order on one queue do NOT pass the 0.75 bar (ratio %.3f)", r_ser); + check(ok_ser && r_ser >= 0.75, w); + } else puts("C4 overlap: NOT_RUN (values-only; timing needs an exclusive window)"); + omega_gpu_session_unlock(); + + /* the event: positive, then the control without the wait (both barrier modes) */ + long pos = event_run(iters, 1, 0); + snprintf(w, sizeof w, "C4 event: B's copy waited for A's spin on the other queue; every Y right (%ld wrong)", pos); + check(pos == 0, w); + long neg0 = event_run(iters, 0, 0), neg1 = neg0 > 0 ? neg0 : event_run(iters, 0, 1); + snprintf(w, sizeof w, "negative control: without the wait B ran early and Y is wrong (default barrier %ld wrong, first_barrier_none %ld wrong)", neg0, neg1); + check(neg0 > 0 || neg1 > 0, w); + long again = event_run(iters, 1, 1); + snprintf(w, sizeof w, "C4 event with first_barrier_none: every Y right (%ld wrong)", again); + check(again == 0, w); + + omega_gpu_session_lock(); + omega_gpu_session_free(&g_buf); omega_gpu_session_free(&K_spin.code); omega_gpu_session_free(&K_copy.code); + omega_gpu_session_unlock(); + omega_gpu_cmdlist_free(g_a); omega_gpu_cmdlist_free(g_b); omega_gpu_cmdlist_free(g_ab); +} + +int main(int argc, char **argv) { + const char *tier = "chip"; + for (int i = 1; i < argc; i++) { + if (!strcmp(argv[i], "--host-only")) tier = "host"; + else if (!strcmp(argv[i], "--values-only")) tier = "values"; + else if (!strcmp(argv[i], "--sim")) tier = "sim"; + else { fprintf(stderr, "usage: %s [--host-only | --sim | --values-only]\n", argv[0]); return 2; } + } + if (!strcmp(tier, "host")) host_only(); + else if (!strcmp(tier, "sim")) { host_only(); sim_tier(); } + else chip_tier(!strcmp(tier, "values")); + if (g_failed) printf("C4 streams %s: FAIL (%d of %d)\n", tier, g_failed, g_checks); + else printf("C4 streams %s: PASS (%d checks)\n", tier, g_checks); + return g_failed ? 1 : 0; +} diff --git a/tests/test_omega_gpu_session_platform.c b/tests/test_omega_gpu_session_platform.c index b3f16e88c..b02defe6f 100644 --- a/tests/test_omega_gpu_session_platform.c +++ b/tests/test_omega_gpu_session_platform.c @@ -66,6 +66,7 @@ static struct { unsigned cached_requests; /* buffers asked GPU-cached (must stay 0) */ unsigned allocs_unlocked; /* allocations without the session lock (must stay 0) */ int fail_open; + int fail_close; /* device_close closes, then reports a driver teardown fault (C5) */ } fk; static uint64_t f_now_ns(void *c) { (void)c; fk.ns += 1000u; return fk.ns; } @@ -92,7 +93,7 @@ static int f_dev_close(void *c, OmegaGpuDeviceHandle d) { (void)omega_gpu_handles_close(&fk.t, d.index, d.generation, OMEGA_GPU_HANDLE_DEVICE); memset(&fk.dev, 0, sizeof fk.dev); memset(&fk.q, 0, sizeof fk.q); fk.dev_closes++; - return 0; + return fk.fail_close ? OMEGA_GPU_PLAT_REFUSED_DEVICE : 0; } static OmegaGpuPlatformCaps g_caps = { @@ -382,6 +383,78 @@ static void c_timeout_latch_rules(void) { check_latched(0); } +/* C5: recover lifts the latch in the same process. Refused when nothing is latched; after a timeout it closes the device + * once (the platform releases every buffer, parked ones included; the session itself frees nothing), clears the parked + * list, and the next open is a new device on which a launch completes. */ +static void c_timeout_recover(void) { + fk_reset(); + EXPECT(install() == 0); + EXPECT(omega_gpu_session_recover() == -1 && strstr(omega_gpu_session_last_error(), "not latched") != NULL); + omega_gpu_session_lock(); + OmegaGpuSession *s = omega_gpu_session_open(); + EXPECT(s != NULL); + const OmegaGpuDeviceHandle old_dev = s ? s->dev : (OmegaGpuDeviceHandle){0}; + OmegaGpuLaunch L = launch_desc(5); + EXPECT(omega_gpu_session_launch(&L, NULL, NULL) == 0); /* a working launch first */ + omega_gpu_session_unlock(); + EXPECT(omega_gpu_session_recover() == -1 && fk.dev_closes == 0); /* open but not latched: refused, device kept */ + omega_gpu_session_lock(); + OmegaGpuMem user; + EXPECT(omega_gpu_session_alloc(4096, &user) == 0); + fk.mode = MODE_HANG; + EXPECT(omega_gpu_session_launch(&L, NULL, NULL) == -1 && omega_gpu_session_is_blocked()); + omega_gpu_session_free(&user); /* parked */ + omega_gpu_session_unlock(); + EXPECT(omega_gpu_session_recoveries() == 0); + EXPECT(omega_gpu_session_recover() == 0); + EXPECT(!omega_gpu_session_is_blocked() && omega_gpu_session_recoveries() == 1); + EXPECT(fk.dev_closes == 1 && fk.frees == 0 && fk.t.nlive == 0); /* the platform close released all of it */ + OmegaGpuParkStats ps; omega_gpu_session_parked(&ps); + EXPECT(ps.buffers == 0 && ps.bytes == 0); + EXPECT(omega_gpu_session_recover() == -1); /* nothing latched any more */ + fk.mode = MODE_COMPLETE; + omega_gpu_session_lock(); + s = omega_gpu_session_open(); + EXPECT(s != NULL && s->dev.generation != old_dev.generation && fk.dev_opens == 2); + EXPECT(omega_gpu_session_launch(&L, NULL, NULL) == 0); + omega_gpu_session_unlock(); + omega_gpu_session_close(); + EXPECT(fk.dev_closes == 2 && fk.t.nlive == 0); +} + +/* C5: a close that reports a driver teardown fault leaves the process latched for good (the old grid may still run). */ +static void c_recover_teardown_fault(void) { + fk_reset(); + EXPECT(install() == 0); + omega_gpu_session_lock(); + EXPECT(omega_gpu_session_open() != NULL); + fk.mode = MODE_HANG; + OmegaGpuLaunch L = launch_desc(5); + EXPECT(omega_gpu_session_launch(&L, NULL, NULL) == -1 && omega_gpu_session_is_blocked()); + omega_gpu_session_unlock(); + fk.fail_close = 1; + EXPECT(omega_gpu_session_recover() == -1 && strstr(omega_gpu_session_last_error(), "teardown fault") != NULL); + EXPECT(omega_gpu_session_is_blocked() && omega_gpu_session_recoveries() == 0 && fk.dev_closes == 1); + fk.fail_close = 0; + EXPECT(omega_gpu_session_recover() == -1 && omega_gpu_session_is_blocked()); /* the handle is gone: no second try */ + omega_gpu_session_lock(); + EXPECT(omega_gpu_session_open() == NULL); + omega_gpu_session_unlock(); +} + +/* C5: a module latch (the command lists after a timeout whose check launch completed) is recoverable too */ +static void c_recover_module_latch(void) { + fk_reset(); + EXPECT(install() == 0); + omega_gpu_session_lock(); + EXPECT(omega_gpu_session_open() != NULL); + omega_gpu_session_unlock(); + omega_gpu_session_note_module_latch(); + EXPECT(!omega_gpu_session_is_blocked()); /* other APIs keep working */ + EXPECT(omega_gpu_session_recover() == 0 && fk.dev_closes == 1 && omega_gpu_session_recoveries() == 1); + EXPECT(omega_gpu_session_recover() == -1); /* lifted */ +} + static void c_stale_after_reopen(void) { fk_reset(); EXPECT(install() == 0); @@ -509,6 +582,9 @@ static const Case CASES[] = { {"CANCEL_AFTER_SUBMIT_LATCHES_AND_PARKS", c_cancel_after_submit}, {"TIMEOUT_PARKS_NEVER_RELEASES", c_timeout_parks}, {"TIMEOUT_LATCH_REFUSES_CLOSE_REOPEN_INSTALL", c_timeout_latch_rules}, + {"TIMEOUT_RECOVER_SAME_PROCESS", c_timeout_recover}, + {"RECOVER_TEARDOWN_FAULT_STAYS_LATCHED", c_recover_teardown_fault}, + {"RECOVER_MODULE_LATCH", c_recover_module_latch}, {"STALE_HANDLE_REFUSED_AFTER_CLOSE_REOPEN", c_stale_after_reopen}, {"SERVING_RESERVATION_REFUSES_WITHOUT_ALLOC", c_reservation_refusal}, {"MATMUL_CODE_BUFFER_ENCODED_IN_PLACE", c_matmul_code_buffer}, diff --git a/tools/.crumb b/tools/.crumb index c7c3b01dd..b7ed2e98e 100644 --- a/tools/.crumb +++ b/tools/.crumb @@ -26,50 +26,50 @@ "children": [ { "digest": "9f82d33852a7cdcedb210ee1525f42c4d963c18940cae1df7f69d1210de71985", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "argus", "purpose": "Directory tools/argus. Purpose not yet described by a human." }, { "digest": "4b3a030252eaa6f1c693105a76092e8a5fccfd340658a982f5bb1130ce9aba33", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "brownian", "purpose": "Directory tools/brownian. Purpose not yet described by a human." }, { "digest": "1d21e7e466d0fd96abf30d11b2d7e45718bc42ada1784bc8bc2a749f541b3ab7", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "dual_experiment", "purpose": "Runner for the DUAL applicability experiment: runs the pre-registered campaign and writes result" }, { "digest": "2a1bd46e9c9502d02144e3f76c784863001323c564a22bdae2905c0660a5f7a4", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "estimation", "purpose": "Directory tools/estimation. Purpose not yet described by a human." }, { "digest": "b3241d8cdc884bbfcca5cf9d5f4ed0aac8f7e2df43d9ab47ca2789432dd49a75", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "reservoir", "purpose": "Gate 2 tooling for the reservoir (omega#440): in-house zlib inflate and MAT v5 reader, the archi" }, { "digest": "f1a1a7f24d51a52f01171d01edbd59e8b15c53b15eeffb97e3c0ffc553e639af", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "turing_verify_indep", "purpose": "Directory tools/turing_verify_indep. Purpose not yet described by a human." } ], "children_root": "sha256:8d3d3b952374b3b72e667521f07bf028c4c02bcefff772ad1a71cfff3e5266f2", - "compiled_at": "2026-10-24T17:45:20Z", + "compiled_at": "2026-10-24T23:52:12Z", "compiler": "crumb-compile/1", - "digest": "sha256:e519c1f13dc5134c5b6ab17f669745776880cb6e78c6efd2f716283760466c66", + "digest": "sha256:dbe7b08900fc053b23c993a25a3fe744e3874be2f23ee24f20e183797db53c27", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "files": 287, - "generated_at_commit": "e10bee30af65673a7d8f077ff2d6ef1bfcf0f46e", - "source_tree": "sha256:0a246536d1a23d218d0db2bdab696067d83d76514d0de462b79a21876fcb3b69" + "files": 294, + "generated_at_commit": "51f4d9c65856420ea00459e8054b5869951b081e", + "source_tree": "sha256:a37bc026768d74bbf861e4cf26811f03a22efe9b5fb0ae28d646aedd9e5c9477" }, "owner_lane": "", "provenance": { diff --git a/tools/divsqrt_nvdisasm_check.sh b/tools/divsqrt_nvdisasm_check.sh index 9d99d1578..c454fb02f 100755 --- a/tools/divsqrt_nvdisasm_check.sh +++ b/tools/divsqrt_nvdisasm_check.sh @@ -16,23 +16,23 @@ # divsqrt_nvdisasm_check.sh -- offline provenance for the E1 row 7 kernels. # Builds the CPU-only test, dumps every whole-program kernel (DIV, SQRT and the transcendentals) Omega's own encoder -# emits, disassembles every word with nvdisasm -b SM121 and compares the text -# line by line with omega_ds_listing (what the encoder says each word is). -# Any difference fails. nvdisasm is an offline decoder only; nothing it prints +# emits, disassembles every word with Omega's own sm121dis (C6; it agrees with nvdisasm on every library +# kernel) and compares the text line by line with omega_ds_listing (what the encoder says each word is). +# Any difference fails. The disassembler is an offline decoder only; nothing it prints # is copied into the kernel. No device is opened. # Run: make test-divsqrt-nvdisasm (or run this file). Writes only to a temp dir. set -u HERE=$(cd -P "$(dirname "$0")/.." && pwd) -NVDISASM=${NVDISASM:-/usr/local/cuda/bin/nvdisasm} +DISASM=${DISASM:-$HERE/build/sm121dis} # Omega's own sm_121 disassembler (C6, src/omega_sm121_disasm.c) TMP=$(mktemp -d) trap 'rm -rf "$TMP"' EXIT -[ -x "$NVDISASM" ] || { echo "VERDICT NOT_RUN: $NVDISASM missing"; exit 2; } +make -s -C "$HERE" build/sm121dis >/dev/null || { echo "VERDICT FAIL: build sm121dis"; exit 1; } make -s -C "$HERE" build/test_omega_divsqrt_gb10_cpu >/dev/null || { echo "VERDICT FAIL: build"; exit 1; } "$HERE/build/test_omega_divsqrt_gb10_cpu" --dump "$TMP" || { echo "VERDICT FAIL: dump"; exit 1; } -echo "nvdisasm: $("$NVDISASM" --version | grep -o "release [0-9.]*, V[0-9.]*")" +echo "disassembler: $("$DISASM" --version)" rc=0 for op in div sqrt exp2 log2 sigmoid tanh sin cos erf gelu rsqrt; do - "$NVDISASM" -b SM121 "$TMP/$op.bin" > "$TMP/$op.raw" 2> "$TMP/$op.err" || { echo "[FAIL] $op: nvdisasm error"; cat "$TMP/$op.err"; rc=1; continue; } + "$DISASM" -b SM121 "$TMP/$op.bin" > "$TMP/$op.raw" 2> "$TMP/$op.err" || { echo "[FAIL] $op: disassembler error"; cat "$TMP/$op.err"; rc=1; continue; } # keep "/*addr*/ text ;" lines, normalise spacing, drop the hex comments sed -n 's|^[[:space:]]*/\*\([0-9a-f]\{4\}\)\*/[[:space:]]*\(.*;\).*$|\1 \2|p' "$TMP/$op.raw" \ | sed 's/[[:space:]]\{1,\}/ /g; s/ ;$/ ;/' > "$TMP/$op.got" @@ -40,7 +40,7 @@ for op in div sqrt exp2 log2 sigmoid tanh sin cos erf gelu rsqrt; do if diff -u "$TMP/$op.lst" "$TMP/$op.got" > "$TMP/$op.diff"; then echo "[PASS] $op: all $words words decode to the encoder's text" else - echo "[FAIL] $op: nvdisasm text differs from the encoder's listing"; head -40 "$TMP/$op.diff"; rc=1 + echo "[FAIL] $op: disassembler text differs from the encoder's listing"; head -40 "$TMP/$op.diff"; rc=1 fi done [ $rc = 0 ] && echo "VERDICT PASS" || echo "VERDICT FAIL" diff --git a/tools/l136_channel_gates.sh b/tools/l136_channel_gates.sh new file mode 100755 index 000000000..3d465cfa5 --- /dev/null +++ b/tools/l136_channel_gates.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# L136 correctness gates on the chip (GB10 lock only). $1 = evidence dir (absolute). +E=$1; N=$HOME/workspace/omega-gpu-channels/build; B=$HOME/workspace/omega-gpu-channels-base/build +cd $HOME/workspace/omega-gpu-channels || exit 1 +{ date -u; git rev-parse HEAD; uname -r; grep MemAvailable /proc/meminfo; cat /proc/loadavg; } > $E/device.txt +run() { name=$1; shift; "$@" > $E/$name.log 2>&1; echo "$name rc=$? $(tail -1 $E/$name.log)" >> $E/summary.txt; } +unset AIEN_OMEGA_GPU_CHANNELS +# G1: one channel, the new build against the base build (0010f7d3 on physics 6d7cf0d4), same arguments +run g1-base-q38-l4 $B/gpu_q38_graph_test --layers 4 --mask 0x8 --reps 3 +run g1-new-q38-l4 $N/gpu_q38_graph_test --layers 4 --mask 0x8 --reps 3 +run g1-base-q38-l2 $B/gpu_q38_graph_test --reps 3 +run g1-new-q38-l2 $N/gpu_q38_graph_test --reps 3 +run g1-base-cmdlist $B/gpu_cmdlist_test +run g1-new-cmdlist $N/gpu_cmdlist_test +run g1-base-dgraph $B/gpu_decode_graph_test +run g1-new-dgraph $N/gpu_decode_graph_test +# refusal: no AIEN_OMEGA_GPU_CHANNELS, the pair is refused by name, the serial path decodes +run refusal $N/gpu_q38_channels_test --layers 4 --steps 2 --block 0 --refusal +# G2 small: two channels, 4 layers, 16 steps + 16-step blocks +AIEN_OMEGA_GPU_CHANNELS=2 run g2-l4 $N/gpu_q38_channels_test --layers 4 --steps 16 --block 16 +# two-channel device: the one-channel tests still pass on queue 0 +AIEN_OMEGA_GPU_CHANNELS=2 run g1-ch2-q38-l4 $N/gpu_q38_graph_test --layers 4 --mask 0x8 --reps 3 +echo done >> $E/summary.txt diff --git a/tools/ldst_nvdisasm_check.sh b/tools/ldst_nvdisasm_check.sh index f2743f5f0..0da44d26b 100755 --- a/tools/ldst_nvdisasm_check.sh +++ b/tools/ldst_nvdisasm_check.sh @@ -16,28 +16,28 @@ # ldst_nvdisasm_check.sh -- offline provenance for the E1 row 2 load/store kernels. # Builds the CPU-only test, dumps every table kernel (src/omega_numeric_ldst_gb10.c: load/store -# kinds, offsets, strides), disassembles each with nvdisasm -b SM121 and compares the text line by +# kinds, offsets, strides), disassembles each with Omega's own sm121dis and compares the text line by # line with omega_ldst_listing (what the encoder says each word is). Any difference fails. -# nvdisasm is an offline decoder only; nothing it prints is copied into a kernel. No device. +# The disassembler is an offline decoder only; nothing it prints is copied into a kernel. No device. # Run: make test-ldst-nvdisasm Writes only to a temp dir. set -u HERE=$(cd -P "$(dirname "$0")/.." && pwd) -NVDISASM=${NVDISASM:-/usr/local/cuda/bin/nvdisasm} +DISASM=${DISASM:-$HERE/build/sm121dis} # Omega's own sm_121 disassembler (C6, src/omega_sm121_disasm.c) TMP=$(mktemp -d) trap 'rm -rf "$TMP"' EXIT -[ -x "$NVDISASM" ] || { echo "VERDICT NOT_RUN: $NVDISASM missing"; exit 2; } +make -s -C "$HERE" build/sm121dis >/dev/null || { echo "VERDICT FAIL: build sm121dis"; exit 1; } make -s -C "$HERE" build/test_omega_ldst_gb10_cpu >/dev/null || { echo "VERDICT FAIL: build"; exit 1; } "$HERE/build/test_omega_ldst_gb10_cpu" --dump "$TMP" >/dev/null || { echo "VERDICT FAIL: dump"; exit 1; } -echo "nvdisasm: $("$NVDISASM" --version | grep -o "release [0-9.]*, V[0-9.]*")" +echo "disassembler: $("$DISASM" --version)" rc=0; n=0; bad=0 for bin in "$TMP"/k*.bin; do k=$(basename "$bin" .bin) - "$NVDISASM" -b SM121 "$bin" > "$TMP/$k.raw" 2> "$TMP/$k.err" || { echo "[FAIL] $k: nvdisasm error"; cat "$TMP/$k.err"; rc=1; bad=$((bad+1)); continue; } + "$DISASM" -b SM121 "$bin" > "$TMP/$k.raw" 2> "$TMP/$k.err" || { echo "[FAIL] $k: disassembler error"; cat "$TMP/$k.err"; rc=1; bad=$((bad+1)); continue; } sed -n 's|^[[:space:]]*/\*\([0-9a-f]\{4\}\)\*/[[:space:]]*\(.*;\).*$|\1 \2|p' "$TMP/$k.raw" \ | sed 's/[[:space:]]\{1,\}/ /g; s/ ;$/ ;/' > "$TMP/$k.got" n=$((n+1)) if ! diff -u "$TMP/$k.lst" "$TMP/$k.got" > "$TMP/$k.diff"; then - echo "[FAIL] $k: nvdisasm text differs from the encoder's listing"; head -20 "$TMP/$k.diff"; rc=1; bad=$((bad+1)) + echo "[FAIL] $k: disassembler text differs from the encoder's listing"; head -20 "$TMP/$k.diff"; rc=1; bad=$((bad+1)) fi done echo "[$([ $bad = 0 ] && echo PASS || echo FAIL)] ldst: $((n-bad)) of $n kernels decode, every word, to the encoder's text" diff --git a/tools/run_divsqrt_gate.sh b/tools/run_divsqrt_gate.sh index 0e72e0053..29bf6a72c 100755 --- a/tools/run_divsqrt_gate.sh +++ b/tools/run_divsqrt_gate.sh @@ -21,7 +21,7 @@ # Order: refuse a dirty omega tree or a physics checkout that is dirty or not # at the physics.lock pin; refuse while ~/workspace/.spark-quiet exists, an # est_load process runs or /tmp/aien-gb10.lock is held; run the host tier and -# the offline nvdisasm provenance check; raise the quiet flag; take the GPU +# the offline provenance check (Omega's own disassembler); raise the quiet flag; take the GPU # lock; build the chip binary (no libm math, no CUDA symbols); run it to the # end (never killed, never timed out); write a content-addressed receipt # /.json (mode 0444, created exclusively, outside the @@ -29,7 +29,7 @@ # # Run it detached so a closed terminal cannot cut the chip run: # setsid nohup tools/run_divsqrt_gate.sh > /tmp/divsqrt-gate.out 2>&1 < /dev/null & -# Shell + coreutils + git + jq + gcc + nvdisasm. No Python. +# Shell + coreutils + git + jq + gcc. No Python. set -u HERE=$(cd -P "$(dirname "$0")/.." && pwd) PHYSICS=${PHYSICS_DIR:-$HOME/workspace/hive-worktrees/physics-gate14-e95e3ed} @@ -60,7 +60,7 @@ make -s -C "$HERE" build/test_omega_divsqrt_gb10_cpu > "$RUN/host-build.log" 2>& tail -1 "$RUN/host.log" echo "== nvdisasm provenance" "$HERE/tools/divsqrt_nvdisasm_check.sh" > "$RUN/nvdisasm.log" 2>&1; NVD_RC=$? -grep -E '^\[|^VERDICT|^nvdisasm' "$RUN/nvdisasm.log" +grep -E '^\[|^VERDICT|^disassembler' "$RUN/nvdisasm.log" [ "$HOST_RC" = 0 ] && [ "$NVD_RC" = 0 ] || refuse "host tier ($HOST_RC) or nvdisasm check ($NVD_RC) failed; no chip run" KDIG=$("$HERE/build/test_omega_divsqrt_gb10_cpu" --digest) @@ -111,7 +111,7 @@ BODY=$(jq -n --arg gate "E1-DIVSQRT" --arg omega "$OMEGA_COMMIT" --arg phys "$PH --argjson oclean true --argjson pclean true --argjson oafter "$OMEGA_CLEAN_AFTER" --argjson pafter "$PHYS_CLEAN_AFTER" \ --argjson osame "$OMEGA_SAME_AFTER" --argjson psame "$PHYS_SAME_AFTER" \ --arg bin "$BIN_SHA" --arg log "$LOG_SHA" --arg kd "$KDIG" --arg start "$START" --arg end "$END" \ - --arg nvd "$(grep '^nvdisasm' "$RUN/nvdisasm.log")" --arg host "$(tail -1 "$RUN/host.log")" \ + --arg nvd "$(grep '^disassembler' "$RUN/nvdisasm.log")" --arg host "$(tail -1 "$RUN/host.log")" \ --argjson dchk "$(num DIV checked)" --argjson dedge "$(num DIV edge_and_corpus)" \ --argjson dbad "$(num DIV mismatches)" --argjson dmath "$(num DIV mismatches_vs_omega_math)" --argjson dfill "$(num DIV unwritten)" \ --arg dver "$(field DIV verdict)" --arg seed "$(field DIV seed)" \ diff --git a/tools/run_numeric_transc_gate.sh b/tools/run_numeric_transc_gate.sh index 5b8d2ca4e..87a013b1c 100755 --- a/tools/run_numeric_transc_gate.sh +++ b/tools/run_numeric_transc_gate.sh @@ -22,7 +22,7 @@ # Exit: 0 PASS; 1 anything else (FAIL, NOT_RUN, refused). Refusals print # "REFUSED: why" and "VERDICT NOT_RUN". Last stdout line: "VERDICT ". # -# Thin wrapper: refusals, host tier (host build, host run and the offline nvdisasm +# Thin wrapper: refusals, host tier (host build, host run and the offline disassembler # provenance check), quiet flag, GPU lock, chip build, never-killed run and the # content-addressed receipt /.json plus blobs/.log live # in tools/chip_run.sh, configured by tools/manifests/numeric_transc.chiprun. This @@ -32,7 +32,7 @@ # # Run it detached so a closed terminal cannot cut the chip run: # setsid nohup tools/run_numeric_transc_gate.sh > /tmp/transc-gate.out 2>&1 < /dev/null & -# Shell + coreutils + git + jq + gcc + nvdisasm. No Python. +# Shell + coreutils + git + jq + gcc. No Python. set -u HERE=$(cd -P "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) PHYSICS=${PHYSICS_DIR:-$HOME/workspace/hive-worktrees/physics-gate14-e95e3ed} diff --git a/tools/sm121dis/README.md b/tools/sm121dis/README.md new file mode 100644 index 000000000..c10aeb978 --- /dev/null +++ b/tools/sm121dis/README.md @@ -0,0 +1,38 @@ +# sm121dis: Omega's own GB10 disassembler + +A disassembler turns the GPU's machine code back into readable instructions. Omega used to borrow NVIDIA's +`nvdisasm` for that, in every check that reads a kernel back. `sm121dis` is our own (row C6 of `docs/OMEGA.md`): +the decoder is `src/omega_sm121_disasm.c`, this folder holds the command line and the comparison with NVIDIA's tool. + +## What it proves + +- Every kernel the library builds without the chip (each GPU test in its host-only and simulator modes, plus the + numeric kernels) is collected and compared word by word with `nvdisasm`, text and spacing included. All 331 + kernels (59,152 instruction words) agree. +- A copy of the decoder with one planted fault (`SM121DIS_MUTANT`, first source register off by one bit) must fail + that comparison, and does, on every kernel. +- A word the decoder does not know is printed as `?? ` and fails the check. It is never guessed. + +## How to run it + + make test-sm121dis # collect, compare with nvdisasm, then the red check + +`nvdisasm` is used only here, as the reference to compare against. Nothing it prints goes into a kernel. + +## Who uses it + +The checks that used to call `nvdisasm` now call ours: + +- the listing checks inside `tests/gpu_elementwise_test.c`, `gpu_fp8_api_test.c`, `gpu_reconv_test.c`, + `gpu_attention_test.c` and `bench/prime_race/tests/gb10_sieve_host_test.c` (linked in, `omega_sm121_listing`); +- `tools/divsqrt_nvdisasm_check.sh`, `tools/ldst_nvdisasm_check.sh` and `make test-numeric-reduce-nvdisasm` + (the `build/sm121dis` command). The script and target names are kept so older receipts still line up. + +## Files + +| File | Job | +|---|---| +| `sm121dis.c` | command line: a listing, `-b SM121` (called like nvdisasm), `--pairs` (for the comparison), `--version` | +| `corpus.sh` | runs every GPU test with `OMEGA_KERNEL_DUMP_DIR` set, so each kernel the library encodes is saved | +| `check.sh` | compares our text with nvdisasm's for every saved kernel; PASS only when every word agrees | +| `oracle_pairs.sh` | turns nvdisasm's listing into the same one-line-per-word form | diff --git a/tools/sm121dis/check.sh b/tools/sm121dis/check.sh new file mode 100755 index 000000000..da0f27c4a --- /dev/null +++ b/tools/sm121dis/check.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# check.sh : Omega's disassembler against nvdisasm (the oracle) on every /*.bin. +# Per kernel: PASS when every word's text is the same (spacing collapsed), else FAIL with the first differences. +# Exit 0 only when every kernel passes; 2 when nvdisasm or a kernel is missing. nvdisasm is a decoder used offline as +# the reference (docs/OMEGA.md C6); nothing it prints is used anywhere else. +set -u +DIS=$1; DIR=$2; WORK=$3 +HERE=$(cd "$(dirname "$0")" && pwd) +NVDISASM=${NVDISASM:-/usr/local/cuda/bin/nvdisasm} +[ -x "$NVDISASM" ] || { echo "VERDICT NOT_RUN: $NVDISASM missing"; exit 2; } +ls "$DIR"/*.bin >/dev/null 2>&1 || { echo "VERDICT NOT_RUN: no kernels in $DIR"; exit 2; } +mkdir -p "$WORK" +echo "oracle: $("$NVDISASM" --version | grep -o "release [0-9.]*, V[0-9.]*")" +k=0; bad=0; words=0 +for f in "$DIR"/*.bin; do + b=$(basename "$f" .bin) + "$NVDISASM" -b SM121 -hex "$f" > "$WORK/$b.nv" 2>&1 || { echo "[FAIL] $b: nvdisasm refused it"; head -3 "$WORK/$b.nv"; bad=$((bad + 1)); k=$((k + 1)); continue; } + sh "$HERE/oracle_pairs.sh" "$WORK/$b.nv" > "$WORK/$b.want" + "$DIS" --pairs "$f" | sed 's/[[:space:]]\{1,\}/ /g' > "$WORK/$b.got" + n=$(wc -l < "$WORK/$b.want"); words=$((words + n)) + if [ "$n" -gt 0 ] && cmp -s "$WORK/$b.want" "$WORK/$b.got"; then echo "[PASS] $b: $n words" + else echo "[FAIL] $b: $(diff "$WORK/$b.want" "$WORK/$b.got" | grep -c '^<') of $n words differ"; diff "$WORK/$b.want" "$WORK/$b.got" | head -6; bad=$((bad + 1)); fi + k=$((k + 1)) +done +echo "kernels: $k, words: $words, failed kernels: $bad" +[ $bad = 0 ] && { echo "VERDICT PASS"; exit 0; } +echo "VERDICT FAIL"; exit 1 diff --git a/tools/sm121dis/corpus.sh b/tools/sm121dis/corpus.sh new file mode 100755 index 000000000..4a3cf792a --- /dev/null +++ b/tools/sm121dis/corpus.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# corpus.sh : collects every kernel the library builds, without a GPU, into . +# Each GPU test runs in its host-only (and simulator) modes with OMEGA_KERNEL_DUMP_DIR set, so every program the +# library encodes lands as .bin (src/omega_blackwell_codegen.c omega_kernel_dump); the numeric kernels (DIV, SQRT, +# transcendentals, load/store, reductions) have their own encoder and their own --dump. Run from the repo root after +# `make OUT_DIR= sm121dis-corpus-bins` (mk/sm121dis.mk). Any failed producer invalidates the corpus. +set -u +OUT=$1; K=$2 +mkdir -p "$K"; K=$(cd "$K" && pwd) +export OMEGA_KERNEL_DUMP_DIR="$K" +run() { + printf '%s' "$*: " + "$@" > "$K/producer.log" 2>&1; rc=$? + echo "exit $rc, $(ls "$K"/*.bin 2>/dev/null | wc -l) kernels so far" + if [ "$rc" -ne 0 ]; then + cat "$K/producer.log" >&2 + echo "VERDICT FAIL: corpus producer failed: $*" >&2 + exit "$rc" + fi + rm -f "$K/producer.log" +} +for t in gpu_matmul_api_test gpu_elementwise_test gpu_reconv_test gpu_attention_test gpu_moe_window_test gpu_fp8_api_test \ + gpu_decode_attn_test gpu_router_test gpu_bf16_gemv_test gpu_tern_test gpu_fp8gemm_test gpu_tc_probe_test \ + gpu_tc_peak_test gpu_pf_mem_test gpu_qmma_probe_test gpu_cmdlist_test gpu_decode_graph_test; do + run "$OUT/$t" --host-only +done +run "$OUT/gpu_attention_test" --hd 128 --host-only +for t in gpu_tcgemm_test gpu_prefill_attn_test gpu_pfgemm_test gpu_qgemm_test gpu_pfhost_test gpu_cmdlist_test; do + run "$OUT/$t" --host-only; run "$OUT/$t" --sim +done +run "$OUT/gpu_gpr_boundary_test" +for t in gpu_scan_test gpu_gemm_test gpu_streams_test; do + run "$OUT/$t" --host-only; run "$OUT/$t" --sim +done +run "$OUT/gpu_isolation_test" --host-only +mkdir -p "$K/numeric" +run build/test_omega_divsqrt_gb10_cpu --dump "$K/numeric" +run build/test_omega_ldst_gb10_cpu --dump "$K/numeric" +for f in "$K"/numeric/*.bin; do [ -f "$f" ] && mv "$f" "$K/num_$(basename "$f")"; done; rmdir "$K/numeric" 2>/dev/null +echo "corpus: $(ls "$K"/*.bin | wc -l) kernels in $K" diff --git a/tools/sm121dis/corpus_selftest.sh b/tools/sm121dis/corpus_selftest.sh new file mode 100644 index 000000000..061c618cd --- /dev/null +++ b/tools/sm121dis/corpus_selftest.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# A missing or failing producer must invalidate the disassembler corpus. +set -eu +HERE=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) +WORK=$(mktemp -d "${TMPDIR:-/tmp}/sm121dis-corpus-control.XXXXXX") +trap 'rm -rf "$WORK"' EXIT HUP INT TERM +mkdir "$WORK/bin" "$WORK/missing" "$WORK/failing" +rc=0 +sh "$HERE/corpus.sh" "$WORK/bin" "$WORK/missing" > "$WORK/missing.log" 2>&1 || rc=$? +[ "$rc" -eq 127 ] && grep -q 'VERDICT FAIL: corpus producer failed:' "$WORK/missing.log" || { + echo 'FAIL: a missing producer did not invalidate the corpus'; exit 1; +} +printf '#!/bin/sh\necho deliberate-producer-failure\nexit 42\n' > "$WORK/bin/gpu_matmul_api_test" +chmod +x "$WORK/bin/gpu_matmul_api_test" +rc=0 +sh "$HERE/corpus.sh" "$WORK/bin" "$WORK/failing" > "$WORK/failing.log" 2>&1 || rc=$? +[ "$rc" -eq 42 ] && grep -q 'deliberate-producer-failure' "$WORK/failing.log" && + grep -q 'VERDICT FAIL: corpus producer failed:' "$WORK/failing.log" || { + echo 'FAIL: a failing producer did not invalidate the corpus'; exit 1; +} +echo 'PASS: missing and failing corpus producers are refused' diff --git a/tools/sm121dis/oracle_pairs.sh b/tools/sm121dis/oracle_pairs.sh new file mode 100755 index 000000000..ae532a962 --- /dev/null +++ b/tools/sm121dis/oracle_pairs.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# oracle_pairs.sh : one line per instruction, " ;", +# text with spacing collapsed but the space before the semicolon kept (nvdisasm leaves it out on padding words). +# The C6 oracle side (docs/OMEGA.md): nvdisasm decodes, nothing it prints enters a kernel. +awk ' +/^[[:space:]]*\/\*[0-9a-f]+\*\// { + line = $0 + addr = line; sub(/^[[:space:]]*\/\*/, "", addr); sub(/\*\/.*/, "", addr) + txt = line; sub(/^[[:space:]]*\/\*[0-9a-f]+\*\/[[:space:]]*/, "", txt); sub(/;.*$/, ";", txt) + lo = line; sub(/.*\/\* 0x/, "", lo); sub(/ \*\/.*/, "", lo) + gsub(/[[:space:]]+/, " ", txt) + pend = 1; next +} +pend && /\/\* 0x[0-9a-f]+ \*\// { hi = $0; sub(/.*\/\* 0x/, "", hi); sub(/ \*\/.*/, "", hi); print addr, lo, hi, txt; pend = 0 } +' "$1" diff --git a/tools/sm121dis/sm121dis.c b/tools/sm121dis/sm121dis.c new file mode 100644 index 000000000..b9d3e631c --- /dev/null +++ b/tools/sm121dis/sm121dis.c @@ -0,0 +1,57 @@ +/* sm121dis -- Omega's sm_121 disassembler on the command line (C6 of docs/OMEGA.md; the decoder is + * src/omega_sm121_disasm.c). + * + * sm121dis a listing in nvdisasm's layout: the address in a comment, then TEXT ; + * sm121dis -b SM121 the same, called the way the checks used to call nvdisasm + * sm121dis --pairs one line per word: ; (what check.sh compares) + * sm121dis --version names the tool, for the check logs + * + * Exit 0 when every word was a known form, 1 when some were not (printed "?? ..."), 2 for a usage or file error. */ +#include "omega_sm121_disasm.h" +#include +#include +#include + +static int usage(void) { + fprintf(stderr, "usage: sm121dis [--pairs | -b SM121] | --version\n"); + return 2; +} + +int main(int argc, char **argv) { + if (argc == 2 && strcmp(argv[1], "--version") == 0) { + printf("sm121dis: Omega's own sm_121 disassembler (src/omega_sm121_disasm.c)\n"); + return 0; + } + int pairs = argc == 3 && strcmp(argv[1], "--pairs") == 0; + int arch = argc == 4 && strcmp(argv[1], "-b") == 0; + if (arch && strcmp(argv[2], "SM121") != 0) { fprintf(stderr, "sm121dis: only -b SM121\n"); return 2; } + if (argc != 2 + pairs + 2 * arch) return usage(); + const char *path = argv[argc - 1]; + FILE *f = fopen(path, "rb"); + if (!f) { perror(path); return 2; } + size_t cap = 1 << 16, len = 0, n; + unsigned char *code = malloc(cap); + while (code && (n = fread(code + len, 1, cap - len, f)) > 0) { + len += n; + if (len == cap) { unsigned char *c = realloc(code, cap *= 2); if (!c) { free(code); code = NULL; } else code = c; } + } + fclose(f); + if (!code) { fprintf(stderr, "sm121dis: out of memory\n"); return 2; } + if (len % 16) { fprintf(stderr, "sm121dis: %s is not a whole number of 16-byte words\n", path); free(code); return 2; } + int unknown = 0; + size_t pad = omega_sm121_padding_start(code, len); + if (!pairs) unknown = omega_sm121_listing(code, len, stdout); + else for (size_t at = 0; at < len; at += 16) { + uint64_t lo = 0, hi = 0; + for (int i = 7; i >= 0; i--) { lo = lo << 8 | code[at + i]; hi = hi << 8 | code[at + 8 + i]; } + char t[256]; + int rc = omega_sm121_disasm(lo, hi, at, t, sizeof t); + if (rc == -2) { unknown = -1; break; } + if (rc) unknown++; + printf("%04llx %016llx %016llx %s%s;\n", (unsigned long long)at, (unsigned long long)lo, (unsigned long long)hi, t, + pad && at >= pad ? "" : " "); + } + free(code); + if (unknown < 0) { fprintf(stderr, "sm121dis: text too long\n"); return 2; } + return unknown ? 1 : 0; +} diff --git a/tools/sm121dis/zero_nvdisasm.sh b/tools/sm121dis/zero_nvdisasm.sh new file mode 100644 index 000000000..54fc36fa6 --- /dev/null +++ b/tools/sm121dis/zero_nvdisasm.sh @@ -0,0 +1,77 @@ +#!/bin/sh +# zero_nvdisasm.sh: the second half of bar C6 in docs/OMEGA.md, "nothing calls nvdisasm" (L386). +# +# Two checks, both must pass: +# 1. Static. No file under src/ tests/ tools/ mk/ or the Makefile names the CUDA toolkit directory or looks +# up an nvdisasm binary. The one declared exception is the oracle harness of the 331-kernel comparison, +# tools/sm121dis/check.sh and oracle_pairs.sh, which exists to compare Omega's decoder WITH nvdisasm. +# 2. Dynamic. Every listing check and provenance check runs (a) with a DECOY nvdisasm first on PATH that records +# each call and fails, (b) with every CUDA directory removed from PATH, and (c) under strace -f tracing execve. +# PASS only when every command exits 0, the decoy was never called, and no execve names a path containing +# "nvdisasm". A test that quietly fell back to the toolkit would fail one of the three. +# +# Usage: PHYSICS_DIR= sh tools/sm121dis/zero_nvdisasm.sh [build-dir] +# after: make PHYSICS_DIR=... build/sm121dis build/gpu_attention_test build/gpu_elementwise_test \ +# build/gpu_fp8_api_test build/gpu_reconv_test build/test_omega_reduce_cpu +# Last line: "ZERO-NVDISASM: PASS (...)" or "ZERO-NVDISASM: FAIL (...)". Exit 0 only on PASS. +set -u +OUT=${1:-build} +WORK=$(mktemp -d "${TMPDIR:-/tmp}/zero_nvdisasm.XXXXXX") +fail=0 + +command -v strace > /dev/null 2>&1 || { echo "ZERO-NVDISASM: NOT_RUN (strace missing)"; exit 2; } + +# 1. static +hits=$(grep -rnE '/usr/local/cuda|command -v nvdisasm|which nvdisasm|cuda/bin/nvdisasm' src tests tools mk Makefile 2>/dev/null \ + | grep -vE '^tools/sm121dis/(check|oracle_pairs|zero_nvdisasm)\.sh:') +if [ -n "$hits" ]; then + echo "static: FAIL, these lines name the CUDA toolkit or look up nvdisasm:"; echo "$hits" | head -20; fail=1 +else + echo "static: PASS, no file outside the oracle harness names the CUDA toolkit or looks up nvdisasm" +fi + +# 2. dynamic +mkdir -p "$WORK/decoy" +cat > "$WORK/decoy/nvdisasm" <<'EOF' +#!/bin/sh +echo "DECOY nvdisasm called with: $*" >> "$ZERO_NVDISASM_MARK" +exit 1 +EOF +chmod +x "$WORK/decoy/nvdisasm" +ZERO_NVDISASM_MARK=$WORK/decoy-calls; export ZERO_NVDISASM_MARK +cleanpath=$(printf '%s' "$PATH" | tr ':' '\n' | grep -vi 'cuda' | paste -sd: -) +n=0 +run() { + name=$1; shift + n=$((n + 1)) + env PATH="$WORK/decoy:$cleanpath" strace -f -qq -e trace=execve -o "$WORK/$name.strace" "$@" > "$WORK/$name.out" 2>&1 + rc=$? + ex=$(grep -cE 'execve\("[^"]*nvdisasm[^"]*"' "$WORK/$name.strace" 2>/dev/null) + printf '%s: exit %s, execve naming nvdisasm: %s' "$name" "$rc" "$ex" + if [ "$rc" -eq 0 ] && [ "$ex" -eq 0 ]; then echo " ok"; else echo " FAIL"; fail=1; fi +} +run attention_hd64 "$OUT/gpu_attention_test" --host-only +run attention_hd128 "$OUT/gpu_attention_test" --hd 128 --host-only +run elementwise "$OUT/gpu_elementwise_test" --host-only +run fp8 "$OUT/gpu_fp8_api_test" --host-only +run reconv "$OUT/gpu_reconv_test" --host-only +run divsqrt sh tools/divsqrt_nvdisasm_check.sh +run ldst sh tools/ldst_nvdisasm_check.sh +run reduce make ${PHYSICS_DIR:+PHYSICS_DIR=$PHYSICS_DIR} test-numeric-reduce-nvdisasm +if [ "${2:-}" = "--red" ]; then + # Red check of the gate itself: two planted shell-outs, one by name (the decoy must catch it) and one by the + # toolkit's absolute path (strace must catch it). The gate must then say FAIL; a gate that stays green here is broken. + run planted_by_name sh -c 'nvdisasm --version' + run planted_by_path sh -c '/usr/local/cuda/bin/nvdisasm --version > /dev/null 2>&1; exit 0' +fi + +calls=0 +[ -f "$ZERO_NVDISASM_MARK" ] && calls=$(wc -l < "$ZERO_NVDISASM_MARK") +if [ "$calls" -ne 0 ]; then echo "decoy: FAIL, called $calls time(s):"; head -5 "$ZERO_NVDISASM_MARK"; fail=1 +else echo "decoy: never called"; fi + +if [ "$fail" -eq 0 ]; then + echo "ZERO-NVDISASM: PASS ($n commands under strace, decoy calls 0, no execve of nvdisasm, static clean)" + rm -rf "$WORK"; exit 0 +fi +echo "ZERO-NVDISASM: FAIL (details in $WORK)"; exit 1