Class Data_Namespace::detail::TypedThrustAllocatorState

class TypedThrustAllocatorState

Manages the underlying state of a TypedThrustAllocator. The state consists of: DataMgrMemoryResource: this instance holds onto a pointer of the ThrustAllocator which performs generic allocations thrust::device_ptr_memory_resource: this instance is an adapter that converts the pointer returned from the DataMgrMemoryResource to a thrust::device_ptr.

Subclassed by Data_Namespace::TypedThrustAllocator< T >

Public Types

using Pointer = thrust::pointer<void, thrust::device_system_tag, thrust::use_default, thrust::use_default>
using DeviceResource = thrust::device_ptr_memory_resource<DataMgrMemoryResource<Pointer>>

Public Functions

TypedThrustAllocatorState(ThrustAllocator &thrust_allocator)
TypedThrustAllocatorState(const TypedThrustAllocatorState &other)
TypedThrustAllocatorState(TypedThrustAllocatorState &&other)
__host__ __device__ void Data_Namespace::detail::TypedThrustAllocatorState::operator=(const TypedThrustAllocatorState & other)

Protected Attributes

DataMgrMemoryResource<Pointer> data_mgr_mem_rsrc_
DeviceResource device_rsrc_