![]() |
QMCPACK
|
allocator for CUDA unified memory More...
Classes | |
struct | rebind |
Public Types | |
using | value_type = T |
using | size_type = size_t |
using | pointer = T * |
using | const_pointer = const T * |
Public Member Functions | |
CUDAManagedAllocator ()=default | |
template<class U > | |
CUDAManagedAllocator (const CUDAManagedAllocator< U > &) | |
T * | allocate (std::size_t n) |
void | deallocate (T *p, std::size_t) |
allocator for CUDA unified memory
T | data type |
Definition at line 41 of file CUDAallocator.hpp.
struct qmcplusplus::CUDAManagedAllocator::rebind |
Definition at line 54 of file CUDAallocator.hpp.
Class Members | ||
---|---|---|
typedef CUDAManagedAllocator< U > | other |
using const_pointer = const T* |
Definition at line 46 of file CUDAallocator.hpp.
using pointer = T* |
Definition at line 45 of file CUDAallocator.hpp.
using size_type = size_t |
Definition at line 44 of file CUDAallocator.hpp.
using value_type = T |
Definition at line 43 of file CUDAallocator.hpp.
|
default |
|
inline |
Definition at line 50 of file CUDAallocator.hpp.
|
inline |
Definition at line 59 of file CUDAallocator.hpp.
References qmcplusplus::cudaErrorCheck(), cudaMallocManaged, and qmcplusplus::n.
|
inline |
Definition at line 67 of file CUDAallocator.hpp.
References qmcplusplus::cudaErrorCheck(), and cudaFree.