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

Underlying allocator for HIP device memory. More...

#include <hip_underlying_allocators.hpp>

Public Types

using value_type = T
 

Public Member Functions

 hip_device_allocator () noexcept=default
 
template<class U >
 hip_device_allocator (hip_device_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_device_allocator< T >

Underlying allocator for HIP device memory.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ hip_device_allocator() [1/2]

◆ hip_device_allocator() [2/2]

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

Member Function Documentation

◆ allocate()

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

◆ deallocate()

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

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