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:
authorJiyouProt <104832502+JiyouProt@users.noreply.github.com>2026-11-24 10:15:23 +0100
committerJiyouProt <104832502+JiyouProt@users.noreply.github.com>2026-11-24 10:15:23 +0100
commit49d904fef62f5cbde9796d688d378df6d62b124a (patch)
tree226305c8ea474ad7054ba1f20e52166b18110b73 /scripts/run_gpu_tests.py
parent7430f59b2755418f5db1682446a4ccef10d455b1 (diff)
tests: GPU readback for dynamic 64-bit vector shifts (GPU-VALU64-SHIFTS)
Exercise boundary counts and overlapping destination registers with runtime inputs. AI-assisted with Codex.
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index a075c876a..f0c6d82e7 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -36,6 +36,7 @@ from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_WORDS, PK_MUL_
36from check import SIGNED_MIP_TEST, UINT_MIP_TEST 36from check import SIGNED_MIP_TEST, UINT_MIP_TEST
37from check import cbv_modulate_test 37from check import cbv_modulate_test
38from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT 38from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT
39from check import shift64_test # dynamic 64-bit vector shifts and overlapping destinations
39from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan) 40from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan)
40from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py 41from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py
41from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 42from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8
@@ -975,6 +976,10 @@ def run_suite(a, work: str) -> int:
975 if name in CLIP_CASES: 976 if name in CLIP_CASES:
976 detail = clip_test(a.build, spirv_dir, name) 977 detail = clip_test(a.build, spirv_dir, name)
977 results.append((name, None if isinstance(detail, Skip) else not detail, detail or "four pixel masks exact")) 978 results.append((name, None if isinstance(detail, Skip) else not detail, detail or "four pixel masks exact"))
979 elif name == "cs_w32_shift64":
980 detail = shift64_test(a.build, spirv_dir, cs_env)
981 results.append((name, None if isinstance(detail, Skip) else not detail,
982 detail or "640 words exact (64 shift cases and unchanged inputs)"))
978 elif name == "cs_workgroup_yz": 983 elif name == "cs_workgroup_yz":
979 rc, msg = run_cmd([vk_compute, spv, "2x3x4", "workgroup_yz"], env=cs_env) 984 rc, msg = run_cmd([vk_compute, spv, "2x3x4", "workgroup_yz"], env=cs_env)
980 results.append((name,) + compute_result(rc, msg, rc == 0 and "2x3x4 workgroup Y/Z: 0 mismatches" 985 results.append((name,) + compute_result(rc, msg, rc == 0 and "2x3x4 workgroup Y/Z: 0 mismatches"