warp.from_ipc_handle#
- warp.from_ipc_handle(handle, dtype, shape, strides=None, device=None)[source]#
Create an array from an IPC handle.
The
dtype,shape, and optionalstridesarguments should match the values from thearrayfrom whichhandlewas created.- Parameters:
handle (bytes) – The interprocess memory handle for an existing device memory allocation.
dtype – One of the available data types, such as
warp.float32,warp.mat33, or a custom struct.strides (tuple[int, ...] | None) – Number of bytes in each dimension between successive elements of the array.
device (Device | str | None) – Device to associate with the array.
- Returns:
An array created from the existing memory allocation described by the interprocess memory handle
handle.A copy of the underlying data is not made. Modifications to the array’s data will be reflected in the original process from which
handlewas exported.- Raises:
RuntimeError – IPC is not supported on
device.- Return type: