1
0
forked from pool/onednn

Accepting request 882580 from science:machinelearning

OBS-URL: https://build.opensuse.org/request/show/882580
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/onednn?expand=0&rev=2
This commit is contained in:
Richard Brown 2021-04-06 15:29:55 +00:00 committed by Git OBS Bridge
commit b134992645
4 changed files with 29 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:471c877671f672e4119e5f49143890c5ce2efff80a52a5eaf7ef3730eb3e1738
size 5795520

3
onednn-2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f7fd92e2d0bf83580656695d4404e2cd1390ecad36496fd8ba10b5adc905f70
size 9273493

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 17 14:17:47 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 2.1
- Add Arm ComputeLibrary support on aarch64
-------------------------------------------------------------------
Mon Oct 5 06:16:30 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -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