atomic_load
#
Header File: <Kokkos_Core.hpp>
Usage#
value = atomic_load(ptr_to_value);
Atomically reads the value at the address given by ptr_to_value
.
Description#
- Atomically executes
value = *ptr_to_value; return value;
. ptr_to_value
: address of the to be updated value.value
: value at addressptr_to_value
.