From b4f9b7423d21e3b65350e00add7952f45d3af3d1 Mon Sep 17 00:00:00 2001 From: Tomislav Janjusic Date: Wed, 7 Oct 2020 05:47:56 +0300 Subject: [PATCH] Call fence on all threads during 1 win per thread test --- src/rmamt_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rmamt_bw.c b/src/rmamt_bw.c index 0e644bb..a629036 100644 --- a/src/rmamt_bw.c +++ b/src/rmamt_bw.c @@ -212,7 +212,7 @@ int main(int argc,char *argv[]) args[i].min_size = min_size; args[i].win = rmamt_win_per_thread ? win[i] : win[0]; args[i].group = group; - args[i].all_sync = (RMAMT_ALL_FLUSH == rmamt_sync); + args[i].all_sync = (RMAMT_ALL_FLUSH == rmamt_sync) || (RMAMT_FENCE == rmamt_sync); args[i].target = !(rank & 1); args[i].comm = leader_comm;