e627c91227
This commit adds support for placing the send memory segment in a traditional shared memory segment when XPMEM is not available. The current default is to reserve 4MB for shared memory on each process. The latest benchmarks show vader performing better than sm on both Intel and AMD CPUs. For large messages vader will now use CMA if it is available (and XPMEM is not). cmr=v1.7.5:reviewer=jsquyres This commit was SVN r30123.
43 строки
1.4 KiB
Bash
43 строки
1.4 KiB
Bash
# -*- shell-script -*-
|
|
#
|
|
# Copyright (c) 2009 The University of Tennessee and The University
|
|
# of Tennessee Research Foundation. All rights
|
|
# reserved.
|
|
# Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
|
|
# Copyright (c) 2010-2012 IBM Corporation. All rights reserved.
|
|
# Copyright (c) 2013 Los Alamos National Security, LLC. All rights
|
|
# reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
# OMPI_CHECK_CMA(prefix, [action-if-found], [action-if-not-found])
|
|
# --------------------------------------------------------
|
|
# check if cma support is wanted.
|
|
AC_DEFUN([OMPI_CHECK_CMA],[
|
|
OPAL_VAR_SCOPE_PUSH([ompi_check_cma_happy ompi_check_cma_need_defs])
|
|
|
|
ompi_check_cma_happy="no"
|
|
AC_ARG_WITH([cma],
|
|
[AC_HELP_STRING([--with-cma],
|
|
[Build Cross Memory Attach support (default: no)])])
|
|
|
|
AC_MSG_CHECKING([if user requested CMA build])
|
|
if test "$with_cma" = "yes" ; then
|
|
ompi_check_cma_happy="yes"
|
|
AC_CHECK_FUNC(process_vm_readv, [ompi_check_cma_need_defs=0],
|
|
[ompi_check_cma_need_defs=1])
|
|
AC_DEFINE_UNQUOTED([OMPI_CMA_NEED_SYSCALL_DEFS],
|
|
[$ompi_check_cma_need_defs],
|
|
[Need CMA syscalls defined])
|
|
fi
|
|
AS_IF([test "$ompi_check_cma_happy" = "yes"],
|
|
[$2],
|
|
[$3])
|
|
|
|
OPAL_VAR_SCOPE_POP
|
|
])dnl
|