Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit e911391

Browse files
ggouaillardethjelmn
authored andcommitted
btl/openib: do not mix exp and non exp verbs
(cherry picked from open-mpi/ompi@994a627) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 86e5424 commit e911391

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,12 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
790790
}
791791
#endif
792792

793-
switch (openib_btl->device->ib_dev_attr.atomic_cap) {
793+
#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
794+
switch (openib_btl->device->ib_exp_dev_attr.exp_atomic_cap)
795+
#else
796+
switch (openib_btl->device->ib_dev_attr.atomic_cap)
797+
#endif
798+
{
794799
case IBV_ATOMIC_GLOB:
795800
openib_btl->super.btl_flags |= MCA_BTL_ATOMIC_SUPPORTS_GLOB;
796801
break;

opal/mca/btl/openib/connect/btl_openib_connect_udcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ static int udcm_rc_qp_create_one(udcm_module_t *m, mca_btl_base_endpoint_t* lcl_
13551355
init_attr.max_atomic_arg = sizeof (int64_t);
13561356

13571357
#if HAVE_DECL_IBV_EXP_ATOMIC_HCA_REPLY_BE
1358-
if (IBV_EXP_ATOMIC_HCA_REPLY_BE == m->btl->device->ib_dev_attr.atomic_cap) {
1358+
if (IBV_EXP_ATOMIC_HCA_REPLY_BE == m->btl->device->ib_exp_dev_attr.exp_atomic_cap) {
13591359
init_attr.exp_create_flags = IBV_EXP_QP_CREATE_ATOMIC_BE_REPLY;
13601360
init_attr.comp_mask |= IBV_EXP_QP_INIT_ATTR_CREATE_FLAGS;
13611361
}

0 commit comments

Comments
 (0)