From a38e99cafd255845594f7f6aa0eae2ff8c5dcba4 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Sun, 27 Nov 2022 12:25:17 -0800 Subject: [PATCH] Allow openmpi tests on systems with less than 4 processors The MPI tests use up to four processes. By default, OpenMPI won't allow more processes than processors and the tests will fail on a two processor VM. Using the --oversubscribe option will allow the tests to run. mpich doesn't have this limit by default and doesn't need or support this option. Signed-off-by: Trent Piepho --- fftw.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fftw.spec b/fftw.spec index 0e8e988..7bb933d 100644 --- a/fftw.spec +++ b/fftw.spec @@ -339,6 +339,9 @@ for mpi in %{mpi_list} ; do # Force linking the _mpi.so libraries with the mpi libs. This works because # we get rid of all of the non-mpi components of these builds export CC=mpicc + if [ $mpi = "openmpi" ]; then + export MPIRUN="mpirun --oversubscribe" + fi %{configure} ${BASEFLAGS} ${prec_flags[iprec]} \ --enable-mpi \ --libdir=%{_libdir}/$mpi/lib \ @@ -525,6 +528,7 @@ done - Enable AVX2 on x86-86 - Enable NEON on aarch64 - Clean up precision list +- Fix for OpenMPI build with < 4 processors * Thu Mar 02 2023 Orion Poplawski - 3.3.10-5 - Use make macros