From 1aae703b57ef1fbd909eaecafbf4c212b64b6269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Wed, 29 Aug 2018 20:02:08 +0200 Subject: [PATCH] - Fix precision in generic target on s390x --- openblas-0.3.2-zarch.patch | 24 ++++++++++++++++++++++++ openblas.spec | 8 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 openblas-0.3.2-zarch.patch diff --git a/openblas-0.3.2-zarch.patch b/openblas-0.3.2-zarch.patch new file mode 100644 index 0000000..9857dd8 --- /dev/null +++ b/openblas-0.3.2-zarch.patch @@ -0,0 +1,24 @@ +From f3fd44a731c1997b1d79d4d16abc25d78dce88a7 Mon Sep 17 00:00:00 2001 +From: Martin Kroeker +Date: Tue, 28 Aug 2018 21:34:07 +0200 +Subject: [PATCH] Set USE_TRMM for all ZARCH variants to fix TRMM faults with + zarch-generic + +fixes #1743 +--- + kernel/Makefile.L3 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kernel/Makefile.L3 b/kernel/Makefile.L3 +index b37e536ef..9258f216d 100644 +--- a/kernel/Makefile.L3 ++++ b/kernel/Makefile.L3 +@@ -44,7 +44,7 @@ ifeq ($(CORE), POWER8) + USE_TRMM = 1 + endif + +-ifeq ($(CORE), Z13) ++ifeq ($(ARCH), zarch) + USE_TRMM = 1 + endif + diff --git a/openblas.spec b/openblas.spec index abc2d75..874a614 100644 --- a/openblas.spec +++ b/openblas.spec @@ -15,7 +15,7 @@ Name: openblas Version: 0.3.2 -Release: 3%{?dist} +Release: 5%{?dist} Summary: An optimized BLAS library based on GotoBLAS2 Group: Development/Libraries License: BSD @@ -31,6 +31,8 @@ Patch2: openblas-0.2.15-constructor.patch Patch3: openblas-0.3.2-tests.patch # Crude hack to avoid problems with threading code (see https://github.com/xianyi/OpenBLAS/issues/1735) Patch4: openblas-0.3.2-threads.patch +# https://github.com/xianyi/OpenBLAS/commit/e11126b26ada8d97b4a522e461ca92311653bfc6 +Patch5: openblas-0.3.2-zarch.patch BuildRequires: gcc BuildRequires: gcc-gfortran @@ -253,6 +255,7 @@ cd OpenBLAS-%{version} %endif %patch3 -p1 -b .tests %patch4 -p1 -b .threads +%patch5 -p1 -b .zarch # Fix source permissions find -name \*.f -exec chmod 644 {} \; @@ -692,6 +695,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %endif %changelog +* Wed Aug 29 2018 Dan HorĂ¡k - 0.3.2-5 +- Fix precision in generic target on s390x + * Fri Aug 24 2018 Susi Lehtola - 0.3.2-4 - Patch to avoid threading issues.