Skip to content

GPU-friendly loads / merge_frames #2565

Closed
@TomAugspurger

Description

@TomAugspurger

Just throwing this up here for now, need to investigate more.

I'm working on a distributed cudf join using UCX. Things progress fine until, in the Client process, we attempt to deserialize some data (I think the final result?). We end up calling calling loads with deserialize=True:

def loads(frames, deserialize=True, deserializers=None):

which calls merge_frames:

out.append(b''.join(map(ensure_bytes, L)))

which attempt to convert the data to a byte string.

At this point in the client process, frames is a list of objects representing device memory. If possible (and I think it's possible), I'd like to avoid copying to the host here.

Actually, this may only be possible if the Client happens to have a GPU as well. In this case that's true, but not in general.


TODO:

  1. figure out exactly where the client is calling this
  2. ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions