Skip to content

Commit

Permalink
use from_delayed - TODO: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzamora committed Mar 21, 2024
1 parent d04c755 commit 1b6ef7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dask_cuda/explicit_comms/dataframe/shuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import dask
import dask.config
import dask.dataframe
import dask.dataframe as dd
import dask.utils
import distributed.worker
from dask.base import tokenize
Expand All @@ -21,8 +22,6 @@
from distributed.protocol import nested_deserialize, to_serialize
from distributed.worker import Worker

from dask_cuda.utils import _make_collection

from .. import comms

T = TypeVar("T")
Expand Down Expand Up @@ -542,7 +541,7 @@ def shuffle(

# Create a distributed Dataframe from all the pieces
divs = [None] * (len(dsk) + 1)
ret = _make_collection(dsk, name, df_meta, divs).persist()
ret = dd.from_delayed(dsk.values(), meta=df_meta, divisions=divs).persist()
wait([ret])

# Release all temporary dataframes
Expand Down

0 comments on commit 1b6ef7d

Please sign in to comment.