1010 *                         University of Stuttgart.  All rights reserved. 
1111 * Copyright (c) 2004-2005 The Regents of the University of California. 
1212 *                         All rights reserved. 
13-  * Copyright (c) 2006-2015  Cisco Systems, Inc.  All rights reserved. 
13+  * Copyright (c) 2006-2016  Cisco Systems, Inc.  All rights reserved. 
1414 * Copyright (c) 2006-2015 Mellanox Technologies. All rights reserved. 
1515 * Copyright (c) 2006-2015 Los Alamos National Security, LLC.  All rights 
1616 *                         reserved. 
@@ -780,7 +780,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
780780#if  HAVE_DECL_IBV_ATOMIC_HCA 
781781            openib_btl -> atomic_ops_be  =  false;
782782
783- #if   HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOM 
783+ #ifdef   HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOM 
784784            /* check that 8-byte atomics are supported */ 
785785            if  (!(device -> ib_exp_dev_attr .ext_atom .log_atomic_arg_sizes  &  (1 <<3ull ))) {
786786                openib_btl -> super .btl_flags  &= ~MCA_BTL_FLAGS_ATOMIC_FOPS ;
@@ -790,7 +790,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
790790            }
791791#endif 
792792
793- #if    HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOMIC_CAP 
793+ #ifdef    HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXP_ATOMIC_CAP 
794794            switch  (openib_btl -> device -> ib_exp_dev_attr .exp_atomic_cap )
795795#else 
796796            switch  (openib_btl -> device -> ib_dev_attr .atomic_cap )
@@ -2125,7 +2125,6 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
21252125        {
21262126            /* we need to read this MCA param at this point in case someone 
21272127             * altered it via MPI_T */ 
2128-             int  index ;
21292128            mca_base_var_source_t  source ;
21302129
21312130            if  (OPAL_SUCCESS  !=  (ret  =  get_var_source  ("receive_queues" , & source ))) {
0 commit comments