[FEA]: Expose cuda::atomic_ref<T>.data() to obtain the address of the wrapped object #1949
Open
1 task done
Labels
feature request
New feature or request.
Is this a duplicate?
Area
libcu++
Is your feature request related to a problem? Please describe.
I just found @gonzalobg ’s proposal for exposing
std::atomic_ref<T>.data()
to access the underlying memory location wrapped by the atomic_ref object when running into a similar use case as the one shown in the proposal.Describe the solution you'd like
I know standardization might take years, but since we own the
cuda::
namespace, would it be possible to expose this for device atomics in libcu++?IIUC it would be an extension to the standard API and would not affect the current behavior.
There have been some discussions and proposed changes on how to expose the address and the committee hasn't ultimately settled on a design. We could however expose it with an experimental name for now.
Describe alternatives you've considered
There's currently no way (to my knowledge) to obtain the address of the object wrapped by an
atomic_ref
object.Additional context
No response
The text was updated successfully, but these errors were encountered: