Skip to content

Commit

Permalink
test: check --disable-romio option in mpichversion
Browse files Browse the repository at this point in the history
Now that MPI-IO is always available in the interface, we need check
mpichversion to see whether romio is disabled during build.

Only define HAVE_MPI_IO if romio is not disabled.
  • Loading branch information
hzhou committed Feb 3, 2025
1 parent 4add88c commit 3f32763
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/mpi/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,13 @@ if test "$MPI_IS_MPICH" = "yes" ; then
enable_threadcomm=no
fi

# disable-romio
if test "$enable_romio" != "no" ; then
if grep 'disable-romio\|enable-romio=no' conftest.output > /dev/null ; then
enable_romio=no
fi
fi

# enable_checkerrors
if test "$enable_checkerrors" != "no" ; then
if grep 'disable-error-checking\|enable-error-checking=no' conftest.output > /dev/null ; then
Expand Down Expand Up @@ -1565,11 +1572,6 @@ if test "$enable_cxx" = yes ; then
AC_MSG_WARN([The compiler $CXX does not support C++ namespaces. This may cause problems for the tests])
fi
AC_LANG_POP([C++])

dnl for util/mtest_cxx.cxx
if test "$mpi_io_works" = "yes" ; then
AC_DEFINE(HAVE_MPI_IO,1,[Define if MPI-IO (really ROMIO) is included])
fi
fi

AC_LANG_C
Expand All @@ -1591,6 +1593,9 @@ if test "$enable_romio" != no -a "$mpi_io_works" = yes ; then
if test "$pac_cv_have_mpio_request" = no ; then
AC_DEFINE(MPIO_USES_MPI_REQUEST,,[Define if MPI IO uses MPI_Request])
fi

dnl for util/mtest_cxx.cxx, comm/cmsplit_type.c
AC_DEFINE(HAVE_MPI_IO,1,[Define if MPI-IO (really ROMIO) is included])
fi
AC_SUBST(iodir)

Expand Down

0 comments on commit 3f32763

Please sign in to comment.