Skip to main content

Module event

Module event 

Source
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:

  1. Construct with EventActor::props(ctx) — captures an Arc<CudaContext> so events can be created on demand.
  2. Send CreateEvent { reply } (returns an Event) or Record { event, stream, ... } to push the event onto a captured stream.
  3. Wait/query/elapsed/synchronize as needed.
  4. (gated cuda-ipc) Send GetIpcHandle on the source process, transmit the bytes via your application channel, then OpenIpcHandle on the destination.

Structs§

Event
Typed handle to a CudaEvent. Cloneable via Arc; the underlying cuEventDestroy is run when the last clone drops.
EventActor
IpcEventHandle
Cross-process IPC handle for an event. The 64-byte reserved blob matches CUipcEventHandle_st.

Enums§

EventMsg