Merge pull request #1199 from hjelmn/mlx5_attr_check
btl/openib: add check for IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG
Этот коммит содержится в:
Коммит
bf5b2bb74f
@ -398,7 +398,7 @@ AC_DEFUN([OPAL_CHECK_EXP_VERBS],[
|
||||
AC_MSG_RESULT([no])])
|
||||
|
||||
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],
|
||||
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>])
|
||||
AS_IF([test '$have_struct_ibv_exp_send_wr' = 1], [$1], [$2])
|
||||
OPAL_VAR_SCOPE_POP
|
||||
|
@ -1337,8 +1337,10 @@ static int udcm_rc_qp_create_one(udcm_module_t *m, mca_btl_base_endpoint_t* lcl_
|
||||
init_attr.comp_mask = IBV_EXP_QP_INIT_ATTR_PD;
|
||||
init_attr.pd = m->btl->device->ib_pd;
|
||||
|
||||
#if HAVE_DECL_IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG
|
||||
init_attr.comp_mask |= IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG;
|
||||
init_attr.max_atomic_arg = sizeof (int64_t);
|
||||
#endif
|
||||
|
||||
#if HAVE_DECL_IBV_EXP_ATOMIC_HCA_REPLY_BE
|
||||
if (IBV_EXP_ATOMIC_HCA_REPLY_BE == m->btl->device->ib_dev_attr.atomic_cap) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user