2016-03-01 21:01:51 +03:00
|
|
|
dnl -*- shell-script -*-
|
|
|
|
dnl
|
|
|
|
dnl Copyright (c) 2016 Los Alamos National Security, LLC. All rights
|
|
|
|
dnl reserved.
|
2016-03-10 18:59:55 +03:00
|
|
|
dnl Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
|
2016-05-02 10:21:52 +03:00
|
|
|
dnl Copyright (c) 2016 Research Organization for Information Science
|
|
|
|
dnl and Technology (RIST). All rights reserved.
|
2016-03-01 21:01:51 +03:00
|
|
|
dnl $COPYRIGHT$
|
|
|
|
dnl
|
|
|
|
dnl Additional copyrights may follow
|
|
|
|
dnl
|
|
|
|
dnl $HEADER$
|
|
|
|
dnl
|
2016-04-20 18:38:57 +03:00
|
|
|
AC_DEFUN([OPAL_SUMMARY_ADD],[
|
2016-03-01 21:01:51 +03:00
|
|
|
OPAL_VAR_SCOPE_PUSH([ompi_summary_section ompi_summary_line ompi_summary_section_current])
|
|
|
|
|
|
|
|
dnl need to replace spaces in the section name with somethis else. _ seems like a reasonable
|
|
|
|
dnl choice. if this changes remember to change OMPI_PRINT_SUMMARY as well.
|
|
|
|
ompi_summary_section=$(echo $1 | tr ' ' '_')
|
|
|
|
ompi_summary_line="$2: $4"
|
|
|
|
ompi_summary_section_current=$(eval echo \$ompi_summary_values_$ompi_summary_section)
|
|
|
|
|
|
|
|
if test -z "$ompi_summary_section_current" ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
if test -z "$ompi_summary_sections" ; then
|
|
|
|
ompi_summary_sections=$ompi_summary_section
|
|
|
|
else
|
|
|
|
ompi_summary_sections="$ompi_summary_sections $ompi_summary_section"
|
|
|
|
fi
|
|
|
|
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_line\"
|
2016-03-01 21:01:51 +03:00
|
|
|
else
|
2016-03-28 18:32:15 +03:00
|
|
|
eval ompi_summary_values_$ompi_summary_section=\"$ompi_summary_section_current,$ompi_summary_line\"
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
OPAL_VAR_SCOPE_POP
|
|
|
|
])
|
|
|
|
|
2016-04-20 18:38:57 +03:00
|
|
|
AC_DEFUN([OPAL_SUMMARY_PRINT],[
|
2016-03-01 21:01:51 +03:00
|
|
|
OPAL_VAR_SCOPE_PUSH([ompi_summary_section ompi_summary_section_name])
|
2016-03-10 18:59:55 +03:00
|
|
|
cat <<EOF
|
2016-03-01 21:01:51 +03:00
|
|
|
|
2016-03-10 18:59:55 +03:00
|
|
|
Open MPI configuration:
|
|
|
|
-----------------------
|
|
|
|
Version: $OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION.$OMPI_RELEASE_VERSION$OMPI_GREEK_VERSION
|
|
|
|
EOF
|
2016-03-01 21:01:51 +03:00
|
|
|
|
2016-03-10 18:59:55 +03:00
|
|
|
if test "$project_ompi_amc" = "true" ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build MPI C bindings: yes"
|
2016-03-01 21:01:51 +03:00
|
|
|
else
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build MPI C bindings: no"
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Print out the bindings if we are building OMPI
|
|
|
|
if test "$project_ompi_amc" = "true" ; then
|
|
|
|
if test x$enable_mpi_cxx = xyes ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build MPI C++ bindings (deprecated): yes"
|
2016-03-01 21:01:51 +03:00
|
|
|
else
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build MPI C++ bindings (deprecated): no"
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test $OMPI_BUILD_FORTRAN_BINDINGS = $OMPI_FORTRAN_MPIFH_BINDINGS ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build MPI Fortran bindings: mpif.h"
|
2016-03-01 21:01:51 +03:00
|
|
|
elif test $OMPI_BUILD_FORTRAN_BINDINGS = $OMPI_FORTRAN_USEMPI_BINDINGS ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build MPI Fortran bindings: mpif.h, use mpi"
|
2016-03-01 21:01:51 +03:00
|
|
|
elif test $OMPI_BUILD_FORTRAN_BINDINGS = $OMPI_FORTRAN_USEMPIF08_BINDINGS ; then
|
2016-03-10 18:59:55 +03:00
|
|
|
echo "Build MPI Fortran bindings: mpif.h, use mpi, use mpi_f08"
|
2016-03-01 21:01:51 +03:00
|
|
|
else
|
2016-03-10 18:59:55 +03:00
|
|
|
echo "Build MPI Fortran bindings: no"
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
|
2016-05-02 10:21:52 +03:00
|
|
|
if test x$WANT_MPI_JAVA_SUPPORT = x1 ; then
|
2016-03-10 18:59:55 +03:00
|
|
|
echo "Build MPI Java bindings (experimental): yes"
|
2016-03-01 21:01:51 +03:00
|
|
|
else
|
2016-03-10 18:59:55 +03:00
|
|
|
echo "MPI Build Java bindings (experimental): no"
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2016-03-16 18:48:51 +03:00
|
|
|
if test "$project_oshmem_amc" = "true" ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build Open SHMEM support: yes"
|
2016-03-10 18:59:55 +03:00
|
|
|
else
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Build Open SHMEM support: no"
|
2016-03-10 18:59:55 +03:00
|
|
|
fi
|
|
|
|
|
2016-03-01 21:01:51 +03:00
|
|
|
if test $WANT_DEBUG = 0 ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Debug build: no"
|
2016-03-01 21:01:51 +03:00
|
|
|
else
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Debug build: yes"
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test ! -z $with_platform ; then
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Platform file: $with_platform"
|
2016-03-10 18:59:55 +03:00
|
|
|
else
|
2016-03-28 18:32:15 +03:00
|
|
|
echo "Platform file: (none)"
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
for ompi_summary_section in $(echo $ompi_summary_sections) ; do
|
2016-03-28 18:32:15 +03:00
|
|
|
ompi_summary_section_name=$(echo $ompi_summary_section | tr '_' ' ')
|
|
|
|
echo "$ompi_summary_section_name"
|
|
|
|
echo "-----------------------"
|
|
|
|
echo "$(eval echo \$ompi_summary_values_$ompi_summary_section)" | tr ',' $'\n' | sort -f
|
|
|
|
echo " "
|
2016-03-01 21:01:51 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
if test $WANT_DEBUG = 1 ; then
|
2016-03-10 18:59:55 +03:00
|
|
|
cat <<EOF
|
|
|
|
*****************************************************************************
|
|
|
|
THIS IS A DEBUG BUILD! DO NOT USE THIS BUILD FOR PERFORMANCE MEASUREMENTS!
|
|
|
|
*****************************************************************************
|
2016-03-28 18:32:15 +03:00
|
|
|
|
2016-03-10 18:59:55 +03:00
|
|
|
EOF
|
2016-03-01 21:01:51 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
OPAL_VAR_SCOPE_POP
|
|
|
|
])
|