Repository navigation
Kokkos::atomic_store
Daniel Arndt edited this page May 1, 2020
·
3 revisions
Header File: Kokkos_Core.hpp
Usage:
atomic_store(ptr_to_value,new_value);Atomically sets the value at the address given by ptr_to_value to new_value.
template<class T>
void atomic_store(T* const ptr_to_value, const T new_value);-
template<class T> void atomic_store(T* const ptr_to_value, const T new_value);
Atomically executes
*ptr_to_value = new_value;.-
ptr_to_value: address of the to be updated value. -
new_value: new value.
-
Home:
- Introduction
- Machine Model
- Programming Model
- Compiling
- Initialization
- View
- Parallel Dispatch
- Hierarchical Parallelism
- Custom Reductions
- Atomic Operations
- Subviews
- Interoperability
- Kokkos and Virtual Functions
- Detection Idiom
- Initialization and Finalization
- View
- Data Parallelism
- Execution Policies
- Spaces
- Task Parallelism
- Utilities
- STL Compatibility