1
1

simplify the way IBV_ACCESS_SO is discovered

This commit was SVN r24409.
Этот коммит содержится в:
Donald Kerr 2011-02-17 04:28:56 +00:00
родитель 51cf0a16c3
Коммит 995d46344c
4 изменённых файлов: 5 добавлений и 18 удалений

Просмотреть файл

@ -14,7 +14,7 @@
# Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
# reserved.
# Copyright (c) 2006-2009 Mellanox Technologies. All rights reserved.
# Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
@ -163,7 +163,7 @@ dnl [enable_openib_ibcm="$enableval"], [enable_openib_ibc
# If we have the openib stuff available, find out what we've got
AS_IF([test "$ompi_check_openib_happy" = "yes"],
[AC_CHECK_DECLS([IBV_EVENT_CLIENT_REREGISTER], [], [],
[AC_CHECK_DECLS([IBV_EVENT_CLIENT_REREGISTER, IBV_ACCESS_SO], [], [],
[#include <infiniband/verbs.h>])
AC_CHECK_FUNCS([ibv_get_device_list ibv_resize_cq])

Просмотреть файл

@ -530,7 +530,7 @@ static int openib_reg_mr(void *reg_data, void *base, size_t size,
enum ibv_access_flags access_flag = IBV_ACCESS_LOCAL_WRITE |
IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_REMOTE_READ;
#if defined(HAVE_IBV_ACCESS_SO)
#if HAVE_DECL_IBV_ACCESS_SO
if (reg->flags & MCA_MPOOL_FLAGS_SO_MEM) {
access_flag |= IBV_ACCESS_SO;
}

Просмотреть файл

@ -926,7 +926,7 @@ void mca_btl_openib_endpoint_connect_eager_rdma(
if(NULL == headers_buf)
goto unlock_rdma_local;
#if defined(HAVE_IBV_ACCESS_SO)
#if HAVE_DECL_IBV_ACCESS_SO
/* Solaris implements the Relaxed Ordering feature defined in the
PCI Specification. With this in mind any memory region which
relies on a buffer being written in a specific order, for

Просмотреть файл

@ -35,7 +35,7 @@ AC_DEFUN([MCA_ompi_btl_openib_POST_CONFIG], [
AC_DEFUN([MCA_ompi_btl_openib_CONFIG],[
AC_CONFIG_FILES([ompi/mca/btl/openib/Makefile])
OPAL_VAR_SCOPE_PUSH([cpcs have_threads have_ibv_access_so])
OPAL_VAR_SCOPE_PUSH([cpcs have_threads])
cpcs="oob"
OMPI_CHECK_OPENIB([btl_openib],
@ -79,19 +79,6 @@ AC_DEFUN([MCA_ompi_btl_openib_CONFIG],[
AC_MSG_CHECKING([which openib btl cpcs will be built])
AC_MSG_RESULT([$cpcs])])
# check for Solaris specific memory access flag
AS_IF([test "$btl_openib_happy" = "yes"],
[if test "`echo $build_os | $GREP solaris`"; then
AC_TRY_COMPILE([#include <infiniband/verbs.h>],
[int flag = IBV_ACCESS_SO;],
[have_ibv_access_so="yes"
AC_DEFINE_UNQUOTED([HAVE_IBV_ACCESS_SO],
1,[openib define HAVE_IBV_ACCESS_SO])],
[have_ibv_access_so="no"])
AC_MSG_CHECKING([for IBV_ACCESS_SO in Solaris])
AC_MSG_RESULT([$have_ibv_access_so])
fi])
# Enable openib device failover. It is disabled by default.
AC_ARG_ENABLE([btl-openib-failover],
[AC_HELP_STRING([--enable-btl-openib-failover],