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

Method resetMemoryManager

src/backend/cpu/device_manager.cpp:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142CPUInfo DeviceManager::getCPUInfo() const { return cinfo; }
143
144void DeviceManager::resetMemoryManager() {
145 // Replace with default memory manager
146 std::unique_ptr<MemoryManagerBase> mgr(
147 new common::DefaultMemoryManager(getDeviceCount(), common::MAX_BUFFERS,
148 AF_MEM_DEBUG || AF_CPU_MEM_DEBUG));
149 setMemoryManager(std::move(mgr));
150}
151
152void DeviceManager::setMemoryManager(
153 std::unique_ptr<MemoryManagerBase> newMgr) {

Callers 1

resetMemoryManagerFunction · 0.45

Calls 2

getDeviceCountFunction · 0.70
setMemoryManagerFunction · 0.70

Tested by

no test coverage detected