From 0ca2a09b431111f0a917edfc69cf6182e11071ea Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Mon, 2 Mar 2026 17:49:04 +0000 Subject: [PATCH] The ur_api.h header has been moved to ur subdirectory First look for , then for compatibility with older versions. Ref: https://github.com/intel/llvm/pull/21399 Signed-off-by: Lukasz Dorau --- .../implementations/ur/decoder2_impl_ur.h | 7 ++++++- .../implementations/ur/sin_kernel_impl_ur.cpp | 6 +++++- .../implementations/ur/sin_kernel_impl_ur.h | 7 ++++++- .../implementations/ur/submit_graph_ur.cpp | 5 +++++ source/framework/ur/ur.h | 6 +++++- 5 files changed, 27 insertions(+), 4 deletions(-) diff --git a/source/benchmarks/graph_api_benchmark/implementations/ur/decoder2_impl_ur.h b/source/benchmarks/graph_api_benchmark/implementations/ur/decoder2_impl_ur.h index af5128b1..06367d04 100644 --- a/source/benchmarks/graph_api_benchmark/implementations/ur/decoder2_impl_ur.h +++ b/source/benchmarks/graph_api_benchmark/implementations/ur/decoder2_impl_ur.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2025 Intel Corporation + * Copyright (C) 2025-2026 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -13,7 +13,12 @@ #include "definitions/decoder2_graph_base.h" #include + +#if __has_include() +#include +#else #include +#endif class Decoder2GraphUR : public Decoder2GraphBase { public: diff --git a/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.cpp b/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.cpp index 23f7c43f..99dad8d2 100644 --- a/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.cpp +++ b/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024-2025 Intel Corporation + * Copyright (C) 2024-2026 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,7 +9,11 @@ #include "framework/test_case/test_result.h" +#if __has_include("ur/ur_api.h") +#include "ur/ur_api.h" +#else #include "ur_api.h" +#endif #include #include diff --git a/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.h b/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.h index 4dfa2cd5..9f97d690 100644 --- a/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.h +++ b/source/benchmarks/graph_api_benchmark/implementations/ur/sin_kernel_impl_ur.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024-2025 Intel Corporation + * Copyright (C) 2024-2026 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -13,7 +13,12 @@ #include "definitions/sin_kernel_graph_base.h" #include + +#if __has_include() +#include +#else #include +#endif class SinKernelGraphUR : public SinKernelGraphBase { public: diff --git a/source/benchmarks/graph_api_benchmark/implementations/ur/submit_graph_ur.cpp b/source/benchmarks/graph_api_benchmark/implementations/ur/submit_graph_ur.cpp index 71d888b2..8fb9baa0 100644 --- a/source/benchmarks/graph_api_benchmark/implementations/ur/submit_graph_ur.cpp +++ b/source/benchmarks/graph_api_benchmark/implementations/ur/submit_graph_ur.cpp @@ -14,7 +14,12 @@ #include "definitions/submit_graph.h" #include + +#if __has_include() +#include +#else #include +#endif static constexpr size_t n_dimensions = 3; static constexpr size_t global_size[] = {1, 1, 1}; diff --git a/source/framework/ur/ur.h b/source/framework/ur/ur.h index 14f96b18..97f9494e 100644 --- a/source/framework/ur/ur.h +++ b/source/framework/ur/ur.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Intel Corporation + * Copyright (C) 2024-2026 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,7 +9,11 @@ #include "framework/configuration.h" +#if __has_include() +#include +#else #include +#endif struct UrState { UrState();