v2.3.2
This commit is contained in:
parent
ae45241489
commit
4ffd972e1c
29
Use-__INTEL_COMPILER-guard.patch
Normal file
29
Use-__INTEL_COMPILER-guard.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 2654b133917480ff6860c4c8b4b9df11c9c95bf5 Mon Sep 17 00:00:00 2001
|
||||
From: Nicolas Chauvet <kwizart@gmail.com>
|
||||
Date: Tue, 17 Aug 2021 09:36:19 +0200
|
||||
Subject: [PATCH 2/2] Use __INTEL_COMPILER guard
|
||||
|
||||
This fixes compilation on non-x86 arches
|
||||
|
||||
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
|
||||
---
|
||||
src/gpu/jit/ngen/ngen_utils.hpp | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/gpu/jit/ngen/ngen_utils.hpp b/src/gpu/jit/ngen/ngen_utils.hpp
|
||||
index 508756a080fd..2b736927db35 100644
|
||||
--- a/src/gpu/jit/ngen/ngen_utils.hpp
|
||||
+++ b/src/gpu/jit/ngen/ngen_utils.hpp
|
||||
@@ -19,7 +19,9 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
+#ifdef __INTEL_COMPILER
|
||||
#include <immintrin.h>
|
||||
+#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
--
|
||||
2.31.1
|
||||
|
||||
Binary file not shown.
20
onednn.spec
20
onednn.spec
@ -1,17 +1,20 @@
|
||||
%global __cmake_in_source_build 1
|
||||
|
||||
Name: onednn
|
||||
Version: 1.6
|
||||
Version: 2.3.2
|
||||
Release: 1
|
||||
Summary: Deep Neural Network Library
|
||||
|
||||
License: ASL 2.0 and BSD and Boost and MIT
|
||||
URL: https://github.com/oneapi-src/oneDNN/
|
||||
Source0: %{url}/archive/v%{version}/onednn-%{version}.tar.gz
|
||||
Source0: %{url}/archive/v%{version}/v%{version}.tar.gz
|
||||
Patch0: Use-__INTEL_COMPILER-guard.patch
|
||||
|
||||
|
||||
# This package only work in few arches for now
|
||||
ExclusiveArch: x86_64 aarch64 ppc64le
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc-c++
|
||||
@ -76,13 +79,15 @@ rm -rf %{buildroot}%{_docdir}/dnnl
|
||||
%files
|
||||
%license LICENSE THIRD-PARTY-PROGRAMS
|
||||
%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md
|
||||
%{_libdir}/libdnnl.so.1
|
||||
%{_libdir}/libdnnl.so.1.*
|
||||
%{_libdir}/libmkldnn.so.1
|
||||
%{_libdir}/libmkldnn.so.1.*
|
||||
%{_libdir}/libdnnl.so.2
|
||||
%{_libdir}/libdnnl.so.2.*
|
||||
%{_libdir}/libmkldnn.so.2
|
||||
%{_libdir}/libmkldnn.so.2.*
|
||||
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/oneapi
|
||||
%{_includedir}/oneapi/dnnl
|
||||
%{_includedir}/mkldnn*.h*
|
||||
%{_includedir}/dnnl*.h*
|
||||
%{_libdir}/libdnnl.so
|
||||
@ -95,5 +100,8 @@ rm -rf %{buildroot}%{_docdir}/dnnl
|
||||
|
||||
%changelog
|
||||
|
||||
* Thu Dec 30 2021 yangping69 <yangping69@huawei.com> - 2.3.2-1
|
||||
- Update version.
|
||||
|
||||
* Sun Dec 13 2020 sinever <sinever@126.com> - 1.6-1
|
||||
- Initial spec file.
|
||||
|
||||
BIN
v2.3.2.tar.gz
Normal file
BIN
v2.3.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user