Class DeviceAllocator

class DeviceAllocator : public Allocator

Subclassed by CudaAllocator

Public 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