Expand description
EventActor — typed actor surface around CudaEvent.
cudarc 0.19 ships a safe CudaEvent (Record / Wait / Query /
ElapsedTime / Synchronize) but doesn’t expose IPC. This actor
wraps both the safe layer and the sys-level
cuIpcGetEventHandle/cuIpcOpenEventHandle for cross-process
event sharing.
Lifecycle:
- Construct with
EventActor::props(ctx)— captures anArc<CudaContext>so events can be created on demand. - Send
CreateEvent { reply }(returns anEvent) orRecord { event, stream, ... }to push the event onto a captured stream. - Wait/query/elapsed/synchronize as needed.
- (gated
cuda-ipc) SendGetIpcHandleon the source process, transmit the bytes via your application channel, thenOpenIpcHandleon the destination.
Structs§
- Event
- Typed handle to a
CudaEvent. Cloneable viaArc; the underlyingcuEventDestroyis run when the last clone drops. - Event
Actor - IpcEvent
Handle - Cross-process IPC handle for an event. The 64-byte reserved blob
matches
CUipcEventHandle_st.