![]() |
QMCPACK
|
allocator locks memory pages allocated by ULPHA More...
Classes | |
struct | rebind |
Public Types | |
using | value_type = typename ULPHA::value_type |
using | size_type = typename ULPHA::size_type |
using | pointer = typename ULPHA::pointer |
using | const_pointer = typename ULPHA::const_pointer |
Public Member Functions | |
CUDALockedPageAllocator ()=default | |
template<class U , class V > | |
CUDALockedPageAllocator (const CUDALockedPageAllocator< U, V > &) | |
value_type * | allocate (std::size_t n) |
void | deallocate (value_type *pt, std::size_t n) |
allocator locks memory pages allocated by ULPHA
T | data type |
ULPHA | host memory allocator using unlocked page |
ULPHA cannot be CUDAHostAllocator
Definition at line 242 of file CUDAallocator.hpp.
struct qmcplusplus::CUDALockedPageAllocator::rebind |
Definition at line 255 of file CUDAallocator.hpp.
Class Members | ||
---|---|---|
typedef CUDALockedPageAllocator< U, V > | other |
using const_pointer = typename ULPHA::const_pointer |
Definition at line 247 of file CUDAallocator.hpp.
using pointer = typename ULPHA::pointer |
Definition at line 246 of file CUDAallocator.hpp.
using size_type = typename ULPHA::size_type |
Definition at line 245 of file CUDAallocator.hpp.
using value_type = typename ULPHA::value_type |
Definition at line 244 of file CUDAallocator.hpp.
|
default |
|
inline |
Definition at line 251 of file CUDAallocator.hpp.
|
inline |
Definition at line 260 of file CUDAallocator.hpp.
References qmcplusplus::cudaErrorCheck(), cudaHostRegister, cudaHostRegisterDefault, and qmcplusplus::n.
|
inline |
Definition at line 269 of file CUDAallocator.hpp.
References qmcplusplus::cudaErrorCheck(), cudaHostUnregister, and qmcplusplus::n.