Dominique Leuenberger 2017-08-24 16:20:27 +00:00 committed by Git OBS Bridge
commit eff762f359
6 changed files with 65 additions and 7929 deletions

File diff suppressed because it is too large Load Diff

View File

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

3
openblas-0.2.20.tar.gz Normal file
View File

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

View File

@ -1,16 +1,16 @@
Index: OpenBLAS-0.2.13/exports/Makefile
Index: OpenBLAS-0.2.20/exports/Makefile
===================================================================
--- OpenBLAS-0.2.13.orig/exports/Makefile
+++ OpenBLAS-0.2.13/exports/Makefile
@@ -118,6 +118,7 @@ else
--- OpenBLAS-0.2.20.orig/exports/Makefile
+++ OpenBLAS-0.2.20/exports/Makefile
@@ -137,6 +137,7 @@ else
endif
ifneq ($(C_COMPILER), LSB)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,-z,noexecstack \
-Wl,--whole-archive $< -Wl,--no-whole-archive \
-Wl,-soname,$(LIBPREFIX).so.$(MAJOR_VERSION) $(EXTRALIB)
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
@@ -145,6 +146,7 @@ else
@@ -164,6 +165,7 @@ else
../$(LIBSONAME) : ../$(LIBNAME).renamed linktest.c
endif
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
@ -18,7 +18,7 @@ Index: OpenBLAS-0.2.13/exports/Makefile
-Wl,--whole-archive $< -Wl,--no-whole-archive \
$(FEXTRALIB) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
@@ -164,6 +166,7 @@ ifeq ($(OSNAME), SunOS)
@@ -183,6 +185,7 @@ ifeq ($(OSNAME), SunOS)
so : ../$(LIBSONAME)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \

View File

