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

Commit 6389d8c

Browse files
committed
Merge pull request #814 from hjelmn/2.x_mlx5_enable_atomics
mlx5: need to set comp_mask to get experimental verbs attributes
2 parents e7ba103 + b6c5bab commit 6389d8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,7 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
16501650
goto error;
16511651
}
16521652
#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
1653+
device->ib_exp_dev_attr.comp_mask = IBV_EXP_DEVICE_ATTR_RESERVED - 1;
16531654
if(ibv_exp_query_device(device->ib_dev_context, &device->ib_exp_dev_attr)){
16541655
BTL_ERROR(("error obtaining device attributes for %s errno says %s",
16551656
ibv_get_device_name(device->ib_dev), strerror(errno)));

0 commit comments

Comments
 (0)