![]() |
mgcpp
A C++ Math Library Based on CUDA
|
#include <allocator.hpp>
Public Types | |
| using | host_value_type = Type |
| using | host_pointer = host_value_type * |
| using | host_const_pointer = host_value_type const * |
| using | device_value_type = typename device_value_type< Type >::type |
| using | device_pointer = device_value_type * |
| using | device_const_pointer = device_value_type const * |
| template<typename NewType > | |
| using | rebind_alloc = allocator< NewType > |
Public Member Functions | |
| allocator () | |
| allocator (memory_resource *host, device_memory_resource *device) | |
| template<class U > | |
| allocator (const allocator< U > &other) | |
| host_pointer | allocate_host (size_t n) |
| void | deallocate_host (host_pointer p, size_t n) |
| device_pointer | allocate_device (size_t n) |
| void | deallocate_device (device_pointer p, size_t n) |
| void | copy_from_host (device_pointer device, device_const_pointer host, size_t n) const |
| void | copy_to_host (device_pointer host, device_const_pointer device, size_t n) const |
| allocator | select_on_container_copy_construction () const |
| memory_resource * | host_resource () const noexcept |
| device_memory_resource * | device_resource () const noexcept |
| size_t | device_id () const noexcept |
| using mgcpp::allocator< Type >::device_const_pointer = device_value_type const* |
| using mgcpp::allocator< Type >::device_pointer = device_value_type* |
| using mgcpp::allocator< Type >::device_value_type = typename device_value_type<Type>::type |
| using mgcpp::allocator< Type >::host_const_pointer = host_value_type const* |
| using mgcpp::allocator< Type >::host_pointer = host_value_type* |
| using mgcpp::allocator< Type >::host_value_type = Type |
| using mgcpp::allocator< Type >::rebind_alloc = allocator<NewType> |
| mgcpp::allocator< Type >::allocator | ( | ) |
| mgcpp::allocator< Type >::allocator | ( | memory_resource * | host, |
| device_memory_resource * | device | ||
| ) |
| mgcpp::allocator< Type >::allocator | ( | const allocator< U > & | other | ) |
| device_pointer mgcpp::allocator< Type >::allocate_device | ( | size_t | n | ) |
| host_pointer mgcpp::allocator< Type >::allocate_host | ( | size_t | n | ) |
| void mgcpp::allocator< Type >::copy_from_host | ( | device_pointer | device, |
| device_const_pointer | host, | ||
| size_t | n | ||
| ) | const |
| void mgcpp::allocator< Type >::copy_to_host | ( | device_pointer | host, |
| device_const_pointer | device, | ||
| size_t | n | ||
| ) | const |
| void mgcpp::allocator< Type >::deallocate_device | ( | device_pointer | p, |
| size_t | n | ||
| ) |
| void mgcpp::allocator< Type >::deallocate_host | ( | host_pointer | p, |
| size_t | n | ||
| ) |
|
noexcept |
|
noexcept |
|
noexcept |
| allocator mgcpp::allocator< Type >::select_on_container_copy_construction | ( | ) | const |
1.8.13