!15 [sync] [手工同步] update oneDNN to 2.6 for AMX support
From: @wisespreading Reviewed-by: @sinever Signed-off-by: @sinever
This commit is contained in:
commit
3b0d5bf8a3
@ -1,29 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
BIN
onednn-2.6.tar.gz
Normal file
BIN
onednn-2.6.tar.gz
Normal file
Binary file not shown.
36
onednn.spec
36
onednn.spec
@ -1,23 +1,19 @@
|
|||||||
%global __cmake_in_source_build 1
|
%global __cmake_in_source_build 1
|
||||||
|
|
||||||
Name: onednn
|
Name: onednn
|
||||||
Version: 2.3.2
|
Version: 2.6
|
||||||
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}/v%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/onednn-%{version}.tar.gz
|
||||||
Patch0: Use-__INTEL_COMPILER-guard.patch
|
|
||||||
|
|
||||||
|
|
||||||
# This package only work in few arches for now
|
# This package only work in 64bit arches for now
|
||||||
ExclusiveArch: x86_64 aarch64 ppc64le
|
ExclusiveArch: x86_64 aarch64
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: cmake doxygen gcc-c++
|
||||||
BuildRequires: cmake
|
|
||||||
BuildRequires: doxygen
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
|
|
||||||
# Optionals not yet enabled
|
# Optionals not yet enabled
|
||||||
#BuildRequires: pkgconfig(OpenCL)
|
#BuildRequires: pkgconfig(OpenCL)
|
||||||
@ -63,6 +59,8 @@ mkdir -p build && cd build
|
|||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
cd build && ctest
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
cd build
|
||||||
@ -81,27 +79,25 @@ rm -rf %{buildroot}%{_docdir}/dnnl
|
|||||||
%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md
|
%doc README.md CONTRIBUTING.md CODE_OF_CONDUCT.md
|
||||||
%{_libdir}/libdnnl.so.2
|
%{_libdir}/libdnnl.so.2
|
||||||
%{_libdir}/libdnnl.so.2.*
|
%{_libdir}/libdnnl.so.2.*
|
||||||
%{_libdir}/libmkldnn.so.2
|
|
||||||
%{_libdir}/libmkldnn.so.2.*
|
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%dir %{_includedir}/oneapi
|
%dir %{_includedir}/oneapi
|
||||||
%{_includedir}/oneapi/dnnl
|
%{_includedir}/oneapi/dnnl
|
||||||
%{_includedir}/mkldnn*.h*
|
|
||||||
%{_includedir}/dnnl*.h*
|
%{_includedir}/dnnl*.h*
|
||||||
%{_libdir}/libdnnl.so
|
%{_libdir}/libdnnl.so
|
||||||
%{_libdir}/libmkldnn.so
|
|
||||||
%dir %{_libdir}/cmake/dnnl
|
%dir %{_libdir}/cmake/dnnl
|
||||||
%{_libdir}/cmake/dnnl/*.cmake
|
%{_libdir}/cmake/dnnl/*.cmake
|
||||||
%dir %{_libdir}/cmake/mkldnn
|
|
||||||
%{_libdir}/cmake/mkldnn/*.cmake
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 6 2022 wisespreading <wisespreading@gmail.com> - 2.6-1
|
||||||
|
- Update to 2.6 for AMX
|
||||||
* Thu Dec 30 2021 yangping69 <yangping69@huawei.com> - 2.3.2-1
|
* Thu Dec 30 2021 yangping69 <yangping69@huawei.com> - 2.3.2-1
|
||||||
- Update version.
|
- Update version.
|
||||||
|
* Wed Dec 22 2021 baihuawei <baihuawei@huawei.com> - 2.2-3
|
||||||
|
- Fix spec file.
|
||||||
|
* Wed Dec 1 2021 baihuawei <baihuawei@huawei.com> - 2.2-2
|
||||||
|
- Fix bugs.
|
||||||
|
* Wed Sep 30 2021 baihuawei <baihuawei@huawei.com> - 2.2-1
|
||||||
|
- Update to 2.2 to match latest MindSpore.
|
||||||
* 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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user