Update to 0.3.8, featuring dynamic cpu detection on all architectures.
This commit is contained in:
parent
46e517974f
commit
3358058639
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@
|
|||||||
/openblas-0.3.2.tar.gz
|
/openblas-0.3.2.tar.gz
|
||||||
/openblas-0.3.6.tar.gz
|
/openblas-0.3.6.tar.gz
|
||||||
/openblas-0.3.7.tar.gz
|
/openblas-0.3.7.tar.gz
|
||||||
|
/openblas-0.3.8.tar.gz
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
%bcond_with system_lapack
|
%bcond_with system_lapack
|
||||||
# Version of bundled lapack
|
# Version of bundled lapack
|
||||||
%global lapackver 3.8.0
|
%global lapackver 3.9.0
|
||||||
|
|
||||||
# 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,8 +14,8 @@
|
|||||||
# "obsoleted" features are still kept in the spec.
|
# "obsoleted" features are still kept in the spec.
|
||||||
|
|
||||||
Name: openblas
|
Name: openblas
|
||||||
Version: 0.3.7
|
Version: 0.3.8
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2
|
Summary: An optimized BLAS library based on GotoBLAS2
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/xianyi/OpenBLAS/
|
URL: https://github.com/xianyi/OpenBLAS/
|
||||||
@ -364,22 +364,22 @@ export AVX="NO_AVX2=1"
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
%ifarch armv7hl
|
%ifarch armv7hl
|
||||||
TARGET="TARGET=ARMV7 DYNAMIC_ARCH=0"
|
TARGET="TARGET=ARMV7 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc64
|
%ifarch ppc64
|
||||||
TARGET="TARGET=POWER6 DYNAMIC_ARCH=0"
|
TARGET="TARGET=POWER6 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc64p7
|
%ifarch ppc64p7
|
||||||
TARGET="TARGET=POWER7 DYNAMIC_ARCH=0"
|
TARGET="TARGET=POWER7 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
%endif
|
%endif
|
||||||
%ifarch ppc64le
|
%ifarch ppc64le
|
||||||
TARGET="TARGET=POWER8 DYNAMIC_ARCH=0"
|
TARGET="TARGET=POWER8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1"
|
TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
TARGET="TARGET=ZARCH_GENERIC DYNAMIC_ARCH=0"
|
TARGET="TARGET=ZARCH_GENERIC DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel} == 5
|
%if 0%{?rhel} == 5
|
||||||
@ -440,33 +440,9 @@ cp -a %{_includedir}/lapacke %{buildroot}%{_includedir}/%{name}
|
|||||||
%multilib_fix_c_header --file %{_includedir}/openblas/openblas_config.h
|
%multilib_fix_c_header --file %{_includedir}/openblas/openblas_config.h
|
||||||
|
|
||||||
# Fix name of libraries
|
# Fix name of libraries
|
||||||
suffix=""
|
slibname=`basename %{buildroot}%{_libdir}/libopenblas-*.so .so`
|
||||||
%ifarch armv7hl
|
|
||||||
suffix="_armv7"
|
|
||||||
%endif
|
|
||||||
%ifarch ppc64
|
|
||||||
suffix="_power6"
|
|
||||||
%endif
|
|
||||||
%ifarch ppc64p7
|
|
||||||
suffix="_power7"
|
|
||||||
%endif
|
|
||||||
%ifarch ppc64le
|
|
||||||
suffix="_power8"
|
|
||||||
%endif
|
|
||||||
%ifarch aarch64
|
|
||||||
# Runtime CPU detection, no suffix
|
|
||||||
%endif
|
|
||||||
%ifarch s390x
|
|
||||||
suffix="_zarch_generic"
|
|
||||||
%endif
|
|
||||||
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
|
||||||
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
||||||
if [[ "$suffix" != "" ]]; then
|
sname=${slibname}
|
||||||
sname=$(echo $slibname | sed "s|$suffix||g")
|
|
||||||
mv %{buildroot}%{_libdir}/${slibname}.so %{buildroot}%{_libdir}/${sname}.so
|
|
||||||
else
|
|
||||||
sname=${slibname}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install the Rblas library
|
# Install the Rblas library
|
||||||
mkdir -p %{buildroot}%{_libdir}/R/lib/
|
mkdir -p %{buildroot}%{_libdir}/R/lib/
|
||||||
@ -499,13 +475,8 @@ install -D -p -m 644 serial64/${slibname64}.a %{buildroot}%{_libdir}/lib%{name}6
|
|||||||
slibname64_=`echo ${slibname} | sed "s|lib%{name}|lib%{name}64_|g"`
|
slibname64_=`echo ${slibname} | sed "s|lib%{name}|lib%{name}64_|g"`
|
||||||
install -D -p -m 644 serial64_/${slibname64_}.a %{buildroot}%{_libdir}/lib%{name}64_.a
|
install -D -p -m 644 serial64_/${slibname64_}.a %{buildroot}%{_libdir}/lib%{name}64_.a
|
||||||
|
|
||||||
if [[ "$suffix" != "" ]]; then
|
sname64=${slibname64}
|
||||||
sname64=$(echo ${slibname64} | sed "s|$suffix||g")
|
sname64_=${slibname64_}
|
||||||
sname64_=$(echo ${slibname64_} | sed "s|$suffix||g")
|
|
||||||
else
|
|
||||||
sname64=${slibname64}
|
|
||||||
sname64_=${slibname64_}
|
|
||||||
fi
|
|
||||||
install -D -p -m 755 serial64/${slibname64}.so %{buildroot}%{_libdir}/${sname64}.so
|
install -D -p -m 755 serial64/${slibname64}.so %{buildroot}%{_libdir}/${sname64}.so
|
||||||
install -D -p -m 755 serial64_/${slibname64_}.so %{buildroot}%{_libdir}/${sname64_}.so
|
install -D -p -m 755 serial64_/${slibname64_}.so %{buildroot}%{_libdir}/${sname64_}.so
|
||||||
|
|
||||||
@ -677,6 +648,10 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 11 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.8-1
|
||||||
|
- Update to 0.3.8; dynamic runtime cpu detection on all architectures.
|
||||||
|
- Also updates bundled LAPACK to 3.9.0.
|
||||||
|
|
||||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (openblas-0.3.7.tar.gz) = 9c4898301c675471bbce2bb99b6bbe7c90724784fac06504416d4bd5da3cd4488f727b0a118c9a38ea342daac2af9e32597a847004241cc57de693b58b856262
|
SHA512 (openblas-0.3.8.tar.gz) = d557a332b1f905399d97dd5392ca10ca4eed47d669cae4abea374ed7c2e6c1ab29a4415df1224e940b9041e1545fa5ede2bdfb266986230436014795e7d3289d
|
||||||
|
Loading…
Reference in New Issue
Block a user