diff options
| author | quartz-heron-58 <245169279+quartz-heron-58@users.noreply.github.com> | 2026-11-27 17:29:50 +0800 |
|---|---|---|
| committer | quartz-heron-58 <245169279+quartz-heron-58@users.noreply.github.com> | 2026-11-27 17:29:50 +0800 |
| commit | dbdef2efd7c8c6bd2ec11d4456d28e4c34ece113 (patch) | |
| tree | 2afb42d81581a804f21c47e987c77c1d9bcb9c71 /scripts/run_gpu_tests.py | |
| parent | cd25a5c95a1a7c94f2167647fc2ef9b138512845 (diff) | |
mesh-serial-waves: a GPU fixture whose two waves run loops of different length
ms_w64x_wave_loops: each wave loops while a wave-wide count is not 0, 5 iterations in wave 0 and 9 in
wave 1, so under --wave64-emulate the waves reach different numbers of workgroup barriers. Written after
stalls were reported with the serial form on an RTX 2070 SUPER (issue 1608). On an RTX 4080 (NVIDIA
621.24) it draws 4096/4096 pixels exact side by side and in series; that does not explain the stalls.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 455700a40..ccfc488b0 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -895,7 +895,7 @@ def run_suite(a, work: str) -> int: | |||
| 895 | ]) | 895 | ]) |
| 896 | elif name in ("ms_tri", "ms_w64x_ballot", "ms_wave_info_s3", "ms_f16_pack"): | 896 | elif name in ("ms_tri", "ms_w64x_ballot", "ms_wave_info_s3", "ms_f16_pack"): |
| 897 | dxbc = make_dxbc([(b"PSV0", make_ms_psv0(128, 64, 64, 2))]) | 897 | dxbc = make_dxbc([(b"PSV0", make_ms_psv0(128, 64, 64, 2))]) |
| 898 | elif name == "ms_w64x_wave_votes": # vertex 64 comes from the second wave: 128 output vertices | 898 | elif name in ("ms_w64x_wave_votes", "ms_w64x_wave_loops"): # vertex 64 comes from the second wave: 128 output vertices |
| 899 | dxbc = make_dxbc([(b"PSV0", make_ms_psv0(128, 128, 64, 2))]) | 899 | dxbc = make_dxbc([(b"PSV0", make_ms_psv0(128, 128, 64, 2))]) |
| 900 | elif name == "ms_v5_workgroup": | 900 | elif name == "ms_v5_workgroup": |
| 901 | dxbc = make_dxbc([(b"PSV0", make_ms_psv0(32, 3, 1, group_shared=128))]) | 901 | dxbc = make_dxbc([(b"PSV0", make_ms_psv0(32, 3, 1, group_shared=128))]) |
| @@ -1636,13 +1636,13 @@ def run_suite(a, work: str) -> int: | |||
| 1636 | problem = mesh_v5_test(a.build, spirv_dir, Path(raw_dir) / f"{name}.raw") | 1636 | problem = mesh_v5_test(a.build, spirv_dir, Path(raw_dir) / f"{name}.raw") |
| 1637 | results.append((name, None if isinstance(problem, Skip) else not problem, | 1637 | results.append((name, None if isinstance(problem, Skip) else not problem, |
| 1638 | problem or "24/24 workgroup coordinates exact (2 x 3 x 4)")) | 1638 | problem or "24/24 workgroup coordinates exact (2 x 3 x 4)")) |
| 1639 | elif name in ("ms_tri", "ms_w64x_ballot", "ms_wave_info_s3", "ms_w64x_wave_votes"): | 1639 | elif name in ("ms_tri", "ms_w64x_ballot", "ms_wave_info_s3", "ms_w64x_wave_votes", "ms_w64x_wave_loops"): |
| 1640 | raw = os.path.join(raw_dir, f"{name}.raw") | 1640 | raw = os.path.join(raw_dir, f"{name}.raw") |
| 1641 | env = mesh_env(spirv_dir, name, gfx_env) | 1641 | env = mesh_env(spirv_dir, name, gfx_env) |
| 1642 | rc, msg = run_readback(raw, run_cmd, [vk_harness, spv, fs_passthru, raw], env=env) | 1642 | rc, msg = run_readback(raw, run_cmd, [vk_harness, spv, fs_passthru, raw], env=env) |
| 1643 | # ms_w64x_ballot needs exact wave64 (a 64-wide subgroup, or --wave64-emulate): skip it elsewhere, as | 1643 | # ms_w64x_ballot needs exact wave64 (a 64-wide subgroup, or --wave64-emulate): skip it elsewhere, as |
| 1644 | # the wave64 compute dumps are. | 1644 | # the wave64 compute dumps are. |
| 1645 | no64 = (name in ("ms_w64x_ballot", "ms_w64x_wave_votes") and not w64_emulated() and | 1645 | no64 = (name in ("ms_w64x_ballot", "ms_w64x_wave_votes", "ms_w64x_wave_loops") and not w64_emulated() and |
| 1646 | not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg))) | 1646 | not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg))) |
| 1647 | if rc == UNSUPPORTED: | 1647 | if rc == UNSUPPORTED: |
| 1648 | results.append((name, None, unsupported_skip(msg))) | 1648 | results.append((name, None, unsupported_skip(msg))) |