openib: check more thoroughly for XRC
Some systems have XRC symbols in their libibverbs libraries, but do not have the appropriate XRC bits in their devel headers (cough cough RHEL 6.5 libibverbs-rocee-*.x86-64.rpm cough cough). So expand the XRC config checks to ensure that we can actually find one of the XRC constants that we need to compile XRC code before ruling that we can actually build XRC support.
Этот коммит содержится в:
родитель
f4693c9afd
Коммит
04bec4475e
@ -10,7 +10,7 @@
|
||||
# University of Stuttgart. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
# Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2006-2011 Los Alamos National Security, LLC. All rights
|
||||
# reserved.
|
||||
# Copyright (c) 2006-2009 Mellanox Technologies. All rights reserved.
|
||||
@ -152,9 +152,15 @@ AC_DEFUN([OPAL_CHECK_OPENFABRICS],[
|
||||
# ibv_create_xrc_rcv_qp was added in OFED 1.3
|
||||
# ibv_cmd_open_xrcd (aka XRC Domains) was added in OFED 3.12
|
||||
if test "$enable_connectx_xrc" = "yes"; then
|
||||
AC_CHECK_FUNCS([ibv_create_xrc_rcv_qp ibv_cmd_open_xrcd], [$1_have_xrc=1])
|
||||
$1_have_xrc=1
|
||||
AC_CHECK_FUNCS([ibv_create_xrc_rcv_qp ibv_cmd_open_xrcd],
|
||||
[], [$1_have_xrc=0])
|
||||
AC_CHECK_DECLS([IBV_SRQT_XRC],
|
||||
[], [$1_have_xrc=0])
|
||||
[#include <infiniband/verbs.h>])
|
||||
fi
|
||||
if test "$enable_connectx_xrc" = "yes"; then
|
||||
if test "$enable_connectx_xrc" = "yes" \
|
||||
&& test $$1_have_xrc -eq 1; then
|
||||
AC_CHECK_FUNCS([ibv_cmd_open_xrcd], [$1_have_xrc_domains=1])
|
||||
fi
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user