Class DeviceAllocator¶
Defined in File DeviceAllocator.hpp
Class Documentation¶
-
class
umpire
::
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__ DeviceAllocator (const DeviceAllocator &other)
-
__device__ void * allocate (size_t size)
-
__host__