1
1
Этот коммит содержится в:
Gilles Gouaillardet 2016-05-23 14:27:33 +09:00
родитель 5a8cbe5a8f
Коммит d5a2ac6f2f

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

@ -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_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOM
#ifdef 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_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOMIC_CAP
#ifdef 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)