Class DeviceAllocator¶
Defined in File DeviceAllocator.hpp
Class Documentation¶
-
class
DeviceAllocator
¶ Lightweight allocator for use in GPU code.
Public Functions
-
__host__
DeviceAllocator
(Allocator allocator, size_t size)¶ Construct a new DeviceAllocator that will use allocator to allocate data.
- Parameters
allocator
: Allocator to use for allocating memory.
-
__host__
~DeviceAllocator
()¶
-
__host__ __device__ umpire::DeviceAllocator::DeviceAllocator(const DeviceAllocator & other)
-
__device__ void * umpire::DeviceAllocator::allocate(size_t size)
-
__host__