Skip to content

Commit

Permalink
fabtests/benchmarks: Fail rma_pingpong with -o write and HMEM
Browse files Browse the repository at this point in the history
The write benchmark can't be used with hmem because it requires polling
the receive buffer.

Signed-off-by: Eric Raut <[email protected]>
  • Loading branch information
rauteric authored and shijin-aws committed Jan 2, 2024
1 parent d31e2f1 commit 5a6220d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fabtests/benchmarks/rma_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}

if (opts.iface != FI_HMEM_SYSTEM && opts.rma_op == FT_RMA_WRITE) {
FT_ERR("rma_pingpong write test does not support HMEM");
return EXIT_FAILURE;
}

/* data validation on read and write ops requires delivery_complete semantics. */
if (opts.rma_op != FT_RMA_WRITEDATA && ft_check_opts(FT_OPT_VERIFY_DATA))
hints->tx_attr->op_flags |= FI_DELIVERY_COMPLETE;
Expand Down

0 comments on commit 5a6220d

Please sign in to comment.