@ -1,3 +1,50 @@
-------------------------------------------------------------------
Wed Aug 9 19:45:54 UTC 2017 - dmitry_r@opensuse.org
- Remove migration %post scripts for old library names
-------------------------------------------------------------------
Sat Jul 29 16:08:38 UTC 2017 - badshah400@gmail.com
- Update to version 0.2.20:
* common:
- Improved CMake support
- Fixed several thread race and locking bugs
- Fixed default LAPACK optimization level
- Updated LAPACK to 3.7.0
- Added ReLAPACK (https://github.com/HPAC/ReLAPACK), make
BUILD_RELAPACK=1
* POWER:
- Optimizations for Power9
- Fixed several Power8 assembly bugs
* ARM:
- New optimized Vulcan and ThunderX2T99 targets
- Support for ARMV7 SOFT_FP ABI (make ARM_SOFTFP_ABI=1)
- Detect all cpu cores including offline ones
- Fix compilation with CLANG
- Support building a shared library for Android
* MIPS:
- Fixed several threading issues
- Fix compilation with CLANG
* x86_64:
- Detect Intel Bay Trail and Apollo Lake
- Detect Intel Sky Lake and Kaby Lake
- Detect Intel Knights Landing
- Detect AMD A8, A10, A12 and Ryzen
- Support 64bit builds with Visual Studio
- Fix building with Intel and PGI compilers
- Fix building with MINGW and TDM-GCC
- Fix cmake builds for Haswell and related cpus
- Fix building for Sandybridge with CLANG 3.9
- Add support for the FLANG compiler
* IBM Z:
- New target z13 with BLAS3 optimizations
- Drop 0001-Fix-power8-asm.patch; fixed upstream.
- Minor rebase of c_xerbla_no-void-return.patch and
openblas-noexecstack.patch for updated version.
- Remove installed pkgconfig file as it is not adapted to the
library names we use.
-------------------------------------------------------------------
Thu May 18 09:33:23 UTC 2017 - meissner@suse.com

View File

@ -17,7 +17,7 @@
Name: openblas
Version: 0.2.19
Version: 0.2.20
Release: 0
Summary: An optimized BLAS library based on GotoBLAS2
License: BSD-3-Clause
@ -29,8 +29,6 @@ Source1: README.SUSE
Patch1: c_xerbla_no-void-return.patch
# PATCH-FIX-UPSTREAM openblas-noexecstack.patch
Patch2: openblas-noexecstack.patch
# PATCH-FIX-UPSTREAM 0001-Fix-power8-asm.patch ( https://groups.google.com/forum/#!topic/openblas-dev/YI1of4HODmw )
Patch3: 0001-Fix-power8-asm.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-fortran
BuildRequires: update-alternatives
@ -67,25 +65,14 @@ Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
Group: System/Libraries
Requires(post): update-alternatives
Requires(preun): update-alternatives
Obsoletes: lib%{name}0 < %{version}
Provides: lib%{name}0 = %{version}
Obsoletes: lib%{name}0
Obsoletes: lib%{name}o0
%description -n lib%{name}_openmp0
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
This package contains the library compiled with OpenMP support.
# libopenblaso0 can be deleted after openSUSE 13.2 EOL
%package -n lib%{name}o0
Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
Group: System/Libraries
Requires: lib%{name}_openmp0 = %{version}
%description -n lib%{name}o0
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
This package contains files for backward compatibility.
%package -n lib%{name}_openmp-devel
Summary: Development libraries for OpenBLAS, OpenMP version
Group: Development/Libraries/C and C++
@ -102,25 +89,14 @@ Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
Group: System/Libraries
Requires(post): update-alternatives
Requires(preun): update-alternatives
Obsoletes: lib%{name}0 < %{version}
Provides: lib%{name}0 = %{version}
Obsoletes: lib%{name}0
Obsoletes: lib%{name}p0
%description -n lib%{name}_pthreads0
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
This package contains the library compiled with threading support.
# libopenblasp0 can be deleted after openSUSE 13.2 EOL
%package -n lib%{name}p0
Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
Group: System/Libraries
Requires: lib%{name}_pthreads0 = %{version}
%description -n lib%{name}p0
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
This package contains files for backward compatibility.
%package -n lib%{name}_pthreads-devel
Summary: Development headers and libraries for OpenBLAS, pthreads version
Group: Development/Libraries/C and C++
@ -176,7 +152,6 @@ tar -zxf %{SOURCE0}
cd OpenBLAS-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
cd ..
# Prepare build for serial, pthreads and OpenMP versions
@ -229,6 +204,9 @@ install -D -p -m 644 pthreads/lib%{name}_pthreads.a %{buildroot}%{_libdir}/lib%{
# Fix source permissions (also applies to LAPACK)
find -name \*.f -exec chmod 644 {} +
# Remove pkgconfig file, it can't be configured for different library suffixes we use and, as such, is useless
rm -fr %{buildroot}%{_libdir}/pkgconfig/
# Dummy target for update-alternatives
install -d %{buildroot}/%{_sysconfdir}/alternatives
ln -s lib%{name}.so.0 %{buildroot}/%{_libdir}/lib%{name}.so.0
@ -247,12 +225,8 @@ ln -sf lib%{name}.so.0 lib%{name}.so
ln -sf lib%{name}_serial.so.0 lib%{name}_serial.so
# OpenMP libraries
ln -sf lib%{name}_openmp.so.0 lib%{name}_openmp.so
ln -sf lib%{name}_openmp.so.0 lib%{name}o.so.0
ln -sf lib%{name}o.so.0 lib%{name}o.so
# Threaded libraries
ln -sf lib%{name}_pthreads.so.0 lib%{name}_pthreads.so
ln -sf lib%{name}_pthreads.so.0 lib%{name}p.so.0
ln -sf lib%{name}p.so.0 lib%{name}p.so
# Fix cmake config file
sed -i 's|%{buildroot}||g' %{buildroot}%{_libdir}/cmake/%{name}/*.cmake
@ -292,13 +266,6 @@ if [ "$1" = 0 ] ; then
fi
%post -n lib%{name}_openmp0
# Migration script can be deleted after openSUSE 13.2 EOL
# Check config
config_blas_mode=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Status:' | sed -e 's/Status: //g')
config_blas_value=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Value:' | grep -o 'openblas.')
config_lapack_mode=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Status:' | sed -e 's/Status: //g')
config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Value:' | grep -o 'openblas.')
# Install
%{_sbindir}/update-alternatives --install \
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/lib%{name}_openmp.so.0 20
%{_sbindir}/update-alternatives --install \
@ -311,16 +278,6 @@ config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | g
%else
%{_libdir}/lib%{name}.so.0 lib%{name}.so.0 %{_libdir}/lib%{name}_openmp.so.0 50
%endif
# Reconfigure
if [ ${config_blas_mode} = "manual" ] && [ ${config_blas_value} = "openblaso" ]; then
%{_sbindir}/update-alternatives --set libblas.so.3 %{_libdir}/lib%{name}_openmp.so.0
fi
if [ ${config_lapack_mode} = "manual" ] && [ ${config_lapack_value} == "openblaso" ]; then
%{_sbindir}/update-alternatives --set liblapack.so.3 %{_libdir}/lib%{name}_openmp.so.0
fi
# Remove old variants
%{_sbindir}/update-alternatives --remove libblas.so.3 %{_libdir}/lib%{name}o.so.0
%{_sbindir}/update-alternatives --remove liblapack.so.3 %{_libdir}/lib%{name}o.so.0
/sbin/ldconfig
%preun -n lib%{name}_openmp0
@ -341,13 +298,6 @@ if [ "$1" = 0 ] ; then
fi
%post -n lib%{name}_pthreads0
# Migration script can be deleted after openSUSE 13.2 EOL
# Check config
config_blas_mode=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Status:' | sed -e 's/Status: //g')
config_blas_value=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Value:' | grep -o 'openblas.')
config_lapack_mode=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Status:' | sed -e 's/Status: //g')
config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Value:' | grep -o 'openblas.')
# Install
%{_sbindir}/update-alternatives --install \
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/lib%{name}_pthreads.so.0 20
%{_sbindir}/update-alternatives --install \
@ -360,16 +310,6 @@ config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | g
%else
%{_libdir}/lib%{name}.so.0 lib%{name}.so.0 %{_libdir}/lib%{name}_pthreads.so.0 20
%endif
# Reconfigure
if [ ${config_blas_mode} = "manual" ] && [ ${config_blas_value} = "openblasp" ]; then
%{_sbindir}/update-alternatives --set libblas.so.3 %{_libdir}/lib%{name}_pthreads.so.0
fi
if [ ${config_lapack_mode} = "manual" ] && [ ${config_lapack_value} == "openblasp" ]; then
%{_sbindir}/update-alternatives --set liblapack.so.3 %{_libdir}/lib%{name}_pthreads.so.0
fi
# Remove old variants
%{_sbindir}/update-alternatives --remove libblas.so.3 %{_libdir}/lib%{name}p.so.0
%{_sbindir}/update-alternatives --remove liblapack.so.3 %{_libdir}/lib%{name}p.so.0
/sbin/ldconfig
%preun -n lib%{name}_pthreads0
@ -417,14 +357,9 @@ fi
%ghost %{_sysconfdir}/alternatives/libcblas.so.3
%ghost %{_sysconfdir}/alternatives/liblapack.so.3
%files -n lib%{name}o0
%defattr(-,root,root,-)
%{_libdir}/lib%{name}o.so.0
%files -n lib%{name}_openmp-devel
%defattr(-,root,root,-)
%{_libdir}/lib%{name}_openmp.so
%{_libdir}/lib%{name}o.so
%files -n lib%{name}_pthreads0
%defattr(-,root,root,-)
@ -438,14 +373,9 @@ fi
%ghost %{_sysconfdir}/alternatives/libcblas.so.3
%ghost %{_sysconfdir}/alternatives/liblapack.so.3
%files -n lib%{name}p0
%defattr(-,root,root,-)
%{_libdir}/lib%{name}p.so.0
%files -n lib%{name}_pthreads-devel
%defattr(-,root,root,-)
%{_libdir}/lib%{name}_pthreads.so
%{_libdir}/lib%{name}p.so
%files devel
%defattr(-,root,root,-)