5 #include "mem_pointer_base.h"
12 class DeviceAllocations_CUDestroyer;
22 typedef std::map<void *,MemPointerBase*> m_alloctype;
25 void addAllocation(
void *datapointer,MemPointerBase *device_mem_pointer,
int deviceid);
26 void removeAllocation(
void *datapointer,MemPointerBase *device_mem_pointer,
int deviceid);
34 friend class DeviceAllocations_CUDestroyer<T>;
37 static DeviceAllocations_CUDestroyer<T> _destroyer;
49 class DeviceAllocations_CUDestroyer
53 ~DeviceAllocations_CUDestroyer();
64 DeviceAllocations_CUDestroyer<T>::DeviceAllocations_CUDestroyer(DeviceAllocations_CU<T>* s)
70 DeviceAllocations_CUDestroyer<T>::~DeviceAllocations_CUDestroyer ()
76 void DeviceAllocations_CUDestroyer<T>::SetDeviceAllocations_CU (DeviceAllocations_CU<T>* s)
82 #include "device_allocations_cu.inl"
void addAllocation(void *datapointer, MemPointerBase *device_mem_pointer, int deviceid)
Definition: device_allocations_cu.inl:58
void removeAllocation(void *datapointer, MemPointerBase *device_mem_pointer, int deviceid)
Definition: device_allocations_cu.inl:71
#define MAX_GPU_DEVICES
Definition: globals.h:43
bool freeAllocation(size_t minsize, int deviceid)
Definition: device_allocations_cu.inl:93
DeviceAllocations_CU()
Definition: device_allocations_cu.inl:29
virtual ~DeviceAllocations_CU()
Definition: device_allocations_cu.inl:38
static DeviceAllocations_CU * getInstance()
Definition: device_allocations_cu.inl:15
void printList(int deviceid)
Definition: device_allocations_cu.inl:115
Definition: device_allocations_cu.h:20