mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
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:
committed by
sys_ocldev
parent
eccb9f044d
commit
d408b82a19
@@ -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
|
||||
)
|
||||
|
||||
|
||||
18
core/execution_environment/root_device_environment.cpp
Normal file
18
core/execution_environment/root_device_environment.cpp
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
18
core/helpers/common_types.h
Normal file
18
core/helpers/common_types.h
Normal 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
|
||||
Reference in New Issue
Block a user