|
VPI - Vision Programming Interface
0.1.0 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_EVENT_H
57 #define NV_VPI_EVENT_H
101 typedef struct CUevent_st *CUevent;
105 #define VPI_EVENT_NO_PVA 0x01
106 #define VPI_EVENT_NO_CPU 0x02
107 #define VPI_EVENT_NO_CUDA 0x04
108 #define VPI_EVENT_DISABLE_TIMESTAMP 0x08
111 #define VPI_EVENT_ONLY_CUDA (VPI_EVENT_NO_PVA | VPI_EVENT_NO_CPU)
112 #define VPI_EVENT_ONLY_CPU (VPI_EVENT_NO_PVA | VPI_EVENT_NO_CUDA)
113 #define VPI_EVENT_ONLY_PVA (VPI_EVENT_NO_CUDA | VPI_EVENT_NO_CPU)
203 #endif // NV_VPI_EVENT_H
VPIStatus vpiEventElapsedTime(VPIEvent start, VPIEvent end, float *msec)
Computes the elapsed time in (msec) between two completed events.
VPIStatus vpiEventCreate(uint32_t flags, VPIEvent *event)
Create an event instance with the specified flags.
VPIStatus vpiEventSync(VPIEvent event)
Blocks the calling thread until the event is completed.
VPIStatus vpiEventRecord(VPIEvent event, VPIStream stream)
Captures in the event the contents of the stream command queue at the time of this call.
struct VPIEventImpl * VPIEvent
VPIStatus vpiEventWrapCudaEvent(CUevent cudaEvent, VPIEvent *event)
Create an event object by wrapping around an existing CUDA CUevent object.
struct VPIStreamImpl * VPIStream
void vpiEventDestroy(VPIEvent event)
Destroy an event instance as well as all resources it owns.
VPIStatus vpiEventQuery(VPIEvent event)
Queries the status of all work currently captured by the event.