cuda.bindings._v2.driver.ipc_get_event_handle#
- cuda.bindings._v2.driver.ipc_get_event_handle(intptr_t event)#
Gets an interprocess handle for a previously allocated event.
Takes as input a previously allocated event. This event must have been created with the
CU_EVENT_INTERPROCESSandCU_EVENT_DISABLE_TIMINGflags set. This opaque handle may be copied into other processes and opened withcuIpcOpenEventHandleto allow efficient hardware synchronization between GPU work in different processes. After the event has been opened in the importing process,cuEventRecord,cuEventSynchronize,cuStreamWaitEventandcuEventQuerymay be used in either process. Performing operations on the imported event after the exported event has been freed withcuEventDestroywill 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 callingcuDeviceGetAttributewithCU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED.- Parameters:
event (intptr_t) – Event allocated with
CU_EVENT_INTERPROCESSandCU_EVENT_DISABLE_TIMINGflags.- Returns:
- Pointer to a user allocated
CUipcEventHandlein which to return the opaque event handle.
- Return type:
See also
cuIpcGetEventHandle