@@ -185,7 +185,7 @@ static int recv_nb(struct dte_data_representation_t data,
185
185
if (NULL == ec_h .handle && -1 != ec_h .rank ) {
186
186
fprintf (stderr ,"***Error in hcolrte_rml_recv_nb: wrong null argument: "
187
187
"ec_h.handle = %p, ec_h.rank = %d\n" ,ec_h .handle ,ec_h .rank );
188
- return 1 ;
188
+ return HCOLL_ERROR ;
189
189
}
190
190
assert (HCOL_DTE_IS_INLINE (data ));
191
191
/*do inline nb recv*/
@@ -195,7 +195,7 @@ static int recv_nb(struct dte_data_representation_t data,
195
195
if (!buffer && !HCOL_DTE_IS_ZERO (data )) {
196
196
fprintf (stderr , "***Error in hcolrte_rml_recv_nb: buffer pointer is NULL"
197
197
" for non DTE_ZERO INLINE data representation\n" );
198
- return 1 ;
198
+ return HCOLL_ERROR ;
199
199
}
200
200
size = (size_t )data .rep .in_line_rep .data_handle .in_line .packed_size * count /8 ;
201
201
@@ -204,7 +204,7 @@ static int recv_nb(struct dte_data_representation_t data,
204
204
if (MCA_PML_CALL (irecv (buffer ,size ,& (ompi_mpi_unsigned_char .dt ),ec_h .rank ,
205
205
tag ,comm ,& ompi_req )))
206
206
{
207
- return 1 ;
207
+ return HCOLL_ERROR ;
208
208
}
209
209
req -> data = (void * )ompi_req ;
210
210
req -> status = HCOLRTE_REQUEST_ACTIVE ;
@@ -226,7 +226,7 @@ static int send_nb( dte_data_representation_t data,
226
226
if (! ec_h .handle ) {
227
227
fprintf (stderr ,"***Error in hcolrte_rml_send_nb: wrong null argument: "
228
228
"ec_h.handle = %p, ec_h.rank = %d\n" ,ec_h .handle ,ec_h .rank );
229
- return 1 ;
229
+ return HCOLL_ERROR ;
230
230
}
231
231
assert (HCOL_DTE_IS_INLINE (data ));
232
232
/*do inline nb recv*/
@@ -235,15 +235,15 @@ static int send_nb( dte_data_representation_t data,
235
235
if (!buffer && !HCOL_DTE_IS_ZERO (data )) {
236
236
fprintf (stderr , "***Error in hcolrte_rml_send_nb: buffer pointer is NULL"
237
237
" for non DTE_ZERO INLINE data representation\n" );
238
- return 1 ;
238
+ return HCOLL_ERROR ;
239
239
}
240
240
size = (size_t )data .rep .in_line_rep .data_handle .in_line .packed_size * count /8 ;
241
241
HCOL_VERBOSE (30 ,"PML_ISEND: dest = %d: buf = %p: size = %u: comm = %p" ,
242
242
ec_h .rank , buffer , (unsigned int )size , (void * )comm );
243
243
if (MCA_PML_CALL (isend (buffer ,size ,& (ompi_mpi_unsigned_char .dt ),ec_h .rank ,
244
244
tag ,MCA_PML_BASE_SEND_STANDARD ,comm ,& ompi_req )))
245
245
{
246
- return 1 ;
246
+ return HCOLL_ERROR ;
247
247
}
248
248
req -> data = (void * )ompi_req ;
249
249
req -> status = HCOLRTE_REQUEST_ACTIVE ;
0 commit comments