Template Numerical Library version\ main:4e58ea6
Loading...
Searching...
No Matches
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)
 
HipManagedoperator= (const HipManaged &)=default
 
template<class U >
HipManagedoperator= (const HipManaged< U > &)
 
HipManagedoperator= (HipManaged &&) noexcept=default
 
template<class U >
HipManagedoperator= (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: