upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoraslan2142 <jan.trencansky@protonmail.com>2026-11-25 00:02:27 +0100
committerGitHub <noreply@github.com>2026-11-25 00:02:27 +0100
commit6558d5318d0130b65eba9acfa408ce0ef23d86b5 (patch)
treef171bb4543907b3aba796a3e0f6b16a12eb8bb8f /scripts
parent28a32e190ef461b9d895433813aa83aa7d662385 (diff)
parentd366ee248992db80d03ac1e5ce323058c6ac9e5d (diff)
Merge pull request #1012 from milk4sale/gpu-test/cmp-f64
tests: GPU readback for the binary64 vector compares, v_cmp_*_f64 and v_cmpx_*_f64 (GPU-CMP-F64)
Diffstat (limited to 'scripts')
-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 8f17a4028..c2da9234f 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -37,6 +37,7 @@ from 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 shift64_test # dynamic 64-bit vector shifts and overlapping destinations
40from check import cmp_f64_test # the 32 binary64 vector compares on memory-fed operands
40from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan) 41from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan)
41from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py 42from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py
42from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 43from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8
@@ -1000,6 +1001,10 @@ def run_suite(a, work: str) -> int:
1000 detail = shift64_test(a.build, spirv_dir, cs_env) 1001 detail = shift64_test(a.build, spirv_dir, cs_env)
1001 results.append((name, None if isinstance(detail, Skip) else not detail, 1002 results.append((name, None if isinstance(detail, Skip) else not detail,
1002 detail or "640 words exact (64 shift cases and unchanged inputs)")) 1003 detail or "640 words exact (64 shift cases and unchanged inputs)"))
1004 elif name == "cs_w32_cmp_f64":
1005 detail = cmp_f64_test(a.build, spirv_dir, cs_env)
1006 results.append((name, None if isinstance(detail, Skip) else not detail,
1007 detail or "1536 words exact (256 operand pairs and unchanged inputs)"))
1003 elif name == "cs_workgroup_yz": 1008 elif name == "cs_workgroup_yz":
1004 rc, msg = run_cmd([vk_compute, spv, "2x3x4", "workgroup_yz"], env=cs_env) 1009 rc, msg = run_cmd([vk_compute, spv, "2x3x4", "workgroup_yz"], env=cs_env)
1005 results.append((name,) + compute_result(rc, msg, rc == 0 and "2x3x4 workgroup Y/Z: 0 mismatches" 1010 results.append((name,) + compute_result(rc, msg, rc == 0 and "2x3x4 workgroup Y/Z: 0 mismatches"