Cleanup includes 44

Cleaned up files:
level_zero/tools/source/sysman/windows/os_sysman_imp.h
opencl/source/command_queue/command_queue.h
shared/source/command_container/cmdcontainer.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
Warchulski, Jaroslaw 2023-01-25 15:26:00 +00:00 committed by Compute-Runtime-Automation
parent 1796c5b521
commit e21cf516d3
26 changed files with 73 additions and 34 deletions

View File

@ -8,9 +8,11 @@
#pragma once #pragma once
#include "shared/source/command_container/cmdcontainer.h" #include "shared/source/command_container/cmdcontainer.h"
#include "shared/source/command_stream/preemption_mode.h"
#include "shared/source/command_stream/stream_properties.h" #include "shared/source/command_stream/stream_properties.h"
#include "shared/source/memory_manager/prefetch_manager.h" #include "shared/source/memory_manager/prefetch_manager.h"
#include "shared/source/unified_memory/unified_memory.h" #include "shared/source/unified_memory/unified_memory.h"
#include "shared/source/utilities/stackvec.h"
#include <level_zero/ze_api.h> #include <level_zero/ze_api.h>
#include <level_zero/zet_api.h> #include <level_zero/zet_api.h>

View File

@ -7,6 +7,8 @@
#pragma once #pragma once
#include "shared/source/command_stream/csr_definitions.h"
#include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h"
namespace NEO { namespace NEO {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,6 +7,9 @@
#include "sysman/engine/windows/os_engine_imp.h" #include "sysman/engine/windows/os_engine_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {
ze_result_t WddmEngineImp::getActivity(zes_engine_stats_t *pStats) { ze_result_t WddmEngineImp::getActivity(zes_engine_stats_t *pStats) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2021 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,6 +7,7 @@
#include "level_zero/tools/source/sysman/events/windows/os_events_imp.h" #include "level_zero/tools/source/sysman/events/windows/os_events_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
#include "level_zero/tools/source/sysman/windows/os_sysman_imp.h" #include "level_zero/tools/source/sysman/windows/os_sysman_imp.h"
namespace L0 { namespace L0 {

View File

@ -1,11 +1,12 @@
/* /*
* Copyright (C) 2020-2021 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
*/ */
#pragma once #pragma once
#include "shared/source/gmm_helper/gmm_lib.h"
#include "shared/source/helpers/non_copyable_or_moveable.h" #include "shared/source/helpers/non_copyable_or_moveable.h"
#include "level_zero/tools/source/sysman/events/os_events.h" #include "level_zero/tools/source/sysman/events/os_events.h"

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,6 +7,8 @@
#include "sysman/fan/windows/os_fan_imp.h" #include "sysman/fan/windows/os_fan_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {
struct FanPoint { struct FanPoint {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -8,6 +8,7 @@
#include "level_zero/tools/source/sysman/firmware/windows/os_firmware_imp.h" #include "level_zero/tools/source/sysman/firmware/windows/os_firmware_imp.h"
#include "level_zero/tools/source/sysman/firmware_util/firmware_util.h" #include "level_zero/tools/source/sysman/firmware_util/firmware_util.h"
#include "level_zero/tools/source/sysman/sysman_const.h"
#include "level_zero/tools/source/sysman/windows/os_sysman_imp.h" #include "level_zero/tools/source/sysman/windows/os_sysman_imp.h"
namespace L0 { namespace L0 {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,7 +7,9 @@
#include "level_zero/tools/source/sysman/frequency/windows/os_frequency_imp.h" #include "level_zero/tools/source/sysman/frequency/windows/os_frequency_imp.h"
#include "level_zero/tools/source/sysman/frequency/frequency.h"
#include "level_zero/tools/source/sysman/sysman_const.h" #include "level_zero/tools/source/sysman/sysman_const.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,6 +7,8 @@
#include "level_zero/tools/source/sysman/global_operations/windows/os_global_operations_imp.h" #include "level_zero/tools/source/sysman/global_operations/windows/os_global_operations_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {
Device *WddmGlobalOperationsImp::getDevice() { Device *WddmGlobalOperationsImp::getDevice() {

View File

@ -7,6 +7,8 @@
#include "sysman/memory/windows/os_memory_imp.h" #include "sysman/memory/windows/os_memory_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
template <typename I> template <typename I>
std::string intToHex(I w, size_t hexLength = sizeof(I) << 1) { std::string intToHex(I w, size_t hexLength = sizeof(I) << 1) {
static const char *digits = "0123456789ABCDEF"; static const char *digits = "0123456789ABCDEF";

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -9,7 +9,9 @@
#include "shared/source/memory_manager/memory_manager.h" #include "shared/source/memory_manager/memory_manager.h"
#include "level_zero/core/source/device/device.h"
#include "level_zero/core/source/driver/driver_handle.h" #include "level_zero/core/source/driver/driver_handle.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,6 +7,9 @@
#include "sysman/power/windows/os_power_imp.h" #include "sysman/power/windows/os_power_imp.h"
#include "level_zero/tools/source/sysman/sysman_const.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {
ze_result_t WddmPowerImp::getProperties(zes_power_properties_t *pProperties) { ze_result_t WddmPowerImp::getProperties(zes_power_properties_t *pProperties) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2021 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,6 +7,8 @@
#include "sysman/temperature/windows/os_temperature_imp.h" #include "sysman/temperature/windows/os_temperature_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {
ze_result_t WddmTemperatureImp::getProperties(zes_temp_properties_t *pProperties) { ze_result_t WddmTemperatureImp::getProperties(zes_temp_properties_t *pProperties) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -11,6 +11,7 @@
#include "level_zero/core/source/driver/driver_handle.h" #include "level_zero/core/source/driver/driver_handle.h"
#include "level_zero/tools/source/sysman/firmware_util/firmware_util.h" #include "level_zero/tools/source/sysman/firmware_util/firmware_util.h"
#include "level_zero/tools/source/sysman/sysman_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h" #include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h"
namespace L0 { namespace L0 {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -7,16 +7,19 @@
#pragma once #pragma once
#include "shared/source/helpers/non_copyable_or_moveable.h" #include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/os_interface/os_interface.h"
#include "shared/source/os_interface/windows/wddm/wddm.h"
#include "level_zero/core/source/device/device.h" #include "level_zero/tools/source/sysman/os_sysman.h"
#include "level_zero/tools/source/sysman/sysman_imp.h"
#include "level_zero/tools/source/sysman/windows/kmd_sys.h" namespace NEO {
#include "level_zero/tools/source/sysman/windows/kmd_sys_manager.h" class Wddm;
}
namespace L0 { namespace L0 {
class FirmwareUtil; class FirmwareUtil;
class KmdSysManager;
struct Device;
class WddmSysmanImp : public OsSysman, NEO::NonCopyableOrMovableClass { class WddmSysmanImp : public OsSysman, NEO::NonCopyableOrMovableClass {
public: public:

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
@ -14,6 +14,7 @@
#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h" #include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"
#include "level_zero/tools/source/sysman/sysman.h" #include "level_zero/tools/source/sysman/sysman.h"
#include "level_zero/tools/source/sysman/sysman_imp.h"
#include "level_zero/tools/test/unit_tests/sources/sysman/mocks/mock_sysman_env_vars.h" #include "level_zero/tools/test/unit_tests/sources/sysman/mocks/mock_sysman_env_vars.h"
#include "gmock/gmock.h" #include "gmock/gmock.h"

View File

@ -8,7 +8,6 @@
#pragma once #pragma once
#include "shared/source/command_stream/csr_definitions.h" #include "shared/source/command_stream/csr_definitions.h"
#include "shared/source/helpers/completion_stamp.h" #include "shared/source/helpers/completion_stamp.h"
#include "shared/source/helpers/engine_control.h"
#include "shared/source/helpers/engine_node_helper.h" #include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/map_operation_type.h" #include "shared/source/helpers/map_operation_type.h"
#include "shared/source/helpers/timestamp_packet_container.h" #include "shared/source/helpers/timestamp_packet_container.h"

View File

@ -32,6 +32,8 @@ class TimestampPacketContainer;
template <class T> template <class T>
class TagNode; class TagNode;
enum PreemptionMode : uint32_t;
struct KernelOperation { struct KernelOperation {
protected: protected:
struct ResourceCleaner { struct ResourceCleaner {

View File

@ -1,12 +1,12 @@
/* /*
* Copyright (C) 2019-2022 Intel Corporation * Copyright (C) 2019-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
*/ */
#pragma once #pragma once
#include "shared/source/command_stream/csr_definitions.h" #include "shared/source/helpers/constants.h"
#include "shared/source/helpers/non_copyable_or_moveable.h" #include "shared/source/helpers/non_copyable_or_moveable.h"
#include "shared/source/indirect_heap/indirect_heap_type.h" #include "shared/source/indirect_heap/indirect_heap_type.h"
@ -29,6 +29,16 @@ using CmdBufferContainer = std::vector<GraphicsAllocation *>;
using HeapContainer = std::vector<GraphicsAllocation *>; using HeapContainer = std::vector<GraphicsAllocation *>;
using HeapType = IndirectHeapType; using HeapType = IndirectHeapType;
namespace CSRequirements {
// cleanup section usually contains 1-2 pipeControls BB end and place for BB start
// that makes 16 * 2 + 4 + 8 = 40 bytes
// then command buffer is aligned to cacheline that can take up to 63 bytes
// to be sure everything fits minimal size is at 2 x cacheline.
inline constexpr auto minCommandQueueCommandStreamSize = 2 * MemoryConstants::cacheLineSize;
inline constexpr auto csOverfetchSize = MemoryConstants::pageSize;
} // namespace CSRequirements
class CommandContainer : public NonCopyableOrMovableClass { class CommandContainer : public NonCopyableOrMovableClass {
public: public:
enum class ErrorCode { enum class ErrorCode {

View File

@ -9,9 +9,11 @@
#include "shared/source/command_container/cmdcontainer.h" #include "shared/source/command_container/cmdcontainer.h"
#include "shared/source/command_container/encode_alu_helper.h" #include "shared/source/command_container/encode_alu_helper.h"
#include "shared/source/command_stream/preemption_mode.h"
#include "shared/source/debugger/debugger.h" #include "shared/source/debugger/debugger.h"
#include "shared/source/helpers/register_offsets.h" #include "shared/source/helpers/register_offsets.h"
#include "shared/source/kernel/kernel_arg_descriptor.h" #include "shared/source/kernel/kernel_arg_descriptor.h"
#include "shared/source/kernel/kernel_execution_type.h"
#include <list> #include <list>
@ -19,6 +21,7 @@ namespace NEO {
struct EncodeSurfaceStateArgs; struct EncodeSurfaceStateArgs;
struct MiFlushArgs; struct MiFlushArgs;
struct PipeControlArgs; struct PipeControlArgs;
struct PipelineSelectArgs;
enum class SlmPolicy; enum class SlmPolicy;
struct DispatchKernelEncoderI; struct DispatchKernelEncoderI;
struct RootDeviceEnvironment; struct RootDeviceEnvironment;

View File

@ -9,6 +9,7 @@
#include "shared/source/command_container/command_encoder.h" #include "shared/source/command_container/command_encoder.h"
#include "shared/source/command_container/encode_surface_state.h" #include "shared/source/command_container/encode_surface_state.h"
#include "shared/source/command_stream/linear_stream.h" #include "shared/source/command_stream/linear_stream.h"
#include "shared/source/command_stream/memory_compression_state.h"
#include "shared/source/command_stream/preemption.h" #include "shared/source/command_stream/preemption.h"
#include "shared/source/execution_environment/execution_environment.h" #include "shared/source/execution_environment/execution_environment.h"
#include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/gmm_helper/gmm_helper.h"
@ -16,6 +17,7 @@
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pause_on_gpu_properties.h" #include "shared/source/helpers/pause_on_gpu_properties.h"
#include "shared/source/helpers/pipe_control_args.h" #include "shared/source/helpers/pipe_control_args.h"
#include "shared/source/helpers/pipeline_select_args.h"
#include "shared/source/helpers/simd_helper.h" #include "shared/source/helpers/simd_helper.h"
#include "shared/source/helpers/state_base_address.h" #include "shared/source/helpers/state_base_address.h"
#include "shared/source/kernel/dispatch_kernel_encoder_interface.h" #include "shared/source/kernel/dispatch_kernel_encoder_interface.h"

View File

@ -6,6 +6,7 @@
*/ */
#pragma once #pragma once
#include "shared/source/command_stream/csr_definitions.h"
#include "shared/source/command_stream/linear_stream.h" #include "shared/source/command_stream/linear_stream.h"
#include "shared/source/command_stream/stream_properties.h" #include "shared/source/command_stream/stream_properties.h"
#include "shared/source/helpers/blit_properties_container.h" #include "shared/source/helpers/blit_properties_container.h"

View File

@ -13,7 +13,6 @@
#include "shared/source/command_stream/preemption_mode.h" #include "shared/source/command_stream/preemption_mode.h"
#include "shared/source/command_stream/queue_throttle.h" #include "shared/source/command_stream/queue_throttle.h"
#include "shared/source/command_stream/thread_arbitration_policy.h" #include "shared/source/command_stream/thread_arbitration_policy.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/pipeline_select_args.h" #include "shared/source/helpers/pipeline_select_args.h"
#include "shared/source/kernel/grf_config.h" #include "shared/source/kernel/grf_config.h"
#include "shared/source/kernel/kernel_execution_type.h" #include "shared/source/kernel/kernel_execution_type.h"
@ -23,16 +22,6 @@
namespace NEO { namespace NEO {
struct FlushStampTrackingObj; struct FlushStampTrackingObj;
namespace CSRequirements {
// cleanup section usually contains 1-2 pipeControls BB end and place for BB start
// that makes 16 * 2 + 4 + 8 = 40 bytes
// then command buffer is aligned to cacheline that can take up to 63 bytes
// to be sure everything fits minimal size is at 2 x cacheline.
inline constexpr auto minCommandQueueCommandStreamSize = 2 * MemoryConstants::cacheLineSize;
inline constexpr auto csOverfetchSize = MemoryConstants::pageSize;
} // namespace CSRequirements
namespace TimeoutControls { namespace TimeoutControls {
inline constexpr int64_t maxTimeout = std::numeric_limits<int64_t>::max(); inline constexpr int64_t maxTimeout = std::numeric_limits<int64_t>::max();
} }

View File

@ -8,6 +8,7 @@
#include "shared/source/built_ins/sip.h" #include "shared/source/built_ins/sip.h"
#include "shared/source/command_stream/linear_stream.h" #include "shared/source/command_stream/linear_stream.h"
#include "shared/source/command_stream/preemption.h" #include "shared/source/command_stream/preemption.h"
#include "shared/source/command_stream/preemption_mode.h"
#include "shared/source/device/device.h" #include "shared/source/device/device.h"
#include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/pipe_control_args.h" #include "shared/source/helpers/pipe_control_args.h"

View File

@ -9,6 +9,7 @@
#include "shared/source/command_stream/linear_stream.h" #include "shared/source/command_stream/linear_stream.h"
#include "shared/source/helpers/completion_stamp.h" #include "shared/source/helpers/completion_stamp.h"
#include "shared/source/helpers/constants.h" #include "shared/source/helpers/constants.h"
#include "shared/source/utilities/stackvec.h"
#include <memory> #include <memory>

View File

@ -1,10 +1,11 @@
/* /*
* Copyright (C) 2020-2022 Intel Corporation * Copyright (C) 2020-2023 Intel Corporation
* *
* SPDX-License-Identifier: MIT * SPDX-License-Identifier: MIT
* *
*/ */
#include "shared/source/command_stream/memory_compression_state.h"
#include "shared/source/gen8/hw_cmds.h" #include "shared/source/gen8/hw_cmds.h"
#include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h"
#include "shared/test/common/test_macros/test.h" #include "shared/test/common/test_macros/test.h"