Include dependency graph for Context.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | VPI_INVALID_CONTEXT ((VPIContext)-1) |
| Represents a context was destroyed or is invalid for some other reason. | |
Context creation flags | |
| #define | VPI_CONTEXT_DISABLE_PVA VPI_BACKEND_DISABLE_PVA |
| context doesn't support PVA devices | |
| #define | VPI_CONTEXT_DISABLE_CUDA VPI_BACKEND_DISABLE_CUDA |
| context doesn't support CUDA devices | |
| #define | VPI_CONTEXT_ONLY_CPU VPI_BACKEND_ONLY_CPU |
| Context will only support CPU device. | |
Deprecated image creation flags | |
| #define | VPI_CONTEXT_NO_PVA VPI_CONTEXT_DISABLE_PVA |
| Deprecated. | |
| #define | VPI_CONTEXT_NO_CPU VPI_CONTEXT_DISABLE_CPU |
| Deprecated. | |
| #define | VPI_CONTEXT_NO_CUDA VPI_CONTEXT_DISABLE_CUDA |
| Deprecated. | |
Special contexts | |
| #define | VPI_GLOBAL_CONTEXT ((VPIContext)0x610BA1C1D) |
| Global context identifier. | |
Functions | |
| VPIStatus | vpiContextCreate (uint32_t flags, VPIContext *ctx) |
| Create a context instance. More... | |
| VPIStatus | vpiContextWrapCudaContext (uint32_t flags, CUcontext cudaCtx, VPIContext *ctx) |
| Create a context instance that wraps a CUDA context. More... | |
| void | vpiContextDestroy (VPIContext ctx) |
| Destroy a context instance as well as all resources it owns. More... | |
| VPIStatus | vpiContextSetParallelFor (VPIContext ctx, const VPIParallelForConfig *config) |
| Controls low-level task parallelism of CPU devices owned by the context. More... | |
| VPIStatus | vpiContextGetParallelFor (VPIContext ctx, VPIParallelForConfig *config) |
| Returns parameters set by vpiContextSetParallelFor(). More... | |
| VPIStatus | vpiContextGetCurrent (VPIContext *ctx) |
| Gets the context for the calling thread. More... | |
| VPIStatus | vpiContextSetCurrent (VPIContext ctx) |
| Sets the context for the calling thread. More... | |
| VPIStatus | vpiContextPush (VPIContext ctx) |
| Pushes the context to a per-thread context stack and sets this context as the current context for the calling thread. More... | |
| VPIStatus | vpiContextPop (VPIContext *ctx) |
| Pops a context from a per-thread context stack and saves it to the ctx variable. More... | |
| VPIStatus | vpiContextGetFlags (VPIContext ctx, uint32_t *flags) |
| Get the current context flags. More... | |
Functions and structures for dealing with VPI contexts.
Definition in file Context.h.