mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Make OsInterface root device specific
Related-To: NEO-3857 Change-Id: Ibcd80c731b5d3755b62e0e03d0ffeedb08b52ca0 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
066eab2be7
commit
172e75147e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Intel Corporation
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -16,7 +16,6 @@
|
||||
#include "runtime/compiler_interface/default_cl_cache_config.h"
|
||||
#include "runtime/helpers/device_helpers.h"
|
||||
#include "runtime/memory_manager/memory_manager.h"
|
||||
#include "runtime/os_interface/os_interface.h"
|
||||
#include "runtime/source_level_debugger/source_level_debugger.h"
|
||||
|
||||
namespace NEO {
|
||||
@@ -33,7 +32,7 @@ ExecutionEnvironment::~ExecutionEnvironment() {
|
||||
|
||||
void ExecutionEnvironment::initGmm() {
|
||||
if (!gmmHelper) {
|
||||
gmmHelper.reset(new GmmHelper(osInterface.get(), hwInfo.get()));
|
||||
gmmHelper.reset(new GmmHelper(rootDeviceEnvironments[0]->osInterface.get(), hwInfo.get()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2019 Intel Corporation
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -18,7 +18,6 @@ class CompilerInterface;
|
||||
class GmmClientContext;
|
||||
class GmmHelper;
|
||||
class MemoryManager;
|
||||
class OSInterface;
|
||||
class SourceLevelDebugger;
|
||||
struct RootDeviceEnvironment;
|
||||
struct HardwareInfo;
|
||||
@@ -51,7 +50,6 @@ class ExecutionEnvironment : public ReferenceTrackedObject<ExecutionEnvironment>
|
||||
MOCKABLE_VIRTUAL CompilerInterface *getCompilerInterface();
|
||||
BuiltIns *getBuiltIns();
|
||||
|
||||
std::unique_ptr<OSInterface> osInterface;
|
||||
std::unique_ptr<MemoryManager> memoryManager;
|
||||
std::vector<std::unique_ptr<RootDeviceEnvironment>> rootDeviceEnvironments;
|
||||
std::unique_ptr<BuiltIns> builtins;
|
||||
|
||||
Reference in New Issue
Block a user