Files
compute-runtime/runtime/dll/linux/create_drm_memory_manager.cpp
Mateusz Hoppe 573d2e0eec Add enableLocalMemory param to DrmMemoryManager ctor
- add linux dll tests for createMemoryManager()

Change-Id: I6e111e7a480d895a8520507af6b6a699f9dca160
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-12 22:22:37 +01:00

24 lines
1019 B
C++

/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/execution_environment/execution_environment.h"
#include "runtime/memory_manager/memory_manager.h"
#include "runtime/os_interface/linux/drm_memory_manager.h"
#include "runtime/os_interface/linux/os_interface.h"
#include "runtime/os_interface/os_interface.h"
namespace OCLRT {
std::unique_ptr<MemoryManager> MemoryManager::createMemoryManager(bool enable64KBpages, bool enableLocalMemory, ExecutionEnvironment &executionEnvironment) {
return std::make_unique<DrmMemoryManager>(executionEnvironment.osInterface->get()->getDrm(),
gemCloseWorkerMode::gemCloseWorkerActive,
enableLocalMemory,
DebugManager.flags.EnableForcePin.get(),
true,
executionEnvironment);
}
} // namespace OCLRT