Function cudaIpcOpenEventHandle

Source
pub unsafe extern "C" fn cudaIpcOpenEventHandle(
    event: *mut cudaEvent_t,
    handle: cudaIpcEventHandle_t,
) -> cudaError_t
Expand description

\brief Opens an interprocess event handle for use in the current process

Opens an interprocess event handle exported from another process with ::cudaIpcGetEventHandle. This function returns a ::cudaEvent_t that behaves like a locally created event with the ::cudaEventDisableTiming flag specified. This event must be freed with ::cudaEventDestroy.

Performing operations on the imported event after the exported event has been freed with ::cudaEventDestroy 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 ::cudaDeviceGetAttribute with ::cudaDevAttrIpcEventSupport

\param event - Returns the imported event \param handle - Interprocess handle to open

\returns ::cudaSuccess, ::cudaErrorMapBufferObjectFailed, ::cudaErrorNotSupported, ::cudaErrorInvalidValue, ::cudaErrorDeviceUninitialized \note_init_rt \note_callback

\sa ::cudaEventCreate, ::cudaEventDestroy, ::cudaEventSynchronize, ::cudaEventQuery, ::cudaStreamWaitEvent, ::cudaIpcGetEventHandle, ::cudaIpcGetMemHandle, ::cudaIpcOpenMemHandle, ::cudaIpcCloseMemHandle, ::cuIpcOpenEventHandle