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

Workaround for DeviceHostFile tests with CuPy>=12.0.0 #1175

Merged
merged 1 commit into from
May 15, 2023
Merged
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: 12 additions & 1 deletion dask_cuda/tests/test_device_host_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import numpy as np
import pytest
from packaging import version

import dask.array
import distributed
from distributed.protocol import (
deserialize,
deserialize_bytes,
Expand Down Expand Up @@ -51,7 +53,16 @@ def test_device_host_file_short(
random.shuffle(full)

for k, v in full:
dhf[k] = v
try:
dhf[k] = v
except TypeError as e:
# TODO: Remove when pinning to distributed>=2023.5.1 .
# See https://github.com/rapidsai/dask-cuda/issues/1174 and
# https://github.com/dask/distributed/pull/7836 .
if version.parse(distributed.__version__) <= version.parse("2023.5.0"):
dhf[k] = v
else:
raise e

random.shuffle(full)

Expand Down