1 #ifndef MGCPP_ALLOCATOR_HPP 2 #define MGCPP_ALLOCATOR_HPP 9 class device_memory_resource;
11 template <
typename Type>
25 template <
typename NewType>
56 template <typename T1, typename T2>
59 template <typename T1, typename T2>
64 #include <mgcpp/allocators/allocator.tpp> 65 #endif // MGCPP_ALLOCATOR_HPP typename device_value_type< Type >::type device_value_type
Definition: allocator.hpp:21
Definition: adapter_base.hpp:12
device_pointer allocate_device(size_t n)
void copy_to_host(device_pointer host, device_const_pointer device, size_t n) const
memory_resource * host_resource() const noexcept
device_memory_resource * device_resource() const noexcept
Definition: device_memory_resource.hpp:8
host_value_type const * host_const_pointer
Definition: allocator.hpp:19
Definition: memory_resource.hpp:12
host_pointer allocate_host(size_t n)
void deallocate_device(device_pointer p, size_t n)
size_t device_id() const noexcept
void deallocate_host(host_pointer p, size_t n)
Type host_value_type
Definition: allocator.hpp:17
Definition: allocator.hpp:12
allocator select_on_container_copy_construction() const
device_value_type const * device_const_pointer
Definition: allocator.hpp:23
Type type
Definition: device_value_type.hpp:20
host_value_type * host_pointer
Definition: allocator.hpp:18
void copy_from_host(device_pointer device, device_const_pointer host, size_t n) const
device_value_type * device_pointer
Definition: allocator.hpp:22