|
Cuda battery library
1.0.0
|
#include <memory.hpp>
Public Types | |
| template<class T > | |
| using | atomic_type = cuda::atomic< T, scope > |
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 | |
| constexpr static const bool | sequential = false |
Memory load and store operations relative to a cuda scope (per-thread, block, grid, ...) and given a certain memory order (by default relaxed).
| using battery::atomic_memory_scoped< scope, mem_order >::atomic_type = cuda::atomic<T, scope> |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
staticconstexpr |