pyarrow.cuda.IpcMemHandle

class pyarrow.cuda.IpcMemHandle

Bases: pyarrow.lib._Weakrefable

A serializable container for a CUDA IPC handle.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

from_buffer(Buffer opaque_handle)

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)

Parameters
  • opaque_handle – a CUipcMemHandle as a const void*

  • Results

  • -------

  • ipc_handle (IpcMemHandle) –

serialize(self, pool=None)

Write IpcMemHandle to a Buffer

Parameters

pool ({MemoryPool, None}) – Specify a pool to allocate memory from

Returns

buf (Buffer) – The serialized buffer.