mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:15:52 +01:00
[PR #178] [CLOSED] GPU test cs_w32_atomic_contend: buffer_atomic_inc/dec under contention #232
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#232
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/178
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9912📝 Commits (7)
559ce67GPU test cs_w32_atomic_contend: buffer_atomic_inc/dec under contentionf4734c0test_atomic_contend_fixture: runs under python -I1c49799Merge remote-tracking branch 'origin/main' into HEAD69a488bcs_w32_atomic_contend: word 2 uses D = 19, so an inc and a dec can't give the same wordcef6d5aMerge remote-tracking branch 'origin/main' into HEAD0cda998Merge remote-tracking branch 'origin/main' into HEADce27f4dMerge remote-tracking branch 'origin/main' into HEAD📊 Changes
5 files changed (+182 additions, -3 deletions)
View changed files
📝
runtime/test/shaders/check.py(+3 -1)➕
runtime/test/shaders/cs_w32_atomic_contend.asm(+47 -0)📝
scripts/run_gpu_tests.py(+4 -2)➕
tests/semantic/fixtures/disasm/cs_w32_atomic_contend.s(+29 -0)➕
tests/semantic/test_atomic_contend_fixture.py(+99 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):buffer_atomic_inc/dec(#2448) areOpAtomicCompareExchangeloops. Their tests run them in one lane, or in the CPU interpreter, which runs lanes in lockstep.@TheMrBeezchecked the loops under contention by hand on#3097, but nothing in the suite does. This GPU fixture,runtime/test/shaders/cs_w32_atomic_contend.asm, has all 32 lanes of a wave32 group run every op on the same dwords, so the loops race for real on a GPU.Re-submission of
#4331.#4331was 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
#4331by: theswiss24 (two NVIDIA GPUs), vibryxcx (RX 6800), radv-tinker (AMD Radeon RX 9070 XT), javdc (Steam Deck LCD), sovljanskii (Apple M4), nicknickalive (RTX 5090), Mortify7612 (AMD Radeon RX 9060 XT), Itschotsch (RTX 4090), lukasas74 (RTX 5080), YordiLorenzo (RTX 5090), matheusfermiano-source (main867d922f0)), nicolasabosch (RTX 4070 Laptop GPU).No game files.
AI-assisted (Claude Code): I reviewed the change and re-ran its tests on the merge with
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.