Fix build on ppc64le.

This commit is contained in:
Susi Lehtola 2018-06-02 00:35:38 +02:00
parent dab62fddac
commit b344534ab3
2 changed files with 26 additions and 0 deletions

23
1572.patch Normal file
View File

@ -0,0 +1,23 @@
From 961d25e9c7e4a1758adb1dbeaa15187de69dd052 Mon Sep 17 00:00:00 2001
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
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

View File

@ -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 {} \;