29 #include <unordered_map>
32 namespace Data_Namespace {
44 int8_t*
allocate(std::ptrdiff_t num_bytes);
45 void deallocate(int8_t* ptr,
size_t num_bytes);
56 using PtrMapperType = std::unordered_map<int8_t*, Data_Namespace::AbstractBuffer*>;
std::unordered_map< int8_t *, Data_Namespace::AbstractBuffer * > PtrMapperType
int8_t * allocate(std::ptrdiff_t num_bytes)
std::vector< Data_Namespace::AbstractBuffer * > scoped_buffers_
void deallocate(int8_t *ptr, size_t num_bytes)
Data_Namespace::DataMgr * getDataMgr() const
std::vector< int8_t * > default_alloc_scoped_buffers_
Data_Namespace::DataMgr * data_mgr_
PtrMapperType raw_to_ab_ptr_
int8_t * allocateScopedBuffer(std::ptrdiff_t num_bytes)
ThrustAllocator(Data_Namespace::DataMgr *mgr, const int id)