2019-02-19 08:55:11 +01:00
|
|
|
/*
|
|
|
|
|
* 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 {
|
2019-03-15 10:22:35 +01:00
|
|
|
std::unique_ptr<MemoryManager> MemoryManager::createMemoryManager(ExecutionEnvironment &executionEnvironment) {
|
2019-03-11 23:06:30 +01:00
|
|
|
return std::make_unique<DrmMemoryManager>(executionEnvironment.osInterface->get()->getDrm(),
|
|
|
|
|
gemCloseWorkerMode::gemCloseWorkerActive,
|
|
|
|
|
DebugManager.flags.EnableForcePin.get(),
|
|
|
|
|
true,
|
|
|
|
|
executionEnvironment);
|
2019-02-19 08:55:11 +01:00
|
|
|
}
|
|
|
|
|
} // namespace OCLRT
|