Shaders: paired Wave64 form for the wave64 compute programs no wave32 form takes (6b82bc7d22016cb5, 6871d6e4b3ac9a10), opt-in with VICTORY_WAVE_PAIRS=1 #348
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!348
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-348"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@grosterr on GitHub · 2026-11-27 21:15 UTC · original
grosterr:pr/paired-wave64→main· +3111 −144 · 11 files · 5 commits · openOn a 32-lane host the translator refuses some wave64 compute programs ("no wave32 lowering for this wave64 program") and their dispatches are dropped. #101 takes four of them wave-wide and names one that is left:
6b82bc7d22016cb5(vfx_triangleClip:CS_CollectTriangles_Meshlets, groups of 1,024, LDS past the host's 32 KiB in the meeting forms). The water program6871d6e4b3ac9a10(water_shading:CS_TransmissionVolumetrics) is refused for another reason: a floating-point wave reduction with no exact wave32 tree.This brings the paired form from fxceless/victory-fork: one host thread runs two console lanes (lane and lane+32), so a console wave of 64 is one host wave of 32 and its cross-lane operations stay inside the thread. It is off by default and taken only with
VICTORY_WAVE_PAIRS=1, as a last form after the existing ones.Commits (authorship kept):
f134f48(ByFxbian) — the paired lowering, fxceless/victory-fork#1397 (b27e0b1), which builds on PiloteCode's #854. Merged by hand into this tree'slower.rs/mod.rs(lane_regions_of,wave_basewith a step of 64 for the pair,console_thread); the dispatch-spread hook that tree had is left out (this tree has none).a1c0f9d— ordered paired FP32 reductions, from fxceless#1419 (cb4f23b, ByFxbian), taken in part: its move oflds_meetings/ signature packing into files of their own is left out, and its fast-math guard (this tree has no fast-math pass).36b16ba(ByFxbian) — fxceless#14198d1162e, as is.e9c13e6(fxceless) — water programs in paired form, their wave64 sums replayed exactly (e3307c7);exact_floats/Cast::FpExtkept, the fast-math part not applied.ad29fe0— what the two programs still needed here: LDS reached throughLower::dsin the paired form; a memory-onlybarrier(8)for groups over 64 threads and LDS slot 0 reused when the group's LDS already fills 32 KiB;paired_withreusing the caller's io/res and a last-resortpaired_fallback(exact RNE/FTZ FP32 replay); thev_add_f64simulation inwave.rs(+0.0 identity,s_mov_b64) and the dead inactive-lanevdstread ofv_permlane[x]16_b32inside the FP32 replay; #854's two paired tests; andVICTORY_WAVE_PAIRS/VICTORY_WAVE_PAIRS_FP32in the shader cache key.Measured (RTX 3060 12 GB, driver 621.40,
shaders.rpfof 1.0.2.1):VICTORY_WAVE_PAIRS=1: both programs translate with a 32-lane wave, pass DXIL validation andCreateComputePipelineState(6b82bc7d22016cb5→c2978aea83f25a9c, "paired Wave64";6871d6e4b3ac9a10→7bd41fa916dfb216, "paired Wave64" withVICTORY_WAVE_PAIRS_FP32=non-ieee-rne-ftz, the same DXIL through the fallback without it). Over the whole archive "no wave32 lowering for this wave64 program" goes from 22 to 0 (25,667 → 25,689 translated).d12eb1b, the base of that comparison).translate --warmwithVICTORY_WAVE_PAIRS=1finds both in the cache made by the same translator (0 do not translate).cargo test -p victory-shader299 passed, 0 failed;cargo test -p victory-gpu --lib -- --test-threads=1422 passed, 2 failed:indirect::tests::host_list_budget_starts_empty_at_each_submissionandwarp_batch_charges_every_execution, which fail onmainas well (#67 fixes them).Complements #101. Without #101 this form also takes its four programs (they are among the 22 above); with #101 merged they take its wave-wide form first, since the paired form is only tried after the others, and
6b82bc7d22016cb5and6871d6e4b3ac9a10are left to this one. Both are merged together in our test build.🤖 Generated with Claude Code
@ZanderOS1 on GitHub · 2026-11-27 22:12 UTC · original
Works on my build and now all 22 wave64 shaders now translate cleanly.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.