diff options
| author | ubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com> | 2026-11-24 20:49:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 20:49:40 -0500 |
| commit | 8a57b3b1d3cc2d205efe4a9a4a4358a0f5f55ca7 (patch) | |
| tree | e255ce6c6c61364b32b163051568f79dff891d1d /scripts/run_gpu_tests.py | |
| parent | c266c269e3b2384455e5089dd51dca6003d22321 (diff) | |
| parent | 0c3acdc03056908d30724e9fd2bcc7acc8021936 (diff) | |
Merge pull request #1114 from milk4sale/gpu-test/salu-ext
tests: GPU readback for 38 scalar ALU ops on run-time operands (GPU-SALU-EXT)
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index fef03e9c9..0086a7349 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -35,6 +35,7 @@ from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_WORDS, PK_MUL_ | |||
| 35 | pick_build_dir, start_failure, table_fetch_test, texture_gradient_a16_test, texture_mip_test) | 35 | pick_build_dir, start_failure, table_fetch_test, texture_gradient_a16_test, texture_mip_test) |
| 36 | from check import SIGNED_MIP_TEST, UINT_MIP_TEST | 36 | from check import SIGNED_MIP_TEST, UINT_MIP_TEST |
| 37 | from check import cbv_modulate_test | 37 | from check import cbv_modulate_test |
| 38 | from check import salu_ext_test # 38 scalar ALU ops on operands seeded through VKC_SGPRS | ||
| 38 | from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT | 39 | from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT |
| 39 | from check import shift64_test # dynamic 64-bit vector shifts and overlapping destinations | 40 | from check import shift64_test # dynamic 64-bit vector shifts and overlapping destinations |
| 40 | from check import cmp_f64_test # the 32 binary64 vector compares on memory-fed operands | 41 | from check import cmp_f64_test # the 32 binary64 vector compares on memory-fed operands |
| @@ -1126,6 +1127,10 @@ def run_suite(a, work: str) -> int: | |||
| 1126 | vals = words[:len(USER_SGPRS_WORDS)] if words else [] | 1127 | vals = words[:len(USER_SGPRS_WORDS)] if words else [] |
| 1127 | results.append((name,) + compute_result(rc, msg, rc == 0 and vals == USER_SGPRS_WORDS, | 1128 | results.append((name,) + compute_result(rc, msg, rc == 0 and vals == USER_SGPRS_WORDS, |
| 1128 | " ".join(hex(x) for x in vals) if vals else msg)) | 1129 | " ".join(hex(x) for x in vals) if vals else msg)) |
| 1130 | elif name == "cs_w32_salu_ext": | ||
| 1131 | detail = salu_ext_test(a.build, spirv_dir, cs_env) | ||
| 1132 | results.append((name, None if isinstance(detail, Skip) else not detail, | ||
| 1133 | detail or "80 words exact (73 results of 38 scalar ops and the untouched fill)")) | ||
| 1129 | elif name == "cs_f64_add": | 1134 | elif name == "cs_f64_add": |
| 1130 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) | 1135 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) |
| 1131 | if rc == 77: # Float64, or Int64 where the module declares both: quote whichever it names | 1136 | if rc == 77: # Float64, or Int64 where the module declares both: quote whichever it names |