Skip to content

Commit

Permalink
fabtest/pytest: Skip rma_pingpong write tests
Browse files Browse the repository at this point in the history
The current logic to check completion for write in rma_pingpong is
not reliable on platforms without true RDMA write cap.

Signed-off-by: Jessie Yang <[email protected]>
  • Loading branch information
jiaxiyan authored and shijin-aws committed Jun 18, 2024
1 parent 6bf44b2 commit 25cab11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
12 changes: 3 additions & 9 deletions fabtests/pytest/efa/test_rma_pingpong.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,27 @@ def rma_pingpong_message_size(request):
return request.param


@pytest.mark.parametrize("operation_type", ["writedata", "write"])
@pytest.mark.parametrize("operation_type", ["writedata"])
@pytest.mark.parametrize("iteration_type",
[pytest.param("short", marks=pytest.mark.short),
pytest.param("standard", marks=pytest.mark.standard)])
def test_rma_pingpong(cmdline_args, iteration_type, operation_type, completion_semantic, memory_type):
if memory_type != "host_to_host" and operation_type == "write":
pytest.skip("no hmem memory support for pingpong_rma write test")
command = "fi_rma_pingpong -e rdm"
command = command + " -o " + operation_type + " " + perf_progress_model_cli
efa_run_client_server_test(cmdline_args, command, iteration_type, completion_semantic, memory_type, "all")


@pytest.mark.functional
@pytest.mark.parametrize("operation_type", ["writedata", "write"])
@pytest.mark.parametrize("operation_type", ["writedata"])
def test_rma_pingpong_range(cmdline_args, operation_type, completion_semantic, rma_pingpong_message_size, memory_type):
if memory_type != "host_to_host" and operation_type == "write":
pytest.skip("no hmem memory support for pingpong_rma write test")
command = "fi_rma_pingpong -e rdm"
command = command + " -o " + operation_type
efa_run_client_server_test(cmdline_args, command, "short", completion_semantic, memory_type, rma_pingpong_message_size)


@pytest.mark.functional
@pytest.mark.parametrize("operation_type", ["writedata", "write"])
@pytest.mark.parametrize("operation_type", ["writedata"])
def test_rma_pingpong_range_no_inject(cmdline_args, operation_type, completion_semantic, rma_pingpong_message_size, memory_type):
if memory_type != "host_to_host" and operation_type == "write":
pytest.skip("no hmem memory support for pingpong_rma write test")
command = "fi_rma_pingpong -e rdm -j 0"
command = command + " -o " + operation_type
efa_run_client_server_test(cmdline_args, command, "short", completion_semantic, "host_to_host", rma_pingpong_message_size)
8 changes: 2 additions & 6 deletions fabtests/pytest/shm/test_rma_pingpong.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,18 @@ def rma_pingpong_message_size(request):
return request.param


@pytest.mark.parametrize("operation_type", ["writedata", "write"])
@pytest.mark.parametrize("operation_type", ["writedata"])
@pytest.mark.parametrize("iteration_type",
[pytest.param("short", marks=pytest.mark.short),
pytest.param("standard", marks=pytest.mark.standard)])
def test_rma_pingpong(cmdline_args, iteration_type, operation_type, completion_semantic, memory_type):
if memory_type != "host_to_host" and operation_type == "write":
pytest.skip("no hmem memory support for pingpong_rma write test")
command = "fi_rma_pingpong -e rdm"
command = command + " -o " + operation_type + " " + perf_progress_model_cli
shm_run_client_server_test(cmdline_args, command, iteration_type, completion_semantic, memory_type, "all")

@pytest.mark.functional
@pytest.mark.parametrize("operation_type", ["writedata", "write"])
@pytest.mark.parametrize("operation_type", ["writedata"])
def test_rma_pingpong_range(cmdline_args, operation_type, completion_semantic, rma_pingpong_message_size, memory_type):
if memory_type != "host_to_host" and operation_type == "write":
pytest.skip("no hmem memory support for pingpong_rma write test")
command = "fi_rma_pingpong -e rdm"
command = command + " -o " + operation_type
shm_run_client_server_test(cmdline_args, command, "short", completion_semantic, memory_type, rma_pingpong_message_size)

0 comments on commit 25cab11

Please sign in to comment.