diff options
| author | Okachamie <okachamie@users.noreply.github.com> | 2026-11-24 11:42:23 -0500 |
|---|---|---|
| committer | Okachamie <okachamie@users.noreply.github.com> | 2026-11-24 11:43:12 -0500 |
| commit | e55b3be88a1db454d7a53eb2beb81985d8995e45 (patch) | |
| tree | fa3947722d4cb91ddd4d805316da6b16b84eefd3 /scripts/run_gpu_tests.py | |
| parent | 82a2aabcc33bf296b5c2e3e4e7021fa506f8570e (diff) | |
tests: fail when a subgroup warning precedes a dispatch error
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index e8fce4277..b90de6bdf 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -431,8 +431,10 @@ def judge_cs_dump(rc: int, msg: str, want: list[int], *, wave64: bool, partial: | |||
| 431 | return None, "SKIP (no 64-wide compute subgroup on this device)" | 431 | return None, "SKIP (no 64-wide compute subgroup on this device)" |
| 432 | if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines(): | 432 | if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines(): |
| 433 | return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)" | 433 | return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)" |
| 434 | if rc != 0: | ||
| 435 | return False, f"exit {rc}: {msg or 'no test output'}" | ||
| 434 | words = dump_words(msg) | 436 | words = dump_words(msg) |
| 435 | if rc != 0 or words is None: | 437 | if words is None: |
| 436 | return False, msg | 438 | return False, msg |
| 437 | vals = words[:len(want)] | 439 | vals = words[:len(want)] |
| 438 | return words_match(vals, want), " ".join((hex if hexwords else str)(x) for x in vals) | 440 | return words_match(vals, want), " ".join((hex if hexwords else str)(x) for x in vals) |
| @@ -1316,7 +1318,7 @@ def run_suite(a, work: str) -> int: | |||
| 1316 | continue | 1318 | continue |
| 1317 | if rc == 0: | 1319 | if rc == 0: |
| 1318 | skip = wave32_lane_skip(msg) | 1320 | skip = wave32_lane_skip(msg) |
| 1319 | if skip is None and name in WAVE32_PIN_DUMPS: | 1321 | if rc == 0 and skip is None and name in WAVE32_PIN_DUMPS: |
| 1320 | # the device may not be able to run the wave size this fixture was written for (a 64-only device | 1322 | # the device may not be able to run the wave size this fixture was written for (a 64-only device |
| 1321 | # can't pin 32, so cs_barrier_loop's words mean nothing); check.py skips it too | 1323 | # can't pin 32, so cs_barrier_loop's words mean nothing); check.py skips it too |
| 1322 | skip = subgroup_pin_skip(msg, cs_env) | 1324 | skip = subgroup_pin_skip(msg, cs_env) |