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

Method resetMemoryManager

src/backend/opencl/device_manager.cpp:404–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void DeviceManager::resetMemoryManager() {
405 // Replace with default memory manager
406 std::unique_ptr<MemoryManagerBase> mgr(
407 new common::DefaultMemoryManager(getDeviceCount(), common::MAX_BUFFERS,
408 AF_MEM_DEBUG || AF_OPENCL_MEM_DEBUG));
409 setMemoryManager(std::move(mgr));
410}
411
412void DeviceManager::setMemoryManagerPinned(
413 std::unique_ptr<MemoryManagerBase> newMgr) {

Callers 1

resetMemoryManagerFunction · 0.45

Calls 2

getDeviceCountFunction · 0.70
setMemoryManagerFunction · 0.70

Tested by

no test coverage detected