21 namespace CudaMgr_Namespace {
25 namespace Buffer_Namespace {
29 BufferList::iterator segment_iter,
32 const size_t page_size = 512,
33 const size_t num_bytes = 0);
39 const size_t num_bytes,
40 const size_t offset = 0,
42 const int dst_device_id = -1)
override;
44 const size_t num_bytes,
45 const size_t offset = 0,
47 const int src_device_id = -1)
override;
void readData(int8_t *const dst, const size_t num_bytes, const size_t offset=0, const MemoryLevel dst_memory_level=CPU_LEVEL, const int dst_device_id=-1) override
Note(s): Forbid Copying Idiom 4.1.
CpuBuffer(BufferMgr *bm, BufferList::iterator segment_iter, const int device_id, CudaMgr_Namespace::CudaMgr *cuda_mgr, const size_t page_size=512, const size_t num_bytes=0)
CudaMgr_Namespace::CudaMgr * cuda_mgr_
Data_Namespace::MemoryLevel getType() const override
void writeData(int8_t *const src, const size_t num_bytes, const size_t offset=0, const MemoryLevel src_memory_level=CPU_LEVEL, const int src_device_id=-1) override
Note(s): Forbid Copying Idiom 4.1.