Skip to content

Commit

Permalink
Remove GPU executor (#8399)
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait authored Dec 14, 2023
1 parent f2e1e51 commit 61edd73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
13 changes: 0 additions & 13 deletions distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from dask.system import CPU_COUNT
from dask.utils import tmpfile

import distributed
from distributed import (
Client,
Event,
Expand All @@ -46,7 +45,6 @@
from distributed.comm.utils import OFFLOAD_THRESHOLD
from distributed.compatibility import LINUX, WINDOWS
from distributed.core import CommClosedError, Status, rpc
from distributed.diagnostics import nvml
from distributed.diagnostics.plugin import ForwardOutput
from distributed.metrics import time
from distributed.protocol import pickle
Expand Down Expand Up @@ -2267,17 +2265,6 @@ async def test_process_executor_raise_exception(c, s, a, b):
await future


@pytest.mark.gpu
@gen_cluster(client=True, nthreads=[("127.0.0.1", 1)])
async def test_gpu_executor(c, s, w):
if nvml.device_get_count() > 0:
e = w.executors["gpu"]
assert isinstance(e, distributed.threadpoolexecutor.ThreadPoolExecutor)
assert e._max_workers == 1
else:
assert "gpu" not in w.executors


async def assert_task_states_on_worker(
expected: dict[str, str], worker: Worker
) -> None:
Expand Down
4 changes: 0 additions & 4 deletions distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,6 @@ def __init__(
"offload": utils._offload_executor,
"actor": ThreadPoolExecutor(1, thread_name_prefix="Dask-Actor-Threads"),
}
if nvml.device_get_count() > 0:
self.executors["gpu"] = ThreadPoolExecutor(
1, thread_name_prefix="Dask-GPU-Threads"
)

# Find the default executor
if executor == "offload":
Expand Down

0 comments on commit 61edd73

Please sign in to comment.