MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / removeMemoryManagement

Method removeMemoryManagement

src/backend/common/DefaultMemoryManager.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void DefaultMemoryManager::removeMemoryManagement(int device) {
108 if (static_cast<size_t>(device) >= memory.size()) {
109 AF_ERROR("No matching device found", AF_ERR_ARG);
110 }
111
112 // Do garbage collection for the device and leave the memory::memory_info
113 // struct from the memory vector intact
114 cleanDeviceMemoryManager(device);
115}
116
117void DefaultMemoryManager::setMaxMemorySize() {
118 for (unsigned n = 0; n < memory.size(); n++) {

Callers 2

removeDeviceContextFunction · 0.45
removeDeviceContextFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected