diff options
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index b48b03985..cbe00898d 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -355,6 +355,10 @@ def judge_cs_dump(rc: int, msg: str, want: list[int], *, wave64: bool, partial: | |||
| 355 | wave64: it was run with --require-wave64, so exit 77 is a skip and the 64-wide confirmation must be printed. | 355 | wave64: it was run with --require-wave64, so exit 77 is a skip and the 64-wide confirmation must be printed. |
| 356 | partial: a group smaller than a wave, run at subgroup size 64 without full subgroups; skipped when the device | 356 | partial: a group smaller than a wave, run at subgroup size 64 without full subgroups; skipped when the device |
| 357 | reports no subgroup size of 64. emulated: translated with --wave64-emulate, runs on any subgroup size.""" | 357 | reports no subgroup size of 64. emulated: translated with --wave64-emulate, runs on any subgroup size.""" |
| 358 | if rc == 77: # the program refused the module and said why ("unsupported: <why>"): a skip with that reason, in every mode | ||
| 359 | why = next((ln for ln in msg.splitlines() if ln.startswith("unsupported:")), None) | ||
| 360 | if why: | ||
| 361 | return None, "SKIP (" + why[len("unsupported:"):].strip() + ")" | ||
| 358 | no64 = partial and not emulated and not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg)) | 362 | no64 = partial and not emulated and not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg)) |
| 359 | if (wave64 and rc == 77) or (no64 and rc == 0): | 363 | if (wave64 and rc == 77) or (no64 and rc == 0): |
| 360 | return None, "SKIP (no 64-wide compute subgroup on this device)" | 364 | return None, "SKIP (no 64-wide compute subgroup on this device)" |