Backport a patch to fix:
|  error: no match for 'operator!=' (operand types are 'const std::thread::id' 
and 'const std::thread::id')

Signed-off-by: Anuj Mittal <[email protected]>
---
 .../dnn/files/fix-gcc-11-failures.patch       | 37 +++++++++++++++++++
 .../recipes-core/dnn/onednn_2.2.2.bb          |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 
dynamic-layers/clang-layer/recipes-core/dnn/files/fix-gcc-11-failures.patch

diff --git 
a/dynamic-layers/clang-layer/recipes-core/dnn/files/fix-gcc-11-failures.patch 
b/dynamic-layers/clang-layer/recipes-core/dnn/files/fix-gcc-11-failures.patch
new file mode 100644
index 00000000..a7f348b3
--- /dev/null
+++ 
b/dynamic-layers/clang-layer/recipes-core/dnn/files/fix-gcc-11-failures.patch
@@ -0,0 +1,37 @@
+From 1fe0f2594a1bfc6386fd8f6537f971d5ae9c1214 Mon Sep 17 00:00:00 2001
+From: Denis Samoilov <[email protected]>
+Date: Fri, 2 Apr 2021 19:46:22 -0700
+Subject: [PATCH] common, gpu: include thread and limit headers to fix GCC 11
+ build issues
+
+Upstream-Status: Backport 
[https://github.com/oneapi-src/oneDNN/commit/1fe0f2594a1bfc6386fd8f6537f971d5ae9c1214]
+Signed-off-by: Anuj Mittal <[email protected]>
+---
+ src/common/primitive_cache.hpp      | 1 +
+ src/gpu/jit/ngen/ngen_auto_swsb.hpp | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/common/primitive_cache.hpp b/src/common/primitive_cache.hpp
+index d3390c0649..ba186b2e66 100644
+--- a/src/common/primitive_cache.hpp
++++ b/src/common/primitive_cache.hpp
+@@ -19,6 +19,7 @@
+ 
+ #include <future>
+ #include <memory>
++#include <thread>
+ #include <unordered_map>
+ 
+ #include "c_types_map.hpp"
+diff --git a/src/gpu/jit/ngen/ngen_auto_swsb.hpp 
b/src/gpu/jit/ngen/ngen_auto_swsb.hpp
+index deb2275ef0..5236bc0fa0 100644
+--- a/src/gpu/jit/ngen/ngen_auto_swsb.hpp
++++ b/src/gpu/jit/ngen/ngen_auto_swsb.hpp
+@@ -28,6 +28,7 @@
+ 
+ #include <list>
+ #include <map>
++#include <limits>
+ 
+ namespace ngen {
+ namespace autoswsb {
diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.2.2.bb 
b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.2.2.bb
index 52381264..f993a88e 100644
--- a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.2.2.bb
+++ b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.2.2.bb
@@ -16,6 +16,7 @@ inherit pkgconfig cmake ptest
 S = "${WORKDIR}/git"
 SRCREV = "518b5e03690e142eb07934d8ddb9c3571fe4f206"
 SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=rls-v2.2 \
+           file://fix-gcc-11-failures.patch \
            file://run-ptest \
            "
 
-- 
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7030): 
https://lists.yoctoproject.org/g/meta-intel/message/7030
Mute This Topic: https://lists.yoctoproject.org/mt/82650087/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to