alpaka
Abstraction Library for Parallel Kernel Acceleration
|
The compare and swap function object. More...
#include <Op.hpp>
Public Member Functions | |
template<typename T , std::enable_if_t<!std::is_floating_point_v< T >, bool > = true> | |
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto | operator() (T *addr, T const &compare, T const &value) const -> T |
AtomicCas for non floating point values. More... | |
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true> | |
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto | operator() (T *addr, T const &compare, T const &value) const -> T |
AtomicCas for floating point values. More... | |
|
inline |
|
inline |