41 enum class AllocationSpace { Host,
44 struct AllocationMeta {
45 AllocationSpace space;
50 using MemoryType = std::underlying_type_t<o2::gpu::GPUMemoryResource::MemoryType>;
52 void* allocateHost(
size_t size);
53 void* allocateDevice(
size_t size);
54 void freeAllocation(
void*
ptr, AllocationSpace space);
55 void removeFromTagLocked(uint64_t tag,
void*
ptr);
58 std::vector<uint64_t> mTagStack;
59 std::unordered_map<uint64_t, std::vector<void*>> mTaggedAllocations;
60 std::unordered_map<void*, AllocationMeta> mAllocations;