Skip to content

Commit

Permalink
Do not reset CUDA context after UCX tests (#8201)
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev authored Sep 25, 2023
1 parent b6333df commit e1387a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion distributed/comm/tests/test_ucx.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def test_ucx_deserialize(ucx_loop):
"g",
[
lambda cudf: cudf.Series([1, 2, 3]),
lambda cudf: cudf.Series([]),
lambda cudf: cudf.Series([], dtype=object),
lambda cudf: cudf.DataFrame([]),
lambda cudf: cudf.DataFrame([1]).head(0),
lambda cudf: cudf.DataFrame([1.0]).head(0),
Expand Down
11 changes: 0 additions & 11 deletions distributed/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2156,17 +2156,6 @@ def ucx_loop():
import distributed.comm.ucx

distributed.comm.ucx.ucp = None
# If the test created a context, clean it up.
# TODO: should we check if there's already a context _before_ the test runs?
# I think that would be useful.
from distributed.diagnostics.nvml import has_cuda_context

ctx = has_cuda_context()
if ctx.has_context:
import numba.cuda

ctx = numba.cuda.current_context()
ctx.device.reset()


def wait_for_log_line(
Expand Down

0 comments on commit e1387a0

Please sign in to comment.