diff --git a/onednn-1.6.3.tar.gz b/onednn-1.6.3.tar.gz deleted file mode 100644 index 45b9fba..0000000 --- a/onednn-1.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:471c877671f672e4119e5f49143890c5ce2efff80a52a5eaf7ef3730eb3e1738 -size 5795520 diff --git a/onednn-2.1.tar.gz b/onednn-2.1.tar.gz new file mode 100644 index 0000000..17d7cef --- /dev/null +++ b/onednn-2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f7fd92e2d0bf83580656695d4404e2cd1390ecad36496fd8ba10b5adc905f70 +size 9273493 diff --git a/onednn.changes b/onednn.changes index 159fd56..1dd4655 100644 --- a/onednn.changes +++ b/onednn.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 17 14:17:47 UTC 2021 - Guillaume GARDET + +- Update to 2.1 +- Add Arm ComputeLibrary support on aarch64 + ------------------------------------------------------------------- Mon Oct 5 06:16:30 UTC 2020 - Guillaume GARDET diff --git a/onednn.spec b/onednn.spec index 1b3cb6c..77d7119 100644 --- a/onednn.spec +++ b/onednn.spec @@ -1,7 +1,7 @@ # # spec file for package onednn # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,9 +23,15 @@ %bcond_with opencl %endif -%define libname libdnnl1 +%ifarch aarch64 +%bcond_without acl +%else +%bcond_with acl +%endif + +%define libname libdnnl2 Name: onednn -Version: 1.6.3 +Version: 2.1 Release: 0 Summary: Intel(R) Math Kernel Library for Deep Neural Networks License: Apache-2.0 @@ -37,6 +43,9 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: graphviz BuildRequires: texlive-dvips-bin +%if %{with acl} +BuildRequires: ComputeLibrary-devel +%endif %if %{with opencl} BuildRequires: opencl-headers BuildRequires: pkgconfig @@ -111,6 +120,11 @@ to implement deep neural networks (DNN) with C and C++ interfaces. -DCMAKE_INSTALL_LIBDIR=%{_lib} \ -DMKLDNN_ARCH_OPT_FLAGS="" \ -DDNNL_CPU_RUNTIME=OMP \ +%if %{with acl} + -DDNNL_AARCH64_USE_ACL=ON \ + -DACL_INCLUDE_DIR=%{_includedir} \ + -DACL_LIBRARY=%{_libdir}/libarm_compute.so \ +%endif %if %{with opencl} -DDNNL_GPU_RUNTIME=OCL \ %endif @@ -156,6 +170,9 @@ popd %{_includedir}/mkl-dnn %{_includedir}/mkldnn*.h* %{_includedir}/dnnl*.h* +%dir %{_includedir}/oneapi +%dir %{_includedir}/oneapi/dnnl +%{_includedir}/oneapi/dnnl/dnnl*.h* %{_libdir}/libdnnl.so %{_libdir}/libmkldnn.so %dir %{_libdir}/cmake/dnnl