From 7202cc62e44884ba367637a537876083a0df2232 Mon Sep 17 00:00:00 2001 From: "Paul H. Hargrove" Date: Tue, 24 Aug 2021 23:05:25 -0700 Subject: [PATCH] coll: restore LongAsync semantics via nbi_ff This commit uses the new `gasneti_{begin,end}_nbi_ff()` facility to restore the "fire-and-forget" semantics of the collectives internal routine `gasnete_tm_p2p_counting_putAsync()`. --- extended-ref/coll/gasnet_refcoll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extended-ref/coll/gasnet_refcoll.c b/extended-ref/coll/gasnet_refcoll.c index 834a08b7e..41c2f5de8 100644 --- a/extended-ref/coll/gasnet_refcoll.c +++ b/extended-ref/coll/gasnet_refcoll.c @@ -1134,9 +1134,10 @@ void gasnete_tm_p2p_counting_putAsync(gasnete_coll_op_t *op, gex_Rank_t dstrank, gasneti_assert(nbytes <= gex_AM_LUBRequestLong()); - // TODO-EX: restore "Async" + gasneti_begin_nbi_ff(GASNETI_THREAD_PASS_ALONE); gex_AM_RequestLong(op->e_tm, dstrank, gasneti_handleridx(gasnete_coll_p2p_put_and_advance_reqh), - src, nbytes, dst, GEX_EVENT_NOW, flags, team_id, seq_num, idx); + src, nbytes, dst, GEX_EVENT_GROUP, flags, team_id, seq_num, idx); + gasneti_end_nbi_ff(GASNETI_THREAD_PASS_ALONE); } /* Send data to be buffered by the recipient */