atomic_load
#
Defined in header <Kokkos_Atomic.hpp>
which is included from <Kokkos_Core.hpp>
Usage#
auto current = atomic_load(&obj);
Atomically obtains the current value of obj
.
Description#
See also#
atomic_store: atomically replaces the value of the referenced object with a non-atomic argument
atomic_exchange: atomically replaces the value of the referenced object and obtains the value held previously