32 namespace Data_Namespace {
42 virtual int8_t*
alloc(
const size_t num_bytes) = 0;
51 const size_t num_bytes)
const = 0;
54 const void* device_src,
55 const size_t num_bytes)
const = 0;
57 virtual void zeroDeviceMem(int8_t* device_ptr,
const size_t num_bytes)
const = 0;
61 const size_t num_bytes)
const = 0;
virtual int8_t * alloc(const size_t num_bytes)=0
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 zeroDeviceMem(int8_t *device_ptr, const size_t num_bytes) const =0
An AbstractBuffer is a unit of data management for a data manager.
virtual void copyFromDevice(void *host_dst, const void *device_src, const size_t num_bytes) const =0
virtual void setDeviceMem(int8_t *device_ptr, unsigned char uc, const size_t num_bytes) const =0