import openblas-0.3.15-1.el8
This commit is contained in:
parent
283fe7f8c7
commit
4e5c5ab532
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/v0.3.12.tar.gz
|
SOURCES/v0.3.15.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
ae647fed597ae891a7f122b9ddc6b15d4b7e0656 SOURCES/v0.3.12.tar.gz
|
d7d1f67c1ef0c14c93761bdf44f0da8d0dd4bc0f SOURCES/v0.3.15.tar.gz
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
diff --git a/kernel/Makefile b/kernel/Makefile
|
diff --git a/kernel/Makefile b/kernel/Makefile
|
||||||
index e52781c6..c925837a 100644
|
index 1a6c9413..afd54abc 100644
|
||||||
--- a/kernel/Makefile
|
--- a/kernel/Makefile
|
||||||
+++ b/kernel/Makefile
|
+++ b/kernel/Makefile
|
||||||
@@ -151,25 +151,32 @@ endif
|
@@ -132,25 +132,32 @@ endif
|
||||||
all : libs
|
all : libs
|
||||||
|
|
||||||
scabs1.$(SUFFIX): $(KERNELDIR)/$(SCABS_KERNEL)
|
scabs1.$(SUFFIX): $(KERNELDIR)/$(SCABS_KERNEL)
|
||||||
@ -42,7 +42,7 @@ index e52781c6..c925837a 100644
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
setparam$(TSUFFIX).c : setparam-ref.c
|
setparam$(TSUFFIX).c : setparam-ref.c
|
||||||
@@ -180,25 +187,32 @@ kernel$(TSUFFIX).h : $(KERNEL_INTERFACE)
|
@@ -161,25 +168,32 @@ kernel$(TSUFFIX).h : $(KERNEL_INTERFACE)
|
||||||
|
|
||||||
|
|
||||||
cpuid.$(SUFFIX): $(KERNELDIR)/cpuid.S
|
cpuid.$(SUFFIX): $(KERNELDIR)/cpuid.S
|
||||||
@ -83,10 +83,10 @@ index e52781c6..c925837a 100644
|
|||||||
#ifdef DYNAMIC_ARCH
|
#ifdef DYNAMIC_ARCH
|
||||||
clean ::
|
clean ::
|
||||||
diff --git a/kernel/Makefile.L1 b/kernel/Makefile.L1
|
diff --git a/kernel/Makefile.L1 b/kernel/Makefile.L1
|
||||||
index 7ad94118..3487a9e3 100644
|
index 09337363..a368277e 100644
|
||||||
--- a/kernel/Makefile.L1
|
--- a/kernel/Makefile.L1
|
||||||
+++ b/kernel/Makefile.L1
|
+++ b/kernel/Makefile.L1
|
||||||
@@ -545,217 +545,282 @@ endif
|
@@ -553,217 +553,282 @@ endif
|
||||||
|
|
||||||
|
|
||||||
$(KDIR)samax_k$(TSUFFIX).$(SUFFIX) $(KDIR)samax_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SAMAXKERNEL)
|
$(KDIR)samax_k$(TSUFFIX).$(SUFFIX) $(KDIR)samax_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SAMAXKERNEL)
|
||||||
@ -434,7 +434,7 @@ index 7ad94118..3487a9e3 100644
|
|||||||
|
|
||||||
ifeq ($(BUILD_BFLOAT16),1)
|
ifeq ($(BUILD_BFLOAT16),1)
|
||||||
$(KDIR)sbdot_k$(TSUFFIX).$(SUFFIX) $(KDIR)sbdot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SBDOTKERNEL)
|
$(KDIR)sbdot_k$(TSUFFIX).$(SUFFIX) $(KDIR)sbdot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SBDOTKERNEL)
|
||||||
@@ -771,126 +836,165 @@ $(KDIR)dbf16tod_k$(TSUFFIX).$(SUFFIX) : $(KERNELDIR)/$(BF16TOKERNEL)
|
@@ -779,126 +844,165 @@ $(KDIR)dbf16tod_k$(TSUFFIX).$(SUFFIX) : $(KERNELDIR)/$(BF16TOKERNEL)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(KDIR)sdot_k$(TSUFFIX).$(SUFFIX) $(KDIR)sdot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SDOTKERNEL)
|
$(KDIR)sdot_k$(TSUFFIX).$(SUFFIX) $(KDIR)sdot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SDOTKERNEL)
|
||||||
@ -529,14 +529,14 @@ index 7ad94118..3487a9e3 100644
|
|||||||
+ $(CC) $$CFLAGS -DCOMPLEX -c -DXDOUBLE $< -o $@
|
+ $(CC) $$CFLAGS -DCOMPLEX -c -DXDOUBLE $< -o $@
|
||||||
|
|
||||||
$(KDIR)srot_k$(TSUFFIX).$(SUFFIX) $(KDIR)srot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SROTKERNEL)
|
$(KDIR)srot_k$(TSUFFIX).$(SUFFIX) $(KDIR)srot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SROTKERNEL)
|
||||||
- $(CC) -c $(CFLAGS) -UCOMPLEX -UCOMPLEX -UDOUBLE $< -o $@
|
- $(CC) -c $(CFLAGS) $(FMAFLAG) -UCOMPLEX -UCOMPLEX -UDOUBLE $< -o $@
|
||||||
+ [[ "$<" == *.S ]] && CFLAGS="$(CFLAGS) $(ASMFLAGS)" || CFLAGS="$(CFLAGS)"; \
|
+ [[ "$<" == *.S ]] && CFLAGS="$(CFLAGS) $(ASMFLAGS)" || CFLAGS="$(CFLAGS)"; \
|
||||||
+ $(CC) -c $$CFLAGS -UCOMPLEX -UCOMPLEX -UDOUBLE $< -o $@
|
+ $(CC) -c $$CFLAGS $(FMAFLAG) -UCOMPLEX -UCOMPLEX -UDOUBLE $< -o $@
|
||||||
|
|
||||||
$(KDIR)drot_k$(TSUFFIX).$(SUFFIX) $(KDIR)drot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(DROTKERNEL)
|
$(KDIR)drot_k$(TSUFFIX).$(SUFFIX) $(KDIR)drot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(DROTKERNEL)
|
||||||
- $(CC) -c $(CFLAGS) -UCOMPLEX -UCOMPLEX -DDOUBLE $< -o $@
|
- $(CC) -c $(CFLAGS) $(FMAFLAG) -UCOMPLEX -UCOMPLEX -DDOUBLE $< -o $@
|
||||||
+ [[ "$<" == *.S ]] && CFLAGS="$(CFLAGS) $(ASMFLAGS)" || CFLAGS="$(CFLAGS)"; \
|
+ [[ "$<" == *.S ]] && CFLAGS="$(CFLAGS) $(ASMFLAGS)" || CFLAGS="$(CFLAGS)"; \
|
||||||
+ $(CC) -c $$CFLAGS -UCOMPLEX -UCOMPLEX -DDOUBLE $< -o $@
|
+ $(CC) -c $$CFLAGS $(FMAFLAG) -UCOMPLEX -UCOMPLEX -DDOUBLE $< -o $@
|
||||||
|
|
||||||
$(KDIR)qrot_k$(TSUFFIX).$(SUFFIX) $(KDIR)qrot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(QROTKERNEL)
|
$(KDIR)qrot_k$(TSUFFIX).$(SUFFIX) $(KDIR)qrot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(QROTKERNEL)
|
||||||
- $(CC) -c $(CFLAGS) -UCOMPLEX -UCOMPLEX -DXDOUBLE $< -o $@
|
- $(CC) -c $(CFLAGS) -UCOMPLEX -UCOMPLEX -DXDOUBLE $< -o $@
|
||||||
@ -640,10 +640,10 @@ index 7ad94118..3487a9e3 100644
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/kernel/Makefile.L2 b/kernel/Makefile.L2
|
diff --git a/kernel/Makefile.L2 b/kernel/Makefile.L2
|
||||||
index 79399c34..6d605f82 100644
|
index 888a9b95..16e94c6a 100644
|
||||||
--- a/kernel/Makefile.L2
|
--- a/kernel/Makefile.L2
|
||||||
+++ b/kernel/Makefile.L2
|
+++ b/kernel/Makefile.L2
|
||||||
@@ -236,251 +236,320 @@ XBLASOBJS += \
|
@@ -252,252 +252,321 @@ endif
|
||||||
|
|
||||||
ifneq "$(or $(BUILD_SINGLE), $(BUILD_DOUBLE), $(BUILD_COMPLEX))" ""
|
ifneq "$(or $(BUILD_SINGLE), $(BUILD_DOUBLE), $(BUILD_COMPLEX))" ""
|
||||||
$(KDIR)sgemv_n$(TSUFFIX).$(SUFFIX) $(KDIR)sgemv_n$(TSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SGEMVNKERNEL) $(TOPDIR)/common.h $(GEMVDEP)
|
$(KDIR)sgemv_n$(TSUFFIX).$(SUFFIX) $(KDIR)sgemv_n$(TSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SGEMVNKERNEL) $(TOPDIR)/common.h $(GEMVDEP)
|
||||||
@ -1032,9 +1032,10 @@ index 79399c34..6d605f82 100644
|
|||||||
+ [[ "$<" == *.S ]] && CFLAGS="$(CFLAGS) $(ASMFLAGS)" || CFLAGS="$(CFLAGS)"; \
|
+ [[ "$<" == *.S ]] && CFLAGS="$(CFLAGS) $(ASMFLAGS)" || CFLAGS="$(CFLAGS)"; \
|
||||||
+ $(CC) -c $$CFLAGS -DCOMPLEX -DXDOUBLE -DLOWER -DHEMV -DHEMVREV $< -o $@
|
+ $(CC) -c $$CFLAGS -DCOMPLEX -DXDOUBLE -DLOWER -DHEMV -DHEMVREV $< -o $@
|
||||||
|
|
||||||
|
ifeq ($(BUILD_BFLOAT16),1)
|
||||||
|
$(KDIR)sbgemv_n$(TSUFFIX).$(SUFFIX) $(KDIR)sbgemv_n$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SBGEMVNKERNEL)
|
||||||
diff --git a/kernel/Makefile.L3 b/kernel/Makefile.L3
|
diff --git a/kernel/Makefile.L3 b/kernel/Makefile.L3
|
||||||
index 2ba593c2..110674b2 100644
|
index d8d73996..60ca4c86 100644
|
||||||
--- a/kernel/Makefile.L3
|
--- a/kernel/Makefile.L3
|
||||||
+++ b/kernel/Makefile.L3
|
+++ b/kernel/Makefile.L3
|
||||||
@@ -526,119 +526,150 @@ XGEMMOTCOPYOBJ_P = $(XGEMMOTCOPYOBJ:.$(SUFFIX)=.$(PSUFFIX))
|
@@ -526,119 +526,150 @@ XGEMMOTCOPYOBJ_P = $(XGEMMOTCOPYOBJ:.$(SUFFIX)=.$(PSUFFIX))
|
@ -1,8 +1,8 @@
|
|||||||
diff --git a/Makefile.system b/Makefile.system
|
diff --git a/Makefile.system b/Makefile.system
|
||||||
index 30d8f4cc..803219a8 100644
|
index ae703e4d..80739dc4 100644
|
||||||
--- a/Makefile.system
|
--- a/Makefile.system
|
||||||
+++ b/Makefile.system
|
+++ b/Makefile.system
|
||||||
@@ -1425,16 +1425,16 @@ ifndef SMP
|
@@ -1515,16 +1515,16 @@ ifndef SMP
|
||||||
LIBNAME = $(LIBPREFIX)_$(LIBCORE)$(REVISION).$(LIBSUFFIX)
|
LIBNAME = $(LIBPREFIX)_$(LIBCORE)$(REVISION).$(LIBSUFFIX)
|
||||||
LIBNAME_P = $(LIBPREFIX)_$(LIBCORE)$(REVISION)_p.$(LIBSUFFIX)
|
LIBNAME_P = $(LIBPREFIX)_$(LIBCORE)$(REVISION)_p.$(LIBSUFFIX)
|
||||||
else
|
else
|
@ -1,5 +1,5 @@
|
|||||||
diff --git a/kernel/power/drot.c b/kernel/power/drot.c
|
diff --git a/kernel/power/drot.c b/kernel/power/drot.c
|
||||||
index 951c2f9c..98788c0f 100644
|
index 3229878e..a25ccceb 100644
|
||||||
--- a/kernel/power/drot.c
|
--- a/kernel/power/drot.c
|
||||||
+++ b/kernel/power/drot.c
|
+++ b/kernel/power/drot.c
|
||||||
@@ -37,8 +37,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -37,8 +37,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
@ -8,11 +8,11 @@ index 951c2f9c..98788c0f 100644
|
|||||||
|
|
||||||
-#pragma GCC optimize "O1"
|
-#pragma GCC optimize "O1"
|
||||||
-
|
-
|
||||||
#if defined(POWER8) || defined(POWER9) || defined(POWER10)
|
|
||||||
#if defined(__VEC__) || defined(__ALTIVEC__)
|
#if defined(__VEC__) || defined(__ALTIVEC__)
|
||||||
|
#if defined(POWER8) || defined(POWER9)
|
||||||
#include "drot_microk_power8.c"
|
#include "drot_microk_power8.c"
|
||||||
diff --git a/kernel/power/srot.c b/kernel/power/srot.c
|
diff --git a/kernel/power/srot.c b/kernel/power/srot.c
|
||||||
index a53342f6..73b477d9 100644
|
index 5a0d4b12..d73fafc9 100644
|
||||||
--- a/kernel/power/srot.c
|
--- a/kernel/power/srot.c
|
||||||
+++ b/kernel/power/srot.c
|
+++ b/kernel/power/srot.c
|
||||||
@@ -37,8 +37,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -37,8 +37,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
@ -21,11 +21,11 @@ index a53342f6..73b477d9 100644
|
|||||||
|
|
||||||
-#pragma GCC optimize "O1"
|
-#pragma GCC optimize "O1"
|
||||||
-
|
-
|
||||||
#if defined(POWER8) || defined(POWER9) || defined(POWER10)
|
|
||||||
#if defined(__VEC__) || defined(__ALTIVEC__)
|
#if defined(__VEC__) || defined(__ALTIVEC__)
|
||||||
|
#if defined(POWER8) || defined(POWER9)
|
||||||
#include "srot_microk_power8.c"
|
#include "srot_microk_power8.c"
|
||||||
diff --git a/kernel/power/zscal.c b/kernel/power/zscal.c
|
diff --git a/kernel/power/zscal.c b/kernel/power/zscal.c
|
||||||
index 5526f4d6..3c2efbfa 100644
|
index 59ddc149..a5e35001 100644
|
||||||
--- a/kernel/power/zscal.c
|
--- a/kernel/power/zscal.c
|
||||||
+++ b/kernel/power/zscal.c
|
+++ b/kernel/power/zscal.c
|
||||||
@@ -36,8 +36,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -36,8 +36,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
@ -34,6 +34,6 @@ index 5526f4d6..3c2efbfa 100644
|
|||||||
|
|
||||||
-#pragma GCC optimize "O1"
|
-#pragma GCC optimize "O1"
|
||||||
-
|
-
|
||||||
#if defined(POWER8) || defined(POWER9) || defined(POWER10)
|
|
||||||
#if defined(__VEC__) || defined(__ALTIVEC__)
|
#if defined(__VEC__) || defined(__ALTIVEC__)
|
||||||
|
#if defined(POWER8) || defined(POWER9)
|
||||||
#if defined(DOUBLE)
|
#if defined(DOUBLE)
|
@ -1,8 +1,8 @@
|
|||||||
diff --git a/Makefile b/Makefile
|
diff --git a/Makefile b/Makefile
|
||||||
index a9af62a2..2f0f11c0 100644
|
index 555d1c46..7dc74273 100644
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -138,13 +138,13 @@ tests :
|
@@ -144,13 +144,13 @@ tests :
|
||||||
ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
|
ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
|
||||||
touch $(LIBNAME)
|
touch $(LIBNAME)
|
||||||
ifndef NO_FBLAS
|
ifndef NO_FBLAS
|
@ -1,6 +1,6 @@
|
|||||||
%bcond_with system_lapack
|
%bcond_with system_lapack
|
||||||
# Version of bundled lapack
|
# Version of bundled lapack
|
||||||
%global lapackver 3.9.0
|
%global lapackver 3.9.1
|
||||||
|
|
||||||
# DO NOT "CLEAN UP" OR MODIFY THIS SPEC FILE WITHOUT ASKING THE
|
# DO NOT "CLEAN UP" OR MODIFY THIS SPEC FILE WITHOUT ASKING THE
|
||||||
# MAINTAINER FIRST!
|
# MAINTAINER FIRST!
|
||||||
@ -14,7 +14,7 @@
|
|||||||
# "obsoleted" features are still kept in the spec.
|
# "obsoleted" features are still kept in the spec.
|
||||||
|
|
||||||
Name: openblas
|
Name: openblas
|
||||||
Version: 0.3.12
|
Version: 0.3.15
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2
|
Summary: An optimized BLAS library based on GotoBLAS2
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -22,20 +22,22 @@ License: BSD
|
|||||||
URL: https://github.com/xianyi/OpenBLAS/
|
URL: https://github.com/xianyi/OpenBLAS/
|
||||||
Source0: https://github.com/xianyi/OpenBLAS/archive/v%{version}.tar.gz
|
Source0: https://github.com/xianyi/OpenBLAS/archive/v%{version}.tar.gz
|
||||||
# Use system lapack
|
# Use system lapack
|
||||||
Patch0: openblas-0.3.12-system-lapack.patch
|
Patch0: openblas-0.3.15-system-lapack.patch
|
||||||
# Drop extra p from threaded library name
|
# Drop extra p from threaded library name
|
||||||
Patch1: openblas-0.3.12-libname.patch
|
Patch1: openblas-0.3.15-libname.patch
|
||||||
# Supply the proper flags to the test makefile
|
# Supply the proper flags to the test makefile
|
||||||
Patch2: openblas-0.3.12-tests.patch
|
Patch2: openblas-0.3.15-tests.patch
|
||||||
# Enable optimizations for all LAPACK sources
|
# Enable optimizations for all LAPACK sources
|
||||||
Patch3: openblas-0.3.12-noopt.patch
|
Patch3: openblas-0.3.15-noopt.patch
|
||||||
# Pass ASMFLAGS to assembler compiler
|
# Pass ASMFLAGS to assembler compiler
|
||||||
Patch4: openblas-0.3.12-asmflags.patch
|
Patch4: openblas-0.3.15-asmflags.patch
|
||||||
# Remove optimization pragmas on ppc64le
|
# Remove optimization pragmas on ppc64le
|
||||||
Patch5: openblas-0.3.12-power-optimize.patch
|
Patch5: openblas-0.3.15-power-optimize.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: scl-utils
|
||||||
BuildRequires: gcc-gfortran
|
BuildRequires: gcc-toolset-11-gcc
|
||||||
|
BuildRequires: gcc-toolset-11-gcc-gfortran
|
||||||
|
BuildRequires: gcc-toolset-11-annobin-plugin-gcc
|
||||||
BuildRequires: perl-devel
|
BuildRequires: perl-devel
|
||||||
BuildRequires: multilib-rpm-config
|
BuildRequires: multilib-rpm-config
|
||||||
|
|
||||||
@ -336,6 +338,9 @@ rm -rf netliblapack64
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Enable gcc-toolset-11
|
||||||
|
source scl_source enable gcc-toolset-11
|
||||||
|
|
||||||
%if !%{lapacke}
|
%if !%{lapacke}
|
||||||
LAPACKE="NO_LAPACKE=1"
|
LAPACKE="NO_LAPACKE=1"
|
||||||
%endif
|
%endif
|
||||||
@ -675,6 +680,11 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 15 2021 Nikola Forró <nforro@redhat.com> - 0.3.15-1
|
||||||
|
- Rebase to version 0.3.15
|
||||||
|
- Use gcc-toolset-11 to benefit from POWER 10 optimizations
|
||||||
|
resolves: #1983218
|
||||||
|
|
||||||
* Wed Oct 28 2020 Nikola Forró <nforro@redhat.com> - 0.3.12-1
|
* Wed Oct 28 2020 Nikola Forró <nforro@redhat.com> - 0.3.12-1
|
||||||
- Rebase to version 0.3.12
|
- Rebase to version 0.3.12
|
||||||
related: #1847435
|
related: #1847435
|
||||||
|
Loading…
Reference in New Issue
Block a user