Accepting request 779513 from science

- Add support for gcc8/9 building (jsc#SLE-8604). (forwarded request 779439 from eeich)

OBS-URL: https://build.opensuse.org/request/show/779513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openblas?expand=0&rev=30
This commit is contained in:
Dominique Leuenberger 2020-02-29 20:21:45 +00:00 committed by Git OBS Bridge
commit 372b0e2577
5 changed files with 90 additions and 42 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bde136122cef3dd6efe2de1c6f65c10955bbb0cc01a520c2342f5287c28f9379
size 11986592

3
OpenBLAS-0.3.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f86ade36f0dbed9ac90eb62575137388359d97d8f93093b38abe166ad7ef3a8
size 12173881

View File

@ -1,26 +0,0 @@
From b28db31429d9b3b6a57a182d79e63aafdd2843f1 Mon Sep 17 00:00:00 2001
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Date: Fri, 6 Dec 2019 21:23:56 +0100
Subject: [PATCH] Support two-digit version numbers in gcc version check
fixes #2336 (non-recognition of gcc 10) with patch provided by JeffreyALaw.
---
f_check | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/f_check b/f_check
index 993ad9a3..79b24e2d 100644
--- a/f_check
+++ b/f_check
@@ -71,7 +71,7 @@ if ($compiler eq "") {
if ($data =~ /GNU/) {
- $data =~ /(\d)\.(\d).(\d)/;
+ $data =~ /(\d+)\.(\d+).(\d+)/;
$major = $1;
$minor = $2;
--
2.24.0

View File

@ -1,3 +1,51 @@
-------------------------------------------------------------------
Wed Feb 26 12:22:00 UTC 2020 - Egbert Eich <eich@suse.com>
- Add support for gcc8/9 building (jsc#SLE-8604).
-------------------------------------------------------------------
Mon Feb 10 07:01:49 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Update to version 0.3.8
common:
* LAPACK has been updated to 3.9.0 (plus patches up to January 2nd, 2020)
* CMAKE support has been improved in several areas including cross-compilation
* A thread race condition in the GEMM3M kernels was resolved
* The "generic" (plain C) gemm beta kernel used by many targets has been sped up
* An optimized version of the LAPACK trtrs functions has been added
* An incompatibilty between the LAPACK tests and the OpenBLAS implementation of XERBLA
was resolved, removing the numerous warnings about wrong error exits in the former
* Support for NetBSD has been added
* Support for compilation with g95 and non-GNU versions of ld has been improved
* Compilation with (upcoming) gcc 10 is now supported
power:
* Worked around miscompilation of several POWER8 and POWER9 kernels by
older versions of gcc
* Added support for big-endian POWER8 and for compilation on AIX
* Corrected bugs in the big-endian support for PPC440 and PPC970
* DYNAMIC_ARCH support is now available in CMAKE builds as well
armv8:
* Performance of DGEMM_BETA and SGEMM_NCOPY has been improved
* Compilation for 32bit works again
* Performance of the RPCC function has been improved
* Improved performance on small systems
* DYNAMIC_ARCH support is now available in CMAKE builds as well
* Cross-compilation from OSX to IOS was simplified
x86-64:
* A new AVX512 DGEMM kernel was added and the AVX512 SGEMM kernel was
significantly improved
* Optimized AVX512 kernels for CGEMM and ZGEMM have been added
* AVX2 kernels for STRMM, SGEMM, and CGEMM have been significantly
sped up and optimized CGEMM3M and ZGEMM3M kernels have been added
* Added support for QEMU virtual cpus
* A compilation problem with PGI and SUN compilers was fixed
* Intel "Goldmont plus" is now autodetected
* A potential crash on program exit on MS Windows has been fixed
IBM Z:
* Z15 is now supported as Z14
* DYNAMIC_ARCH is now available on ZARCH as well
- Remove now merged gcc10-Support-two-digit-version-numbers-in-gcc-version-che.patch
-------------------------------------------------------------------
Sun Dec 8 09:03:24 UTC 2019 - Martin Liška <mliska@suse.cz>

View File

@ -1,7 +1,7 @@
#
# spec file for package openblas
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,8 +18,8 @@
%global flavor @BUILD_FLAVOR@%{nil}
%define _vers 0_3_7
%define vers 0.3.7
%define _vers 0_3_8
%define vers 0.3.8
%define pname openblas
%bcond_with ringdisabled
@ -64,12 +64,6 @@ ExclusiveArch: do_not_build
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu7-hpc"
%define compiler_family gnu
%define c_f_ver 7
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu-hpc-pthreads"
%define compiler_family gnu
%undefine c_f_ver
@ -78,6 +72,12 @@ ExclusiveArch: do_not_build
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu7-hpc"
%define compiler_family gnu
%define c_f_ver 7
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu7-hpc-pthreads"
%define compiler_family gnu
%define c_f_ver 7
@ -86,6 +86,34 @@ ExclusiveArch: do_not_build
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu8-hpc"
%define compiler_family gnu
%define c_f_ver 8
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu8-hpc-pthreads"
%define compiler_family gnu
%define c_f_ver 8
%define ext pthreads
%define build_flags USE_THREAD=1 USE_OPENMP=0
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu9-hpc"
%define compiler_family gnu
%define c_f_ver 9
%{bcond_without hpc}
%endif
%if "%flavor" == "gnu9-hpc-pthreads"
%define compiler_family gnu
%define c_f_ver 9
%define ext pthreads
%define build_flags USE_THREAD=1 USE_OPENMP=0
%{bcond_without hpc}
%endif
%if %{without hpc}
%if 0%{!?package_name:1}
%define package_name %{pname}_%{flavor}
@ -128,8 +156,7 @@ Source2: README.HPC.SUSE
# PATCH-FIX-UPSTREAM openblas-noexecstack.patch
Patch1: openblas-noexecstack.patch
# PATCH port
Patch3: openblas-s390.patch
Patch4: gcc10-Support-two-digit-version-numbers-in-gcc-version-che.patch
Patch2: openblas-s390.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -234,8 +261,7 @@ This package contains headers for OpenBLAS.
%setup -q -n OpenBLAS-%{version}
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch2 -p1
%ifarch s390
sed -i -e "s@m32@m31@" Makefile.system
%endif