cuda.bindings._v2.driver.ipc_open_event_handle#

cuda.bindings._v2.driver.ipc_open_event_handle(handle) → intptr_t#

Opens an interprocess event handle for use in the current process.

Opens an interprocess event handle exported from another process with cuIpcGetEventHandle. This function returns a CUevent that behaves like a locally created event with the CU_EVENT_DISABLE_TIMING flag specified. This event must be freed with cuEventDestroy. Performing operations on the imported event after the exported event has been freed with cuEventDestroy will result in undefined behavior. IPC functionality is restricted to devices with support for unified addressing on Linux and Windows operating systems. IPC functionality on Windows is supported for compatibility purposes but not recommended as it comes with performance cost. Users can test their device for IPC functionality by calling cuapiDeviceGetAttribute with CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED.

Parameters:

handle (CUipcEventHandle_v1) – Interprocess handle to open.

Returns:

Returns the imported event.

Return type:

intptr_t

See also

cuIpcOpenEventHandle