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

Method resetMemoryManager

src/backend/oneapi/device_manager.cpp:254–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void DeviceManager::resetMemoryManager() {
255 // Replace with default memory manager
256 std::unique_ptr<MemoryManagerBase> mgr(
257 new common::DefaultMemoryManager(getDeviceCount(), common::MAX_BUFFERS,
258 AF_MEM_DEBUG || AF_ONEAPI_MEM_DEBUG));
259 setMemoryManager(std::move(mgr));
260}
261
262void DeviceManager::setMemoryManagerPinned(
263 std::unique_ptr<MemoryManagerBase> newMgr) {

Callers 1

resetMemoryManagerFunction · 0.45

Calls 2

getDeviceCountFunction · 0.70
setMemoryManagerFunction · 0.70

Tested by

no test coverage detected