Move aub center and command stream receivers to root device environment

resize root device environments to 1 by default

Related-To: NEO-3691, NEO-3857

Change-Id: Idf3d61e84f8265f30381c18216632d0ffb2a16de
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-10-24 13:34:25 +02:00
committed by sys_ocldev
parent eccb9f044d
commit d408b82a19
61 changed files with 286 additions and 277 deletions

View File

@@ -6,6 +6,7 @@
set(NEO_CORE_EXECUTION_ENVIRONMENT
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/root_device_environment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/root_device_environment.h
)

View File

@@ -0,0 +1,18 @@
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/execution_environment/root_device_environment.h"
#include "runtime/aub/aub_center.h"
#include "runtime/command_stream/command_stream_receiver.h"
namespace NEO {
RootDeviceEnvironment::RootDeviceEnvironment() = default;
RootDeviceEnvironment::RootDeviceEnvironment(RootDeviceEnvironment &&) = default;
RootDeviceEnvironment::~RootDeviceEnvironment() = default;
} // namespace NEO

View File

@@ -6,9 +6,18 @@
*/
#pragma once
#include "core/helpers/common_types.h"
namespace NEO {
class AubCenter;
struct RootDeviceEnvironment {
RootDeviceEnvironment();
RootDeviceEnvironment(RootDeviceEnvironment &) = delete;
RootDeviceEnvironment(RootDeviceEnvironment &&);
~RootDeviceEnvironment();
std::unique_ptr<AubCenter> aubCenter;
CsrContainer commandStreamReceivers;
};
} // namespace NEO

View File

@@ -9,6 +9,7 @@ set(NEO_CORE_HELPERS
${CMAKE_CURRENT_SOURCE_DIR}/abort.h
${CMAKE_CURRENT_SOURCE_DIR}/aligned_memory.h
${CMAKE_CURRENT_SOURCE_DIR}/basic_math.h
${CMAKE_CURRENT_SOURCE_DIR}/common_types.h
${CMAKE_CURRENT_SOURCE_DIR}/debug_helpers.h
${CMAKE_CURRENT_SOURCE_DIR}/deferred_deleter_helper.h
${CMAKE_CURRENT_SOURCE_DIR}/extendable_enum.h

View File

@@ -0,0 +1,18 @@
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <bitset>
#include <memory>
#include <vector>
namespace NEO {
class CommandStreamReceiver;
struct EngineControl;
using CsrContainer = std::vector<std::vector<std::unique_ptr<CommandStreamReceiver>>>;
using EngineControlContainer = std::vector<EngineControl>;
using DeviceBitfield = std::bitset<32>;
} // namespace NEO