forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
Kokkos::atomic_load
JBludau edited this page Sep 1, 2022
·
1 revision
Header File: Kokkos_Core.hpp
Usage:
value = atomic_load(ptr_to_value);Atomically reads the value at the address given by ptr_to_value.
template<class T>
T atomic_load(T* const ptr_to_value);-
template<class T> T atomic_load(T* const ptr_to_value);
Atomically executes
value = *ptr_to_value; return value;.-
ptr_to_value: address of the to be updated value. -
value: value at addressptr_to_value.
-