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

Underlying allocator for CUDA device memory. More...

#include <cuda_underlying_allocators.hpp>

Public Types

using value_type = T
 

Public Member Functions

 cuda_device_allocator () noexcept=default
 
template<class U >
 cuda_device_allocator (cuda_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::cuda_device_allocator< T >

Underlying allocator for CUDA device memory.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ cuda_device_allocator() [1/2]

◆ cuda_device_allocator() [2/2]

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

Member Function Documentation

◆ allocate()

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

◆ deallocate()

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

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