Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 902 Bytes

ipc.rst

File metadata and controls

35 lines (22 loc) · 902 Bytes

Sharing CUDA Memory

Sharing between process

Warning

This feature is limited to Linux only.

Export device array to another process

A device array can be shared with another process in the same machine using the CUDA IPC API. To do so, use the .get_ipc_handle() method on the device array to get a IpcArrayHandle object, which can be transferred to another process.

numba.cuda.cudadrv.devicearray.DeviceNDArray.get_ipc_handle

numba.cuda.cudadrv.devicearray.IpcArrayHandle

Import IPC memory from another process

The following function is used to open IPC handle from another process as a device array.

numba.cuda.open_ipc_array