@@ -253,35 +253,87 @@ ucc_tl_ucp_recv_cb(void *buffer, size_t msglen, ucc_memory_type_t mtype,
253
253
}
254
254
255
255
/* Non-Zero recv: if msglen == 0 then it is a no-op */
256
- static inline ucc_status_t ucc_tl_ucp_recv_nz (void * buffer , size_t msglen ,
257
- ucc_memory_type_t mtype ,
258
- ucc_rank_t dest_group_rank ,
259
- ucc_tl_ucp_team_t * team ,
260
- ucc_tl_ucp_task_t * task )
256
+ static inline ucc_status_t ucc_tl_ucp_recv_nz_mt (void * buffer , size_t msglen ,
257
+ ucc_memory_type_t mtype ,
258
+ ucc_rank_t dest_group_rank ,
259
+ ucc_tl_ucp_team_t * team ,
260
+ ucc_tl_ucp_task_t * task )
261
261
{
262
262
if (msglen == 0 ) {
263
263
task -> tagged .recv_posted ++ ;
264
264
ucc_atomic_add32 (& task -> tagged .recv_completed , 1 );
265
265
return UCC_OK ;
266
266
}
267
- return ucc_tl_ucp_recv_nb (buffer , msglen , mtype ,
268
- dest_group_rank , team , task );
267
+ return ucc_tl_ucp_recv_nb_mt (buffer , msglen , mtype , dest_group_rank , team ,
268
+ task );
269
+ }
270
+
271
+ /* Non-Zero recv: if msglen == 0 then it is a no-op */
272
+ static inline ucc_status_t ucc_tl_ucp_recv_nz_st (void * buffer , size_t msglen ,
273
+ ucc_memory_type_t mtype ,
274
+ ucc_rank_t dest_group_rank ,
275
+ ucc_tl_ucp_team_t * team ,
276
+ ucc_tl_ucp_task_t * task )
277
+ {
278
+ if (msglen == 0 ) {
279
+ task -> tagged .recv_posted ++ ;
280
+ task -> tagged .recv_completed ++ ;
281
+ return UCC_OK ;
282
+ }
283
+ return ucc_tl_ucp_recv_nb_st (buffer , msglen , mtype , dest_group_rank , team ,
284
+ task );
269
285
}
270
286
271
287
/* Non-Zero send: if msglen == 0 then it is a no-op */
272
- static inline ucc_status_t ucc_tl_ucp_send_nz (void * buffer , size_t msglen ,
273
- ucc_memory_type_t mtype ,
274
- ucc_rank_t dest_group_rank ,
275
- ucc_tl_ucp_team_t * team ,
276
- ucc_tl_ucp_task_t * task )
288
+ static inline ucc_status_t ucc_tl_ucp_send_nz_mt (void * buffer , size_t msglen ,
289
+ ucc_memory_type_t mtype ,
290
+ ucc_rank_t dest_group_rank ,
291
+ ucc_tl_ucp_team_t * team ,
292
+ ucc_tl_ucp_task_t * task )
277
293
{
278
294
if (msglen == 0 ) {
279
295
task -> tagged .send_posted ++ ;
280
296
ucc_atomic_add32 (& task -> tagged .send_completed , 1 );
281
297
return UCC_OK ;
282
298
}
283
- return ucc_tl_ucp_send_nb (buffer , msglen , mtype ,
284
- dest_group_rank , team , task );
299
+ return ucc_tl_ucp_send_nb_mt (buffer , msglen , mtype , dest_group_rank , team ,
300
+ task );
301
+ }
302
+
303
+ /* Non-Zero send: if msglen == 0 then it is a no-op */
304
+ static inline ucc_status_t ucc_tl_ucp_send_nz_st (void * buffer , size_t msglen ,
305
+ ucc_memory_type_t mtype ,
306
+ ucc_rank_t dest_group_rank ,
307
+ ucc_tl_ucp_team_t * team ,
308
+ ucc_tl_ucp_task_t * task )
309
+ {
310
+ if (msglen == 0 ) {
311
+ task -> tagged .send_posted ++ ;
312
+ task -> tagged .send_completed ++ ;
313
+ return UCC_OK ;
314
+ }
315
+ return ucc_tl_ucp_send_nb_st (buffer , msglen , mtype , dest_group_rank , team ,
316
+ task );
317
+ }
318
+
319
+ static inline ucc_status_t ucc_tl_ucp_send_nz (void * buffer , size_t msglen ,
320
+ ucc_memory_type_t mtype ,
321
+ ucc_rank_t dest_group_rank ,
322
+ ucc_tl_ucp_team_t * team ,
323
+ ucc_tl_ucp_task_t * task )
324
+ {
325
+ return UCC_TL_UCP_TEAM_CTX (team )-> callbacks .ucc_tl_ucp_send_nz (
326
+ buffer , msglen , mtype , dest_group_rank , team , task );
327
+ }
328
+
329
+ static inline ucc_status_t ucc_tl_ucp_recv_nz (void * buffer , size_t msglen ,
330
+ ucc_memory_type_t mtype ,
331
+ ucc_rank_t dest_group_rank ,
332
+ ucc_tl_ucp_team_t * team ,
333
+ ucc_tl_ucp_task_t * task )
334
+ {
335
+ return UCC_TL_UCP_TEAM_CTX (team )-> callbacks .ucc_tl_ucp_recv_nz (
336
+ buffer , msglen , mtype , dest_group_rank , team , task );
285
337
}
286
338
287
339
static inline ucc_status_t
0 commit comments