upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorLuiz Neves <luizgustavobenicio@gmail.com>2026-11-21 18:33:55 -0300
committerLuiz Neves <luizgustavobenicio@gmail.com>2026-11-21 18:48:40 -0300
commit4776b052d53ec208b7dc10e88643b1342a9d6a7b (patch)
tree3ed9c8bbe10fb1bfc0881eba7f59430f46afddef /runtime
parent69e1b260d963083e13b4daf7bdf47dab24e4a295 (diff)
check.py: run cs_w64x_partial at subgroup 32 under wave64 emulation (TEST-20)
partial_wave_test always set VKC_SUBGROUP_SIZE=64. With LEONIDA_W64_EMULATE=1 the shader is translated for any subgroup width, and on AMD, where 64 is available, the emulated path was never run at 32 (#166, RX 6700 XT entry). Under emulation it now asks for 32; without emulation it still asks for 64.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/test/shaders/check.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/test/shaders/check.py b/runtime/test/shaders/check.py
index 75f9a2d50..2dafa26d5 100644
--- a/runtime/test/shaders/check.py
+++ b/runtime/test/shaders/check.py
@@ -83,12 +83,13 @@ class Skip(str):
83 83
84def partial_wave_test(tools, spirv, name, expected_words): 84def partial_wave_test(tools, spirv, name, expected_words):
85 """A group smaller than a wave: run with subgroup size 64 requested (no full subgroups); None if the device 85 """A group smaller than a wave: run with subgroup size 64 requested (no full subgroups); None if the device
86 has no 64-wide subgroup (unless LEONIDA_W64_EMULATE=1).""" 86 has no 64-wide subgroup. With LEONIDA_W64_EMULATE=1 it asks for 32 instead, the width the emulation is for, so
87 a device that defaults to 64 (AMD) runs the emulated path at 32 too (#166)."""
87 shader = os.path.join(spirv, name + ".spv") 88 shader = os.path.join(spirv, name + ".spv")
88 if not os.path.isfile(shader): 89 if not os.path.isfile(shader):
89 return f"missing {name}.spv" 90 return f"missing {name}.spv"
90 old = os.environ.get("VKC_SUBGROUP_SIZE") 91 old = os.environ.get("VKC_SUBGROUP_SIZE")
91 os.environ["VKC_SUBGROUP_SIZE"] = "64" 92 os.environ["VKC_SUBGROUP_SIZE"] = "32" if W64_EMULATED else "64"
92 try: 93 try:
93 code, out = run(os.path.join(tools, "vk_compute_test" + EXE), shader, "1", "dump") 94 code, out = run(os.path.join(tools, "vk_compute_test" + EXE), shader, "1", "dump")
94 finally: 95 finally: