OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 (int8_t *device_dst, const int8_t *host_src, const size_t num_bytes) const =0
 
virtual void copyFromDevice (int8_t *host_dst, const int8_t *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 46 of file DeviceAllocator.h.

Member Function Documentation

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

Implemented in CudaAllocator.

virtual void DeviceAllocator::copyToDevice ( int8_t *  device_dst,
const int8_t *  host_src,
const size_t  num_bytes 
) const
pure virtual

Implemented in CudaAllocator.

Referenced by create_dev_group_by_buffers().

+ Here is the caller graph for this function:

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.

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

Implemented in CudaAllocator.


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