Skip to content

Commit d5a2ac6

Browse files
committed
btl/openib: fix #if vs #ifdef
1 parent 5a8cbe5 commit d5a2ac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
781781
#if HAVE_DECL_IBV_ATOMIC_HCA
782782
openib_btl->atomic_ops_be = false;
783783

784-
#if HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOM
784+
#ifdef HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOM
785785
/* check that 8-byte atomics are supported */
786786
if (!(device->ib_exp_dev_attr.ext_atom.log_atomic_arg_sizes & (1<<3ull))) {
787787
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,
791791
}
792792
#endif
793793

794-
#if HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOMIC_CAP
794+
#ifdef HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOMIC_CAP
795795
switch (openib_btl->device->ib_exp_dev_attr.exp_atomic_cap)
796796
#else
797797
switch (openib_btl->device->ib_dev_attr.atomic_cap)

0 commit comments

Comments
 (0)