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;