Commit 554cc062 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Align handling of MPI runs with YAXT.

* If an MPI launcher is available, we want to run the tests, even if
  the result is ignored in setups with --without-regard-for-quality,
  because the orthogonal MPI_LAUNCH=true setting is sufficient to
  suppress MPI run-time tests if desired.
parent 51f3a6c5
......@@ -440,23 +440,27 @@ AC_ARG_WITH([regard-for-quality],
[AS_IF([test x"$withval" != no],
AS_IF([test $enable_MPI = yes],
[AS_IF([test $with_regard_for_quality = yes],
[enable_MPI=no ; enable_mpi_type_dup_rma=no
AC_MSG_WARN([unable to find a working MPI launcher required for checks for known MPI defect (see --without-regard-for-quality), MPI support is disabled])])])])
AS_VAR_IF([with_regard_for_quality], [yes],
[AC_MSG_FAILURE([unable to find a working MPI launch program, which is
required for checks for known MPI defects (see --without-regard-for-quality)])],
[optional command prefix for running test programs not using MPI
This will most often be empty, but can be used to e.g. forward commands to
another cluster node, adjust CPU frequency governor, or bind the task.])
AS_IF([test $enable_MPI = yes && test $with_regard_for_quality = yes],
AS_IF([test $enable_MPI = yes],
[AC_MSG_WARN([known OpenMPI pre-1.7.x problem detected that might affect distributed array!])],
[AC_MSG_FAILURE([test for known defect $acx_subtestname failed, dnl
re-configure with option --without-regard-for-quality in case you must use dnl
the given MPI implementation])])])])
[AC_MSG_FAILURE([test for known defect $acx_subtestname failed,
re-configure with --without-regard-for-quality in case you must use the
given MPI implementation, but some tests might fail])],
[AC_MSG_NOTICE([ignoring failed test for known defect $acx_subtestname,
because configure option --without-regard-for-quality is active])])])])])
AS_IF([test $enable_MPI = no],
[AC_DEFINE([USE_MPI],[1],[use MPI parallel process environment])
......@@ -482,6 +486,7 @@ echo '@%:@define HAVE_'"$mpi_int2test" >>include/f77/],
[ use iso_c_binding],[@%:@include <mpi.h>],
Supports Markdown
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