VPI - Vision Programming Interface

0.1.0 Release

Event.h File Reference
#include <stdint.h>
#include "Export.h"
#include "Status.h"
#include "Types.h"
+ Include dependency graph for Event.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

Event flags
#define VPI_EVENT_NO_PVA   0x01
 Event can't be used by PVA backend.
 
#define VPI_EVENT_NO_CPU   0x02
 Event can't be used by CPU backend.
 
#define VPI_EVENT_NO_CUDA   0x04
 Event can't be used by CUDA backend.
 
#define VPI_EVENT_DISABLE_TIMESTAMP   0x08
 disable time-stamping of event signalled state-change for better performance
 
#define VPI_EVENT_ONLY_CUDA   (VPI_EVENT_NO_PVA | VPI_EVENT_NO_CPU)
 shared helper flags
 
#define VPI_EVENT_ONLY_CPU   (VPI_EVENT_NO_PVA | VPI_EVENT_NO_CUDA)
 Event can't be used by PVA backend.
 
#define VPI_EVENT_ONLY_PVA   (VPI_EVENT_NO_CUDA | VPI_EVENT_NO_CPU)
 Event can't be used by PVA backend.
 

Functions

VPIStatus vpiEventCreate (uint32_t flags, VPIEvent *event)
 Create an event instance with the specified flags. More...
 
void vpiEventDestroy (VPIEvent event)
 Destroy an event instance as well as all resources it owns. More...
 
VPIStatus vpiEventWrapCudaEvent (CUevent cudaEvent, VPIEvent *event)
 Create an event object by wrapping around an existing CUDA CUevent object. More...
 
VPIStatus vpiEventRecord (VPIEvent event, VPIStream stream)
 Captures in the event the contents of the stream command queue at the time of this call. More...
 
VPIStatus vpiEventSync (VPIEvent event)
 Blocks the calling thread until the event is completed. More...
 
VPIStatus vpiEventQuery (VPIEvent event)
 Queries the status of all work currently captured by the event. More...
 
VPIStatus vpiEventElapsedTime (VPIEvent start, VPIEvent end, float *msec)
 Computes the elapsed time in (msec) between two completed events. More...
 

Detailed Description

Functions and structures for dealing with VPI events.

Definition in file Event.h.