Cuda battery library
|
#include <memory.hpp>
Public Types | |
template<class T > | |
using | atomic_type = T |
Static Public Member Functions | |
template<class T > | |
CUDA static INLINE constexpr T | load (const atomic_type< T > &a) |
template<class T > | |
CUDA static INLINE constexpr std::enable_if_t<!read_only, void > | store (atomic_type< T > &a, T v) |
template<class T > | |
CUDA static INLINE constexpr std::enable_if_t<!read_only, T > | exchange (atomic_type< T > &a, T v) |
Static Public Attributes | |
static constexpr const bool | sequential = true |
Represent the memory of a variable that cannot be accessed by multiple threads.
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
staticconstexpr |
Indicate this memory is written by a single thread.