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

Template Numerical Library version\ main:16b9213d5

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

Allocator for the HIP Unified Memory system. More...

`#include <TNL/Allocators/HipManaged.h>`

## Public Types
using | difference_type = std::ptrdiff_t
using | size_type = std::size_t
using | value_type = T

## Public Member Functions
| HipManaged (const HipManaged &)=default
template<class U>
| HipManaged (const HipManaged< U > &)
| HipManaged (HipManaged &&) noexcept=default
template<class U>
| HipManaged (HipManaged< U > &&)
value_type * | allocate (size_type n)
void | deallocate (value_type *ptr, size_type)
HipManaged & | operator= (const HipManaged &)=default
template<class U>
HipManaged & | operator= (const HipManaged< U > &)
HipManaged & | operator= (HipManaged &&) noexcept=default
template<class U>
HipManaged & | operator= (HipManaged< U > &&)

## Detailed Description

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

Allocator for the HIP Unified Memory system.

The memory allocated by this allocator will be automatically managed by the HIP Unified Memory system. The allocation is done using the hipMallocManaged function and the deallocation is done using the hipFree function.

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

- src/TNL/Allocators/HipManaged.h