diff options
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 4a276ad2c..3883073ff 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -343,13 +343,13 @@ def judge_cs_dump(rc: int, msg: str, want: list[int], *, wave64: bool, partial: | |||
| 343 | wave64: it was run with --require-wave64, so exit 77 is a skip and the 64-wide confirmation must be printed. | 343 | wave64: it was run with --require-wave64, so exit 77 is a skip and the 64-wide confirmation must be printed. |
| 344 | partial: a group smaller than a wave, run at subgroup size 64 without full subgroups; skipped when the device | 344 | partial: a group smaller than a wave, run at subgroup size 64 without full subgroups; skipped when the device |
| 345 | reports no subgroup size of 64. emulated: translated with --wave64-emulate, runs on any subgroup size.""" | 345 | reports no subgroup size of 64. emulated: translated with --wave64-emulate, runs on any subgroup size.""" |
| 346 | no64 = partial and not emulated and not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg)) | 346 | if rc == 77: # the program refused the module and said why ("unsupported: <why>"): a skip with that reason, in every mode |
| 347 | if (wave64 and rc == 77) or (no64 and rc == 0): | ||
| 348 | return None, "SKIP (no 64-wide compute subgroup on this device)" | ||
| 349 | if rc == 77: # the program refused the module: "unsupported: <why>" is a skip, as for every other missing feature | ||
| 350 | why = next((ln for ln in msg.splitlines() if ln.startswith("unsupported:")), None) | 347 | why = next((ln for ln in msg.splitlines() if ln.startswith("unsupported:")), None) |
| 351 | if why: | 348 | if why: |
| 352 | return None, "SKIP (" + why[len("unsupported:"):].strip() + ")" | 349 | return None, "SKIP (" + why[len("unsupported:"):].strip() + ")" |
| 350 | no64 = partial and not emulated and not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg)) | ||
| 351 | if (wave64 and rc == 77) or (no64 and rc == 0): | ||
| 352 | return None, "SKIP (no 64-wide compute subgroup on this device)" | ||
| 353 | if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines(): | 353 | if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines(): |
| 354 | return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)" | 354 | return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)" |
| 355 | words = dump_words(msg) | 355 | words = dump_words(msg) |