Skip to content

Restrict atomic_ref types in accordance with the spec #32

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

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

PeterTh
Copy link
Collaborator

@PeterTh PeterTh commented Dec 29, 2024

I ran into this while developing some code with SimSYCL and then executing it on other platforms.

SimSYCL (helpfully, and, in my opinion, unproblematically) allows atomic_ref<bool>, but the spec does not.
It's easier to fix SimSYCL for now than the spec.

While implementing this we also found that it's currently very strange for the spec to list a limited set of types -- specifically not including any pointers -- but also a specialization for pointers. Some clarification seems needed there.

@fknorr
Copy link
Collaborator

fknorr commented Jan 23, 2025

We can now add pointer-to-object-type to concept ValidAtomicType, see KhronosGroup/SYCL-Docs#688.

@PeterTh PeterTh force-pushed the restrict-atomic-ref-types branch from 5736cf4 to b05439e Compare April 3, 2025 14:55
@PeterTh PeterTh merged commit 05f09a1 into master Apr 3, 2025
16 checks passed
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.

2 participants