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:19:03 +0100
committerGitHub <noreply@github.com>2026-11-25 00:19:03 +0100
commit3a73ce11ad3bdec1cc99134a3df3fb0bd2a412e9 (patch)
treea20158a32824b9c4bcf20fcb9eacbac5e156dadb /scripts
parent16ff59721bb7302f8ab30bb67291266f613624b8 (diff)
parent69935f84ee8d670626594c3c5e4a171b2e20fcf0 (diff)
Merge pull request #1034 from milk4sale/gpu-test/round-f64
tests: GPU readback for the binary64 roundings, v_trunc_f64, v_ceil_f64, v_rndne_f64 and v_floor_f64 (GPU-ROUND-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 c2da9234f..e62471c2a 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -38,6 +38,7 @@ from 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 cmp_f64_test # the 32 binary64 vector compares on memory-fed operands
41from check import round_f64_test # the four binary64 roundings on memory-fed inputs
41from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan) 42from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan)
42from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py 43from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py
43from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 44from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8
@@ -1005,6 +1006,10 @@ def run_suite(a, work: str) -> int:
1005 detail = cmp_f64_test(a.build, spirv_dir, cs_env) 1006 detail = cmp_f64_test(a.build, spirv_dir, cs_env)
1006 results.append((name, None if isinstance(detail, Skip) else not detail, 1007 results.append((name, None if isinstance(detail, Skip) else not detail,
1007 detail or "1536 words exact (256 operand pairs and unchanged inputs)")) 1008 detail or "1536 words exact (256 operand pairs and unchanged inputs)"))
1009 elif name == "cs_w32_round_f64":
1010 detail = round_f64_test(a.build, spirv_dir, cs_env)
1011 results.append((name, None if isinstance(detail, Skip) else not detail,
1012 detail or "1152 words judged (64 inputs, eight roundings each, and unchanged inputs)"))
1008 elif name == "cs_workgroup_yz": 1013 elif name == "cs_workgroup_yz":
1009 rc, msg = run_cmd([vk_compute, spv, "2x3x4", "workgroup_yz"], env=cs_env) 1014 rc, msg = run_cmd([vk_compute, spv, "2x3x4", "workgroup_yz"], env=cs_env)
1010 results.append((name,) + compute_result(rc, msg, rc == 0 and "2x3x4 workgroup Y/Z: 0 mismatches" 1015 results.append((name,) + compute_result(rc, msg, rc == 0 and "2x3x4 workgroup Y/Z: 0 mismatches"