diff --git a/1572.patch b/1572.patch new file mode 100644 index 0000000..76247ac --- /dev/null +++ b/1572.patch @@ -0,0 +1,23 @@ +From 961d25e9c7e4a1758adb1dbeaa15187de69dd052 Mon Sep 17 00:00:00 2001 +From: Martin Kroeker +Date: Wed, 23 May 2018 22:54:39 +0200 +Subject: [PATCH] Use the new zrot.c on POWER8 for crot as well + +fixes #1571 (the old zrot.S assembly does not handle incx=0 correctly) +--- + kernel/power/KERNEL.POWER8 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kernel/power/KERNEL.POWER8 b/kernel/power/KERNEL.POWER8 +index 00ff8682a..1aa061078 100644 +--- a/kernel/power/KERNEL.POWER8 ++++ b/kernel/power/KERNEL.POWER8 +@@ -133,7 +133,7 @@ ZNRM2KERNEL = ../arm/znrm2.c + # + SROTKERNEL = srot.c + DROTKERNEL = drot.c +-#CROTKERNEL = ../arm/zrot.c ++CROTKERNEL = zrot.c + ZROTKERNEL = zrot.c + # + SSCALKERNEL = sscal.c diff --git a/openblas.spec b/openblas.spec index 3a6a7b8..ec6749e 100644 --- a/openblas.spec +++ b/openblas.spec @@ -29,6 +29,8 @@ Patch1: openblas-0.2.5-libname.patch Patch2: openblas-0.2.15-constructor.patch # Supply the proper flags to the test makefile Patch3: openblas-0.2.19-tests.patch +# Upstream pull 1572, fixes fail on ppc64le +Patch4: 1572.patch BuildRequires: gcc BuildRequires: gcc-gfortran @@ -228,6 +230,7 @@ cd OpenBLAS-%{version} %patch2 -p1 -b .constructor %endif %patch3 -p1 -b .tests +%patch4 -p1 -b .ppc64le # Fix source permissions find -name \*.f -exec chmod 644 {} \;