Repository navigation
Conversation
Both pairs raised Unsupported. A 64-bit add/sub is exact with two 32-bit atomics: the low dword's atomic returns its old value, which gives this op's own carry (borrow), and the high dword then takes DATA.hi + carry. Addition commutes, so memory is exact under contention; only the returned high dword can be torn. x2_atomic_words holds both the carry pair and the per-dword bitwise/swap ops; the global and buffer _x2 paths (with main's alignment guard) call it. Tests: test_global_atomics_x2.py / test_buffer_atomics_x2.py add the carry and borrow cases and 32 lanes adding to one element; test_global_atomics.py's rejected list uses smin_x2. docs/design.md rows updated.
# Conflicts: # docs/design.md
# Conflicts: # tools/rdna2spirv.py
# Conflicts: # docs/design.md
# Conflicts: # docs/design.md
This was referenced Nov 24, 2026
4 tasks done
milk4sale
added a commit
to milk4sale/leonida
that referenced
this pull request
Nov 24, 2026
…RIFIED-ATOMICS)
Six contract rows ended with "Not GPU-verified" although fixtures on main
already run them through scripts/run_gpu_tests.py and check.py:
cs_lds_atomics_ext, cs_lds_xchg64_ext, cs_global_mem_ext, cs_w32_fcmpswap
and cs_w32_new_ops. Each row now names its fixture, the forms and cases it
compares, the GPUs it passed on (Radeon 610M, RADV Mesa 26.2.6; RTX 4070 Ti,
620.70.06), and what stays unchecked.
Rows: 8/16-bit global stores and d16 loads, ds_cmpst_f32 / fcmpswap,
ds_mskor, ds_{inc,dec,rsub}_u32 / ds_{min,max}_f32, ds_wrxchg2_rtn_b32,
ds_and/or/xor_b64. Row 279 also gets back the opening ** of its
"Hardware-measured natively on gfx1100" note.
Left out: Global atomics (32-bit) and buffer_atomic_{and,or,xor,swap}_x2,
which open pull requests ProjectLeonida#191 and ProjectLeonida#174 rewrite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks done
milk4sale
added a commit
to milk4sale/leonida
that referenced
this pull request
Nov 24, 2026
…RIFIED-ATOMICS)
Six contract rows ended with "Not GPU-verified" although fixtures on main
already run them through scripts/run_gpu_tests.py and check.py:
cs_lds_atomics_ext, cs_lds_xchg64_ext, cs_global_mem_ext, cs_w32_fcmpswap
and cs_w32_new_ops. Each row now names its fixture, the forms and cases it
compares, the GPUs it passed on (Radeon 610M, RADV Mesa 26.2.6; RTX 4070 Ti,
620.70.06), and what stays unchecked.
Rows: 8/16-bit global stores and d16 loads, ds_cmpst_f32 / fcmpswap,
ds_mskor, ds_{inc,dec,rsub}_u32 / ds_{min,max}_f32, ds_wrxchg2_rtn_b32,
ds_and/or/xor_b64. Row 279 also gets back the opening ** of its
"Hardware-measured natively on gfx1100" note.
Left out: Global atomics (32-bit) and buffer_atomic_{and,or,xor,swap}_x2,
which open pull requests ProjectLeonida#191 and ProjectLeonida#174 rewrite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
Thanks for carrying this over, and thanks to the original author for the work. I'm closing this draft in favour of #865 (#865):
AI-assisted (Claude Code, Claude Opus 5.5). |
milk4sale
pushed a commit
to milk4sale/leonida
that referenced
this pull request
Nov 27, 2026
…wait-reserves-tick GPU: a frame wait takes its tick before it sleeps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):global_atomic_add_x2/sub_x2andbuffer_atomic_add_x2/sub_x2raisedUnsupported. This is the global and buffer counterpart of#2738, which does the same fords_add/sub_u64. The global and buffer_x2paths weren't in#2738, and no one had claimed them.Re-submission of
#3065.#3065was closed unmerged during the 2026-11-23 22:45 UTC cleanup, along with the other open PRs. This is the same branch, now merged with currentmain.Checked on
#3065by: TheMrBeez (the GPU), bobcatchris (Pro V540), zzEmmazz (main 1628210), theswiss24 (RTX 2060 SUPER), DenRakEiw (Windows 11), kapitche (native Windows), DavidM1911 (two Vulkan devices), tylerstraub (RTX 5090), GustawMatuszewski (two devices. Ubuntu 26.04.1), Sangonapou (RTX 3080 Ti Laptop), YordiLorenzo (RTX 5090), leonidassupporter (RTX 3060 Ti) and 2 more.No game files.
AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with
main.