2004-01-07 10:42:12 +03:00
dnl -*- shell-script -*-
dnl
2007-03-17 02:11:45 +03:00
dnl Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
2005-11-05 22:57:48 +03:00
dnl University Research and Technology
dnl Corporation. All rights reserved.
dnl Copyright (c) 2004-2005 The University of Tennessee and The University
dnl of Tennessee Research Foundation. All rights
dnl reserved.
2004-11-28 23:09:25 +03:00
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved.
2005-03-24 15:43:37 +03:00
dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved.
2008-01-28 06:04:53 +03:00
dnl Copyright (c) 2006-2008 Cisco Systems, Inc. All rights reserved.
2007-11-03 05:40:22 +03:00
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
2004-11-22 04:38:40 +03:00
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
dnl
2004-01-07 10:42:12 +03:00
dnl $HEADER$
dnl
2004-06-07 19:33:53 +04:00
AC_DEFUN([OMPI_CONFIGURE_OPTIONS],[
ompi_show_subtitle "Configuration options"
2004-01-07 10:42:12 +03:00
2008-01-28 06:04:53 +03:00
#
# Is this a developer copy?
#
if test -d .svn -o -d .hg; then
OMPI_DEVEL=1
else
OMPI_DEVEL=0
fi
2005-04-18 20:38:27 +04:00
#
# Code coverage options
#
2007-01-19 17:28:52 +03:00
AC_MSG_CHECKING([whether to run code coverage])
2005-04-18 20:38:27 +04:00
AC_ARG_ENABLE(coverage,
AC_HELP_STRING([--enable-coverage],
[enable code coverage files to be generated]))
if test "$enable_coverage" = "yes"; then
if test "$enable_shared" = "yes"; then
AC_MSG_WARN([Code coverage can run only with static libraries. Please
run configure with --enable-static --disable-shared if
you want code coverage. Also ensure that you execute
make clean too ensure removal of all leftover shared
mpi libraries])
AC_MSG_ERROR([Cannot continue processing])
fi
AC_MSG_RESULT([yes])
WANT_COVERAGE=1
else
2005-08-21 00:43:59 +04:00
AC_MSG_RESULT([no])
2005-04-18 20:38:27 +04:00
WANT_COVERAGE=0
fi
2007-01-19 17:28:52 +03:00
#
# Branch Probabilities options
#
AC_MSG_CHECKING([whether to compile with branch probabilities])
AC_ARG_ENABLE(branch-probabilities,
AC_HELP_STRING([--enable-branch-probabilities],
[enable profile arcs and branch probability optimization]))
if test "$enable_branch_probabilities" = "yes"; then
AC_MSG_RESULT([yes])
WANT_BRANCH_PROBABILITIES=1
else
AC_MSG_RESULT([no])
WANT_BRANCH_PROBABILITIES=0
fi
2004-01-07 10:42:12 +03:00
#
2004-02-10 03:06:28 +03:00
# Memory debugging
2004-01-07 10:42:12 +03:00
#
2004-02-10 03:06:28 +03:00
AC_MSG_CHECKING([whether to debug memory usage])
AC_ARG_ENABLE(mem-debug,
AC_HELP_STRING([--enable-mem-debug],
[enable memory debugging (debugging only) (default: disabled)]))
if test "$enable_mem_debug" = "yes"; then
2004-01-07 10:42:12 +03:00
AC_MSG_RESULT([yes])
2004-02-10 03:06:28 +03:00
WANT_MEM_DEBUG=1
2004-01-07 10:42:12 +03:00
else
AC_MSG_RESULT([no])
2004-02-10 03:06:28 +03:00
WANT_MEM_DEBUG=0
2004-01-07 10:42:12 +03:00
fi
2004-01-13 04:13:28 +03:00
#################### Early development override ####################
2008-01-28 06:04:53 +03:00
if test "$WANT_MEM_DEBUG" = "0" -a -z "$enable_mem_debug" -a "$OMPI_DEVEL" = 1; then
2004-03-15 20:33:44 +03:00
WANT_MEM_DEBUG=1
echo "--> developer override: enable mem profiling by default"
2004-01-13 04:13:28 +03:00
fi
#################### Early development override ####################
2004-06-07 19:33:53 +04:00
AC_DEFINE_UNQUOTED(OMPI_ENABLE_MEM_DEBUG, $WANT_MEM_DEBUG,
2004-02-10 03:06:28 +03:00
[Whether we want the memory profiling or not])
2004-01-08 21:55:38 +03:00
#
# Memory profiling
#
AC_MSG_CHECKING([whether to profile memory usage])
AC_ARG_ENABLE(mem-profile,
AC_HELP_STRING([--enable-mem-profile],
[enable memory profiling (debugging only) (default: disabled)]))
if test "$enable_mem_profile" = "yes"; then
AC_MSG_RESULT([yes])
WANT_MEM_PROFILE=1
else
AC_MSG_RESULT([no])
WANT_MEM_PROFILE=0
fi
2004-01-13 04:13:28 +03:00
#################### Early development override ####################
2008-01-28 06:04:53 +03:00
if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a "$OMPI_DEVEL" = 1; then
2004-03-15 20:33:44 +03:00
WANT_MEM_PROFILE=1
echo "--> developer override: enable mem profiling by default"
2004-01-13 04:13:28 +03:00
fi
#################### Early development override ####################
2004-06-07 19:33:53 +04:00
AC_DEFINE_UNQUOTED(OMPI_ENABLE_MEM_PROFILE, $WANT_MEM_PROFILE,
2004-01-08 21:55:38 +03:00
[Whether we want the memory profiling or not])
2004-01-07 10:42:12 +03:00
#
2004-01-13 23:01:59 +03:00
# Developer picky compiler options
2004-01-07 10:42:12 +03:00
#
2004-01-11 03:07:22 +03:00
AC_MSG_CHECKING([if want developer-level compiler pickyness])
AC_ARG_ENABLE(picky,
AC_HELP_STRING([--enable-picky],
2004-08-28 14:38:40 +04:00
[enable developer-level compiler pickyness when building Open MPI (default: disabled)]))
2004-06-15 23:36:36 +04:00
if test "$enable_picky" = "yes"; then
AC_MSG_RESULT([yes])
WANT_PICKY_COMPILER=1
2004-08-28 14:38:40 +04:00
else
AC_MSG_RESULT([no])
WANT_PICKY_COMPILER=0
2004-01-11 03:07:22 +03:00
fi
2004-01-13 04:13:28 +03:00
#################### Early development override ####################
2008-01-28 06:04:53 +03:00
if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a "$OMPI_DEVEL" = 1; then
2004-03-15 20:33:44 +03:00
WANT_PICKY_COMPILER=1
echo "--> developer override: enable picky compiler by default"
2004-01-13 04:13:28 +03:00
fi
#################### Early development override ####################
2004-01-11 03:07:22 +03:00
#
# Developer debugging
#
2004-01-07 10:42:12 +03:00
AC_MSG_CHECKING([if want developer-level debugging code])
2004-01-08 16:34:03 +03:00
AC_ARG_ENABLE(debug,
2004-01-07 10:42:12 +03:00
AC_HELP_STRING([--enable-debug],
2004-01-08 16:34:03 +03:00
[enable developer-level debugging code (not for general MPI users!) (default: disabled)]))
2004-01-07 10:42:12 +03:00
if test "$enable_debug" = "yes"; then
AC_MSG_RESULT([yes])
2004-01-07 11:31:32 +03:00
WANT_DEBUG=1
2004-01-07 10:42:12 +03:00
else
AC_MSG_RESULT([no])
2004-01-07 11:31:32 +03:00
WANT_DEBUG=0
2004-01-07 10:42:12 +03:00
fi
2004-01-13 04:13:28 +03:00
#################### Early development override ####################
2008-01-28 06:04:53 +03:00
if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a "$OMPI_DEVEL" = 1; then
2004-03-15 20:33:44 +03:00
WANT_DEBUG=1
echo "--> developer override: enable debugging code by default"
2004-01-13 04:13:28 +03:00
fi
#################### Early development override ####################
2004-02-13 22:11:55 +03:00
if test "$WANT_DEBUG" = "0"; then
CFLAGS="-DNDEBUG $CFLAGS"
2005-05-20 03:52:13 +04:00
CXXFLAGS="-DNDEBUG $CXXFLAGS"
2004-02-13 22:11:55 +03:00
fi
2004-06-07 19:33:53 +04:00
AC_DEFINE_UNQUOTED(OMPI_ENABLE_DEBUG, $WANT_DEBUG,
2004-01-07 10:42:12 +03:00
[Whether we want developer-level debugging code or not])
2006-04-22 23:23:26 +04:00
AC_ARG_ENABLE(debug-symbols,
AC_HELP_STRING([--disable-debug-symbols],
[Disable adding compiler flags to enable debugging symbols if --enable-debug is specified. For non-debugging builds, this flag has no effect.]))
2004-03-28 14:02:38 +04:00
2007-08-04 04:41:26 +04:00
#
# Sparse Groups
#
AC_MSG_CHECKING([if want sparse process groups])
AC_ARG_ENABLE(sparse-groups,
AC_HELP_STRING([--enable-sparse-groups],
[enable sparse process groups (default: not enabled)]))
if test "$enable_sparse_groups" = "yes"; then
AC_MSG_RESULT([yes])
GROUP_SPARSE=1
else
AC_MSG_RESULT([no])
GROUP_SPARSE=0
fi
AC_DEFINE_UNQUOTED([OMPI_GROUP_SPARSE],$GROUP_SPARSE,
[Wether we want sparse process groups])
2004-01-08 16:34:03 +03:00
#
# Fortran 77
#
AC_MSG_CHECKING([if want Fortran 77 bindings])
2005-10-25 06:53:54 +04:00
AC_ARG_ENABLE(mpi-f77,
AC_HELP_STRING([--enable-mpi-f77],
2004-01-08 16:34:03 +03:00
[enable f77 MPI bindings (default: enabled)]))
2005-10-25 06:53:54 +04:00
if test "$enable_mpi_f77" != "no"; then
2004-01-08 16:34:03 +03:00
AC_MSG_RESULT([yes])
2004-06-07 19:33:53 +04:00
OMPI_WANT_F77_BINDINGS=1
2004-01-08 16:34:03 +03:00
else
AC_MSG_RESULT([no])
2004-06-07 19:33:53 +04:00
OMPI_WANT_F77_BINDINGS=0
2004-01-08 16:34:03 +03:00
fi
2004-03-28 14:02:38 +04:00
2004-02-13 22:11:55 +03:00
#
# Fortran 90
#
AC_MSG_CHECKING([if want Fortran 90 bindings])
2005-10-25 06:53:54 +04:00
AC_ARG_ENABLE(mpi-f90,
AC_HELP_STRING([--enable-mpi-f90],
2005-08-26 04:11:30 +04:00
[enable f90 MPI bindings (default: enabled)]))
2005-10-25 06:53:54 +04:00
if test "$enable_mpi_f90" != "no"; then
2004-03-28 14:02:38 +04:00
AC_MSG_RESULT([yes])
2004-06-07 19:33:53 +04:00
OMPI_WANT_F90_BINDINGS=1
2004-03-29 00:39:15 +04:00
else
AC_MSG_RESULT([no])
2004-06-07 19:33:53 +04:00
OMPI_WANT_F90_BINDINGS=0
2004-02-13 22:11:55 +03:00
fi
2006-04-11 07:33:38 +04:00
AC_MSG_CHECKING([desired Fortran 90 bindings "size"])
AC_ARG_WITH(mpi-f90-size,
AC_HELP_STRING([--with-mpi-f90-size=SIZE],
2007-10-06 18:25:38 +04:00
[specify the types of functions in the Fortran 90 MPI module, where SIZE is one of: trivial (MPI-2 F90-specific functions only), small (trivial + all MPI functions without choice buffers), medium (small + all MPI functions with one choice buffer), large (medium + all MPI functions with 2 choice buffers, but only when both buffers are the same type). Default SIZE is "small".]))
2006-04-11 07:33:38 +04:00
if test "$OMPI_WANT_F90_BINDINGS" = "0"; then
AC_MSG_RESULT([disabled (Fortran 90 bindings disabled)])
elif test "$with_mpi_f90_size" = "no"; then
OMPI_WANT_F90_BINDINGS=0
AC_MSG_RESULT([disabling F90 MPI module (used specified)])
else
# Default value
if test "$with_mpi_f90_size" = ""; then
with_mpi_f90_size=small
fi
# Check for each of the sizes
if test "$with_mpi_f90_size" = "trivial"; then
OMPI_F90_BUILD_SIZE=trivial
elif test "$with_mpi_f90_size" = "small"; then
OMPI_F90_BUILD_SIZE=small
elif test "$with_mpi_f90_size" = "medium"; then
OMPI_F90_BUILD_SIZE=medium
elif test "$with_mpi_f90_size" = "large"; then
OMPI_F90_BUILD_SIZE=large
else
AC_MSG_RESULT([Unrecognized size: $with_mpi_f90_size])
AC_MSG_ERROR([Cannot continue])
fi
fi
AM_CONDITIONAL([OMPI_WANT_BUILD_F90_TRIVIAL],
[test "$OMPI_F90_BUILD_SIZE" = "trivial"])
AM_CONDITIONAL([OMPI_WANT_BUILD_F90_SMALL],
[test "$OMPI_F90_BUILD_SIZE" = "small"])
AM_CONDITIONAL([OMPI_WANT_BUILD_F90_MEDIUM],
[test "$OMPI_F90_BUILD_SIZE" = "medium"])
AM_CONDITIONAL([OMPI_WANT_BUILD_F90_LARGE],
[test "$OMPI_F90_BUILD_SIZE" = "large"])
AC_SUBST(OMPI_F90_BUILD_SIZE)
AC_MSG_RESULT([$OMPI_F90_BUILD_SIZE])
2004-03-28 14:02:38 +04:00
2004-01-13 23:01:59 +03:00
#
# MPI profiling
#
AC_MSG_CHECKING([whether to enable PMPI])
AC_ARG_ENABLE(mpi-profile,
AC_HELP_STRING([--enable-mpi-profile],
[enable MPI profiling (default: enabled)]))
if test "$enable_mpi_profile" != "no"; then
AC_MSG_RESULT([yes])
2004-02-10 23:12:37 +03:00
WANT_MPI_PROFILING=1
2005-11-11 03:12:40 +03:00
MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME"
2004-01-13 23:01:59 +03:00
else
AC_MSG_RESULT([no])
2004-02-10 23:12:37 +03:00
WANT_MPI_PROFILING=0
2005-11-11 03:12:40 +03:00
MPIF_H_PMPI_W_FUNCS=
2004-01-13 23:01:59 +03:00
fi
2005-11-11 03:12:40 +03:00
AC_SUBST(MPIF_H_PMPI_W_FUNCS)
2004-01-13 23:01:59 +03:00
2004-07-14 18:11:03 +04:00
#
# C++
#
AC_MSG_CHECKING([if want C++ bindings])
2005-10-25 06:53:54 +04:00
AC_ARG_ENABLE(mpi-cxx,
AC_HELP_STRING([--enable-mpi-cxx],
2004-07-14 18:11:03 +04:00
[enable C++ MPI bindings (default: enabled)]))
2005-10-25 06:53:54 +04:00
if test "$enable_mpi_cxx" != "no"; then
2004-07-14 18:11:03 +04:00
AC_MSG_RESULT([yes])
WANT_MPI_CXX_SUPPORT=1
else
AC_MSG_RESULT([no])
WANT_MPI_CXX_SUPPORT=0
fi
2006-10-16 03:50:24 +04:00
AC_MSG_CHECKING([if want MPI::SEEK_SET support])
AC_ARG_ENABLE([mpi-cxx-seek],
[AC_HELP_STRING([--enable-mpi-cxx-seek],
[enable support for MPI::SEEK_SET, MPI::SEEK_END, and MPI::SEEK_POS in C++ bindings (default: enabled)])])
if test "$enable_mpi_cxx_seek" != "no" ; then
AC_MSG_RESULT([yes])
OMPI_WANT_MPI_CXX_SEEK=1
else
AC_MSG_RESULT([no])
OMPI_WANT_MPI_CXX_SEEK=0
fi
AC_DEFINE_UNQUOTED([OMPI_WANT_MPI_CXX_SEEK], [$OMPI_WANT_MPI_CXX_SEEK],
[do we want to try to work around C++ bindings SEEK_* issue?])
2004-07-14 18:11:03 +04:00
2004-01-08 16:34:03 +03:00
#
2004-02-13 22:11:55 +03:00
# Do we want to disable weak symbols for some reason?
2004-01-08 16:34:03 +03:00
#
2004-02-13 22:11:55 +03:00
AC_MSG_CHECKING([if want to enable weak symbol support])
AC_ARG_ENABLE(weak-symbols,
AC_HELP_STRING([--enable-weak-symbols],
[use weak symbols, if available (default: enabled)]))
if test "$enable_weak_symbols" != "no"; then
2004-01-08 16:34:03 +03:00
AC_MSG_RESULT([yes])
2004-02-13 22:11:55 +03:00
WANT_WEAK_SYMBOLS=1
2004-01-08 16:34:03 +03:00
else
AC_MSG_RESULT([no])
2004-02-13 22:11:55 +03:00
WANT_WEAK_SYMBOLS=0
fi
#
# Do we want to disable MPI parameter checking at run-time?
#
AC_MSG_CHECKING([if want run-time MPI parameter checking])
2004-09-16 23:42:52 +04:00
AC_ARG_WITH(mpi-param-check,
AC_HELP_STRING([--with-mpi-param-check(=VALUE)],
2006-05-12 07:06:54 +04:00
[behavior of MPI function parameter checking. Valid values are: always, never, runtime. If --with-mpi-param-check is specified with no VALUE argument, it is equivalent to a VALUE of "always"; --without-mpi-param-check is equivalent to "never" (default: runtime).]))
2004-06-07 19:33:53 +04:00
mpi_param_check=ompi_mpi_param_check
2004-02-13 22:11:55 +03:00
if test "$with_mpi_param_check" = "no" -o \
"$with_mpi_param_check" = "never"; then
mpi_param_check=0
AC_MSG_RESULT([never])
elif test "$with_mpi_param_check" = "yes" -o \
"$with_mpi_param_check" = "always"; then
mpi_param_check=1
AC_MSG_RESULT([always])
elif test "$with_mpi_param_check" = "runtime" -o \
-z "$with_mpi_params_check"; then
AC_MSG_RESULT([runtime])
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"])
2004-01-08 16:34:03 +03:00
fi
2004-02-13 22:11:55 +03:00
AC_DEFINE_UNQUOTED(MPI_PARAM_CHECK, $mpi_param_check,
[Whether we want to check MPI parameters always, never, or decide at run-time])
2004-01-08 16:34:03 +03:00
2004-01-09 00:42:49 +03:00
#
2004-06-07 19:33:53 +04:00
# Do we want to install all of OMPI's header files?
2004-01-09 00:42:49 +03:00
#
2004-06-07 19:33:53 +04:00
AC_MSG_CHECKING([if want to install OMPI header files])
2004-01-09 00:42:49 +03:00
AC_ARG_WITH(devel-headers,
AC_HELP_STRING([--with-devel-headers],
[normal MPI users/applications do not need this (mpi.h and mpif.h are ALWAYS installed). Developer headers are only necessary for MCA module authors (default: disabled).]))
2004-08-28 14:38:40 +04:00
if test "$with_devel_headers" = "yes"; then
2004-01-09 00:42:49 +03:00
AC_MSG_RESULT([yes])
WANT_INSTALL_HEADERS=1
2004-08-28 14:38:40 +04:00
else
AC_MSG_RESULT([no])
WANT_INSTALL_HEADERS=0
2004-01-09 00:42:49 +03:00
fi
AM_CONDITIONAL(WANT_INSTALL_HEADERS, test "$WANT_INSTALL_HEADERS" = 1)
2005-07-13 08:16:03 +04:00
#
# Do we want the pretty-print stack trace feature?
#
AC_MSG_CHECKING([if want pretty-print stacktrace])
AC_ARG_ENABLE([pretty-print-stacktrace],
[AC_HELP_STRING([--enable-pretty-print-stacktrace],
[Pretty print stacktrace on process signal])])
if test "$enable_pretty_print_stacktrace" = "no" ; then
AC_MSG_RESULT([no])
WANT_PRETTY_PRINT_STACKTRACE=0
else
AC_MSG_RESULT([yes])
WANT_PRETTY_PRINT_STACKTRACE=1
fi
AC_DEFINE_UNQUOTED([OMPI_WANT_PRETTY_PRINT_STACKTRACE],
[$WANT_PRETTY_PRINT_STACKTRACE],
[if want pretty-print stack trace feature])
2004-01-09 08:34:07 +03:00
#
# Do we want deprecated executable names ?
#
AC_MSG_CHECKING(if want deprecated executable names)
AC_ARG_ENABLE(deprecated-executable-names,
2004-06-07 19:33:53 +04:00
AC_HELP_STRING([--enable-deprecated-executable-names], [make sym links to deprecated OMPI executables (e.g., hcc, hcp, hf77, wipe) (default: disabled)]))
2004-01-09 09:39:14 +03:00
if test "$enable_deprecated_executable_names" = "yes"; then
2004-01-09 09:26:48 +03:00
AC_MSG_RESULT([yes])
WANT_DEN=1
else
AC_MSG_RESULT([no])
WANT_DEN=0
fi
AM_CONDITIONAL(WANT_DEPRECATED_EXECUTABLE_NAMES, test "$WANT_DEN" = "1")
2004-01-09 08:34:07 +03:00
2006-03-23 07:54:10 +03:00
#
# Do we want to enable peruse interface?
#
AC_MSG_CHECKING([if peruse support is required])
AC_ARG_ENABLE(peruse,
AC_HELP_STRING([--enable-peruse],
[Support PERUSE interface (default: disabled)]))
2006-09-28 07:45:27 +04:00
if test "$enable_peruse" = "yes"; then
2006-03-23 07:54:10 +03:00
AC_MSG_RESULT([yes])
WANT_PERUSE=1
else
AC_MSG_RESULT([no])
WANT_PERUSE=0
fi
AC_DEFINE_UNQUOTED([OMPI_WANT_PERUSE],
[$WANT_PERUSE],
[if the peruse interface should be enabled])
AM_CONDITIONAL(WANT_PERUSE, test "$WANT_PERUSE" = "1")
2005-04-12 14:17:52 +04:00
#
# What is the max array rank that we want to support in the f90 bindings?
#
OMPI_FORTRAN_MAX_ARRAY_RANK=4
AC_MSG_CHECKING([max supported array dimension in F90 MPI bindings])
AC_ARG_WITH(f90-max-array-dim,
AC_HELP_STRING([--with-f90-max-array-dim=<DIM>],
[The maximum array dimension supported in the F90 MPI bindings (default: $OMPI_FORTRAN_MAX_ARRAY_RANK).]))
2005-08-24 06:11:02 +04:00
if test ! -z "$with_f90_max_array_dim" -a "$with_f90_max_array_dim" != "no"; then
2005-04-12 14:17:52 +04:00
# Ensure it's a number; hopefully a integer...
2005-08-24 06:11:02 +04:00
expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null
2005-04-12 14:17:52 +04:00
if test "$?" = "0"; then
2005-08-24 06:11:02 +04:00
OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim"
2005-04-12 14:17:52 +04:00
fi
fi
AC_MSG_RESULT([$OMPI_FORTRAN_MAX_ARRAY_RANK])
AC_SUBST(OMPI_FORTRAN_MAX_ARRAY_RANK)
2005-04-16 01:18:20 +04:00
# do we want PTY support?
AC_MSG_CHECKING([if pty support should be enabled])
AC_ARG_ENABLE(pty-support,
AC_HELP_STRING([--enable-pty-support],
[Enable/disable PTY support for STDIO forwarding. default: enabled]))
if test "$enable_pty_support" = "no" ; then
AC_MSG_RESULT([no])
OMPI_ENABLE_PTY_SUPPORT=0
else
AC_MSG_RESULT([yes])
OMPI_ENABLE_PTY_SUPPORT=1
fi
AC_DEFINE_UNQUOTED([OMPI_ENABLE_PTY_SUPPORT], [$OMPI_ENABLE_PTY_SUPPORT],
[Whether user wants PTY support or not])
2005-07-14 22:05:30 +04:00
#
# Do we want to allow DLOPEN?
#
AC_MSG_CHECKING([if user wants dlopen support])
AC_ARG_ENABLE([dlopen],
[AC_HELP_STRING([--enable-dlopen],
[Whether build should attempt to use dlopen (or
similar) to dynamically load components.
Disabling dlopen implies --disable-mca-dso.
2005-09-08 13:44:50 +04:00
(default: enabled)])])
2005-07-14 22:05:30 +04:00
if test "$enable_dlopen" = "no" ; then
enable_mca_dso="no"
enable_mca_static="yes"
OMPI_ENABLE_DLOPEN_SUPPORT=0
AC_MSG_RESULT([no])
else
OMPI_ENABLE_DLOPEN_SUPPORT=1
AC_MSG_RESULT([yes])
fi
2005-09-08 13:44:50 +04:00
#
# Heterogeneous support
#
2005-07-14 22:05:30 +04:00
2005-07-28 20:16:13 +04:00
AC_MSG_CHECKING([if heterogeneous support should be enabled])
AC_ARG_ENABLE([heterogeneous],
[AC_HELP_STRING([--enable-heterogeneous],
[Enable features required for heterogeneous
2005-09-08 13:44:50 +04:00
platform support (default: enabled)])])
2005-07-28 20:16:13 +04:00
if test "$enable_heterogeneous" = "no" ; then
AC_MSG_RESULT([no])
ompi_want_heterogeneous=0
else
AC_MSG_RESULT([yes])
ompi_want_heterogeneous=1
fi
AC_DEFINE_UNQUOTED([OMPI_ENABLE_HETEROGENEOUS_SUPPORT],
[$ompi_want_heterogeneous],
[Enable features required for heterogeneous support])
2005-09-08 13:44:50 +04:00
#
# Internal trace file logging (debugging)
#
AC_MSG_CHECKING([if want trace file debugging])
AC_ARG_ENABLE([trace],
[AC_HELP_STRING([--enable-trace],
[Enable internal tracing of OMPI/ORTE/OPAL calls -- used only for developer debugging, not tracing of MPI applications (default: disabled)])])
if test "$enable_trace" = "yes"; then
AC_MSG_RESULT([yes])
opal_want_trace=1
else
AC_MSG_RESULT([no])
opal_want_trace=0
fi
AC_DEFINE_UNQUOTED([OPAL_ENABLE_TRACE], [$opal_want_trace],
[Enable run-time tracing of internal functions])
2006-01-17 02:38:42 +03:00
These changes were mostly captured in a prior RFC (except for #2 below) and are aimed specifically at improving startup performance and setting up the remaining modifications described in that RFC.
The commit has been tested for C/R and Cray operations, and on Odin (SLURM, rsh) and RoadRunner (TM). I tried to update all environments, but obviously could not test them. I know that Windows needs some work, and have highlighted what is know to be needed in the odls process component.
This represents a lot of work by Brian, Tim P, Josh, and myself, with much advice from Jeff and others. For posterity, I have appended a copy of the email describing the work that was done:
As we have repeatedly noted, the modex operation in MPI_Init is the single greatest consumer of time during startup. To-date, we have executed that operation as an ORTE stage gate that held the process until a startup message containing all required modex (and OOB contact info - see #3 below) info could be sent to it. Each process would send its data to the HNP's registry, which assembled and sent the message when all processes had reported in.
In addition, ORTE had taken responsibility for monitoring process status as it progressed through a series of "stage gates". The process reported its status at each gate, and ORTE would then send a "release" message once all procs had reported in.
The incoming changes revamp these procedures in three ways:
1. eliminating the ORTE stage gate system and cleanly delineating responsibility between the OMPI and ORTE layers for MPI init/finalize. The modex stage gate (STG1) has been replaced by a collective operation in the modex itself that performs an allgather on the required modex info. The allgather is implemented using the orte_grpcomm framework since the BTL's are not active at that point. At the moment, the grpcomm framework only has a "basic" component analogous to OMPI's "basic" coll framework - I would recommend that the MPI team create additional, more advanced components to improve performance of this step.
The other stage gates have been replaced by orte_grpcomm barrier functions. We tried to use MPI barriers instead (since the BTL's are active at that point), but - as we discussed on the telecon - these are not currently true barriers so the job would hang when we fell through while messages were still in process. Note that the grpcomm barrier doesn't actually resolve that problem, but Brian has pointed out that we are unlikely to ever see it violated. Again, you might want to spend a little time on an advanced barrier algorithm as the one in "basic" is very simplistic.
Summarizing this change: ORTE no longer tracks process state nor has direct responsibility for synchronizing jobs. This is now done via collective operations within the MPI layer, albeit using ORTE collective communication services. I -strongly- urge the MPI team to implement advanced collective algorithms to improve the performance of this critical procedure.
2. reducing the volume of data exchanged during modex. Data in the modex consisted of the process name, the name of the node where that process is located (expressed as a string), plus a string representation of all contact info. The nodename was required in order for the modex to determine if the process was local or not - in addition, some people like to have it to print pretty error messages when a connection failed.
The size of this data has been reduced in three ways:
(a) reducing the size of the process name itself. The process name consisted of two 32-bit fields for the jobid and vpid. This is far larger than any current system, or system likely to exist in the near future, can support. Accordingly, the default size of these fields has been reduced to 16-bits, which means you can have 32k procs in each of 32k jobs. Since the daemons must have a vpid, and we require one daemon/node, this also restricts the default configuration to 32k nodes.
To support any future "mega-clusters", a configuration option --enable-jumbo-apps has been added. This option increases the jobid and vpid field sizes to 32-bits. Someday, if necessary, someone can add yet another option to increase them to 64-bits, I suppose.
(b) replacing the string nodename with an integer nodeid. Since we have one daemon/node, the nodeid corresponds to the local daemon's vpid. This replaces an often lengthy string with only 2 (or at most 4) bytes, a substantial reduction.
(c) when the mca param requesting that nodenames be sent to support pretty error messages, a second mca param is now used to request FQDN - otherwise, the domain name is stripped (by default) from the message to save space. If someone wants to combine those into a single param somehow (perhaps with an argument?), they are welcome to do so - I didn't want to alter what people are already using.
While these may seem like small savings, they actually amount to a significant impact when aggregated across the entire modex operation. Since every proc must receive the modex data regardless of the collective used to send it, just reducing the size of the process name removes nearly 400MBytes of communication from a 32k proc job (admittedly, much of this comm may occur in parallel). So it does add up pretty quickly.
3. routing RML messages to reduce connections. The default messaging system remains point-to-point - i.e., each proc opens a socket to every proc it communicates with and sends its messages directly. A new option uses the orteds as routers - i.e., each proc only opens a single socket to its local orted. All messages are sent from the proc to the orted, which forwards the message to the orted on the node where the intended recipient proc is located - that orted then forwards the message to its local proc (the recipient). This greatly reduces the connection storm we have encountered during startup.
It also has the benefit of removing the sharing of every proc's OOB contact with every other proc. The orted routing tables are populated during launch since every orted gets a map of where every proc is being placed. Each proc, therefore, only needs to know the contact info for its local daemon, which is passed in via the environment when the proc is fork/exec'd by the daemon. This alone removes ~50 bytes/process of communication that was in the current STG1 startup message - so for our 32k proc job, this saves us roughly 32k*50 = 1.6MBytes sent to 32k procs = 51GBytes of messaging.
Note that you can use the new routing method by specifying -mca routed tree - if you so desire. This mode will become the default at some point in the future.
There are a few minor additional changes in the commit that I'll just note in passing:
* propagation of command line mca params to the orteds - fixes ticket #1073. See note there for details.
* requiring of "finalize" prior to "exit" for MPI procs - fixes ticket #1144. See note there for details.
* cleanup of some stale header files
This commit was SVN r16364.
2007-10-05 23:48:23 +04:00
#
# Jumbo application support
#
AC_MSG_CHECKING([if want jumbo app support])
AC_ARG_ENABLE([jumbo-apps],
[AC_HELP_STRING([--enable-jumbo-apps],
[Enable support for applications in excess of 32K processes and/or 32K jobs, or running on clusters in excess of 32k nodes (default: disabled)])])
if test "$enable_jumbo_apps" = "yes"; then
AC_MSG_RESULT([yes])
orte_want_jumbo_apps=1
else
AC_MSG_RESULT([no])
orte_want_jumbo_apps=0
fi
AC_DEFINE_UNQUOTED([ORTE_ENABLE_JUMBO_APPS], [$orte_want_jumbo_apps],
[Enable support for applications in excess of 32K processes and/or 32K jobs, or running on clusters in excess of 32k nodes])
2008-02-28 04:57:57 +03:00
#
# Minimal RTE support
#
AC_MSG_CHECKING([if want full RTE support])
AC_ARG_ENABLE([rte],
[AC_HELP_STRING([--disable-rte-support],
[Disable RTE support for systems that do not require it (default: full RTE support enabled)])])
if test "$enable_rte_support" = "no"; then
AC_MSG_RESULT([no])
orte_disable_full_support=1
else
AC_MSG_RESULT([yes])
orte_disable_full_support=0
fi
AC_DEFINE_UNQUOTED([ORTE_DISABLE_FULL_SUPPORT], [$orte_disable_full_support],
[Enable full RTE support])
AM_CONDITIONAL(ORTE_DISABLE_FULL_SUPPORT, test "$enable_rte_support" = "no")
2006-01-17 02:38:42 +03:00
#
# Cross-compile data
#
AC_ARG_WITH([cross],
[AC_HELP_STRING([--with-cross=FILE],
[Specify configure values that can not be determined in a cross-compilation environment. See the Open MPI FAQ.])])
if test "$with_cross" = "yes" ; then
AC_MSG_ERROR([--with-cross argument must include FILE option])
elif test "$with_cross" = "no" ; then
AC_MSG_ERROR([--without-cross is not a valid argument])
elif test "$with_cross" != "" ; then
if test ! -r $with_cross ; then
AC_MSG_ERROR([could not find cross-compile data file $with_cross])
fi
# eval into environment
OMPI_LOG_MSG([Loading cross-compile file $with_cross, with contents below])
OMPI_LOG_FILE([$with_cross])
. "$with_cross"
fi
2007-03-17 02:11:45 +03:00
#
# --with-ft=TYPE
# TYPE:
# - LAM (synonym for 'cr' currently)
# - cr
# /* General FT sections */
# #if OPAL_ENABLE_FT == 0 /* FT Disabled globaly */
# #if OPAL_ENABLE_FT == 1 /* FT Enabled globaly */
# /* CR Specific sections */
# #if OPAL_ENABLE_FT_CR == 0 /* FT Ckpt/Restart Disabled */
# #if OPAL_ENABLE_FT_CR == 1 /* FT Ckpt/Restart Enabled */
#
AC_MSG_CHECKING([if want fault tolerance])
AC_ARG_WITH(ft,
[AC_HELP_STRING([--with-ft=TYPE],
[Specify the type of fault tolerance to enable. Options: LAM (LAM/MPI-like), cr (Checkpoint/Restart) (default: disabled)])],
[ompi_want_ft=1],
[ompi_want_ft=0])
if test "$with_ft" = "no" -o "$ompi_want_ft" = "0"; then
ompi_want_ft=0
ompi_want_ft_cr=0
AC_MSG_RESULT([Disabled fault tolerance])
else
ompi_want_ft=1
ompi_want_ft_cr=0
ompi_want_ft_type=none
# Default value
if test "$with_ft" = "" -o "$with_ft" = "yes"; then
ompi_want_ft_type=cr
ompi_want_ft_cr=1
elif test "$with_ft" = "LAM"; then
ompi_want_ft_type=lam
ompi_want_ft_cr=1
elif test "$with_ft" = "lam"; then
ompi_want_ft_type=lam
ompi_want_ft_cr=1
elif test "$with_ft" = "CR"; then
ompi_want_ft_type=cr
ompi_want_ft_cr=1
elif test "$with_ft" = "cr"; then
ompi_want_ft_type=cr
ompi_want_ft_cr=1
else
AC_MSG_RESULT([Unrecognized FT TYPE: $with_ft])
AC_MSG_ERROR([Cannot continue])
fi
AC_MSG_RESULT([Enabled $with_ft ($ompi_want_ft_type)])
AC_MSG_WARN([**************************************************])
AC_MSG_WARN([*** Fault Tolerance Integration into Open MPI is *])
AC_MSG_WARN([*** a research quality implementation, and care *])
AC_MSG_WARN([*** should be used when choosing to enable it. *])
AC_MSG_WARN([**************************************************])
fi
AC_DEFINE_UNQUOTED([OPAL_ENABLE_FT], [$ompi_want_ft],
[Enable fault tolerance general components and logic])
AC_DEFINE_UNQUOTED([OPAL_ENABLE_FT_CR], [$ompi_want_ft_cr],
[Enable fault tolerance checkpoint/restart components and logic])
AM_CONDITIONAL(WANT_FT, test "$ompi_want_ft" = "1")
2006-04-29 06:16:41 +04:00
#
# Do we want to install binaries?
#
AC_ARG_ENABLE([binaries],
[AC_HELP_STRING([--enable-binaries],
[Build and install binaries required for Open MPI, such as the wrapper compilers. Useful for multi-lib installations. (default: enabled)])])
AM_CONDITIONAL([OMPI_INSTALL_BINARIES], [test "$enable_binaries" != "no"])
2006-09-08 04:10:40 +04:00
#
# Do we want to disable IPv6 support?
#
AC_MSG_CHECKING([if want IPv6 support])
AC_ARG_ENABLE([ipv6],
[AC_HELP_STRING([--disable-ipv6],
[Disable IPv6 support (default: enabled, but only if the underlying system supports it)])])
if test "$enable_ipv6" = "no"; then
AC_MSG_RESULT([no])
2006-09-09 03:42:32 +04:00
opal_want_ipv6=0
2006-09-08 04:10:40 +04:00
else
AC_MSG_RESULT([yes (if underlying system supports it)])
2006-09-09 03:42:32 +04:00
opal_want_ipv6=1
2006-09-08 04:10:40 +04:00
fi
2006-09-09 03:42:32 +04:00
AC_DEFINE_UNQUOTED([OPAL_ENABLE_IPV6], [$opal_want_ipv6],
2006-09-08 04:10:40 +04:00
[Enable IPv6 support, but only if the underlying system supports it])
2006-09-15 06:52:08 +04:00
#
# Do we want orterun's --prefix behavior to be enabled by default?
#
AC_MSG_CHECKING([if want orterun "--prefix" behavior to be enabled by default])
AC_ARG_ENABLE([orterun-prefix-by-default],
[AC_HELP_STRING([--enable-orterun-prefix-by-default],
[Make "orterun ..." behave exactly the same as "orterun --prefix \$prefix" (where \$prefix is the value given to --prefix in configure)])])
AC_ARG_ENABLE([mpirun-prefix-by-default],
[AC_HELP_STRING([--enable-mpirun-prefix-by-default],
[Synonym for --enable-orterun-prefix-by-default])])
if test "$enable_orterun_prefix_by_default" = ""; then
enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default
fi
if test "$enable_orterun_prefix_by_default" = "yes"; then
AC_MSG_RESULT([yes])
orte_want_orterun_prefix_by_default=1
else
AC_MSG_RESULT([no])
orte_want_orterun_prefix_by_default=0
fi
AC_DEFINE_UNQUOTED([ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT],
[$orte_want_orterun_prefix_by_default],
[Whether we want orterun to effect "--prefix $prefix" by default])
2007-11-03 05:40:22 +03:00
#
# Package/brand string
#
AC_MSG_CHECKING([for package/brand string])
AC_ARG_WITH([package-string],
[AC_HELP_STRING([--with-package-string=STRING],
[Use a branding string throughout Open MPI])])
if test "$with_package_string" = "" -o "$with_package_string" = "no"; then
with_package_string="Open MPI $OMPI_CONFIGURE_USER@$OMPI_CONFIGURE_HOST Distribution"
fi
AC_DEFINE_UNQUOTED([OPAL_PACKAGE_STRING], ["$with_package_string"],
[package/branding string for Open MPI])
AC_MSG_RESULT([$with_package_string])
#
# Ident string
#
AC_MSG_CHECKING([for ident string])
AC_ARG_WITH([ident-string],
[AC_HELP_STRING([--with-ident-string=STRING],
[Embed an ident string into Open MPI object files])])
if test "$with_ident_string" = "" -o "$with_ident_string" = "no"; then
with_ident_string="%VERSION%"
fi
with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/'$OMPI_VERSION/`"
AC_DEFINE_UNQUOTED([OPAL_IDENT_STRING], ["$with_ident_string"],
[ident string for Open MPI])
AC_MSG_RESULT([$with_ident_string])
2007-11-28 10:18:59 +03:00
#
# ConnectX XRC support
#
AC_MSG_CHECKING([if ConnectX XRC support should be enabled])
AC_ARG_ENABLE([connectx-xrc],
[AC_HELP_STRING([--enable-connectx-xrc],
[Enable features required for ConnectX XRC support. If you don't have Infiniband ConnectX adapters you may disable the ConnectX XRC support. If you don't know which Infiniband adapter is installed on you cluster - leave it enabled (default: enabled)])])
if test "$enable_connectx_xrc" = "no" ; then
AC_MSG_RESULT([no])
ompi_want_connectx_xrc=0
else
AC_MSG_RESULT([yes])
ompi_want_connectx_xrc=1
fi
AC_DEFINE_UNQUOTED([OMPI_ENABLE_CONNECTX_XRC_SUPPORT],
[$ompi_want_connectx_xrc],
[Enable features required for ConnectX XRC support])
2004-01-07 10:42:12 +03:00
])