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

Method resetMemoryManager

src/backend/cuda/device_manager.cpp:411–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411void DeviceManager::resetMemoryManager() {
412 // Replace with default memory manager
413 std::unique_ptr<MemoryManagerBase> mgr(
414 new common::DefaultMemoryManager(getDeviceCount(), common::MAX_BUFFERS,
415 AF_MEM_DEBUG || AF_CUDA_MEM_DEBUG));
416 setMemoryManager(std::move(mgr));
417}
418
419void DeviceManager::setMemoryManagerPinned(
420 std::unique_ptr<MemoryManagerBase> newMgr) {

Callers 1

resetMemoryManagerFunction · 0.45

Calls 2

getDeviceCountFunction · 0.70
setMemoryManagerFunction · 0.70

Tested by

no test coverage detected