Skip to content

Commit

Permalink
fabtests: Add pytests for FI_MORE
Browse files Browse the repository at this point in the history
Test fi_rma_bw and fi_rdm_tagged_bw with flag FI_MORE.

Signed-off-by: Jessie Yang <[email protected]>
  • Loading branch information
jiaxiyan authored and shijin-aws committed Aug 22, 2024
1 parent b9beb2d commit 7821614
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fabtests/pytest/efa/test_rdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def test_rdm_tagged_bw_small_tx_rx(cmdline_args, completion_semantic, memory_typ
efa_run_client_server_test(cmdline_args_copy, "fi_rdm_tagged_bw -W 128", "short",
completion_semantic, memory_type, "all", completion_type=completion_type)

@pytest.mark.functional
def test_rdm_tagged_bw_use_fi_more(cmdline_args, completion_semantic, memory_type, message_size):
efa_run_client_server_test(cmdline_args, "fi_rdm_tagged_bw --use-fi-more",
"short", completion_semantic, memory_type, message_size)

@pytest.mark.parametrize("iteration_type",
[pytest.param("short", marks=pytest.mark.short),
pytest.param("standard", marks=pytest.mark.standard)])
Expand Down
10 changes: 10 additions & 0 deletions fabtests/pytest/efa/test_rma_bw.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,13 @@ def test_rma_bw_1G(cmdline_args, operation_type, completion_semantic):
efa_run_client_server_test(cmdline_args, command, 2,
completion_semantic=completion_semantic, message_size=1073741824,
memory_type="host_to_host", warmup_iteration_type=0, timeout=timeout)

@pytest.mark.functional
@pytest.mark.parametrize("operation_type", ["writedata", "write"])
def test_rma_bw_use_fi_more(cmdline_args, operation_type, completion_semantic, inject_message_size):
command = "fi_rma_bw -e rdm -j 0 --use-fi-more"
command = command + " -o " + operation_type
# rma_bw test with data verification takes longer to finish
timeout = max(540, cmdline_args.timeout)
efa_run_client_server_test(cmdline_args, command, "short", completion_semantic,
"host_to_host", inject_message_size, timeout=timeout)

0 comments on commit 7821614

Please sign in to comment.