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

Method resetMemoryManagerPinned

src/backend/cuda/device_manager.cpp:438–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438void DeviceManager::resetMemoryManagerPinned() {
439 // Replace with default memory manager
440 std::unique_ptr<MemoryManagerBase> mgr(
441 new common::DefaultMemoryManager(getDeviceCount(), common::MAX_BUFFERS,
442 AF_MEM_DEBUG || AF_CUDA_MEM_DEBUG));
443 setMemoryManagerPinned(std::move(mgr));
444}
445
446/// A debug only function that checks to see if the driver or runtime
447/// function is part of the CudaToDriverVersion array. If the runtime

Callers 1

resetMemoryManagerPinnedFunction · 0.45

Calls 2

getDeviceCountFunction · 0.70
setMemoryManagerPinnedFunction · 0.70

Tested by

no test coverage detected