Template Numerical Library: TNL::Allocators::CudaHost< T > Struct Template Reference

Template Numerical Library version\ main:be7e16d88

Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
TNL::Allocators::CudaHost< T > Struct Template Reference

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 > &&)

## Detailed Description

template<class T>
struct TNL::Allocators::CudaHost< T >

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.

The documentation for this struct was generated from the following file:

- src/TNL/Allocators/CudaHost.h