openblas/openblas-s390.patch
Ismail Dönmez e731315c9d Accepting request 814610 from home:namtrac:branches:science
- Update to version 0.3.10
  common:
  * Improved thread locking behaviour in blas_server and parallel getrf
  * Imported bugfix 394 from LAPACK (spurious reference to "XERBL"
    due to overlong lines)
  * Imported bugfix 403 from LAPACK (compile option "recursive" required
    for correctness with Intel and PGI)
  * Imported bugfix 408 from LAPACK (wrong scaling in ZHEEQUB)
  * Imported bugfix 411 from LAPACK (infinite loop in LARGV/LARTG/LARTGP)
  * Fixed mismatches between BUFFERSIZE and GEMM_UNROLL parameters that
    could lead to crashes at large matrix sizes
  * Restored internal soname in dynamic libraries on FreeBSD and Dragonfly
  * Added API (openblas_setaffinity) to set thread affinity
    programmatically on Linux
  * Added initial infrastructure for half-precision floating point
    (bfloat16) support with a generic implementation of SHGEMM
  * Added CMAKE build system support for building the cblas_Xgemm3m
    functions
  * Fixed CMAKE support for building in a path with embedded spaces
  * Fixed CMAKE (non)handling of NO_EXPRECISION and MAX_STACK_ALLOC
  * Fixed GCC version detection in the Makefiles
  * Allowed overriding the names of AR, AS and LD in Makefile builds
  POWER:
  * fixed big-endian POWER8 ELFv2 builds on FreeBSD
  * Fixed GCC version checks and DYNAMIC_ARCH builds on POWER9
  * Fixed CMAKE build support for POWER9
  * fixed a potential race condition in the thread buffer allocation
  * Worked around LAPACK test failures on PPC G4
  MIPS:
  * fixed a potential race condition in the thread buffer allocation

OBS-URL: https://build.opensuse.org/request/show/814610
OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=92
2020-06-15 05:33:39 +00:00

40 lines
1.3 KiB
Diff

Index: OpenBLAS-0.3.10/c_check
===================================================================
--- OpenBLAS-0.3.10.orig/c_check
+++ OpenBLAS-0.3.10/c_check
@@ -10,7 +10,7 @@ $hostarch = "x86_64" if ($hostarch eq "a
$hostarch = "arm" if ($hostarch =~ /^arm.*/);
$hostarch = "arm64" if ($hostarch eq "aarch64");
$hostarch = "power" if ($hostarch =~ /^(powerpc|ppc).*/);
-$hostarch = "zarch" if ($hostarch eq "s390x");
+$hostarch = "zarch" if ($hostarch =~ /^s390/);
#$tmpf = new File::Temp( UNLINK => 1 );
$binary = $ENV{"BINARY"};
Index: OpenBLAS-0.3.10/ctest.c
===================================================================
--- OpenBLAS-0.3.10.orig/ctest.c
+++ OpenBLAS-0.3.10/ctest.c
@@ -117,7 +117,7 @@ ARCH_X86_64
ARCH_POWER
#endif
-#if defined(__s390x__) || defined(__zarch__)
+#if defined(__s390x__) || defined(__s390__) || defined(__zarch__)
ARCH_ZARCH
#endif
Index: OpenBLAS-0.3.10/getarch.c
===================================================================
--- OpenBLAS-0.3.10.orig/getarch.c
+++ OpenBLAS-0.3.10/getarch.c
@@ -1200,7 +1200,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF
#define OPENBLAS_SUPPORTED
#endif
-#if defined(__zarch__) || defined(__s390x__)
+#if defined(__zarch__) || defined(__s390x__) || defined(__s390__)
#define ZARCH
#include "cpuid_zarch.c"
#define OPENBLAS_SUPPORTED