Template Numerical Library version\ main:47c9bc3e
Loading...
Searching...
No Matches
TNL::Allocators::HipHost< T > Struct Template Reference

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)
HipHostoperator= (const HipHost &)=default
template<class U>
HipHostoperator= (const HipHost< U > &)
HipHostoperator= (HipHost &&) noexcept=default
template<class U>
HipHostoperator= (HipHost< U > &&)

Detailed Description

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: