From f50328b87769f52d476a32d5c5cbd1b135dd2c66 Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Fri, 17 May 2024 09:12:55 +0800 Subject: intel-compute-runtime: fix build with gcc14 Fixes: | /poky/build/tmp/work/corei7-64-poky-linux/intel-compute-runtime/24.13.29138.7/git/shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp:75:41: error: no matching function for call to 'find(std::vector::iterator, std::vector::iterator, void*&)' | 75 | EXPECT_NE(destroyed.end(), std::find(destroyed.begin(), destroyed.end(), handle)); | | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Anuj Mittal --- .../f10439aea214984a060566831f63d3aa198ef1b8.patch | 54 ++++++++++++++++++++++ .../intel-compute-runtime_24.13.29138.7.bb | 1 + 2 files changed, 55 insertions(+) create mode 100644 dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/f10439aea214984a060566831f63d3aa198ef1b8.patch diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/f10439aea214984a060566831f63d3aa198ef1b8.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/f10439aea214984a060566831f63d3aa198ef1b8.patch new file mode 100644 index 00000000..b7fcb3d1 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/f10439aea214984a060566831f63d3aa198ef1b8.patch @@ -0,0 +1,54 @@ +From f10439aea214984a060566831f63d3aa198ef1b8 Mon Sep 17 00:00:00 2001 +From: Pawel Cieslak +Date: Tue, 14 May 2024 14:20:24 +0000 +Subject: [PATCH] fix: include where std::find is used + +Related-To: NEO-11375 +Signed-off-by: Pawel Cieslak + +Upstream-Status: Backport [https://github.com/intel/compute-runtime/commit/f10439aea214984a060566831f63d3aa198ef1b8] +Signed-off-by: Anuj Mittal +--- + .../sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp | 3 ++- + shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp | 4 +++- + 2 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/level_zero/sysman/test/unit_tests/sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp b/level_zero/sysman/test/unit_tests/sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp +index 6ab1b751d866..8a224752c8fc 100644 +--- a/level_zero/sysman/test/unit_tests/sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp ++++ b/level_zero/sysman/test/unit_tests/sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp +@@ -1,5 +1,5 @@ + /* +- * Copyright (C) 2021-2023 Intel Corporation ++ * Copyright (C) 2021-2024 Intel Corporation + * + * SPDX-License-Identifier: MIT + * +@@ -13,6 +13,7 @@ + + #include "gtest/gtest.h" + ++#include + #include + #include + +diff --git a/shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp b/shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp +index 206c272c5bb2..e961248e73a3 100644 +--- a/shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp ++++ b/shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp +@@ -1,5 +1,5 @@ + /* +- * Copyright (C) 2021-2023 Intel Corporation ++ * Copyright (C) 2021-2024 Intel Corporation + * + * SPDX-License-Identifier: MIT + * +@@ -17,6 +17,8 @@ + + #include "gtest/gtest.h" + ++#include ++ + using namespace NEO; + + struct MockGmmHandleAllocator : NEO::GmmHandleAllocator { diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_24.13.29138.7.bb b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_24.13.29138.7.bb index 5214d5cf..7280ed03 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_24.13.29138.7.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_24.13.29138.7.bb @@ -12,6 +12,7 @@ SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=rele file://disable-werror.patch \ file://allow-to-find-cpp-generation-tool.patch \ file://external-ocloc.patch \ + file://f10439aea214984a060566831f63d3aa198ef1b8.patch \ " SRCREV = "7131387cdbb02d480a225c70daef913a6c024a6e" -- cgit v1.2.3-54-g00ecf