Skip to content

Commit

Permalink
Test UCX comms with Dask TCP and UCX protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Nov 13, 2023
1 parent dee27a5 commit 40d5471
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion python/raft-dask/raft_dask/test/test_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def test_comm_split(client):

@pytest.mark.ucx
@pytest.mark.parametrize("n_trials", [1, 5])
def test_send_recv(n_trials, client):
def test_send_recv_protocol_tcp(n_trials, client):

cb = Comms(comms_p2p=True, verbose=True)
cb.init()
Expand All @@ -287,6 +287,29 @@ def test_send_recv(n_trials, client):
assert list(map(lambda x: x.result(), dfs))


@pytest.mark.ucx
@pytest.mark.parametrize("n_trials", [1, 5])
def test_send_recv_protocol_ucx(n_trials, ucx_client):

cb = Comms(comms_p2p=True, verbose=True)
cb.init()

dfs = [
ucx_client.submit(
func_test_send_recv,
cb.sessionId,
n_trials,
pure=False,
workers=[w],
)
for w in cb.worker_addresses
]

wait(dfs, timeout=5)

assert list(map(lambda x: x.result(), dfs))


@pytest.mark.nccl
@pytest.mark.parametrize("n_trials", [1, 5])
def test_device_send_or_recv(n_trials, client):
Expand Down

0 comments on commit 40d5471

Please sign in to comment.