mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Move thread_arbitration_policy.h to core
- extract QueueThrottle to core Change-Id: I954732a44ae4fdd5f227ec6be4e27b879ca6eece Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
e22c90fa5d
commit
2e95ef42ae
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2019 Intel Corporation
|
# Copyright (C) 2019-2020 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
@@ -12,6 +12,7 @@ set(NEO_CORE_COMMAND_STREAM
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/preemption.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/preemption.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/preemption.h
|
${CMAKE_CURRENT_SOURCE_DIR}/preemption.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/preemption.inl
|
${CMAKE_CURRENT_SOURCE_DIR}/preemption.inl
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/thread_arbitration_policy.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_property(GLOBAL PROPERTY NEO_CORE_COMMAND_STREAM ${NEO_CORE_COMMAND_STREAM})
|
set_property(GLOBAL PROPERTY NEO_CORE_COMMAND_STREAM ${NEO_CORE_COMMAND_STREAM})
|
||||||
|
|||||||
17
core/command_stream/queue_throttle.h
Normal file
17
core/command_stream/queue_throttle.h
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2020 Intel Corporation
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
namespace NEO {
|
||||||
|
enum QueueThrottle : uint32_t {
|
||||||
|
LOW,
|
||||||
|
MEDIUM,
|
||||||
|
HIGH
|
||||||
|
};
|
||||||
|
} // namespace NEO
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2019 Intel Corporation
|
* Copyright (C) 2018-2020 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "core/command_stream/thread_arbitration_policy.h"
|
||||||
#include "core/helpers/options.h"
|
#include "core/helpers/options.h"
|
||||||
#include "core/helpers/preamble.h"
|
#include "core/helpers/preamble.h"
|
||||||
#include "core/unit_tests/preamble/preamble_fixture.h"
|
#include "core/unit_tests/preamble/preamble_fixture.h"
|
||||||
#include "runtime/command_stream/thread_arbitration_policy.h"
|
|
||||||
#include "runtime/gen8/reg_configs.h"
|
#include "runtime/gen8/reg_configs.h"
|
||||||
#include "unit_tests/fixtures/platform_fixture.h"
|
#include "unit_tests/fixtures/platform_fixture.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2019 Intel Corporation
|
* Copyright (C) 2018-2020 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "core/command_stream/preemption.h"
|
#include "core/command_stream/preemption.h"
|
||||||
|
#include "core/command_stream/thread_arbitration_policy.h"
|
||||||
#include "core/helpers/preamble.h"
|
#include "core/helpers/preamble.h"
|
||||||
#include "core/unit_tests/helpers/debug_manager_state_restore.h"
|
#include "core/unit_tests/helpers/debug_manager_state_restore.h"
|
||||||
#include "core/unit_tests/preamble/preamble_fixture.h"
|
#include "core/unit_tests/preamble/preamble_fixture.h"
|
||||||
#include "runtime/command_stream/thread_arbitration_policy.h"
|
|
||||||
#include "runtime/gen9/reg_configs.h"
|
#include "runtime/gen9/reg_configs.h"
|
||||||
#include "unit_tests/gen_common/gen_cmd_parse.h"
|
#include "unit_tests/gen_common/gen_cmd_parse.h"
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ set(RUNTIME_SRCS_COMMAND_STREAM
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver_hw.h
|
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver_hw.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver_hw.inl
|
${CMAKE_CURRENT_SOURCE_DIR}/tbx_command_stream_receiver_hw.inl
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tbx_stream.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/tbx_stream.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/thread_arbitration_policy.h
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/command_stream_receiver_hw_ext.inl
|
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}/command_stream_receiver_hw_ext.inl
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "core/command_stream/linear_stream.h"
|
#include "core/command_stream/linear_stream.h"
|
||||||
|
#include "core/command_stream/thread_arbitration_policy.h"
|
||||||
#include "core/helpers/aligned_memory.h"
|
#include "core/helpers/aligned_memory.h"
|
||||||
#include "core/helpers/completion_stamp.h"
|
#include "core/helpers/completion_stamp.h"
|
||||||
#include "core/helpers/options.h"
|
#include "core/helpers/options.h"
|
||||||
@@ -15,7 +16,6 @@
|
|||||||
#include "runtime/command_stream/aub_subcapture.h"
|
#include "runtime/command_stream/aub_subcapture.h"
|
||||||
#include "runtime/command_stream/csr_definitions.h"
|
#include "runtime/command_stream/csr_definitions.h"
|
||||||
#include "runtime/command_stream/submissions_aggregator.h"
|
#include "runtime/command_stream/submissions_aggregator.h"
|
||||||
#include "runtime/command_stream/thread_arbitration_policy.h"
|
|
||||||
#include "runtime/helpers/blit_commands_helper.h"
|
#include "runtime/helpers/blit_commands_helper.h"
|
||||||
#include "runtime/helpers/flat_batch_buffer_helper.h"
|
#include "runtime/helpers/flat_batch_buffer_helper.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2017-2019 Intel Corporation
|
* Copyright (C) 2017-2020 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "core/command_stream/queue_throttle.h"
|
||||||
|
#include "core/command_stream/thread_arbitration_policy.h"
|
||||||
#include "core/helpers/hw_info.h"
|
#include "core/helpers/hw_info.h"
|
||||||
#include "core/helpers/pipeline_select_args.h"
|
#include "core/helpers/pipeline_select_args.h"
|
||||||
#include "core/kernel/grf_config.h"
|
#include "core/kernel/grf_config.h"
|
||||||
#include "core/memory_manager/memory_constants.h"
|
#include "core/memory_manager/memory_constants.h"
|
||||||
#include "runtime/command_stream/thread_arbitration_policy.h"
|
|
||||||
#include "runtime/helpers/csr_deps.h"
|
#include "runtime/helpers/csr_deps.h"
|
||||||
#include "runtime/helpers/properties_helper.h"
|
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2019 Intel Corporation
|
* Copyright (C) 2018-2020 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "core/command_stream/thread_arbitration_policy.h"
|
||||||
#include "core/helpers/preamble.h"
|
#include "core/helpers/preamble.h"
|
||||||
#include "runtime/command_stream/thread_arbitration_policy.h"
|
|
||||||
|
|
||||||
namespace NEO {
|
namespace NEO {
|
||||||
struct SKLFamily;
|
struct SKLFamily;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2018-2019 Intel Corporation
|
* Copyright (C) 2018-2020 Intel Corporation
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*
|
*
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/command_stream/queue_throttle.h"
|
||||||
#include "runtime/api/cl_types.h"
|
#include "runtime/api/cl_types.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
@@ -16,12 +17,6 @@ namespace NEO {
|
|||||||
class MemObj;
|
class MemObj;
|
||||||
class Buffer;
|
class Buffer;
|
||||||
|
|
||||||
enum QueueThrottle : uint32_t {
|
|
||||||
LOW,
|
|
||||||
MEDIUM,
|
|
||||||
HIGH
|
|
||||||
};
|
|
||||||
|
|
||||||
struct EventsRequest {
|
struct EventsRequest {
|
||||||
EventsRequest() = delete;
|
EventsRequest() = delete;
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "core/command_stream/thread_arbitration_policy.h"
|
||||||
#include "core/debug_settings/debug_settings_manager.h"
|
#include "core/debug_settings/debug_settings_manager.h"
|
||||||
#include "core/helpers/address_patch.h"
|
#include "core/helpers/address_patch.h"
|
||||||
#include "core/helpers/preamble.h"
|
#include "core/helpers/preamble.h"
|
||||||
@@ -14,7 +15,6 @@
|
|||||||
#include "public/cl_ext_private.h"
|
#include "public/cl_ext_private.h"
|
||||||
#include "runtime/api/cl_types.h"
|
#include "runtime/api/cl_types.h"
|
||||||
#include "runtime/command_stream/command_stream_receiver_hw.h"
|
#include "runtime/command_stream/command_stream_receiver_hw.h"
|
||||||
#include "runtime/command_stream/thread_arbitration_policy.h"
|
|
||||||
#include "runtime/device_queue/device_queue.h"
|
#include "runtime/device_queue/device_queue.h"
|
||||||
#include "runtime/helpers/base_object.h"
|
#include "runtime/helpers/base_object.h"
|
||||||
#include "runtime/helpers/properties_helper.h"
|
#include "runtime/helpers/properties_helper.h"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "core/command_stream/thread_arbitration_policy.h"
|
||||||
#include "public/cl_ext_private.h"
|
#include "public/cl_ext_private.h"
|
||||||
#include "runtime/command_stream/thread_arbitration_policy.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
namespace NEO {
|
namespace NEO {
|
||||||
|
|||||||
Reference in New Issue
Block a user