Add support for RISC-V (riscv64)
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
b344534ab3
commit
7af5bb9a21
@ -15,7 +15,7 @@
|
||||
|
||||
Name: openblas
|
||||
Version: 0.3.0
|
||||
Release: 1%{?dist}
|
||||
Release: 1.0.riscv64%{?dist}
|
||||
Summary: An optimized BLAS library based on GotoBLAS2
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
@ -31,6 +31,10 @@ Patch2: openblas-0.2.15-constructor.patch
|
||||
Patch3: openblas-0.2.19-tests.patch
|
||||
# Upstream pull 1572, fixes fail on ppc64le
|
||||
Patch4: 1572.patch
|
||||
# Add support for RISC-V (riscv64)
|
||||
# Taken from https://github.com/xianyi/OpenBLAS/pull/1526
|
||||
# No additional modifications done
|
||||
Patch5: openblass-0.3.0-riscv64.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-gfortran
|
||||
@ -231,6 +235,7 @@ cd OpenBLAS-%{version}
|
||||
%endif
|
||||
%patch3 -p1 -b .tests
|
||||
%patch4 -p1 -b .ppc64le
|
||||
%patch5 -p2 -b .riscv64
|
||||
|
||||
# Fix source permissions
|
||||
find -name \*.f -exec chmod 644 {} \;
|
||||
@ -368,6 +373,9 @@ TARGET="TARGET=POWER8 DYNAMIC_ARCH=0"
|
||||
%ifarch aarch64
|
||||
TARGET="TARGET=ARMV8 DYNAMIC_ARCH=0"
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
TARGET="DYNAMIC_ARCH=0"
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 5
|
||||
# Gfortran too old to recognize -frecursive
|
||||
@ -441,6 +449,9 @@ suffix="_armv8"
|
||||
%ifarch s390x
|
||||
suffix="_zarch_generic"
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
suffix="_riscv64"
|
||||
%endif
|
||||
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
||||
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
||||
if [[ "$suffix" != "" ]]; then
|
||||
@ -663,6 +674,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun Jun 03 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 0.3.0-1.0.riscv64
|
||||
- Add support for RISC-V (riscv64)
|
||||
|
||||
* Thu May 24 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.0-1
|
||||
- Update to 0.3.0.
|
||||
|
||||
|
4593
openblass-0.3.0-riscv64.patch
Normal file
4593
openblass-0.3.0-riscv64.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user