Shaders: atomic subtractions on group memory are loops on NVIDIA #402
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/readmet3xt-lab--foxhound!402
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-402"
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?
@AVD-appezhax on GitHub · 2026-12-01 22:30 UTC · original
AVD-appezhax:fix/atomic-sub-loop-nvidia→main· +250 −0 · 6 files · 72 commits · closed without mergingWhat it fixes: weather particles never made on NVIDIA
weatherParticle:CS_BeginUpdate(7f61193d2c0e5f22) was refused with E_OUTOFMEMORY in every run, even with the card nearly empty. That is NVIDIA's compiler rejecting an atomic subtraction on group-shared memory. On NVIDIA these subtractions are now emitted as compare-exchange loops.Port of trustno1-coder/VIctory-NVIDIA#1939 (itself Marvisak/VIctory#3619). One change from upstream: the vendor is read from the adapter the host device is made on (
hardware_adapter), notEnumAdapters1(0), which can be an integrated GPU.Switch:
VICTORY_ATOMIC_SUB_LOOP=0/1overrides the vendor choice. The setting is part of the shader cache key.How it was measured
RTX 5070 12 GB, release logs.
7f61193d2c0e5f22refused (E_OUTOFMEMORY) in every run.host pipeline shaders=[compute 7f61193d2c0e5f22]).10d0d7con a Blackwell 16 GB card (see #335).Split out of #335 at the maintainers' request; one change per pull request, independent of the others (applies alone on
main94c3c5f).Checks (this branch alone, on main)
cargo clippy --workspace --all-targets --locked -- -D warnings: clean.cargo test -p victory-gpu -p victory-shader --lib --locked: all pass.🤖 Generated with Claude Code
Pull request closed