Functions and structures for dealing with VPI contexts. More...
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. | |
Special contexts | |
#define | VPI_GLOBAL_CONTEXT ((VPIContext)0x610BA1C1D) |
Global context identifier. | |
Functions | |
VPIStatus | vpiContextCreate (uint64_t flags, VPIContext *ctx) |
Create a context instance. More... | |
VPIStatus | vpiContextCreateWrapperCUDA (uint64_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, uint64_t *flags) |
Get the current context flags. More... | |
Functions and structures for dealing with VPI contexts.
Definition in file Context.h.