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
|
%global __cmake_in_source_build 1
|
||||||
|
|
||||||
Name: onednn
|
Name: onednn
|
||||||
Version: 1.6
|
Version: 2.3.2
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Deep Neural Network Library
|
Summary: Deep Neural Network Library
|
||||||
|
|
||||||
License: ASL 2.0 and BSD and Boost and MIT
|
License: ASL 2.0 and BSD and Boost and MIT
|
||||||
URL: https://github.com/oneapi-src/oneDNN/
|
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
|
# This package only work in few arches for now
|
||||||
ExclusiveArch: x86_64 aarch64 ppc64le
|
ExclusiveArch: x86_64 aarch64 ppc64le
|
||||||
|
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -76,13 +79,15 @@ rm -rf %{buildroot}%{_docdir}/dnnl
|
|||||||
%files
|
%files
|
||||||
%license LICENSE THIRD-PARTY-PROGRAMS
|
%license LICENSE THIRD-PARTY-PROGRAMS
|
||||||
%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md
|
%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md
|
||||||
%{_libdir}/libdnnl.so.1
|
%{_libdir}/libdnnl.so.2
|
||||||
%{_libdir}/libdnnl.so.1.*
|
%{_libdir}/libdnnl.so.2.*
|
||||||
%{_libdir}/libmkldnn.so.1
|
%{_libdir}/libmkldnn.so.2
|
||||||
%{_libdir}/libmkldnn.so.1.*
|
%{_libdir}/libmkldnn.so.2.*
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%dir %{_includedir}/oneapi
|
||||||
|
%{_includedir}/oneapi/dnnl
|
||||||
%{_includedir}/mkldnn*.h*
|
%{_includedir}/mkldnn*.h*
|
||||||
%{_includedir}/dnnl*.h*
|
%{_includedir}/dnnl*.h*
|
||||||
%{_libdir}/libdnnl.so
|
%{_libdir}/libdnnl.so
|
||||||
@ -95,5 +100,8 @@ rm -rf %{buildroot}%{_docdir}/dnnl
|
|||||||
|
|
||||||
%changelog
|
%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
|
* Sun Dec 13 2020 sinever <sinever@126.com> - 1.6-1
|
||||||
- Initial spec file.
|
- 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