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

Add Capabilities::ATOMIC_COMPARE_EXCHANGE_WEAK. #2503

Conversation

jimblandy
Copy link
Member

@jimblandy jimblandy commented Sep 25, 2023

We haven't finished implementing WGSL's atomicCompareExchangeWeak on all platforms: wgpu#4364. It's valuable to have some configuration of validation that guarantees backends will succeed, and adding a Capabilities bit that is included by default but can be turned off accomplishes that.

@jimblandy jimblandy added the area: validation Validation of the IR label Sep 25, 2023
@jimblandy jimblandy self-assigned this Sep 25, 2023
@teoxoy
Copy link
Member

teoxoy commented Sep 25, 2023

I guess adding a temporary capability for this is ok but since Capabilities are part of the public API do you see another way to get the benchmarks running without this capability?

If we move forward with the capability, we need to set it in wgpu and also remember to remove it once we add support for atomicCompareExchangeWeak to the other backends.

@jimblandy
Copy link
Member Author

I guess adding a temporary capability for this is ok but since Capabilities are part of the public API do you see another way to get the benchmarks running without this capability?

Hmm. That's a fair question.

We haven't finished implementing WGSL's `atomicCompareExchangeWeak` on
all platforms (#1413). It's valuable to have some configuration of
validation that guarantees backends will succeed, and adding a
`Capabilities` bit that is included by default but can be turned off
accomplishes that.
@jimblandy jimblandy force-pushed the atomic-compare-exchange-weak-capability branch from 2b88d83 to ce8df06 Compare September 25, 2023 19:31
@jimblandy
Copy link
Member Author

Yeah, I don't think this is a good idea after all.

@jimblandy jimblandy closed this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: validation Validation of the IR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants