Enable PETSC_INDEX_SIZE_64 in 64-bit architectures

This commit is contained in:
Antonio Trande 2023-02-23 21:23:09 +01:00
parent 93af49f852
commit 33d889aafd

@ -5,7 +5,6 @@
# Disable LTO
# undefined-non-weak-symbol libpetsc.so.3.17.4_glibcxx_assert_fail
%undefine _ld_as_needed
%global _lto_cflags %{nil}
# Testing libpetsc ?
@ -37,8 +36,10 @@
%if %{?__isa_bits:%{__isa_bits}}%{!?__isa_bits:32} == 64
%bcond_without arch64
%bcond_without index64
%else
%bcond_with arch64
%bcond_with index64
%endif
%bcond_without blas
@ -291,7 +292,7 @@
Name: petsc
Summary: Portable Extensible Toolkit for Scientific Computation
Version: %{releasever}.4
Release: 11%{?dist}
Release: 12%{?dist}
License: BSD
URL: https://petsc.org/
Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz
@ -622,7 +623,9 @@ popd
pushd %{name}-%{version}
%configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \
%{petsc_build_options} \
--with-64-bit-indices=0 \
%if %{with index64}
--with-64-bit-indices=1 \
%endif
%if %{with blas}
%if 0%{?fedora} || 0%{?rhel} >= 9
--with-blaslapack=1 --with-blaslapack-lib=-l%{blaslib}%{blasvar} --with-blaslapack-include=%{_includedir}/%{blaslib} \
@ -697,7 +700,9 @@ export FC=mpifort
%if %{with metis}
--with-metis=1 \
%endif
--with-64-bit-indices=0 \
%if %{with index64}
--with-64-bit-indices=1 \
%endif
%if %{with blas}
%if 0%{?fedora} || 0%{?rhel} >= 9
--with-blaslapack=1 --with-blaslapack-lib=-l%{blaslib}%{blasvar} --with-blaslapack-include=%{_includedir}/%{blaslib} \
@ -738,7 +743,9 @@ export FC=mpifort
%if %{with metis}
--with-metis=1 \
%endif
--with-64-bit-indices=0 \
%if %{with index64}
--with-64-bit-indices=1 \
%endif
%if %{with blas}
%if 0%{?fedora} || 0%{?rhel} >= 9
--with-blaslapack=1 --with-blaslapack-lib=-l%{blaslib}%{blasvar} --with-blaslapack-include=%{_includedir}/%{blaslib} \
@ -1169,6 +1176,9 @@ xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C build64 V=1 MPIEXEC='%{_bu
%endif
%changelog
* Thu Feb 23 2023 Antonio Trande <sagitter@fedoraproject.org> - 3.17.4-12
- Enable PETSC_INDEX_SIZE_64 in 64-bit architectures
* Thu Feb 23 2023 Antonio Trande <sagitter@fedoraproject.org> - 3.17.4-11
- Disable LTO flags