Struct CachingDeviceAllocator::BlockDescriptor

Nested Relationships

This struct is a nested type of Struct CachingDeviceAllocator.

Struct Documentation

struct hipcub::CachingDeviceAllocator::BlockDescriptor

Descriptor for device memory allocations

Public Functions

inline BlockDescriptor(void *d_ptr, int device)
inline BlockDescriptor(int device)

Public Members

void *d_ptr
size_t bytes
unsigned int bin
int device
hipStream_t associated_stream
hipEvent_t ready_event

Public Static Functions

static inline bool PtrCompare(const BlockDescriptor &a, const BlockDescriptor &b)
static inline bool SizeCompare(const BlockDescriptor &a, const BlockDescriptor &b)