upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_aftermath.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 08:24:22 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 09:07:28 -0500
commita02a5ef7a9a63a55d9bd72c7006e26d5abc5049b (patch)
tree60e42de35ab6a1ff90813ab35e5bf119de25f1ca /runtime/src/vulkan_aftermath.cpp
parent73516a2902a9872e4d21d1bdbbde4e26059497c5 (diff)
rdna2spirv: no round-loop fallback for single-wave emulated programs
translate() re-translated every emulated wave64 program whose inline structured form has an OpControlBarrier under a selection or loop as the round loop (barriers_under_control_flow), for NVIDIA, which hangs on a barrier only part of the workgroup reaches. A single-wave workgroup (plan mode inline_all) is one wave: its barriers sit at the top level or under %pc-only guards, which every invocation takes alike, so the fallback only applies to multi-wave plans now. The round form keeps nearly the whole register file live across the loop and drove RADV/ACO's spiller past 12 GiB (53 GB uncapped) on large single-wave programs, and made programs with long loops 10-100 times slower. 666 main-set compute shaders return to the structured form; translated and spirv-val counts are unchanged. Restores the single-wave expectations in test_wave64_emulate_opt.py, test_loop_ballot_barrier.py and test_loop_iteration_guard.py (its round scheduler check now uses --dispatch-loop), adds test_wave64_single_wave_barrier.py with a hand-written fixture, and a docs/design.md contract row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions