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:
authorQemmHD <stephenlethco2@gmail.com>2026-11-24 18:22:17 -0500
committerGitHub <noreply@github.com>2026-11-24 18:22:17 -0500
commit1bedab24c39d0b3ae325f6f0f6c43e47bbb6430e (patch)
treeaf98c2bd85c3c35ede2dd43fe54ed5101ee758cc /scripts/run_gpu_tests.py
parentbe195981eea36d951f5ad8b52bec2da66315cde4 (diff)
parente55b3be88a1db454d7a53eb2beb81985d8995e45 (diff)
Merge pull request #1000 from Okachamie/gpu-pin-exit-status
Merging. **Why merged:** GPU-PIN-EXIT-STATUS: in check.py and run_gpu_tests, a helper that exits non-zero is always a failure, never a subgroup-pin SKIP, so a crashing helper can't hide as a skip. KernelSmoker approved it after an RTX 3090 GPU run, and the author compared it against #125. **Why it's good:** run_gpu_tests, shader_checks and run_gpu_tests_paths: 177 passed. Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 0f98d193c. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests, ctest_registration) gives 578 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes. AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 3a0715367..fef03e9c9 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -447,8 +447,10 @@ def judge_cs_dump(rc: int, msg: str, want: list[int], *, wave64: bool, partial:
447 return None, "SKIP (no 64-wide compute subgroup on this device)" 447 return None, "SKIP (no 64-wide compute subgroup on this device)"
448 if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines(): 448 if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines():
449 return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)" 449 return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)"
450 if rc != 0:
451 return False, f"exit {rc}: {msg or 'no test output'}"
450 words = dump_words(msg) 452 words = dump_words(msg)
451 if rc != 0 or words is None: 453 if words is None:
452 return False, msg 454 return False, msg
453 vals = words[:len(want)] 455 vals = words[:len(want)]
454 return words_match(vals, want), " ".join((hex if hexwords else str)(x) for x in vals) 456 return words_match(vals, want), " ".join((hex if hexwords else str)(x) for x in vals)
@@ -1345,7 +1347,7 @@ def run_suite(a, work: str) -> int:
1345 continue 1347 continue
1346 if rc == 0: 1348 if rc == 0:
1347 skip = wave32_lane_skip(msg) 1349 skip = wave32_lane_skip(msg)
1348 if skip is None and name in WAVE32_PIN_DUMPS: 1350 if rc == 0 and skip is None and name in WAVE32_PIN_DUMPS:
1349 # the device may not be able to run the wave size this fixture was written for (a 64-only device 1351 # the device may not be able to run the wave size this fixture was written for (a 64-only device
1350 # can't pin 32, so cs_barrier_loop's words mean nothing); check.py skips it too 1352 # can't pin 32, so cs_barrier_loop's words mean nothing); check.py skips it too
1351 skip = subgroup_pin_skip(msg, cs_env) 1353 skip = subgroup_pin_skip(msg, cs_env)