Add support for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
91e55b95c4
commit
75de0b0dba
25
petsc.spec
25
petsc.spec
|
@ -180,8 +180,10 @@
|
|||
--with-sundials-include=%{_includedir} \\\
|
||||
--with-sundials-lib="-lsundials_nvecserial -lsundials_cvode" \\\
|
||||
%endif \
|
||||
--with-pthread=1 \\\
|
||||
--with-valgrind=1
|
||||
%ifarch %{valgrind_arches} \
|
||||
--with-valgrind=1 \\\
|
||||
%endif \
|
||||
--with-pthread=1
|
||||
|
||||
%global petsc_mpibuild_options \\\
|
||||
%if %{with debug} \
|
||||
|
@ -279,9 +281,11 @@
|
|||
--with-fftw-include= \\\
|
||||
--with-fftw-lib="-L$MPI_LIB -lfftw3_mpi -lfftw3" \\\
|
||||
%endif \
|
||||
--with-pthread=1 \\\
|
||||
--with-valgrind=1
|
||||
|
||||
%ifarch %{valgrind_arches} \
|
||||
--with-valgrind=1 \\\
|
||||
%endif \
|
||||
--with-pthread=1
|
||||
|
||||
%global mpichversion %(rpm -qi mpich | awk -F': ' '/Version/ {print $2}')
|
||||
%global openmpiversion %(rpm -qi openmpi | awk -F': ' '/Version/ {print $2}')
|
||||
%global majorver 3
|
||||
|
@ -290,7 +294,7 @@
|
|||
Name: petsc
|
||||
Summary: Portable Extensible Toolkit for Scientific Computation
|
||||
Version: %{releasever}.4
|
||||
Release: 15%{?dist}
|
||||
Release: 15.0.riscv64%{?dist}
|
||||
License: BSD
|
||||
URL: https://petsc.org/
|
||||
Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz
|
||||
|
@ -350,7 +354,9 @@ BuildRequires: tcsh
|
|||
BuildRequires: tetgen-devel
|
||||
%endif
|
||||
BuildRequires: xorg-x11-server-Xvfb
|
||||
%ifarch %{valgrind_arches}
|
||||
BuildRequires: valgrind-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
PETSc, pronounced PET-see (the S is silent), is a suite of data structures
|
||||
|
@ -618,6 +624,10 @@ pushd %{name}-%{version}
|
|||
popd
|
||||
|
||||
%build
|
||||
%ifarch riscv64
|
||||
# Likely running out of memory during build
|
||||
%global _lto_cflags %{nil}
|
||||
%endif
|
||||
pushd %{name}-%{version}
|
||||
%configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \
|
||||
%{petsc_build_options} \
|
||||
|
@ -1168,6 +1178,9 @@ xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C build64 V=1 MPIEXEC='%{_bu
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Mar 24 2023 David Abdurachmanov <davidlt@rivosinc.com> - 3.17.4-15.0.riscv64
|
||||
- Add support for riscv64
|
||||
|
||||
* Fri Mar 03 2023 Orion Poplawski <orion@nwra.com> - 3.17.4-15
|
||||
- Rebuild for mpich 4.0.3
|
||||
|
||||
|
|
Loading…
Reference in New Issue