Cuda battery library
|
#include <memory.hpp>
Public Types | |
template<class T > | |
using | atomic_type = impl::atomic_t<T> |
Static Public Member Functions | |
template<class T > | |
CUDA static INLINE T | load (const atomic_type< T > &a) |
template<class T > | |
CUDA static INLINE void | store (atomic_type< T > &a, T v) |
template<class T > | |
CUDA static INLINE T | exchange (atomic_type< T > &a, T v) |
Static Public Attributes | |
static constexpr const bool | sequential = false |
Use the standard C++ atomic type, either provided by libcudacxx if we compile with a CUDA compiler, or through the STL otherwise.
using battery::atomic_memory< mem_order >::atomic_type = impl::atomic_t<T> |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
staticconstexpr |