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

Method FreeMemory

hipamd/src/hip_device.cpp:109–118  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

107
108// ================================================================================================
109bool Device::FreeMemory(amd::Memory* memory, Stream* stream, Event* event) {
110 amd::ScopedLock lock(lock_);
111 // Search for memory in the entire list of pools
112 for (auto it : mem_pools_) {
113 if (it->FreeMemory(memory, stream, event)) {
114 return true;
115 }
116 }
117 return false;
118}
119
120// ================================================================================================
121void Device::ReleaseFreedMemory() {

Callers 3

ihipFreeFunction · 0.45
submitMethod · 0.45
hipFreeAsyncFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected