1
1

Merge pull request #1619 from hjelmn/ext_verbs_fix

btl/openib: fix check for exp verbs struct members
Этот коммит содержится в:
Nathan Hjelm 2016-05-03 14:16:17 -06:00
родитель c110d96687 a65af6d079
Коммит 4a740e9f27
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -412,6 +412,8 @@ AC_DEFUN([OPAL_CHECK_EXP_VERBS],[
AC_DEFINE_UNQUOTED([HAVE_EXP_VERBS], [$have_struct_ibv_exp_send_wr], [Experimental verbs])
AC_CHECK_DECLS([IBV_EXP_ATOMIC_HCA_REPLY_BE, IBV_EXP_QP_CREATE_ATOMIC_BE_REPLY, ibv_exp_create_qp, ibv_exp_query_device, IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG],
[], [], [#include <infiniband/verbs_exp.h>])
AC_CHECK_MEMBERS([struct ibv_exp_device_attr.ext_atom, struct ibv_exp_device_attr.ext_atomic_cap], [], [],
[[#include <infiniband/verbs_exp.h>]])
AS_IF([test '$have_struct_ibv_exp_send_wr' = 1], [$1], [$2])
OPAL_VAR_SCOPE_POP
])dnl

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

@ -781,7 +781,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
#if HAVE_DECL_IBV_ATOMIC_HCA
openib_btl->atomic_ops_be = false;
#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
#if HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOM
/* check that 8-byte atomics are supported */
if (!(device->ib_exp_dev_attr.ext_atom.log_atomic_arg_sizes & (1<<3ull))) {
openib_btl->super.btl_flags &= ~MCA_BTL_FLAGS_ATOMIC_FOPS;
@ -791,7 +791,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
}
#endif
#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
#if HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOMIC_CAP
switch (openib_btl->device->ib_exp_dev_attr.exp_atomic_cap)
#else
switch (openib_btl->device->ib_dev_attr.atomic_cap)