Template Numerical Library version\ main:4e58ea6
|
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 > &&) |
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.