MCPcopy Create free account
hub / github.com/ROCm/clr / AddMemory

Method AddMemory

hipamd/src/hip_mempool_impl.cpp:28–33  ·  view source on GitHub ↗

================================================================================================

Source from the content-addressed store, hash-verified

26
27// ================================================================================================
28void Heap::AddMemory(amd::Memory* memory, Stream* stream) {
29 auto mem_size = memory->getSize();
30 allocations_.insert({{mem_size, memory}, {stream}});
31 total_size_ += mem_size;
32 max_total_size_ = std::max(max_total_size_, total_size_);
33}
34
35// ================================================================================================
36void Heap::AddMemory(amd::Memory* memory, const MemoryTimestamp& ts) {

Callers 3

AllocateMemoryMethod · 0.80
FreeMemoryMethod · 0.80
AddBusyMemoryMethod · 0.80

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected