API symbolscuda
Copy
Event
- class tensorplay.cuda.streams.Event(enable_timing=False, blocking=False, interprocess=False, external=False)[source]
Wrapper around a CUDA event.
CUDA events are synchronization markers that can be used to monitor the device’s progress, to accurately measure timing, and to synchronize CUDA streams.
- Parameters:
- elapsed_time(end_event: Event)[source]
Return the time elapsed.
Time reported in milliseconds after the event was recorded and before the end_event was recorded.
- Parameters:
end_event (Event) – the end event.
- classmethod from_ipc_handle(device, handle)[source]
Reconstruct an event from an IPC handle on the given device.
- ipc_handle()[source]
Return an IPC handle of this event.
- query()[source]
Check if all work currently captured by event has completed.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
