Fix typo in s390x code.

This commit is contained in:
Susi Lehtola 2020-02-11 02:48:35 +01:00
parent 3358058639
commit 7dd89ce67c
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,22 @@
From dff173e50e01d94e0741e4b4eaa1cf0aa01cf320 Mon Sep 17 00:00:00 2001
From: Susi Lehtola <susi.lehtola@alumni.helsinki.fi>
Date: Tue, 11 Feb 2020 14:46:30 +1300
Subject: [PATCH] Fix typo in dynamic_zarch.c
---
driver/others/dynamic_zarch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/driver/others/dynamic_zarch.c b/driver/others/dynamic_zarch.c
index 1206bf870..896e65bb4 100644
--- a/driver/others/dynamic_zarch.c
+++ b/driver/others/dynamic_zarch.c
@@ -31,7 +31,7 @@ char* gotoblas_corename(void) {
}
// __builtin_cpu_is is not supported by zarch
-static gotolabs_t* get_coretype(void) {
+static gotoblas_t* get_coretype(void) {
FILE* infile;
char buffer[512], * p;

View File

@ -29,6 +29,9 @@ Patch2: openblas-0.2.15-constructor.patch
# Supply the proper flags to the test makefile
Patch3: openblas-0.3.7-tests.patch
# https://patch-diff.githubusercontent.com/raw/xianyi/OpenBLAS/pull/2405.patch
Patch4: openblas-0.3.8-zarch.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gcc-gfortran
@ -241,6 +244,7 @@ cd OpenBLAS-%{version}
%patch2 -p1 -b .constructor
%endif
%patch3 -p1 -b .tests
%patch4 -p1 -b .zarch
# Fix source permissions
find -name \*.f -exec chmod 644 {} \;