OmniSciDB
a5dc49c757
|
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. More...
#include <TypedThrustAllocator.h>
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 Member Functions | |
TypedThrustAllocatorState (ThrustAllocator &thrust_allocator) | |
TypedThrustAllocatorState (const TypedThrustAllocatorState &other) | |
TypedThrustAllocatorState (TypedThrustAllocatorState &&other) | |
__host__ __device__ void | operator= (const TypedThrustAllocatorState &other) |
Protected Attributes | |
DataMgrMemoryResource< Pointer > | data_mgr_mem_rsrc_ |
DeviceResource | device_rsrc_ |
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.
Definition at line 83 of file TypedThrustAllocator.h.
using Data_Namespace::detail::TypedThrustAllocatorState::DeviceResource = thrust::device_ptr_memory_resource<DataMgrMemoryResource<Pointer>> |
Definition at line 91 of file TypedThrustAllocator.h.
using Data_Namespace::detail::TypedThrustAllocatorState::Pointer = thrust:: pointer<void, thrust::device_system_tag, thrust::use_default, thrust::use_default> |
Definition at line 86 of file TypedThrustAllocator.h.
|
inline |
Definition at line 93 of file TypedThrustAllocator.h.
|
inline |
Definition at line 98 of file TypedThrustAllocator.h.
|
inline |
Definition at line 101 of file TypedThrustAllocator.h.
|
inline |
Definition at line 105 of file TypedThrustAllocator.h.
References data_mgr_mem_rsrc_.
Referenced by Data_Namespace::TypedThrustAllocator< T >::operator=().
|
protected |
Definition at line 117 of file TypedThrustAllocator.h.
Referenced by operator=().
|
protected |
Definition at line 118 of file TypedThrustAllocator.h.