mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Cleanup includes 26
Cleaned up files: opencl/source/command_queue/csr_selection_args.h opencl/source/event/event.h shared/source/helpers/engine_control.h shared/source/sku_info/definitions/sku_info.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d623ef391b
commit
4794648978
@@ -19,6 +19,7 @@
|
||||
#include "shared/source/memory_manager/internal_allocation_storage.h"
|
||||
#include "shared/source/memory_manager/prefetch_manager.h"
|
||||
#include "shared/source/memory_manager/unified_memory_manager.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
#include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h"
|
||||
#include "level_zero/core/source/cmdqueue/cmdqueue_hw.h"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "shared/source/debugger/debugger_l0.h"
|
||||
#include "shared/source/memory_manager/allocation_properties.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
#include "level_zero/core/source/cmdqueue/cmdqueue_imp.h"
|
||||
#include "level_zero/core/source/device/device.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022 Intel Corporation
|
||||
* Copyright (C) 2022-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "level_zero/core/source/device/bcs_split.h"
|
||||
|
||||
#include "shared/source/command_stream/command_stream_receiver.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
#include "level_zero/core/source/device/device_imp.h"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/os_interface/driver_info.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/os_interface/os_interface.h"
|
||||
#include "shared/source/os_interface/os_time.h"
|
||||
#include "shared/source/source_level_debugger/source_level_debugger.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2018-2022 Intel Corporation
|
||||
# Copyright (C) 2018-2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -15,6 +15,7 @@ set(RUNTIME_SRCS_COMMAND_QUEUE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_queue_hw_bdw_and_later.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/copy_engine_state.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cpu_data_transfer_handler.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/csr_selection_args.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/csr_selection_args.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_barrier.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_common.h
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "shared/source/helpers/array_count.h"
|
||||
#include "shared/source/helpers/bit_helpers.h"
|
||||
#include "shared/source/helpers/engine_node_helper.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/source/helpers/get_info.h"
|
||||
#include "shared/source/helpers/ptr_math.h"
|
||||
#include "shared/source/helpers/string.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "shared/source/command_stream/preemption.h"
|
||||
#include "shared/source/helpers/engine_control.h"
|
||||
#include "shared/source/memory_manager/graphics_allocation.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
#include "opencl/source/cl_device/cl_device.h"
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "shared/source/command_stream/command_stream_receiver.h"
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/source/helpers/get_info.h"
|
||||
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
|
||||
36
opencl/source/command_queue/csr_selection_args.cpp
Normal file
36
opencl/source/command_queue/csr_selection_args.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/source/command_queue/csr_selection_args.h"
|
||||
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
#include "opencl/source/mem_obj/image.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
void CsrSelectionArgs::processResource(const Image &image, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
processResource(image.getMultiGraphicsAllocation(), rootDeviceIndex, outResource);
|
||||
outResource.image = ℑ
|
||||
}
|
||||
|
||||
void CsrSelectionArgs::processResource(const Buffer &buffer, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
processResource(buffer.getMultiGraphicsAllocation(), rootDeviceIndex, outResource);
|
||||
}
|
||||
|
||||
void CsrSelectionArgs::processResource(const MultiGraphicsAllocation &multiGfxAlloc, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
auto allocation = multiGfxAlloc.getGraphicsAllocation(rootDeviceIndex);
|
||||
if (allocation) {
|
||||
processResource(*allocation, rootDeviceIndex, outResource);
|
||||
}
|
||||
}
|
||||
|
||||
void CsrSelectionArgs::processResource(const GraphicsAllocation &gfxAlloc, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
outResource.allocation = &gfxAlloc;
|
||||
outResource.isLocal = gfxAlloc.isAllocatedInLocalMemoryPool();
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -1,19 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/memory_manager/multi_graphics_allocation.h"
|
||||
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
#include "opencl/source/mem_obj/image.h"
|
||||
#include "opencl/source/mem_obj/mem_obj.h"
|
||||
#include "opencl/source/api/cl_types.h"
|
||||
|
||||
namespace NEO {
|
||||
class MultiGraphicsAllocation;
|
||||
class GraphicsAllocation;
|
||||
class Image;
|
||||
class Buffer;
|
||||
|
||||
enum class TransferDirection {
|
||||
HostToHost,
|
||||
HostToLocal,
|
||||
@@ -63,26 +63,13 @@ struct CsrSelectionArgs {
|
||||
}
|
||||
}
|
||||
|
||||
static void processResource(const Image &image, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
processResource(image.getMultiGraphicsAllocation(), rootDeviceIndex, outResource);
|
||||
outResource.image = ℑ
|
||||
}
|
||||
static void processResource(const Image &image, uint32_t rootDeviceIndex, Resource &outResource);
|
||||
|
||||
static void processResource(const Buffer &buffer, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
processResource(buffer.getMultiGraphicsAllocation(), rootDeviceIndex, outResource);
|
||||
}
|
||||
static void processResource(const Buffer &buffer, uint32_t rootDeviceIndex, Resource &outResource);
|
||||
|
||||
static void processResource(const MultiGraphicsAllocation &multiGfxAlloc, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
auto allocation = multiGfxAlloc.getGraphicsAllocation(rootDeviceIndex);
|
||||
if (allocation) {
|
||||
processResource(*allocation, rootDeviceIndex, outResource);
|
||||
}
|
||||
}
|
||||
static void processResource(const MultiGraphicsAllocation &multiGfxAlloc, uint32_t rootDeviceIndex, Resource &outResource);
|
||||
|
||||
static void processResource(const GraphicsAllocation &gfxAlloc, uint32_t rootDeviceIndex, Resource &outResource) {
|
||||
outResource.allocation = &gfxAlloc;
|
||||
outResource.isLocal = gfxAlloc.isAllocatedInLocalMemoryPool();
|
||||
}
|
||||
static void processResource(const GraphicsAllocation &gfxAlloc, uint32_t rootDeviceIndex, Resource &outResource);
|
||||
|
||||
static inline TransferDirection createTransferDirection(bool srcLocal, bool dstLocal) {
|
||||
if (srcLocal) {
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "shared/source/command_stream/command_stream_receiver.h"
|
||||
#include "shared/source/command_stream/wait_status.h"
|
||||
#include "shared/source/helpers/engine_node_helper.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/source/helpers/pipe_control_args.h"
|
||||
#include "shared/source/memory_manager/internal_allocation_storage.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
#include "opencl/source/context/context.h"
|
||||
#include "opencl/source/helpers/cl_validators.h"
|
||||
#include "opencl/source/mem_obj/mem_obj.h"
|
||||
|
||||
namespace NEO {
|
||||
BarrierCommand::BarrierCommand(CommandQueue *commandQueue, const cl_resource_barrier_descriptor_intel *descriptors, uint32_t numDescriptors) : numSurfaces(numDescriptors) {
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "opencl/source/helpers/cl_validators.h"
|
||||
#include "opencl/source/helpers/get_info_status_mapper.h"
|
||||
#include "opencl/source/helpers/surface_formats.h"
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
#include "opencl/source/mem_obj/image.h"
|
||||
#include "opencl/source/platform/platform.h"
|
||||
#include "opencl/source/sharings/sharing_factory.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/source/helpers/aligned_memory.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/source/helpers/get_info.h"
|
||||
#include "shared/source/helpers/mt_helpers.h"
|
||||
#include "shared/source/helpers/timestamp_packet.h"
|
||||
@@ -675,6 +676,12 @@ cl_int Event::waitForEvents(cl_uint numEvents,
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
|
||||
void Event::setCommand(std::unique_ptr<Command> newCmd) {
|
||||
UNRECOVERABLE_IF(cmdToSubmit.load());
|
||||
cmdToSubmit.exchange(newCmd.release());
|
||||
eventWithoutCommand = false;
|
||||
}
|
||||
|
||||
inline void Event::setExecutionStatusToAbortedDueToGpuHang(cl_event *first, cl_event *last) {
|
||||
std::for_each(first, last, [](cl_event &e) {
|
||||
Event *event = castToObjectOrAbort<Event>(e);
|
||||
|
||||
@@ -6,29 +6,30 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/command_stream/wait_status.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/source/helpers/completion_stamp.h"
|
||||
#include "shared/source/os_interface/os_time.h"
|
||||
#include "shared/source/os_interface/performance_counters.h"
|
||||
#include "shared/source/utilities/idlist.h"
|
||||
#include "shared/source/utilities/iflist.h"
|
||||
|
||||
#include "opencl/source/api/cl_types.h"
|
||||
#include "opencl/source/command_queue/copy_engine_state.h"
|
||||
#include "opencl/source/helpers/base_object.h"
|
||||
#include "opencl/source/helpers/task_information.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
namespace NEO {
|
||||
class Command;
|
||||
class TagNodeBase;
|
||||
class FlushStampTracker;
|
||||
template <typename TagType>
|
||||
class TagNode;
|
||||
class CommandQueue;
|
||||
class Context;
|
||||
class Device;
|
||||
class TimestampPacketContainer;
|
||||
enum class WaitStatus;
|
||||
|
||||
template <>
|
||||
struct OpenCLObjectMapper<_cl_event> {
|
||||
@@ -140,11 +141,8 @@ class Event : public BaseObject<_cl_event>, public IDNode<Event> {
|
||||
static cl_int waitForEvents(cl_uint numEvents,
|
||||
const cl_event *eventList);
|
||||
|
||||
void setCommand(std::unique_ptr<Command> newCmd) {
|
||||
UNRECOVERABLE_IF(cmdToSubmit.load());
|
||||
cmdToSubmit.exchange(newCmd.release());
|
||||
eventWithoutCommand = false;
|
||||
}
|
||||
void setCommand(std::unique_ptr<Command> newCmd);
|
||||
|
||||
Command *peekCommand() {
|
||||
return cmdToSubmit;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "shared/source/compiler_interface/compiler_cache.h"
|
||||
#include "shared/source/helpers/timestamp_packet.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
#include "opencl/source/helpers/mipmap.h"
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "shared/source/command_stream/linear_stream.h"
|
||||
#include "shared/source/command_stream/preemption.h"
|
||||
#include "shared/source/command_stream/wait_status.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/source/memory_manager/internal_allocation_storage.h"
|
||||
#include "shared/source/memory_manager/surface.h"
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/memory_manager/unified_memory_manager.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/program/kernel_info.h"
|
||||
#include "shared/source/utilities/lookup_array.h"
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
|
||||
#include "shared/source/command_container/implicit_scaling.h"
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
#include "opencl/source/context/context.h"
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
#include "opencl/source/mem_obj/image.h"
|
||||
#include "opencl/source/mem_obj/mem_obj.h"
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/memory_manager/unified_memory_manager.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/program/kernel_info.h"
|
||||
|
||||
#include "opencl/source/cl_device/cl_device.h"
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#include "opencl/source/command_queue/command_queue_hw.h"
|
||||
#include "opencl/source/context/context.h"
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_command_queue.h"
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/command_stream/command_stream_receiver.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/libult/ult_command_stream_receiver.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "shared/test/common/mocks/mock_tbx_csr.h"
|
||||
#include "shared/test/common/test_macros/hw_test.h"
|
||||
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_command_queue.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_context.h"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "shared/source/command_stream/submission_status.h"
|
||||
#include "shared/source/command_stream/wait_status.h"
|
||||
#include "shared/source/direct_submission/dispatchers/blitter_dispatcher.h"
|
||||
#include "shared/source/helpers/flush_stamp.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/engine_descriptor_helper.h"
|
||||
#include "shared/test/common/helpers/raii_hw_helper.h"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "shared/test/common/test_macros/test_checks_shared.h"
|
||||
|
||||
#include "opencl/source/helpers/mipmap.h"
|
||||
#include "opencl/source/mem_obj/buffer.h"
|
||||
#include "opencl/source/mem_obj/image.h"
|
||||
#include "opencl/source/mem_obj/mem_obj_helper.h"
|
||||
#include "opencl/test/unit_test/command_queue/command_queue_fixture.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2020-2022 Intel Corporation
|
||||
# Copyright (C) 2020-2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -59,6 +59,7 @@ set(CLOC_LIB_SRCS_LIB
|
||||
${NEO_SHARED_DIRECTORY}/helpers/product_config_helper.h
|
||||
${NEO_SHARED_DIRECTORY}/helpers${BRANCH_DIR_SUFFIX}product_config_helper_extra.cpp
|
||||
${NEO_SHARED_DIRECTORY}/os_interface/os_library.h
|
||||
${NEO_SHARED_DIRECTORY}/sku_info/definitions${BRANCH_DIR_SUFFIX}sku_info.cpp
|
||||
${NEO_SHARED_DIRECTORY}/utilities/directory.h
|
||||
${NEO_SHARED_DIRECTORY}/utilities/io_functions.cpp
|
||||
${NEO_SHARED_DIRECTORY}/utilities/io_functions.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2022 Intel Corporation
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "shared/source/memory_manager/allocation_properties.h"
|
||||
#include "shared/source/memory_manager/allocations_list.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
#include "shared/source/os_interface/performance_counters.h"
|
||||
#include "shared/source/utilities/reference_tracked_object.h"
|
||||
|
||||
namespace NEO {
|
||||
class BindlessHeapsHelper;
|
||||
|
||||
@@ -51,6 +51,7 @@ set(NEO_CORE_HELPERS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/dirty_state_helpers.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/dirty_state_helpers.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/enable_product.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/engine_control.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/engine_control.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/engine_node_helper.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/engine_node_helper.h
|
||||
|
||||
22
shared/source/helpers/engine_control.cpp
Normal file
22
shared/source/helpers/engine_control.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/helpers/engine_control.h"
|
||||
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
const aub_stream::EngineType &EngineControl::getEngineType() const {
|
||||
return osContext->getEngineType();
|
||||
}
|
||||
|
||||
EngineUsage EngineControl::getEngineUsage() const {
|
||||
return osContext->getEngineUsage();
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -1,14 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/helpers/engine_node_helper.h"
|
||||
|
||||
namespace aub_stream {
|
||||
enum EngineType : uint32_t;
|
||||
}
|
||||
|
||||
namespace NEO {
|
||||
class OsContext;
|
||||
class CommandStreamReceiver;
|
||||
|
||||
struct EngineControl {
|
||||
@@ -20,7 +25,7 @@ struct EngineControl {
|
||||
CommandStreamReceiver *commandStreamReceiver = nullptr;
|
||||
OsContext *osContext = nullptr;
|
||||
|
||||
const aub_stream::EngineType &getEngineType() const { return osContext->getEngineType(); }
|
||||
EngineUsage getEngineUsage() const { return osContext->getEngineUsage(); }
|
||||
const aub_stream::EngineType &getEngineType() const;
|
||||
EngineUsage getEngineUsage() const;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "shared/source/command_stream/command_stream_receiver.h"
|
||||
#include "shared/source/command_stream/task_count_helper.h"
|
||||
#include "shared/source/device/device.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
|
||||
namespace {
|
||||
struct ReusableAllocationRequirements {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "shared/source/helpers/aligned_memory.h"
|
||||
#include "shared/source/helpers/bit_helpers.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/utilities/logger.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "shared/source/memory_manager/compression_selector.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/source/page_fault_manager/cpu_page_fault_manager.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2019-2021 Intel Corporation
|
||||
# Copyright (C) 2019-2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -8,6 +8,7 @@ set(NEO_CORE_SKU_INFO_BASE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sku_info_base.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/operations/sku_info_transfer.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}sku_info.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/definitions${BRANCH_DIR_SUFFIX}sku_info.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/operations${BRANCH_DIR_SUFFIX}sku_info_transfer.cpp
|
||||
)
|
||||
|
||||
30
shared/source/sku_info/definitions/sku_info.cpp
Normal file
30
shared/source/sku_info/definitions/sku_info.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "sku_info.h"
|
||||
|
||||
#include "shared/source/helpers/hash.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
uint64_t FeatureTable::asHash() const {
|
||||
Hash hash;
|
||||
|
||||
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
|
||||
|
||||
return hash.finish();
|
||||
}
|
||||
|
||||
uint64_t WorkaroundTable::asHash() const {
|
||||
Hash hash;
|
||||
|
||||
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
|
||||
|
||||
return hash.finish();
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -1,33 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2022 Intel Corporation
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/hash.h"
|
||||
#include "shared/source/sku_info/sku_info_base.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
struct FeatureTable : FeatureTableBase {
|
||||
uint64_t asHash() const {
|
||||
Hash hash;
|
||||
|
||||
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
|
||||
|
||||
return hash.finish();
|
||||
}
|
||||
uint64_t asHash() const;
|
||||
};
|
||||
|
||||
struct WorkaroundTable : WorkaroundTableBase {
|
||||
uint64_t asHash() const {
|
||||
Hash hash;
|
||||
|
||||
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
|
||||
|
||||
return hash.finish();
|
||||
}
|
||||
uint64_t asHash() const;
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "shared/source/direct_submission/direct_submission_hw.h"
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/memory_manager/surface.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/test/common/helpers/dispatch_flags_helper.h"
|
||||
#include "shared/test/common/helpers/ult_hw_config.h"
|
||||
#include "shared/test/common/mocks/mock_experimental_command_buffer.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2022 Intel Corporation
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "shared/source/command_container/command_encoder.h"
|
||||
#include "shared/source/gmm_helper/gmm_helper.h"
|
||||
#include "shared/source/memory_manager/allocation_properties.h"
|
||||
#include "shared/source/os_interface/os_context.h"
|
||||
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
|
||||
#include "shared/test/common/fixtures/device_fixture.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
|
||||
Reference in New Issue
Block a user