Skip to content
Snippets Groups Projects
Commit 5965bc30 authored by Mikael Djurfeldt's avatar Mikael Djurfeldt
Browse files

Check for MPI_Init_thread instead of MPI::Init_thread

parent 521c3ed7
No related branches found
No related tags found
No related merge requests found
......@@ -219,22 +219,7 @@ dnl Must use $CXX, not $MPI_CXX, here
CXX="$CXX $MPI_CXXFLAGS"
LIBS="$LIBS $MPI_LDFLAGS"
AC_CHECK_FUNCS([rts_get_personality ompi_comm_free MPI_Comm_create_errhandler])
AC_MSG_CHECKING([for MPI::Init_thread method])
ac_have_cxx_mpi_init_thread=no
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([
#include <mpi.h>
int main (int argc, char **argv)
{
int res = MPI::Init_thread (argc, argv, 0);
}
])],
AC_DEFINE(HAVE_CXX_MPI_INIT_THREAD, 1, [Define to 1 if you have the MPI::Init_thread method])
ac_have_cxx_mpi_init_thread=yes
)
AC_MSG_RESULT($ac_have_cxx_mpi_init_thread)
AC_CHECK_FUNCS([rts_get_personality ompi_comm_free MPI_Comm_create_errhandler MPI_Init_thread])
AC_ARG_ENABLE(mpi,
[ --disable-mpi disable mpi support],
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment