| 105 | } |
| 106 | |
| 107 | void 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 | |
| 117 | void DefaultMemoryManager::setMaxMemorySize() { |
| 118 | for (unsigned n = 0; n < memory.size(); n++) { |
no outgoing calls
no test coverage detected