@@ -826,7 +826,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
826826
827827#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
828828 /* check that 8-byte atomics are supported */
829- if (!(device -> dev_attr .ext_atom .log_atomic_arg_sizes & (1 <<3ull ))) {
829+ if (!(device -> ib_exp_dev_attr .ext_atom .log_atomic_arg_sizes & (1 <<3ull ))) {
830830 openib_btl -> super .btl_flags &= ~MCA_BTL_FLAGS_ATOMIC_FOPS ;
831831 openib_btl -> super .btl_atomic_flags = 0 ;
832832 openib_btl -> super .btl_atomic_fop = NULL ;
@@ -1654,18 +1654,17 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
16541654 goto error ;
16551655 }
16561656#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
1657- if (ibv_exp_query_device (device -> ib_dev_context , & device -> ib_dev_attr )){
1657+ if (ibv_exp_query_device (device -> ib_dev_context , & device -> ib_exp_dev_attr )){
16581658 BTL_ERROR (("error obtaining device attributes for %s errno says %s" ,
16591659 ibv_get_device_name (device -> ib_dev ), strerror (errno )));
16601660 goto error ;
16611661 }
1662- #else
1662+ #endif
16631663 if (ibv_query_device (device -> ib_dev_context , & device -> ib_dev_attr )){
16641664 BTL_ERROR (("error obtaining device attributes for %s errno says %s" ,
16651665 ibv_get_device_name (device -> ib_dev ), strerror (errno )));
16661666 goto error ;
16671667 }
1668- #endif
16691668 /* If mca_btl_if_include/exclude were specified, get usable ports */
16701669 allowed_ports = (int * )malloc (device -> ib_dev_attr .phys_port_cnt * sizeof (int ));
16711670 if (NULL == allowed_ports ) {
0 commit comments