upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-21 21:49:00 +0100
committerAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-21 22:52:35 +0100
commitcdaef79a7d9cdc5179fb21c38ff518c1ab0b31a4 (patch)
treecb8e0272a5cdac811cdafd3bc2c37015ba7e038e /scripts/run_gpu_tests.py
parent4e390e0871d7265e629b51aca8ff99a15a6a6845 (diff)
Wave64 emulation: fewer rounds (reuse mask exchanges, chain voted branches), benchmark
A whole-mask read of a register value already exchanged in the block reuses the exchange; a block ending in a voted branch runs its successor in the round that reads the vote. Adds scripts/bench_wave64.py, cs_bench_mix, VKC_BENCH timing in vk_compute_test and the cs_w64x_mask_reuse test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index edd5cad19..7da402afe 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -473,7 +473,8 @@ def run_suite(a, work: str) -> int:
473 elif name in ("cs_store", "cs_smem_soffset_imm", "cs_wave64_ballot", "cs_wm_half_ops", "cs_wm_half_cmp", "cs_wm_bfm64", "cs_wm_scc_rfl", 473 elif name in ("cs_store", "cs_smem_soffset_imm", "cs_wave64_ballot", "cs_wm_half_ops", "cs_wm_half_cmp", "cs_wm_bfm64", "cs_wm_scc_rfl",
474 "cs_w64x_readlane", "cs_w64x_writelane", "cs_w64x_readfirstlane", "cs_w64x_bpermute", 474 "cs_w64x_readlane", "cs_w64x_writelane", "cs_w64x_readfirstlane", "cs_w64x_bpermute",
475 "cs_w64x_branch", "cs_w64x_ballot", "cs_w64x_wg128_branches", "cs_w64x_lds_raw", 475 "cs_w64x_branch", "cs_w64x_ballot", "cs_w64x_wg128_branches", "cs_w64x_lds_raw",
476 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load"): 476 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load",
477 "cs_w64x_mask_reuse"):
477 cs_dump_wants = { 478 cs_dump_wants = {
478 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800], 479 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800],
479 # base + soffset + imm (cs_smem_soffset_imm.asm); out[4..7] are seeds the shader leaves alone 480 # base + soffset + imm (cs_smem_soffset_imm.asm); out[4..7] are seeds the shader leaves alone
@@ -490,6 +491,7 @@ def run_suite(a, work: str) -> int:
490 "cs_w64x_readfirstlane": [140, 140, 163, 132, 100, 105, 133, 48], 491 "cs_w64x_readfirstlane": [140, 140, 163, 132, 100, 105, 133, 48],
491 "cs_w64x_bpermute": [36, 316, 253, 218, 435, 225, 0, 442], 492 "cs_w64x_bpermute": [36, 316, 253, 218, 435, 225, 0, 442],
492 "cs_w64x_branch": [0, 0, 0, 0, 5, 5, 9, 9], 493 "cs_w64x_branch": [0, 0, 0, 0, 5, 5, 9, 9],
494 "cs_w64x_mask_reuse": [8, 40, 8, 40, 2, 20, 10, 64],
493 "cs_w64x_ballot": [2053, 2061, 2069, 2077, 2085, 2093, 2101, 2109], 495 "cs_w64x_ballot": [2053, 2061, 2069, 2077, 2085, 2093, 2101, 2109],
494 "cs_w64x_wg128_branches": [121, 121, 343, 343, 14, 31, 19812, 22728], 496 "cs_w64x_wg128_branches": [121, 121, 343, 343, 14, 31, 19812, 22728],
495 "cs_w64x_lds_raw": [132, 137, 100, 108, 131, 101, 149, 118], 497 "cs_w64x_lds_raw": [132, 137, 100, 108, 131, 101, 149, 118],