Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

atomic fence questions #465

Closed
jinz2014 opened this issue May 21, 2023 · 2 comments
Closed

atomic fence questions #465

jinz2014 opened this issue May 21, 2023 · 2 comments

Comments

@jinz2014
Copy link

I am not clear about atomic fence functions. Can you please advise the availability of atomic_fence_order_capabilities and atomic_fence_scope_capabilities in your library ? I think it is good to add them in SYCL. Thanks.

Reference
intel/llvm#8938

@jrhemstad
Copy link
Collaborator

jrhemstad commented May 23, 2023

The libcudacxx library implements the ISO C++ Standard definition of the <atomic> header in <cuda/std/atomic> including std::atomic_thread_fence.

We also implement standards conforming extensions in the <cuda/atomic> header with types like cuda::atomic that add cuda::thread_scopes.

atomic_fence_order_capabilities and atomic_fence_scope_capabilities are not part of the ISO C++ Standard nor are they included in our extensions.

@jinz2014
Copy link
Author

Thank you for your answers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants