Template Numerical Library version\ main:4e58ea6
|
Allocator for page-locked memory on the host. More...
#include <TNL/Allocators/CudaHost.h>
Public Types | |
using | difference_type = std::ptrdiff_t |
using | size_type = std::size_t |
using | value_type = T |
Public Member Functions | |
CudaHost (const CudaHost &)=default | |
template<class U > | |
CudaHost (const CudaHost< U > &) | |
CudaHost (CudaHost &&) noexcept=default | |
template<class U > | |
CudaHost (CudaHost< U > &&) | |
value_type * | allocate (size_type n) |
void | deallocate (value_type *ptr, size_type) |
CudaHost & | operator= (const CudaHost &)=default |
template<class U > | |
CudaHost & | operator= (const CudaHost< U > &) |
CudaHost & | operator= (CudaHost &&) noexcept=default |
template<class U > | |
CudaHost & | operator= (CudaHost< U > &&) |
Allocator for page-locked memory on the host.
The allocation is done using the cudaMallocHost
function and the deallocation is done using the cudaFreeHost
function.