2008-10-28 20:22:29 +03:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2006 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2009-01-29 20:59:04 +03:00
|
|
|
# Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
|
2008-10-28 20:22:29 +03:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
# OPAL_CHECK_PORTALS(prefix, [action-if-found], [action-if-not-found])
|
2008-10-28 20:22:29 +03:00
|
|
|
# --------------------------------------------------------
|
|
|
|
# check if PORTALS support can be found. sets prefix_{CPPFLAGS,
|
|
|
|
# LDFLAGS, LIBS} as needed and runs action-if-found if there is
|
|
|
|
# support, otherwise executes action-if-not-found
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
AC_DEFUN([OPAL_CHECK_PORTALS],[
|
2008-10-28 20:22:29 +03:00
|
|
|
# save compiler flags so that we don't alter them for later
|
|
|
|
# components.
|
|
|
|
check_portals_save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
check_portals_save_LDFLAGS="$LDFLAGS"
|
|
|
|
check_portals_save_LIBS="$LIBS"
|
|
|
|
|
|
|
|
check_portals_CPPFLAGS=
|
|
|
|
check_portals_LDFLAGS=
|
|
|
|
check_portals_LIBS=
|
|
|
|
|
|
|
|
check_portals_configuration="none"
|
|
|
|
ompi_check_portals_happy="yes"
|
|
|
|
|
|
|
|
# Get some configuration information
|
|
|
|
AC_ARG_WITH([portals],
|
|
|
|
[AC_HELP_STRING([--with-portals(=DIR)],
|
2009-04-11 02:32:00 +04:00
|
|
|
[Build Portals support, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
|
2014-05-01 19:38:07 +04:00
|
|
|
OPAL_CHECK_WITHDIR([portals], [$with_portals], [include/portals3.h])
|
2008-10-28 20:22:29 +03:00
|
|
|
AC_ARG_WITH([portals-config],
|
|
|
|
AC_HELP_STRING([--with-portals-config],
|
|
|
|
[configuration to use for Portals support.
|
|
|
|
One of "utcp", "xt3", "xt3-modex". (default: utcp)]))
|
|
|
|
AC_ARG_WITH([portals-libs],
|
|
|
|
[AC_HELP_STRING([--with-portals-libs=LIBS],
|
|
|
|
[Libraries to link with for portals])])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for Portals configuration])
|
|
|
|
if test "$with_portals_config" = "" ; then
|
|
|
|
with_portals_config="utcp"
|
|
|
|
elif test "$with_portals_config" = "redstorm" ; then
|
|
|
|
with_portals_config="xt3"
|
|
|
|
elif test "$with_portals_config" = "cnl_modex" ; then
|
|
|
|
with_portals_config="xt3-modex"
|
|
|
|
fi
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
OPAL_PORTALS_UTCP=0
|
|
|
|
OPAL_PORTALS_CRAYXT3=0
|
|
|
|
OPAL_PORTALS_CRAYXT3_MODEX=0
|
2008-10-28 20:22:29 +03:00
|
|
|
case "$with_portals_config" in
|
|
|
|
"utcp")
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
OPAL_PORTALS_UTCP=1
|
|
|
|
OPAL_PORTALS_HAVE_EVENT_UNLINK=1
|
2008-10-28 20:22:29 +03:00
|
|
|
check_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
|
|
|
|
check_portals_header_prefix=
|
|
|
|
AC_MSG_RESULT([utcp])
|
|
|
|
;;
|
|
|
|
"xt3")
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
OPAL_PORTALS_CRAYXT3=1
|
|
|
|
OPAL_PORTALS_HAVE_EVENT_UNLINK=0
|
2008-10-28 20:22:29 +03:00
|
|
|
check_portals_LIBS=
|
|
|
|
check_portals_header_prefix="portals/"
|
|
|
|
AC_MSG_RESULT([Cray XT3])
|
|
|
|
;;
|
|
|
|
"xt3-modex")
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
OPAL_PORTALS_CRAYXT3_MODEX=1
|
|
|
|
OPAL_PORTALS_HAVE_EVENT_UNLINK=0
|
2008-10-28 20:22:29 +03:00
|
|
|
check_portals_LIBS=
|
|
|
|
check_portals_header_prefix="portals/"
|
|
|
|
AC_MSG_RESULT([Cray XT3 - Modex])
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# ok to call ERROR here - the user specified something invalid.
|
|
|
|
# that should be brought to his attention
|
|
|
|
AC_MSG_ERROR([unknown Portals configuration. Can not continue])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
AC_DEFINE_UNQUOTED([OPAL_PORTALS_HAVE_EVENT_UNLINK],
|
|
|
|
[$OPAL_PORTALS_HAVE_EVENT_UNLINK],
|
2008-10-28 20:22:29 +03:00
|
|
|
[Does Portals send a PTL_EVENT_UNLINK event])
|
|
|
|
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
AC_DEFINE_UNQUOTED([OPAL_PORTALS_UTCP], [$OPAL_PORTALS_UTCP],
|
2008-10-28 20:22:29 +03:00
|
|
|
[Use the UTCP reference implementation of Portals])
|
|
|
|
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
AC_DEFINE_UNQUOTED([OPAL_PORTALS_CRAYXT3], [$OPAL_PORTALS_CRAYXT3],
|
2008-10-28 20:22:29 +03:00
|
|
|
[Use the Cray XT-3 implementation of Portals])
|
|
|
|
|
George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL
All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic.
This commit was SVN r32317.
2014-07-26 04:47:28 +04:00
|
|
|
AC_DEFINE_UNQUOTED([OPAL_PORTALS_CRAYXT3_MODEX], [$OPAL_PORTALS_CRAYXT3_MODEX],
|
2008-10-28 20:22:29 +03:00
|
|
|
[Use the Cray XT-3 implementation of Portals using Modex])
|
|
|
|
|
|
|
|
# Add correct -I and -L flags
|
|
|
|
AS_IF([test -n "$with_portals"],
|
|
|
|
[AS_IF([test -d "$with_portals/include"],
|
|
|
|
[check_portals_CPPFLAGS="-I$with_portals/include"
|
|
|
|
CPPFLAGS="$CPPFLAGS $check_portals_CPPFLAGS"], [])
|
|
|
|
AS_IF([test -d "$with_portals/lib"],
|
|
|
|
[check_portals_LDFLAGS="-L$with_portals/lib"
|
|
|
|
LDFLAGS="$LDFLAGS $check_portals_LDFLAGS"], [])])
|
|
|
|
|
|
|
|
# Try to find all the portals libraries (this is not fun!)
|
|
|
|
if test -n "$with_portals_libs" ; then
|
|
|
|
check_portals_LIBS=""
|
|
|
|
for lib in $with_portals_libs ; do
|
|
|
|
check_portals_LIBS="$check_portals_LIBS -l$lib"
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
# check for portals
|
|
|
|
LIBS="$LIBS $check_portals_LIBS"
|
|
|
|
AC_CHECK_HEADERS([${check_portals_header_prefix}portals3.h],
|
|
|
|
[AC_MSG_CHECKING([if possible to link Portals application])
|
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <${check_portals_header_prefix}portals3.h>],
|
|
|
|
[int i; PtlInit(&i);])],
|
|
|
|
[AC_MSG_RESULT([yes])
|
|
|
|
ompi_check_portals_happy="yes"],
|
|
|
|
[AC_MSG_RESULT([no])
|
|
|
|
ompi_check_portals_happy="no"])],
|
|
|
|
[ompi_check_portals_happy="no"])
|
|
|
|
|
|
|
|
# Deal with static-only Portals UTCP libs. See note in
|
|
|
|
# ompi/mca/common/portals/configure.m4. Then possibly cry.
|
|
|
|
if test "$with_portals_config" = "utcp" ; then
|
|
|
|
if test "$1" != "common_portals" ; then
|
|
|
|
check_portals_LIBS=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# reset the flags for the next test
|
|
|
|
CPPFLAGS="$check_portals_save_CPPFLAGS"
|
|
|
|
LDFLAGS="$check_portals_save_LDFLAGS"
|
|
|
|
LIBS="$check_portals_save_LIBS"
|
|
|
|
|
|
|
|
$1_CPPFLAGS="$check_portals_CPPFLAGS"
|
|
|
|
$1_LDFLAGS="$check_portals_LDFLAGS"
|
|
|
|
$1_LIBS="$check_portals_LIBS"
|
|
|
|
|
|
|
|
AS_IF([test "$ompi_check_portals_happy" = "yes"],
|
|
|
|
[$2],
|
|
|
|
[AS_IF([test ! -z "$with_portals" -a "$with_portals" != "no"],
|
|
|
|
[AC_MSG_ERROR([Portals support requested but not found. Aborting])])
|
|
|
|
$3])
|
|
|
|
])
|
|
|
|
|