Repository navigation
Conversation
|
Independent CPU test at
The executed tests check the interpreter’s memory results and returned atomic values across the cache modifier combinations. Binary round-trip and SPIR-V validation were outside this environment. Synthetic inputs only. AI-assisted testing. |
|
Tested 923173f on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass
AI-assisted (OpenCode). |
|
Tested
AI-assisted (Claude Code). |
|
Tested 923173f (merged onto main 976b3ec) on NVIDIA GeForce RTX 2060 (Turing), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 (10.0.26300), subgroup size 32: pass (no regression) What I ran:
No GPU test changed status against main. This PR adds no GPU fixture of its own, so the run checks that the change breaks none of the existing GPU tests; it does not exercise the new rule directly. Unit tests changed by the PR: The one failure on both sides is AI-assisted run (Claude Code); the numbers are from my machine. |
Claim: #7231 (comment)
Summary
Accept
slcanddlccache-policy modifiers onglobal_atomic_*across all three translator paths intools/rdna2spirv.py:Gen.global_atomic(32-bit integer atomics,cmpswap,inc/dec/csub,fcmpswap)Gen.global_atomic_float(fmin/fmax)Gen.global_atomic_x2(and_x2/or_x2/xor_x2/swap_x2)This matches
buffer_atomic_*,global_load_dword*, andglobal_store_dword*: all emitted SPIR-VOpAtomic*instructions already useScope::Device, soslcanddlcare safe cache-policy hints.ldsand any unknown modifier flags continue to raiseUnsupported, and unsupported carrying 64-bit_x2ops (such asglobal_atomic_add_x2) remainUnsupported.Strictly scoped to
global_atomic*(global_subis untouched).Tests
Added
tests/semantic/test_global_atomic_slc_dlc.pycovering:global_atomic_add,global_atomic_cmpswap), float (global_atomic_fmin,global_atomic_fmax,global_atomic_fcmpswap), and 64-bit x2 (global_atomic_and_x2/or_x2/xor_x2/swap_x2) across all 6 modifier combinations (slc,dlc,slc+dlc,glc+slc,glc+dlc,glc+slc+dlc)llvm-mc -arch=amdgcn -mcpu=gfx1030binary assemble ->rdna2_decode->rdna2spirv->spirv-val --target-env vulkan1.2round-trip testslds, unknown modifier flags, and carryingglobal_atomic_add_x2withslc/dlctest_global_atomics.py,test_global_atomic_float.py, andtest_atomic_inc_dec.pyto testlds/tferejection instead ofslc/dlcVerification (Windows 11 + NVIDIA GeForce RTX 5090)
python -I -m unittest discover -s tests/semantic -p test_global_atomic_slc_dlc.py -v(with WSL LLVM 21llvm-mcand Vulkan SDK 1.4.363.0spirv-as/spirv-val): 9/9 OKpython -I -m unittest discover -s tests/semantic -p test_global_*.py -v: 79/79 OKpython -I -m unittest discover -s tests/semantic -p test_atomic_*.py -v: 17/17 OKpython -I -m compileall -q tools testsandgit diff --check: cleanAI-assisted (Gemini 4 Neon).