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