Skip to content

Commit 30ade76

Browse files
committed
TESTMPIRUN add option --oversubscribe when using OpenMPI
1 parent c86260b commit 30ade76

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/mac_openmpi.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ jobs:
118118
--with-pthread \
119119
--disable-fortran \
120120
--with-mpi=${GITHUB_WORKSPACE}/OPENMPI \
121-
TESTMPIRUN="${GITHUB_WORKSPACE}/OPENMPI/bin/mpiexec --oversubscribe -n NP" \
122121
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
123122
make -j 8 tests
124123
- name: Print config.log

.github/workflows/ubuntu_openmpi.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ jobs:
124124
--enable-thread-safe \
125125
--with-pthread \
126126
--with-mpi=${GITHUB_WORKSPACE}/OPENMPI \
127-
TESTMPIRUN="${GITHUB_WORKSPACE}/OPENMPI/bin/mpiexec --oversubscribe -n NP" \
128127
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
129128
make -j 8 tests
130129
- name: Print config.log

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,6 +2538,9 @@ if test "x${TESTMPIRUN}" = x ; then
25382538
dnl set default to "mpiexec -n NP"
25392539
UD_MPI_PATH_PROGS([TESTMPIRUN], [mpiexec mpirun srun])
25402540
if test "x${TESTMPIRUN}" != x ; then
2541+
if test "x${ax_cv_mpi_compiler_vendor}" = xOpenMPI ; then
2542+
TESTMPIRUN="$TESTMPIRUN --oversubscribe"
2543+
fi
25412544
TESTMPIRUN="$TESTMPIRUN -n NP"
25422545
fi
25432546
fi

0 commit comments

Comments
 (0)