Celeritas 0.6.0-dev.116+3fbab5e0
|
Atomics for use in kernel code (CUDA/HIP/OpenMP). More...
#include "corecel/Assert.hh"
#include "corecel/Macros.hh"
#include "corecel/Types.hh"
#include "Algorithms.hh"
Macros | |
#define | CELER_CAPTURE_IF_OPENMP_TRACK |
Simply scope the next block. | |
Functions | |
template<class T > | |
CELER_FORCEINLINE_FUNCTION T | celeritas::atomic_add (T *address, T value) |
Add to a value, returning the original value. | |
template<class T > | |
CELER_FORCEINLINE_FUNCTION T | celeritas::atomic_min (T *address, T value) |
Set the value to the minimum of the actual and given, returning old. | |
template<class T > | |
CELER_FORCEINLINE_FUNCTION T | celeritas::atomic_max (T *address, T value) |
Set the value to the maximum of the actual and given, returning old. | |
Atomics for use in kernel code (CUDA/HIP/OpenMP).