Block-Structured AMR Software Framework
amrex::Gpu::Atomic::detail Namespace Reference

Functions

template<typename R , typename I , typename F >
AMREX_GPU_DEVICE AMREX_FORCE_INLINEatomic_op (R *const address, R const val, F const f) noexcept
 
template<typename R , typename I , typename Op , typename Cond >
AMREX_GPU_DEVICE AMREX_FORCE_INLINE bool atomic_op_if (R *const address, R const val, Op &&op, Cond &&cond) noexcept
 

Function Documentation

◆ atomic_op()

template<typename R , typename I , typename F >
AMREX_GPU_DEVICE AMREX_FORCE_INLINE R amrex::Gpu::Atomic::detail::atomic_op ( R *const  address,
R const  val,
F const  f 
)
noexcept

◆ atomic_op_if()

template<typename R , typename I , typename Op , typename Cond >
AMREX_GPU_DEVICE AMREX_FORCE_INLINE bool amrex::Gpu::Atomic::detail::atomic_op_if ( R *const  address,
R const  val,
Op &&  op,
Cond &&  cond 
)
noexcept