CPPuddle
Public Types | Public Member Functions | List of all members
cppuddle::memory_recycling::detail::hip_pinned_allocator< T > Struct Template Reference

Underlying host allocator for HIP pinned memory. More...

#include <hip_underlying_allocators.hpp>

Public Types

using value_type = T
 

Public Member Functions

 hip_pinned_allocator () noexcept=default
 
template<class U >
 hip_pinned_allocator (hip_pinned_allocator< U > const &) noexcept
 
T * allocate (std::size_t n)
 
void deallocate (T *p, std::size_t n)
 

Detailed Description

template<class T>
struct cppuddle::memory_recycling::detail::hip_pinned_allocator< T >

Underlying host allocator for HIP pinned memory.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ hip_pinned_allocator() [1/2]

◆ hip_pinned_allocator() [2/2]

template<class T >
template<class U >
cppuddle::memory_recycling::detail::hip_pinned_allocator< T >::hip_pinned_allocator ( hip_pinned_allocator< U > const &  )
inlineexplicitnoexcept

Member Function Documentation

◆ allocate()

template<class T >
T* cppuddle::memory_recycling::detail::hip_pinned_allocator< T >::allocate ( std::size_t  n)
inline

◆ deallocate()

template<class T >
void cppuddle::memory_recycling::detail::hip_pinned_allocator< T >::deallocate ( T *  p,
std::size_t  n 
)
inline

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