Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove GPU executor #8399

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading