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

Method resetMemoryManagerPinned

src/backend/opencl/device_manager.cpp:431–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void DeviceManager::resetMemoryManagerPinned() {
432 // Replace with default memory manager
433 std::unique_ptr<MemoryManagerBase> mgr(
434 new common::DefaultMemoryManager(getDeviceCount(), common::MAX_BUFFERS,
435 AF_MEM_DEBUG || AF_OPENCL_MEM_DEBUG));
436 setMemoryManagerPinned(std::move(mgr));
437}
438
439DeviceManager::~DeviceManager() {
440 for (int i = 0; i < getDeviceCount(); ++i) { gfxManagers[i] = nullptr; }

Callers 1

resetMemoryManagerPinnedFunction · 0.45

Calls 2

getDeviceCountFunction · 0.70
setMemoryManagerPinnedFunction · 0.70

Tested by

no test coverage detected