@@ -63,6 +63,7 @@ int mca_btl_ofi_afop(struct mca_btl_base_module_t *btl, struct mca_btl_base_endp
63
63
mca_btl_ofi_rdma_completion_t * comp = NULL ;
64
64
mca_btl_ofi_context_t * ofi_context ;
65
65
66
+ MCA_BTL_OFI_NUM_RDMA_INC (ofi_btl );
66
67
ofi_context = get_ofi_context (ofi_btl );
67
68
68
69
if (flags & MCA_BTL_ATOMIC_FLAG_32BIT ) {
@@ -87,16 +88,16 @@ int mca_btl_ofi_afop(struct mca_btl_base_module_t *btl, struct mca_btl_base_endp
87
88
fi_datatype , fi_op , & comp -> comp_ctx );
88
89
89
90
if (rc == - FI_EAGAIN ) {
91
+ MCA_BTL_OFI_NUM_RDMA_DEC (ofi_btl );
90
92
opal_free_list_return (comp -> base .my_list , (opal_free_list_item_t * ) comp );
91
93
return OPAL_ERR_OUT_OF_RESOURCE ;
92
94
} else if (rc < 0 ) {
95
+ MCA_BTL_OFI_NUM_RDMA_DEC (ofi_btl );
93
96
opal_free_list_return (comp -> base .my_list , (opal_free_list_item_t * ) comp );
94
97
BTL_ERROR (("fi_fetch_atomic failed with rc=%d (%s)" , rc , fi_strerror (- rc )));
95
98
MCA_BTL_OFI_ABORT ();
96
99
}
97
100
98
- MCA_BTL_OFI_NUM_RDMA_INC (ofi_btl );
99
-
100
101
return OPAL_SUCCESS ;
101
102
}
102
103
@@ -114,6 +115,7 @@ int mca_btl_ofi_aop(struct mca_btl_base_module_t *btl, mca_btl_base_endpoint_t *
114
115
mca_btl_ofi_rdma_completion_t * comp = NULL ;
115
116
mca_btl_ofi_context_t * ofi_context ;
116
117
118
+ MCA_BTL_OFI_NUM_RDMA_INC (ofi_btl );
117
119
ofi_context = get_ofi_context (ofi_btl );
118
120
119
121
if (flags & MCA_BTL_ATOMIC_FLAG_32BIT ) {
@@ -136,16 +138,16 @@ int mca_btl_ofi_aop(struct mca_btl_base_module_t *btl, mca_btl_base_endpoint_t *
136
138
fi_datatype , fi_op , & comp -> comp_ctx );
137
139
138
140
if (rc == - FI_EAGAIN ) {
141
+ MCA_BTL_OFI_NUM_RDMA_DEC (ofi_btl );
139
142
opal_free_list_return (comp -> base .my_list , (opal_free_list_item_t * ) comp );
140
143
return OPAL_ERR_OUT_OF_RESOURCE ;
141
144
} else if (rc < 0 ) {
145
+ MCA_BTL_OFI_NUM_RDMA_DEC (ofi_btl );
142
146
opal_free_list_return (comp -> base .my_list , (opal_free_list_item_t * ) comp );
143
147
BTL_ERROR (("fi_atomic failed with rc=%d (%s)" , rc , fi_strerror (- rc )));
144
148
MCA_BTL_OFI_ABORT ();
145
149
}
146
150
147
- MCA_BTL_OFI_NUM_RDMA_INC (ofi_btl );
148
-
149
151
return OPAL_SUCCESS ;
150
152
}
151
153
@@ -165,6 +167,7 @@ int mca_btl_ofi_acswap(struct mca_btl_base_module_t *btl, struct mca_btl_base_en
165
167
mca_btl_ofi_endpoint_t * btl_endpoint = (mca_btl_ofi_endpoint_t * ) endpoint ;
166
168
mca_btl_ofi_context_t * ofi_context ;
167
169
170
+ MCA_BTL_OFI_NUM_RDMA_INC (ofi_btl );
168
171
ofi_context = get_ofi_context (ofi_btl );
169
172
170
173
if (flags & MCA_BTL_ATOMIC_FLAG_32BIT ) {
@@ -188,15 +191,15 @@ int mca_btl_ofi_acswap(struct mca_btl_base_module_t *btl, struct mca_btl_base_en
188
191
fi_datatype , FI_CSWAP , & comp -> comp_ctx );
189
192
190
193
if (rc == - FI_EAGAIN ) {
194
+ MCA_BTL_OFI_NUM_RDMA_DEC (ofi_btl );
191
195
opal_free_list_return (comp -> base .my_list , (opal_free_list_item_t * ) comp );
192
196
return OPAL_ERR_OUT_OF_RESOURCE ;
193
197
} else if (rc < 0 ) {
198
+ MCA_BTL_OFI_NUM_RDMA_DEC (ofi_btl );
194
199
opal_free_list_return (comp -> base .my_list , (opal_free_list_item_t * ) comp );
195
200
BTL_ERROR (("fi_compare_atomic failed with rc=%d (%s)" , rc , fi_strerror (- rc )));
196
201
MCA_BTL_OFI_ABORT ();
197
202
}
198
203
199
- MCA_BTL_OFI_NUM_RDMA_INC (ofi_btl );
200
-
201
204
return OPAL_SUCCESS ;
202
205
}
0 commit comments