Remove a compiler warning from ompi_info by using 2 macros to record
whether MPI API parameters should be checked never, always, or determined at run-time. This commit was SVN r19805.
Этот коммит содержится в:
родитель
71dcf61f9b
Коммит
bc710baa75
@ -345,20 +345,25 @@ mpi_param_check=ompi_mpi_param_check
|
||||
if test "$with_mpi_param_check" = "no" -o \
|
||||
"$with_mpi_param_check" = "never"; then
|
||||
mpi_param_check=0
|
||||
mpi_param_check_level=0
|
||||
AC_MSG_RESULT([never])
|
||||
elif test "$with_mpi_param_check" = "yes" -o \
|
||||
"$with_mpi_param_check" = "always"; then
|
||||
mpi_param_check=1
|
||||
mpi_param_check_level=1
|
||||
AC_MSG_RESULT([always])
|
||||
elif test "$with_mpi_param_check" = "runtime" -o \
|
||||
-z "$with_mpi_params_check"; then
|
||||
AC_MSG_RESULT([runtime])
|
||||
mpi_param_check_level=2
|
||||
else
|
||||
AC_MSG_RESULT([unknown])
|
||||
AC_MSG_WARN([*** Unrecognized --with-mpi-param-check value])
|
||||
AC_MSG_WARN([*** See "configure --help" output])
|
||||
AC_MSG_WARN([*** Defaulting to "runtime"])
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(MPI_PARAM_CHECK_LEVEL, $mpi_param_check_level,
|
||||
[Whether we want to check MPI parameters never (0), always (1), or decide at run-time (2) -- this macro mainly for displaying the right value in ompi_info])
|
||||
AC_DEFINE_UNQUOTED(MPI_PARAM_CHECK, $mpi_param_check,
|
||||
[Whether we want to check MPI parameters always, never, or decide at run-time])
|
||||
|
||||
|
@ -501,9 +501,8 @@ void ompi_info::do_config(bool want_all)
|
||||
const string f90profiling((OMPI_ENABLE_MPI_PROFILING && OMPI_WANT_F90_BINDINGS) ?
|
||||
"yes" : "no");
|
||||
const string cxxexceptions(OMPI_HAVE_CXX_EXCEPTION_SUPPORT ? "yes" : "no");
|
||||
int ompi_mpi_param_check = 3;
|
||||
const string paramcheck(0 == MPI_PARAM_CHECK ? "never" :
|
||||
1 == MPI_PARAM_CHECK ? "always" : "runtime");
|
||||
const string paramcheck(0 == MPI_PARAM_CHECK_LEVEL ? "never" :
|
||||
1 == MPI_PARAM_CHECK_LEVEL ? "always" : "runtime");
|
||||
string threads;
|
||||
const string want_libltdl(OMPI_WANT_LIBLTDL ? "yes" : "no");
|
||||
const string mpirun_prefix_by_default(ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT ?
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user