OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DeviceAllocator Class Referenceabstract

#include <DeviceAllocator.h>

+ Inheritance diagram for DeviceAllocator:
+ Collaboration diagram for DeviceAllocator:

Public Member Functions

virtual void free (Data_Namespace::AbstractBuffer *ab) const =0
 
virtual void copyToDevice (void *device_dst, const void *host_src, const size_t num_bytes) const =0
 
virtual void copyFromDevice (void *host_dst, const void *device_src, const size_t num_bytes) const =0
 
virtual void zeroDeviceMem (int8_t *device_ptr, const size_t num_bytes) const =0
 
virtual void setDeviceMem (int8_t *device_ptr, unsigned char uc, const size_t num_bytes) const =0
 
- Public Member Functions inherited from Allocator
 Allocator ()
 
virtual ~Allocator ()
 
virtual int8_t * alloc (const size_t num_bytes)=0
 

Detailed Description

Definition at line 45 of file DeviceAllocator.h.

Member Function Documentation

virtual void DeviceAllocator::copyFromDevice ( void *  host_dst,
const void *  device_src,
const size_t  num_bytes 
) const
pure virtual

Implemented in CudaAllocator.

Referenced by copy_group_by_buffers_from_gpu(), and get_num_allocated_rows_from_gpu().

+ Here is the caller graph for this function:

virtual void DeviceAllocator::copyToDevice ( void *  device_dst,
const void *  host_src,
const size_t  num_bytes 
) const
pure virtual
virtual void DeviceAllocator::free ( Data_Namespace::AbstractBuffer ab) const
pure virtual

Implemented in CudaAllocator.

virtual void DeviceAllocator::setDeviceMem ( int8_t *  device_ptr,
unsigned char  uc,
const size_t  num_bytes 
) const
pure virtual

Implemented in CudaAllocator.

Referenced by QueryMemoryInitializer::prepareTopNHeapsDevBuffer().

+ Here is the caller graph for this function:

virtual void DeviceAllocator::zeroDeviceMem ( int8_t *  device_ptr,
const size_t  num_bytes 
) const
pure virtual

Implemented in CudaAllocator.

Referenced by QueryMemoryInitializer::allocateCountDistinctGpuMem(), QueryMemoryInitializer::prepareTopNHeapsDevBuffer(), and QueryMemoryInitializer::setupTableFunctionGpuBuffers().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: