|
UMPIRE
Umpire: resource management and provision
|
Lightweight allocator for use in GPU code. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/umpire/checkouts/develop/src/umpire/DeviceAllocator.hpp>
Public Member Functions | |
| __host__ __device__ | ~DeviceAllocator () |
| __host__ __device__ | DeviceAllocator (const DeviceAllocator &other) |
| __device__ void * | allocate (size_t size) |
| __host__ __device__ int | getID () |
| __host__ __device__ const char * | getName () |
| __host__ void | destroy () |
| __host__ __device__ bool | isInitialized () |
| __host__ __device__ unsigned int | getCurrentSize () |
| __host__ __device__ size_t | getTotalSize () |
| __host__ __device__ void | reset () |
Friends | |
| __host__ DeviceAllocator | make_device_allocator (Allocator allocator, size_t size, const std::string &name) |
| Construct a new DeviceAllocator. Calls the private Device Allocator constructor that records the associated id. More... | |
Lightweight allocator for use in GPU code.
| __host__ __device__ umpire::DeviceAllocator::~DeviceAllocator | ( | ) |
| __host__ __device__ umpire::DeviceAllocator::DeviceAllocator | ( | const DeviceAllocator & | other | ) |
| __device__ void * umpire::DeviceAllocator::allocate | ( | size_t | size | ) |
References UMPIRE_ERROR.
| __host__ __device__ int umpire::DeviceAllocator::getID | ( | ) |
| __host__ __device__ const char * umpire::DeviceAllocator::getName | ( | ) |
| __host__ void umpire::DeviceAllocator::destroy | ( | ) |
References umpire::Allocator::deallocate(), and umpire::ResourceManager::getInstance().
Referenced by umpire::destroy_device_allocator().
| __host__ __device__ bool umpire::DeviceAllocator::isInitialized | ( | ) |
Referenced by umpire::is_device_allocator().
| __host__ __device__ unsigned int umpire::DeviceAllocator::getCurrentSize | ( | ) |
| __host__ __device__ size_t umpire::DeviceAllocator::getTotalSize | ( | ) |
| __host__ __device__ void umpire::DeviceAllocator::reset | ( | ) |
References umpire::ResourceManager::getInstance().
|
friend |
Construct a new DeviceAllocator. Calls the private Device Allocator constructor that records the associated id.
| allocator | Allocator to build the DeviceAllocator from. |
| size | Total size of the DeviceAllocator. |
| name | of the DeviceAllocator |