Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fabtests: Test max inject size #9519

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions fabtests/benchmarks/benchmark_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int pingpong(void)
if (i == opts.warmup_iterations)
ft_start();

if (opts.transfer_size < inject_size)
if (opts.transfer_size <= inject_size)
ret = ft_inject(ep, remote_fi_addr, opts.transfer_size);
else
ret = ft_tx(ep, remote_fi_addr, opts.transfer_size, &tx_ctx);
Expand All @@ -124,7 +124,7 @@ int pingpong(void)
if (ret)
return ret;

if (opts.transfer_size < inject_size)
if (opts.transfer_size <= inject_size)
ret = ft_inject(ep, remote_fi_addr, opts.transfer_size);
else
ret = ft_tx(ep, remote_fi_addr, opts.transfer_size, &tx_ctx);
Expand Down Expand Up @@ -347,7 +347,7 @@ int bandwidth_rma(enum ft_rma_opcodes rma_op, struct fi_rma_iov *remote)
}
switch (rma_op) {
case FT_RMA_WRITE:
if (opts.transfer_size < inject_size) {
if (opts.transfer_size <= inject_size) {
ret = ft_post_rma_inject(FT_RMA_WRITE, tx_buf + offset,
opts.transfer_size, remote);
} else {
Expand All @@ -368,7 +368,7 @@ int bandwidth_rma(enum ft_rma_opcodes rma_op, struct fi_rma_iov *remote)
rx_seq++;

} else {
if (opts.transfer_size < inject_size) {
if (opts.transfer_size <= inject_size) {
ret = ft_post_rma_inject(FT_RMA_WRITEDATA,
tx_buf + offset,
opts.transfer_size,
Expand Down