Init support for ppc64le
Signed-off-by: hefq343 <fengqing.he@shingroup.cn>
This commit is contained in:
parent
20e7230ca7
commit
15fdb33725
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: openblas
|
Name: openblas
|
||||||
Version: 0.3.18
|
Version: 0.3.18
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version
|
Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/xianyi/OpenBLAS/
|
URL: https://github.com/xianyi/OpenBLAS/
|
||||||
@ -48,7 +48,7 @@ Obsoletes: openblas-serial64_ < %{version}-%{release} openblas-openmp64_ <
|
|||||||
Obsoletes: openblas-threads64_ < %{version}-%{release} openblas-Rblas < %{version}-%{release}
|
Obsoletes: openblas-threads64_ < %{version}-%{release} openblas-Rblas < %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
ExclusiveArch: x86_64 aarch64 riscv64
|
ExclusiveArch: x86_64 aarch64 riscv64 ppc64le
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD \
|
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD \
|
||||||
@ -185,6 +185,9 @@ TARGET="TARGET=ARMV8 DYNAMIC_ARCH=0"
|
|||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=0"
|
TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=0"
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch ppc64le
|
||||||
|
TARGET="TARGET=POWER8 DYNAMIC_ARCH=0"
|
||||||
|
%endif
|
||||||
|
|
||||||
COMMON="%{optflags} -fPIC"
|
COMMON="%{optflags} -fPIC"
|
||||||
FCOMMON="%{optflags} -fPIC -frecursive"
|
FCOMMON="%{optflags} -fPIC -frecursive"
|
||||||
@ -291,6 +294,9 @@ suffix="_armv8"
|
|||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
suffix="_riscv64_generic"
|
suffix="_riscv64_generic"
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch ppc64le
|
||||||
|
suffix="_power8"
|
||||||
|
%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
|
||||||
@ -434,6 +440,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 20 2024 hefq343 <fengqing.he@shingroup.cn>- 0.3.18-6
|
||||||
|
- add support for ppc64le
|
||||||
|
|
||||||
* Fri Jun 30 2023 xiaoqianlv <xiaoqian@nj.iscas.ac.cn>- 0.3.18-5
|
* Fri Jun 30 2023 xiaoqianlv <xiaoqian@nj.iscas.ac.cn>- 0.3.18-5
|
||||||
- add support for riscv
|
- add support for riscv
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user