Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace some memory fences with "atomic writes". #2146

Merged
merged 4 commits into from
May 28, 2024
Merged

Replace some memory fences with "atomic writes". #2146

merged 4 commits into from
May 28, 2024

Conversation

athas
Copy link
Member

@athas athas commented May 15, 2024

On our current backends, an atomic write is just a write followed by a memory fence, but on some future ones (e.g. the WebGPU one), fences supported only implicitly through use of atomic data types. It turns out that in most (all?) cases, we only need fences for these "atomic writes". The possible exception is single pass scan, but we will not use that for the WebGPU backend anyway.

@athas athas added the run-benchmarks Makes GA run the benchmark suite. label May 15, 2024
@athas athas self-assigned this May 15, 2024
On our current backends, an atomic write is just a write followed by a
memory fence, but on some future ones (e.g. the WebGPU one), fences
supported only implicitly through use of atomic data types. It turns
out that in most (all?) cases, we only need fences for these "atomic
writes". The possible exception is single pass scan, but we will not
use that for the WebGPU backend anyway.
@athas athas merged commit 9bb4125 into master May 28, 2024
26 checks passed
@athas athas deleted the atomicwrite branch May 28, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-benchmarks Makes GA run the benchmark suite.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant