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

Update serialization code in benchmarks #1098

Merged
merged 6 commits into from
Dec 11, 2024
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
6 changes: 3 additions & 3 deletions ucp/benchmarks/cudf_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

import cudf # noqa: E402
import rmm # noqa: E402
from cudf.core.abc import Serializable # noqa: E402
from rmm.allocators.cupy import rmm_cupy_allocator # noqa: E402


Expand All @@ -48,7 +49,7 @@ def sizeof_cudf_dataframe(df):


async def send_df(ep, df):
header, frames = df.serialize()
header, frames = df.device_serialize()
header["frame_ifaces"] = [f.__cuda_array_interface__ for f in frames]
header = pickle.dumps(header)
header_nbytes = np.array([len(header)], dtype=np.uint64)
Expand All @@ -72,8 +73,7 @@ async def recv_df(ep):
for frame in frames:
await ep.recv(frame)

cudf_typ = pickle.loads(header["type-serialized"])
return cudf_typ.deserialize(header, frames)
return Serializable.device_deserialize(header, frames)


async def barrier(rank, eps):
Expand Down
Loading