From 68d87f3499f02cc5761aaeeaaff643bf927ecb92 Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Wed, 29 Oct 2025 10:54:45 +0000 Subject: [PATCH] build: add missing includes Signed-off-by: Mateusz Jablonski --- .../api/core/ze_cmdlist_api_entrypoints.h | 20 ++++++++++++++++ .../api/core/ze_event_api_entrypoints.h | 24 +++---------------- .../api/core/ze_fence_api_entrypoints.h | 1 + .../api/core/ze_image_api_entrypoints.h | 2 ++ .../api/core/ze_memory_api_entrypoints.h | 2 +- .../api/core/ze_module_api_entrypoints.h | 1 + .../core/ze_mutable_cmdlist_api_entrypoints.h | 4 ++++ .../core/source/gen12lp/cmdlist_gen12lp.h | 4 ++-- level_zero/core/source/helpers/sw_tag_scope.h | 3 ++- level_zero/core/source/image/image_formats.h | 3 ++- level_zero/core/source/image/image_hw.h | 1 + level_zero/core/source/kernel/kernel_hw.h | 1 + .../source/memory/memory_operations_helper.h | 5 ++-- level_zero/core/source/sampler/sampler_hw.h | 2 ++ .../xe2_hpg_core/cmdlist_xe2_hpg_core.h | 3 ++- .../mutable_cmdlist_xe2_hpg_core.h | 1 + .../core/source/xe3_core/cmdlist_xe3_core.h | 1 + .../xe3_core/mutable_cmdlist_xe3_core.h | 1 + .../source/xe_hpc_core/cmdlist_xe_hpc_core.h | 3 ++- .../xe_hpc_core/mutable_cmdlist_xe_hpc_core.h | 1 + .../source/xe_hpg_core/cmdlist_xe_hpg_core.h | 3 ++- .../xe_hpg_core/mutable_cmdlist_xe_hpg_core.h | 1 + 22 files changed, 56 insertions(+), 31 deletions(-) diff --git a/level_zero/api/core/ze_cmdlist_api_entrypoints.h b/level_zero/api/core/ze_cmdlist_api_entrypoints.h index 00dc61bf8e..0556bbb5b1 100644 --- a/level_zero/api/core/ze_cmdlist_api_entrypoints.h +++ b/level_zero/api/core/ze_cmdlist_api_entrypoints.h @@ -257,6 +257,26 @@ ZE_APIEXPORT ze_result_t ZE_APICALL zeCommandListAppendWriteGlobalTimestamp( phWaitEvents); } +ZE_APIEXPORT ze_result_t ZE_APICALL zeCommandListAppendQueryKernelTimestamps( + ze_command_list_handle_t hCommandList, + uint32_t numEvents, + ze_event_handle_t *phEvents, + void *dstptr, + const size_t *pOffsets, + ze_event_handle_t hSignalEvent, + uint32_t numWaitEvents, + ze_event_handle_t *phWaitEvents) { + return L0::zeCommandListAppendQueryKernelTimestamps( + hCommandList, + numEvents, + phEvents, + dstptr, + pOffsets, + hSignalEvent, + numWaitEvents, + phWaitEvents); +} + ZE_APIEXPORT ze_result_t ZE_APICALL zeCommandListGetDeviceHandle( ze_command_list_handle_t hCommandList, ze_device_handle_t *phDevice) { diff --git a/level_zero/api/core/ze_event_api_entrypoints.h b/level_zero/api/core/ze_event_api_entrypoints.h index 7343d08ce7..b7d0702ecf 100644 --- a/level_zero/api/core/ze_event_api_entrypoints.h +++ b/level_zero/api/core/ze_event_api_entrypoints.h @@ -7,8 +7,10 @@ #pragma once +#include "level_zero/core/source/cmdlist/cmdlist.h" +#include "level_zero/core/source/context/context.h" +#include "level_zero/core/source/device/device.h" #include "level_zero/core/source/event/event.h" -#include "level_zero/experimental/source/graph/graph_captured_apis.h" #include namespace L0 { @@ -298,26 +300,6 @@ ZE_APIEXPORT ze_result_t ZE_APICALL zeEventQueryKernelTimestampsExt( pResults); } -ZE_APIEXPORT ze_result_t ZE_APICALL zeCommandListAppendQueryKernelTimestamps( - ze_command_list_handle_t hCommandList, - uint32_t numEvents, - ze_event_handle_t *phEvents, - void *dstptr, - const size_t *pOffsets, - ze_event_handle_t hSignalEvent, - uint32_t numWaitEvents, - ze_event_handle_t *phWaitEvents) { - return L0::zeCommandListAppendQueryKernelTimestamps( - hCommandList, - numEvents, - phEvents, - dstptr, - pOffsets, - hSignalEvent, - numWaitEvents, - phWaitEvents); -} - ZE_APIEXPORT ze_result_t ZE_APICALL zeEventPoolGetContextHandle( ze_event_pool_handle_t hEventPool, ze_context_handle_t *phContext) { diff --git a/level_zero/api/core/ze_fence_api_entrypoints.h b/level_zero/api/core/ze_fence_api_entrypoints.h index 54d2ee27ff..8f32e98f9d 100644 --- a/level_zero/api/core/ze_fence_api_entrypoints.h +++ b/level_zero/api/core/ze_fence_api_entrypoints.h @@ -7,6 +7,7 @@ #pragma once +#include "level_zero/core/source/cmdqueue/cmdqueue.h" #include "level_zero/core/source/fence/fence.h" #include diff --git a/level_zero/api/core/ze_image_api_entrypoints.h b/level_zero/api/core/ze_image_api_entrypoints.h index 4d3cb58aca..60704e4aeb 100644 --- a/level_zero/api/core/ze_image_api_entrypoints.h +++ b/level_zero/api/core/ze_image_api_entrypoints.h @@ -7,6 +7,8 @@ #pragma once +#include "level_zero/core/source/context/context.h" +#include "level_zero/core/source/device/device.h" #include "level_zero/core/source/image/image.h" #include diff --git a/level_zero/api/core/ze_memory_api_entrypoints.h b/level_zero/api/core/ze_memory_api_entrypoints.h index f80ee1866a..132e007dea 100644 --- a/level_zero/api/core/ze_memory_api_entrypoints.h +++ b/level_zero/api/core/ze_memory_api_entrypoints.h @@ -7,7 +7,7 @@ #pragma once -#include "level_zero/core/source/driver/driver_handle.h" +#include "level_zero/core/source/context/context.h" #include namespace L0 { diff --git a/level_zero/api/core/ze_module_api_entrypoints.h b/level_zero/api/core/ze_module_api_entrypoints.h index 0b3620a4f4..3be752124c 100644 --- a/level_zero/api/core/ze_module_api_entrypoints.h +++ b/level_zero/api/core/ze_module_api_entrypoints.h @@ -9,6 +9,7 @@ #include "level_zero/core/source/cmdlist/cmdlist.h" #include "level_zero/core/source/cmdlist/cmdlist_launch_params.h" +#include "level_zero/core/source/context/context.h" #include "level_zero/core/source/kernel/kernel.h" #include "level_zero/core/source/module/module.h" #include "level_zero/core/source/module/module_build_log.h" diff --git a/level_zero/api/core/ze_mutable_cmdlist_api_entrypoints.h b/level_zero/api/core/ze_mutable_cmdlist_api_entrypoints.h index 9c8b8e3182..53023a6746 100644 --- a/level_zero/api/core/ze_mutable_cmdlist_api_entrypoints.h +++ b/level_zero/api/core/ze_mutable_cmdlist_api_entrypoints.h @@ -7,9 +7,13 @@ #pragma once +#include "level_zero/core/source/cmdlist/cmdlist.h" +#include "level_zero/core/source/event/event.h" #include "level_zero/core/source/mutable_cmdlist/mutable_cmdlist.h" #include +#include + namespace L0 { ze_result_t ZE_APICALL zeCommandListGetNextCommandIdExp( ze_command_list_handle_t hCommandList, diff --git a/level_zero/core/source/gen12lp/cmdlist_gen12lp.h b/level_zero/core/source/gen12lp/cmdlist_gen12lp.h index f4b7c26d8a..3b97cafebc 100644 --- a/level_zero/core/source/gen12lp/cmdlist_gen12lp.h +++ b/level_zero/core/source/gen12lp/cmdlist_gen12lp.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2023 Intel Corporation + * Copyright (C) 2020-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,7 +7,7 @@ #pragma once #include "shared/source/gen12lp/hw_cmds_base.h" -#include "shared/source/gen12lp/hw_info.h" +#include "shared/source/gen12lp/hw_info_gen12lp.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h" diff --git a/level_zero/core/source/helpers/sw_tag_scope.h b/level_zero/core/source/helpers/sw_tag_scope.h index 7bad4ee2e1..49477be9e2 100644 --- a/level_zero/core/source/helpers/sw_tag_scope.h +++ b/level_zero/core/source/helpers/sw_tag_scope.h @@ -9,6 +9,7 @@ #include "shared/source/command_stream/linear_stream.h" #include "shared/source/device/device.h" +#include "shared/source/execution_environment/root_device_environment.h" #include "shared/source/helpers/non_copyable_or_moveable.h" #include "shared/source/utilities/software_tags_manager.h" @@ -37,4 +38,4 @@ class SWTagScope : public NEO::NonCopyableAndNonMovableClass { uint32_t callId = 0; }; -} // namespace L0 \ No newline at end of file +} // namespace L0 diff --git a/level_zero/core/source/image/image_formats.h b/level_zero/core/source/image/image_formats.h index 04a6eeb9c1..01b384e263 100644 --- a/level_zero/core/source/image/image_formats.h +++ b/level_zero/core/source/image/image_formats.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2024 Intel Corporation + * Copyright (C) 2020-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,6 +7,7 @@ #pragma once +#include "shared/source/gmm_helper/gmm_lib.h" #include "shared/source/helpers/surface_format_info.h" #include diff --git a/level_zero/core/source/image/image_hw.h b/level_zero/core/source/image/image_hw.h index b7db5a31a0..826e191773 100644 --- a/level_zero/core/source/image/image_hw.h +++ b/level_zero/core/source/image/image_hw.h @@ -8,6 +8,7 @@ #pragma once #include "shared/source/helpers/hw_info.h" +#include "shared/source/helpers/hw_mapper.h" #include "level_zero/core/source/image/image_imp.h" diff --git a/level_zero/core/source/kernel/kernel_hw.h b/level_zero/core/source/kernel/kernel_hw.h index 6b91078f83..2907702482 100644 --- a/level_zero/core/source/kernel/kernel_hw.h +++ b/level_zero/core/source/kernel/kernel_hw.h @@ -12,6 +12,7 @@ #include "shared/source/device/device.h" #include "shared/source/helpers/aligned_memory.h" #include "shared/source/helpers/cache_policy.h" +#include "shared/source/helpers/hw_mapper.h" #include "shared/source/memory_manager/memory_manager.h" #include "shared/source/memory_manager/unified_memory_manager.h" diff --git a/level_zero/core/source/memory/memory_operations_helper.h b/level_zero/core/source/memory/memory_operations_helper.h index b4926d58d6..c7d26ca21a 100644 --- a/level_zero/core/source/memory/memory_operations_helper.h +++ b/level_zero/core/source/memory/memory_operations_helper.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2023 Intel Corporation + * Copyright (C) 2020-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,11 +7,12 @@ #pragma once +#include "shared/source/helpers/debug_helpers.h" #include "shared/source/memory_manager/memory_operations_status.h" #include -static ze_result_t changeMemoryOperationStatusToL0ResultType(NEO::MemoryOperationsStatus status) { +static inline ze_result_t changeMemoryOperationStatusToL0ResultType(NEO::MemoryOperationsStatus status) { switch (status) { case NEO::MemoryOperationsStatus::success: return ZE_RESULT_SUCCESS; diff --git a/level_zero/core/source/sampler/sampler_hw.h b/level_zero/core/source/sampler/sampler_hw.h index 1288322e81..d91566ec7b 100644 --- a/level_zero/core/source/sampler/sampler_hw.h +++ b/level_zero/core/source/sampler/sampler_hw.h @@ -7,6 +7,8 @@ #pragma once +#include "shared/source/helpers/hw_mapper.h" + #include "level_zero/core/source/sampler/sampler_imp.h" namespace L0 { diff --git a/level_zero/core/source/xe2_hpg_core/cmdlist_xe2_hpg_core.h b/level_zero/core/source/xe2_hpg_core/cmdlist_xe2_hpg_core.h index 9e0816e73f..bdc55c2830 100644 --- a/level_zero/core/source/xe2_hpg_core/cmdlist_xe2_hpg_core.h +++ b/level_zero/core/source/xe2_hpg_core/cmdlist_xe2_hpg_core.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Intel Corporation + * Copyright (C) 2024-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,6 +7,7 @@ #pragma once #include "shared/source/xe2_hpg_core/hw_cmds_base.h" +#include "shared/source/xe2_hpg_core/hw_info_xe2_hpg_core.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h" diff --git a/level_zero/core/source/xe2_hpg_core/mutable_cmdlist_xe2_hpg_core.h b/level_zero/core/source/xe2_hpg_core/mutable_cmdlist_xe2_hpg_core.h index eba7c88a81..80e554cee7 100644 --- a/level_zero/core/source/xe2_hpg_core/mutable_cmdlist_xe2_hpg_core.h +++ b/level_zero/core/source/xe2_hpg_core/mutable_cmdlist_xe2_hpg_core.h @@ -8,6 +8,7 @@ #pragma once #include "shared/source/xe2_hpg_core/hw_cmds_base.h" +#include "shared/source/xe2_hpg_core/hw_info_xe2_hpg_core.h" #include "level_zero/core/source/mutable_cmdlist/mutable_cmdlist_hw.h" diff --git a/level_zero/core/source/xe3_core/cmdlist_xe3_core.h b/level_zero/core/source/xe3_core/cmdlist_xe3_core.h index a2caeeeb2a..5dbddc3f01 100644 --- a/level_zero/core/source/xe3_core/cmdlist_xe3_core.h +++ b/level_zero/core/source/xe3_core/cmdlist_xe3_core.h @@ -7,6 +7,7 @@ #pragma once #include "shared/source/xe3_core/hw_cmds_base.h" +#include "shared/source/xe3_core/hw_info_xe3_core.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h" diff --git a/level_zero/core/source/xe3_core/mutable_cmdlist_xe3_core.h b/level_zero/core/source/xe3_core/mutable_cmdlist_xe3_core.h index d33d8853d1..1395f5e92a 100644 --- a/level_zero/core/source/xe3_core/mutable_cmdlist_xe3_core.h +++ b/level_zero/core/source/xe3_core/mutable_cmdlist_xe3_core.h @@ -8,6 +8,7 @@ #pragma once #include "shared/source/xe3_core/hw_cmds_base.h" +#include "shared/source/xe3_core/hw_info_xe3_core.h" #include "level_zero/core/source/mutable_cmdlist/mutable_cmdlist_hw.h" diff --git a/level_zero/core/source/xe_hpc_core/cmdlist_xe_hpc_core.h b/level_zero/core/source/xe_hpc_core/cmdlist_xe_hpc_core.h index 9fbc398eb8..9aeab3a452 100644 --- a/level_zero/core/source/xe_hpc_core/cmdlist_xe_hpc_core.h +++ b/level_zero/core/source/xe_hpc_core/cmdlist_xe_hpc_core.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022-2023 Intel Corporation + * Copyright (C) 2022-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,6 +7,7 @@ #pragma once #include "shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h" +#include "shared/source/xe_hpc_core/hw_info_xe_hpc_core.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h" diff --git a/level_zero/core/source/xe_hpc_core/mutable_cmdlist_xe_hpc_core.h b/level_zero/core/source/xe_hpc_core/mutable_cmdlist_xe_hpc_core.h index 5df4ccd4c4..d3d680b20f 100644 --- a/level_zero/core/source/xe_hpc_core/mutable_cmdlist_xe_hpc_core.h +++ b/level_zero/core/source/xe_hpc_core/mutable_cmdlist_xe_hpc_core.h @@ -8,6 +8,7 @@ #pragma once #include "shared/source/xe_hpc_core/hw_cmds_xe_hpc_core_base.h" +#include "shared/source/xe_hpc_core/hw_info_xe_hpc_core.h" #include "level_zero/core/source/mutable_cmdlist/mutable_cmdlist_hw.h" diff --git a/level_zero/core/source/xe_hpg_core/cmdlist_xe_hpg_core.h b/level_zero/core/source/xe_hpg_core/cmdlist_xe_hpg_core.h index 8ac86e4d33..b3e3bacbe4 100644 --- a/level_zero/core/source/xe_hpg_core/cmdlist_xe_hpg_core.h +++ b/level_zero/core/source/xe_hpg_core/cmdlist_xe_hpg_core.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2023 Intel Corporation + * Copyright (C) 2021-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #pragma once #include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h" +#include "shared/source/xe_hpg_core/hw_info_xe_hpg_core.h" #include "level_zero/core/source/cmdlist/cmdlist_hw.h" #include "level_zero/core/source/cmdlist/cmdlist_hw_immediate.h" diff --git a/level_zero/core/source/xe_hpg_core/mutable_cmdlist_xe_hpg_core.h b/level_zero/core/source/xe_hpg_core/mutable_cmdlist_xe_hpg_core.h index 1e599b0d7d..e57b04512e 100644 --- a/level_zero/core/source/xe_hpg_core/mutable_cmdlist_xe_hpg_core.h +++ b/level_zero/core/source/xe_hpg_core/mutable_cmdlist_xe_hpg_core.h @@ -8,6 +8,7 @@ #pragma once #include "shared/source/xe_hpg_core/hw_cmds_xe_hpg_core_base.h" +#include "shared/source/xe_hpg_core/hw_info_xe_hpg_core.h" #include "level_zero/core/source/mutable_cmdlist/mutable_cmdlist_hw.h"