Allocator for page-locked memory on the host.
More...
#include <TNL/Allocators/HipHost.h>
|
|
| 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 > &&) |
template<class T>
struct TNL::Allocators::HipHost< T >
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.
The documentation for this struct was generated from the following file:
- src/TNL/Allocators/HipHost.h