Skip to main content

Module ipc

Module ipc 

Source
Expand description

Inter-Process Communication for CUDA events and allocations.

Two producers / two consumers of cross-process state:

Availability: Linux only in practice. Windows drivers return CUDA_ERROR_NOT_SUPPORTED. Use external-memory / semaphore interop for Windows IPC.

Functions§

event_get_handle
Export a CUDA event for sharing with another process.
event_open_handle
Open a peer-exported event handle. Returns a raw CUevent; wrap it with [Event::from_raw] if needed.
mem_close_handle
Release an imported device pointer previously opened via mem_open_handle.
mem_get_handle
Export a device allocation for sharing with another process.
mem_open_handle
Open a peer-exported device-memory handle. Returns a device pointer valid in the current context.