Skip to content

Commit 9ed1f9f

Browse files
committed
Check if using OpenMPI, if yes, add --oversubscribe to TESTMPIRUN command line
1 parent 1c6597b commit 9ed1f9f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

darshan-runtime/configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,15 @@ if test "x$enable_darshan_runtime" = xyes ; then
815815
AC_PATH_PROGS(mpicc_path, ${CC})
816816
ac_mpi_path=`AS_DIRNAME(["$mpicc_path"])`
817817
fi
818+
818819
AC_PATH_PROGS(TESTMPIRUN, mpiexec mpirun, [], [$ac_mpi_path])
820+
821+
# check if CC is OpenMPI
822+
AC_CHECK_DECL([OMPI_MAJOR_VERSION], [], [], [#include <mpi.h>])
823+
if test "x$ac_cv_have_decl_OMPI_MAJOR_VERSION" = xyes ; then
824+
TESTMPIRUN="$TESTMPIRUN --oversubscribe"
825+
fi
826+
819827
AC_SUBST(TESTMPIRUN)
820828
else
821829
have_mpi_io_large_count_apis=no

0 commit comments

Comments
 (0)