Compare commits
11 Commits
master
...
master-ris
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | 1f55ab7064 | |
David Abdurachmanov | a4f15c2fb7 | |
David Abdurachmanov | 51f4fdc3fc | |
David Abdurachmanov | 5f85e9d9dc | |
David Abdurachmanov | 4d546acf92 | |
David Abdurachmanov | d6da2377d6 | |
David Abdurachmanov | 79be0c377b | |
David Abdurachmanov | 0c4b2cc81f | |
David Abdurachmanov | 7a6b8e0347 | |
David Abdurachmanov | 2757a8b851 | |
David Abdurachmanov | 7af5bb9a21 |
|
@ -0,0 +1,13 @@
|
|||
diff --git a/OpenBLAS-0.3.0/Makefile b/OpenBLAS-0.3.0/Makefile
|
||||
index 679bc8d..a8e26b3 100644
|
||||
--- a/OpenBLAS-0.3.0/Makefile
|
||||
+++ b/OpenBLAS-0.3.0/Makefile
|
||||
@@ -28,7 +28,7 @@ SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench
|
||||
.PHONY : all libs netlib $(RELA) test ctest shared install
|
||||
.NOTPARALLEL : all libs $(RELA) prof lapack-test install blas-test
|
||||
|
||||
-all :: libs netlib $(RELA) tests shared
|
||||
+all :: libs netlib $(RELA) shared
|
||||
@echo
|
||||
@echo " OpenBLAS build complete. ($(LIB_COMPONENTS))"
|
||||
@echo
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
Name: openblas
|
||||
Version: 0.3.9
|
||||
Release: 2%{?dist}
|
||||
Release: 2.0.riscv64%{?dist}
|
||||
Summary: An optimized BLAS library based on GotoBLAS2
|
||||
License: BSD
|
||||
URL: https://github.com/xianyi/OpenBLAS/
|
||||
|
@ -32,6 +32,11 @@ Patch3: openblas-0.3.7-tests.patch
|
|||
# Fix C++ compatibility (BZ #1820131)
|
||||
Patch4: https://github.com/xianyi/OpenBLAS/commit/ee2e758278b5d82b7242f505ea694f082ef65879.patch
|
||||
|
||||
# RISC-V 64-bit support (generated from risc-v upstream branch)
|
||||
Patch10: riscv64.patch
|
||||
# Disable tests on RISC-V
|
||||
Patch11: openblas-0.3.0-disable-tests.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc-gfortran
|
||||
|
@ -46,8 +51,12 @@ BuildRequires: multilib-rpm-config
|
|||
%global execstack 1
|
||||
%endif
|
||||
%else
|
||||
%ifarch riscv64
|
||||
%global execstack 0
|
||||
%else
|
||||
%global execstack 1
|
||||
%endif
|
||||
%endif
|
||||
%if %{execstack}
|
||||
BuildRequires: /usr/bin/execstack
|
||||
%endif
|
||||
|
@ -246,6 +255,11 @@ cd OpenBLAS-%{version}
|
|||
%patch3 -p1 -b .tests
|
||||
%patch4 -p1 -b .cplusplus
|
||||
|
||||
%ifarch riscv64
|
||||
%patch10 -p1 -b .riscv64
|
||||
%patch11 -p2 -b .disable-tests
|
||||
%endif
|
||||
|
||||
# Fix source permissions
|
||||
find -name \*.f -exec chmod 644 {} \;
|
||||
|
||||
|
@ -386,6 +400,9 @@ TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
|||
%ifarch s390x
|
||||
TARGET="TARGET=ZARCH_GENERIC DYNAMIC_ARCH=1 DYNAMIC_OLDER=1"
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=0"
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 5
|
||||
# Gfortran too old to recognize -frecursive
|
||||
|
@ -450,6 +467,9 @@ suffix=""
|
|||
%ifarch armv7hl
|
||||
suffix="_armv7"
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
suffix="_riscv64_generic"
|
||||
%endif
|
||||
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
||||
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
||||
if [[ "$suffix" != "" ]]; then
|
||||
|
@ -668,6 +688,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon May 04 2020 David Abdurachmanov <david.abdurachmanvo@sifive.com> - 0.3.9-2.0.riscv64
|
||||
- Enable RISC-V 64-bit (riscv64) support
|
||||
|
||||
* Thu Apr 02 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.9-2
|
||||
- Patch for BZ #1820131.
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue