pyarrow.cuda.IpcMemHandle

class pyarrow.cuda.IpcMemHandle

Bases: pyarrow.lib._Weakrefable

A serializable container for a CUDA IPC handle.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

from_buffer(...)

Create IpcMemHandle from opaque buffer (e.g.

serialize(self[, pool])

Write IpcMemHandle to a Buffer

static from_buffer(Buffer opaque_handle) Create IpcMemHandle from opaque buffer (e.g. from another process)

Create IpcMemHandle from opaque buffer (e.g. from another process)

Parameters
opaque_handle

a CUipcMemHandle as a const void*

Returns
ipc_handleIpcMemHandle
serialize(self, pool=None)

Write IpcMemHandle to a Buffer

Parameters
pool{MemoryPool, None}

Specify a pool to allocate memory from

Returns
bufBuffer

The serialized buffer.