mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 21:09:03 +02:00
onednn: fix failures with gcc 11
Backport a patch to fix: | error: no match for 'operator!=' (operand types are 'const std:🧵:id' and 'const std:🧵:id') Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
parent
922c44cb70
commit
49d97ea0ac
|
@ -0,0 +1,37 @@
|
|||
From 1fe0f2594a1bfc6386fd8f6537f971d5ae9c1214 Mon Sep 17 00:00:00 2001
|
||||
From: Denis Samoilov <denis.samoylov@intel.com>
|
||||
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 <anuj.mittal@intel.com>
|
||||
---
|
||||
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 {
|
|
@ -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 \
|
||||
"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user