From e31b0c521104b73069eac78b9c033c41f3cf37b7 Mon Sep 17 00:00:00 2001 From: "Mamzi Bayatpour mbayatpour@nvidia.com ()" Date: Wed, 6 Apr 2022 14:50:08 -0700 Subject: [PATCH] For the bandwidth test, set all_sync based on -w option Signed-off-by: Mamzi Bayatpour Co-authored-by: Tomislav Janjusic > --- 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 a629036..17db5ad 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) || (RMAMT_FENCE == rmamt_sync); + args[i].all_sync = rmamt_win_per_thread ? 1 : 0; args[i].target = !(rank & 1); args[i].comm = leader_comm;