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

Method resetMemoryManagerPinned

src/backend/oneapi/device_manager.cpp:281–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void DeviceManager::resetMemoryManagerPinned() {
282 // Replace with default memory manager
283 std::unique_ptr<MemoryManagerBase> mgr(
284 new common::DefaultMemoryManager(getDeviceCount(), common::MAX_BUFFERS,
285 AF_MEM_DEBUG || AF_ONEAPI_MEM_DEBUG));
286 setMemoryManagerPinned(std::move(mgr));
287}
288
289DeviceManager::~DeviceManager() {
290 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