Hello community,
here is the log from the commit of package mkl-dnn for openSUSE:Leap:15.2
checked in at 2020-02-29 17:15:42
Comparing /work/SRC/openSUSE:Leap:15.2/mkl-dnn (Old)
and /work/SRC/openSUSE:Leap:15.2/.mkl-dnn.new.26092 (New)
Package is "mkl-dnn"
Sat Feb 29 17:15:42 2020 rev:2 rq:779968 version:1.1.3
Changes:
--- /work/SRC/openSUSE:Leap:15.2/mkl-dnn/mkl-dnn.changes2020-02-22
17:49:35.633426115 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.mkl-dnn.new.26092/mkl-dnn.changes
2020-02-29 17:16:14.337017101 +0100
@@ -1,0 +2,23 @@
+Thu Feb 27 12:44:00 UTC 2020 - Tomáš Chvátal
+
+- Do not disable LTO there is no actual reason for that
+- Export LD_LIBRARY_PATH to fix older releases build
+
+---
+Wed Feb 26 10:36:26 UTC 2020 - Tomáš Chvátal
+
+- There is no actual reason to not use github tag for tarball
+ fetching -> remove the service
+- Format with spec-cleaner
+- Use proper %cmake macros everywhere
+- Add configure options for cmake to set it up in a way we really
+ want
+- Add patch from Debian to not install OpenCL cmake finder:
+ * cmake-no-install-ocl-cmake.patch
+
+---
+Thu Feb 20 10:26:52 UTC 2020 - Christian Goll
+
+- enabled tests
+
+---
@@ -35,2 +57,0 @@
-
-
Old:
_service
mkl-dnn-v1.1.3.obscpio
mkl-dnn.obsinfo
New:
cmake-no-install-ocl-cmake.patch
mkl-dnn-1.1.3.tar.gz
Other differences:
--
++ mkl-dnn.spec ++
--- /var/tmp/diff_new_pack.W2Bz7Y/_old 2020-02-29 17:16:15.077018627 +0100
+++ /var/tmp/diff_new_pack.W2Bz7Y/_new 2020-02-29 17:16:15.089018652 +0100
@@ -1,7 +1,7 @@
#
# spec file for package mkl-dnn
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,23 +17,23 @@
%define libname libdnnl1
-%define _lto_cflags %{nil}
-
Name: mkl-dnn
Version:1.1.3
Release:0
Summary:Intel(R) Math Kernel Library for Deep Neural Networks
License:Apache-2.0
-Group: Development/Libraries/C and C++
-Url:https://01.org/mkl-dnn
-Source0:%{name}-v%{version}.tar.xz
+URL:https://01.org/mkl-dnn
+Source0:
https://github.com/intel/mkl-dnn/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0: cmake-no-install-ocl-cmake.patch
BuildRequires: cmake
BuildRequires: doxygen
+BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: graphviz
+BuildRequires: opencl-headers
+BuildRequires: pkgconfig
BuildRequires: texlive-dvips-bin
-BuildRequires: fdupes
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: pkgconfig(OpenCL)
ExclusiveArch: x86_64
%description
@@ -45,7 +45,6 @@
%package -n benchdnn
Summary:Header files of Intel(R) Math Kernel Library
-Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
%description -n benchdnn
@@ -59,7 +58,6 @@
%package devel
Summary:Header files of Intel(R) Math Kernel Library
-Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
%description devel
@@ -74,7 +72,7 @@
%package doc
Summary:Reference documentation for the Intel(R) Math Kernel Library
-Group: Documentation/HTML
+BuildArch: noarch
%description doc
The reference documentation for the Intel(R) Math Kernel Library can be
installed
@@ -82,7 +80,6 @@
%package -n %{libname}
Summary:Header files of Intel(R) Math Kernel Library
-Group: Development/Languages/C and C++
%description -n %{libname}
Intel(R) Math Kernel Library for Deep Neural Networks (Intel(R) MKL-DNN) is an
@@ -92,64 +89,63 @@
to implement deep neural networks (DNN) with C and C++ interfaces.
%prep
-%setup -q -n %{name}-v%{version}
+%setup -q
+%autopatch -p1
%build
-# If ARCH_OPT_FLAGS is not 'unset', -march=native would be use what could
-# lead to cryptic optimizations as build server may have different CPUs
-export ARCH_OPT_FLAGS=""
-export DNNL_CPU_RUNTIME=OMP
-%cmake
-%make_jobs
-make doc
+%cmake \
+ -DCMAKE_INSTALL_LIBDIR=%{_lib} \
+ -DMKLDNN_ARCH_OPT_FLAGS="" \
+ -DDNNL_CPU_RUNTIME=OMP \
+ -DDNNL_GPU_RUNTIME=OCL \
+ -DDNNL_INSTALL_MODE=DEFAULT \
+ -DDNNL_BUILD_TESTS=ON \
+ -DDNNL_WERROR=OFF
+%cmake_build
+%cmake_build doc
%install
%cmake_install
-# move LICENSE to correct locations
-mkdir -pv %{buildroot}%{_docdir}/%{name}
-#mv