diff options
| author | Anuj Mittal <anuj.mittal@intel.com> | 2024-05-17 09:12:55 +0800 | 
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2024-05-17 09:12:55 +0800 | 
| commit | f50328b87769f52d476a32d5c5cbd1b135dd2c66 (patch) | |
| tree | 8f2daf8cbf8f70b8cb47dc2e81f7bc53c81f9a2b /dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime | |
| parent | f9eb05f598504cade58b3b1010a098af0ea58150 (diff) | |
| download | meta-intel-f50328b87769f52d476a32d5c5cbd1b135dd2c66.tar.gz | |
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<char*>::iterator, std::vector<char*>::iterator, void*&)'
 |    75 |     EXPECT_NE(destroyed.end(), std::find(destroyed.begin(), destroyed.end(), handle));
 |       |                                ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime')
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/f10439aea214984a060566831f63d3aa198ef1b8.patch | 54 | 
1 files changed, 54 insertions, 0 deletions
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 @@ | |||
| 1 | From f10439aea214984a060566831f63d3aa198ef1b8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Pawel Cieslak <pawel.cieslak@intel.com> | ||
| 3 | Date: Tue, 14 May 2024 14:20:24 +0000 | ||
| 4 | Subject: [PATCH] fix: include <algorithm> where std::find is used | ||
| 5 | |||
| 6 | Related-To: NEO-11375 | ||
| 7 | Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com> | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://github.com/intel/compute-runtime/commit/f10439aea214984a060566831f63d3aa198ef1b8] | ||
| 10 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
| 11 | --- | ||
| 12 | .../sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp | 3 ++- | ||
| 13 | shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp | 4 +++- | ||
| 14 | 2 files changed, 5 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | 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 | ||
| 17 | index 6ab1b751d866..8a224752c8fc 100644 | ||
| 18 | --- a/level_zero/sysman/test/unit_tests/sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp | ||
| 19 | +++ b/level_zero/sysman/test/unit_tests/sources/linux/nl_api/test_sysman_iaf_nl_api_prelim.cpp | ||
| 20 | @@ -1,5 +1,5 @@ | ||
| 21 | /* | ||
| 22 | - * Copyright (C) 2021-2023 Intel Corporation | ||
| 23 | + * Copyright (C) 2021-2024 Intel Corporation | ||
| 24 | * | ||
| 25 | * SPDX-License-Identifier: MIT | ||
| 26 | * | ||
| 27 | @@ -13,6 +13,7 @@ | ||
| 28 | |||
| 29 | #include "gtest/gtest.h" | ||
| 30 | |||
| 31 | +#include <algorithm> | ||
| 32 | #include <limits> | ||
| 33 | #include <netlink/handlers.h> | ||
| 34 | |||
| 35 | 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 | ||
| 36 | index 206c272c5bb2..e961248e73a3 100644 | ||
| 37 | --- a/shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp | ||
| 38 | +++ b/shared/test/unit_test/gmm_helper/gmm_resource_info_tests.cpp | ||
| 39 | @@ -1,5 +1,5 @@ | ||
| 40 | /* | ||
| 41 | - * Copyright (C) 2021-2023 Intel Corporation | ||
| 42 | + * Copyright (C) 2021-2024 Intel Corporation | ||
| 43 | * | ||
| 44 | * SPDX-License-Identifier: MIT | ||
| 45 | * | ||
| 46 | @@ -17,6 +17,8 @@ | ||
| 47 | |||
| 48 | #include "gtest/gtest.h" | ||
| 49 | |||
| 50 | +#include <algorithm> | ||
| 51 | + | ||
| 52 | using namespace NEO; | ||
| 53 | |||
| 54 | struct MockGmmHandleAllocator : NEO::GmmHandleAllocator { | ||
