Skip to content

Commit c55c7bf

Browse files
committed
Add --oversubscribe to mpiexec command line if OpenMPI is used
1 parent d89957d commit c55c7bf

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

darshan-runtime/configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ AC_SUBST(HDF5_PATH, ["$with_hdf5"])
918918
AC_SUBST(PNETCDF_PATH, ["$with_pnetcdf"])
919919
AC_SUBST(DAOS_PATH, ["$with_daos"])
920920
AC_SUBST(LDMS_PATH, ["$LDMS_HOME"])
921+
AC_SUBST(HAVE_OPEN_MPI, ["$is_ompi"])
921922

922923
AM_CONDITIONAL(ENABLE_MMAP_LOGS, [test "x$enable_mmap_logs" = xyes])
923924
AM_CONDITIONAL(ENABLE_LDPRELOAD, [test "x$enable_ld_preload" = xyes])

darshan-runtime/test/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ AM_TESTS_ENVIRONMENT += export TST_DARSHAN_LOG_PATH="$(__DARSHAN_LOG_PATH)";
1717
AM_TESTS_ENVIRONMENT += export DARSHAN_INSTALL_DIR="$(prefix)";
1818
AM_TESTS_ENVIRONMENT += export USERNAME_ENV="$(USERNAME_ENV)";
1919
AM_TESTS_ENVIRONMENT += export HAVE_MPI_LARGE_COUNT="$(HAVE_MPI_LARGE_COUNT)";
20+
AM_TESTS_ENVIRONMENT += export HAVE_OPEN_MPI="$(HAVE_OPEN_MPI)";
2021
AM_TESTS_ENVIRONMENT += export check_PROGRAMS="$(check_PROGRAMS)";
2122

2223
TESTS = tst_runs.sh

darshan-runtime/test/tst_runs.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ echo "DARSHAN_CONFIG=$DARSHAN_CONFIG"
3434

3535
$DARSHAN_CONFIG --all
3636

37-
# run NP number of MPI processes
38-
# Note when using OpenMPI, setting NP > 2 will fail.
37+
# run NP number of MPI processes, default 2
3938
if test "x$NP" = x ; then
4039
NP=2
4140
fi
4241

42+
if test "x$HAVE_OPEN_MPI" = x1 ; then
43+
TESTMPIRUN="$TESTMPIRUN --oversubscribe"
44+
fi
45+
4346
TEST_FILE=./testfile.dat
4447

4548
# tst_mpi_io.c takes the following command-line options.

0 commit comments

Comments
 (0)