Skip to content

Conversation

@ikbuibui
Copy link
Contributor

@ikbuibui ikbuibui commented Dec 19, 2025

Add support for memory ordered atomics. Closes #2123
Sets the old behaviour of relaxed atomics as the default.
Also makes atomic ref ordering relaxed by default. Closes #2172

We emulate ordered atomics using fences when ordered atomics available natively.
We fall back to stronger guarantees if a backend does not support the requested order.
For CUDA in particular we do this according to this resource.

@ikbuibui ikbuibui force-pushed the memory_ordered_atomics branch 5 times, most recently from 141f9bd to ea2c6f2 Compare December 20, 2025 08:25
@ikbuibui ikbuibui force-pushed the memory_ordered_atomics branch from ea2c6f2 to 2090c68 Compare December 20, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

atomic_ref based atomics are too strong Support atomics with memory orders

1 participant