Template Numerical Library version\ main:4e58ea6
Loading...
Searching...
No Matches
TNL::Allocators::Hip< T > Struct Template Reference

Allocator for the HIP device memory space. More...

#include <TNL/Allocators/Hip.h>

Public Types

using difference_type = std::ptrdiff_t
 
using size_type = std::size_t
 
using value_type = T
 

Public Member Functions

 Hip (const Hip &)=default
 
template<class U >
 Hip (const Hip< U > &)
 
 Hip (Hip &&) noexcept=default
 
template<class U >
 Hip (Hip< U > &&)
 
value_type * allocate (size_type n)
 
void deallocate (value_type *ptr, size_type)
 
Hipoperator= (const Hip &)=default
 
template<class U >
Hipoperator= (const Hip< U > &)
 
Hipoperator= (Hip &&) noexcept=default
 
template<class U >
Hipoperator= (Hip< U > &&)
 

Detailed Description

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

Allocator for the HIP device memory space.

The allocation is done using the hipMalloc function and the deallocation is done using the hipFree function.


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