Skip to content

Commit 58c678f

Browse files
committed
fabtests/benchmark_shared: bandwidth_rma: force sync after each warmup iteration
Modify bandwidth_rma() to synchronize after every warmup iteration instead of only at window boundaries. This ensures proper warmup of the server->client connection path for unidirectinal mode The writedata test asymmetry (client sends many writes, server replies with single send per window) means only the client->server path gets warmed up during normal iterations. Forcing sync during warmup ensures both directions are properly established before timing begins. Signed-off-by: Alexey Novikov <[email protected]>
1 parent 4c5e11d commit 58c678f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fabtests/benchmarks/benchmark_shared.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ int bandwidth_rma(enum ft_rma_opcodes rma_op, struct fi_rma_iov *remote)
767767
if (ret)
768768
return ret;
769769

770-
if (++j == opts.window_size) {
770+
if (++j == opts.window_size || i < opts.warmup_iterations) {
771771
ret = bw_rma_comp(rma_op, j);
772772
if (ret)
773773
return ret;

0 commit comments

Comments
 (0)