![]() |
QMCPACK
|
template class analogous to std::allocator_traits. More...
Public Types | |
using | value_type = typename Allocator::value_type |
Static Public Member Functions | |
static void | fill_n (value_type *ptr, size_t n, const value_type &value) |
static void | attachReference (Allocator &from, Allocator &to, std::ptrdiff_t ptr_offset) |
So we can write generic tests that work with all QMCPACK allocators. More... | |
static void | updateTo (Allocator &a, value_type *host_ptr, size_t n, size_t offset=0) |
static void | updateFrom (Allocator &a, value_type *host_ptr, size_t n, size_t offset=0) |
static void | deviceSideCopyN (Allocator &a, size_t to, size_t n, size_t from) |
Static Public Attributes | |
static constexpr bool | is_host_accessible = true |
static constexpr bool | is_dual_space = false |
template class analogous to std::allocator_traits.
Definition at line 26 of file allocator_traits.hpp.
using value_type = typename Allocator::value_type |
Definition at line 28 of file allocator_traits.hpp.
|
static |
So we can write generic tests that work with all QMCPACK allocators.
ptr_offset | pointer offset between to and from |
Referenced by Vector< T, std::allocator< T > >::attachReference(), VectorSoaContainer< ST, 5 >::attachReference(), and Vector< T, std::allocator< T > >::Vector().
|
static |
Referenced by VectorSoaContainer< ST, 5 >::copyDeviceDataByIndex().
|
inlinestatic |
Definition at line 33 of file allocator_traits.hpp.
References OMPstd::fill_n(), and qmcplusplus::n.
Referenced by Vector< T, std::allocator< T > >::construct_fill_elements(), qmc_allocator_traits< DualAllocator< T, DeviceAllocator, HostAllocator > >::fill_n(), qmc_allocator_traits< OMPallocator< T, HostAllocator > >::fill_n(), Vector< T, std::allocator< T > >::operator=(), and Vector< T, std::allocator< T > >::zero().
|
static |
|
static |
Referenced by Vector< T, std::allocator< T > >::updateTo(), and VectorSoaContainer< ST, 5 >::updateTo().
|
static |
Definition at line 31 of file allocator_traits.hpp.
|
static |
Definition at line 30 of file allocator_traits.hpp.