Compare commits
7 Commits
master
...
f29-riscv6
Author | SHA1 | Date | |
---|---|---|---|
0cd9fe5678 | |||
d6da2377d6 | |||
79be0c377b | |||
0c4b2cc81f | |||
7a6b8e0347 | |||
2757a8b851 | |||
7af5bb9a21 |
13
openblas-0.3.0-disable-tests.patch
Normal file
13
openblas-0.3.0-disable-tests.patch
Normal file
@ -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
|
4593
openblas-0.3.0-riscv64.patch
Normal file
4593
openblas-0.3.0-riscv64.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Name: openblas
|
Name: openblas
|
||||||
Version: 0.3.3
|
Version: 0.3.3
|
||||||
Release: 1%{?dist}
|
Release: 1.0.riscv64%{?dist}
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2
|
Summary: An optimized BLAS library based on GotoBLAS2
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -29,6 +29,12 @@ Patch1: openblas-0.2.5-libname.patch
|
|||||||
Patch2: openblas-0.2.15-constructor.patch
|
Patch2: openblas-0.2.15-constructor.patch
|
||||||
# Supply the proper flags to the test makefile
|
# Supply the proper flags to the test makefile
|
||||||
Patch3: openblas-0.3.2-tests.patch
|
Patch3: openblas-0.3.2-tests.patch
|
||||||
|
# Add support for RISC-V (riscv64)
|
||||||
|
# Taken from https://github.com/xianyi/OpenBLAS/pull/1526
|
||||||
|
# No additional modifications done
|
||||||
|
Patch5: openblas-0.3.0-riscv64.patch
|
||||||
|
# Disable running of tests
|
||||||
|
Patch6: openblas-0.3.0-disable-tests.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-gfortran
|
BuildRequires: gcc-gfortran
|
||||||
@ -42,8 +48,12 @@ BuildRequires: perl-devel
|
|||||||
%global execstack 1
|
%global execstack 1
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
|
%ifarch riscv64
|
||||||
|
%global execstack 0
|
||||||
|
%else
|
||||||
%global execstack 1
|
%global execstack 1
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if %{execstack}
|
%if %{execstack}
|
||||||
BuildRequires: /usr/bin/execstack
|
BuildRequires: /usr/bin/execstack
|
||||||
%endif
|
%endif
|
||||||
@ -250,6 +260,10 @@ cd OpenBLAS-%{version}
|
|||||||
%patch2 -p1 -b .constructor
|
%patch2 -p1 -b .constructor
|
||||||
%endif
|
%endif
|
||||||
%patch3 -p1 -b .tests
|
%patch3 -p1 -b .tests
|
||||||
|
%patch5 -p2 -b .riscv64
|
||||||
|
%ifarch riscv64
|
||||||
|
%patch6 -p2 -b .disable-tests
|
||||||
|
%endif
|
||||||
|
|
||||||
# Fix source permissions
|
# Fix source permissions
|
||||||
find -name \*.f -exec chmod 644 {} \;
|
find -name \*.f -exec chmod 644 {} \;
|
||||||
@ -387,6 +401,9 @@ TARGET="TARGET=POWER8 DYNAMIC_ARCH=0"
|
|||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
TARGET="TARGET=ARMV8 DYNAMIC_ARCH=0"
|
TARGET="TARGET=ARMV8 DYNAMIC_ARCH=0"
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch riscv64
|
||||||
|
TARGET="TARGET=RISCV64 DYNAMIC_ARCH=0"
|
||||||
|
%endif
|
||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
TARGET="TARGET=ZARCH_GENERIC DYNAMIC_ARCH=0"
|
TARGET="TARGET=ZARCH_GENERIC DYNAMIC_ARCH=0"
|
||||||
%endif
|
%endif
|
||||||
@ -464,6 +481,9 @@ suffix="_armv8"
|
|||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
suffix="_zarch_generic"
|
suffix="_zarch_generic"
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch riscv64
|
||||||
|
suffix="_riscv64"
|
||||||
|
%endif
|
||||||
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
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
|
if [[ "$suffix" != "" ]]; then
|
||||||
@ -689,6 +709,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 22 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 0.3.3-1.0.riscv64
|
||||||
|
- Add support for RISC-V (riscv64)
|
||||||
|
|
||||||
* Sun Sep 09 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.3-1
|
* Sun Sep 09 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.3-1
|
||||||
- Update to 0.3.3.
|
- Update to 0.3.3.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user