DDC 0.1.0
Loading...
Searching...
No Matches
ddc::KokkosAllocator< T, MemorySpace > Class Template Reference

#include <kokkos_allocator.hpp>

Collaboration diagram for ddc::KokkosAllocator< T, MemorySpace >:
Collaboration graph

Classes

struct  rebind
 

Public Types

using value_type = T
 
using memory_space = MemorySpace
 

Public Member Functions

constexpr KokkosAllocator ()=default
 
constexpr KokkosAllocator (KokkosAllocator const &x)=default
 
constexpr KokkosAllocator (KokkosAllocator &&x) noexcept=default
 
template<class U >
constexpr KokkosAllocator (KokkosAllocator< U, MemorySpace > const &) noexcept
 
 ~KokkosAllocator ()=default
 
constexpr KokkosAllocatoroperator= (KokkosAllocator const &x)=default
 
constexpr KokkosAllocatoroperator= (KokkosAllocator &&x) noexcept=default
 
template<class U >
constexpr KokkosAllocatoroperator= (KokkosAllocator< U, MemorySpace > const &) noexcept
 
T * allocate (std::size_t n) const
 
T * allocate (std::string const &label, std::size_t n) const
 
void deallocate (T *p, std::size_t) const
 

Detailed Description

template<class T, class MemorySpace>
class ddc::KokkosAllocator< T, MemorySpace >

Definition at line 16 of file kokkos_allocator.hpp.


Class Documentation

◆ ddc::KokkosAllocator::rebind

struct ddc::KokkosAllocator::rebind
template<class T, class MemorySpace>
template<class U>
struct ddc::KokkosAllocator< T, MemorySpace >::rebind< U >

Definition at line 24 of file kokkos_allocator.hpp.

Collaboration diagram for ddc::KokkosAllocator< T, MemorySpace >::rebind< U >:
Collaboration graph
Class Members
typedef KokkosAllocator< U, MemorySpace > other

Member Typedef Documentation

◆ value_type

template<class T , class MemorySpace >
using ddc::KokkosAllocator< T, MemorySpace >::value_type = T

Definition at line 19 of file kokkos_allocator.hpp.

◆ memory_space

Definition at line 21 of file kokkos_allocator.hpp.

Constructor & Destructor Documentation

◆ KokkosAllocator() [1/4]

template<class T , class MemorySpace >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( )
constexprdefault

◆ KokkosAllocator() [2/4]

template<class T , class MemorySpace >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< T, MemorySpace > const x)
constexprdefault

◆ KokkosAllocator() [3/4]

template<class T , class MemorySpace >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< T, MemorySpace > &&  x)
constexprdefaultnoexcept

◆ KokkosAllocator() [4/4]

template<class T , class MemorySpace >
template<class U >
constexpr ddc::KokkosAllocator< T, MemorySpace >::KokkosAllocator ( KokkosAllocator< U, MemorySpace > const )
inlineexplicitconstexprnoexcept

Definition at line 36 of file kokkos_allocator.hpp.

◆ ~KokkosAllocator()

Member Function Documentation

◆ operator=() [1/3]

◆ operator=() [2/3]

template<class T , class MemorySpace >
constexpr KokkosAllocator & ddc::KokkosAllocator< T, MemorySpace >::operator= ( KokkosAllocator< T, MemorySpace > &&  x)
constexprdefaultnoexcept

◆ operator=() [3/3]

template<class T , class MemorySpace >
template<class U >
constexpr KokkosAllocator & ddc::KokkosAllocator< T, MemorySpace >::operator= ( KokkosAllocator< U, MemorySpace > const )
inlineconstexprnoexcept

Definition at line 47 of file kokkos_allocator.hpp.

◆ allocate() [1/2]

template<class T , class MemorySpace >
T * ddc::KokkosAllocator< T, MemorySpace >::allocate ( std::size_t  n) const
inline

Definition at line 51 of file kokkos_allocator.hpp.

◆ allocate() [2/2]

template<class T , class MemorySpace >
T * ddc::KokkosAllocator< T, MemorySpace >::allocate ( std::string const label,
std::size_t  n 
) const
inline

Definition at line 56 of file kokkos_allocator.hpp.

◆ deallocate()

template<class T , class MemorySpace >
void ddc::KokkosAllocator< T, MemorySpace >::deallocate ( T *  p,
std::size_t   
) const
inline

Definition at line 61 of file kokkos_allocator.hpp.


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