Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Oct 23, 2023
1 parent be4e1cc commit 977de1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dask_cuda/tests/test_dask_cuda_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_cuda_visible_devices_and_memory_limit_and_nthreads(loop): # noqa: F811
str(nthreads),
"--no-dashboard",
"--worker-class",
"dask_cuda.utils.MockWorker",
"dask_cuda.utils_test.MockWorker",
]
):
with Client("127.0.0.1:9359", loop=loop) as client:
Expand Down Expand Up @@ -329,7 +329,7 @@ def test_cuda_mig_visible_devices_and_memory_limit_and_nthreads(loop): # noqa:
str(nthreads),
"--no-dashboard",
"--worker-class",
"dask_cuda.utils.MockWorker",
"dask_cuda.utils_test.MockWorker",
]
):
with Client("127.0.0.1:9359", loop=loop) as client:
Expand Down Expand Up @@ -364,7 +364,7 @@ def test_cuda_visible_devices_uuid(loop): # noqa: F811
"127.0.0.1",
"--no-dashboard",
"--worker-class",
"dask_cuda.utils.MockWorker",
"dask_cuda.utils_test.MockWorker",
]
):
with Client("127.0.0.1:9359", loop=loop) as client:
Expand Down
2 changes: 1 addition & 1 deletion dask_cuda/tests/test_local_cuda_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
from dask_cuda import CUDAWorker, LocalCUDACluster, utils
from dask_cuda.initialize import initialize
from dask_cuda.utils import (
MockWorker,
get_cluster_configuration,
get_device_total_memory,
get_gpu_count_mig,
get_gpu_uuid_from_index,
print_cluster_config,
)
from dask_cuda.utils_test import MockWorker


@gen_test(timeout=20)
Expand Down
3 changes: 2 additions & 1 deletion dask_cuda/worker_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

from .initialize import initialize
from .local_cuda_cluster import cuda_visible_devices
from .utils import CPUAffinity, get_cpu_affinity, get_gpu_count
from .plugins import CPUAffinity
from .utils import get_cpu_affinity, get_gpu_count


def worker_spec(
Expand Down

0 comments on commit 977de1b

Please sign in to comment.