VPIStatus vpiContextSetParallelFor(VPIContext ctx, const VPIParallelForConfig *config)
Controls low-level task parallelism of CPU devices owned by the context.
VPIStatus vpiContextCreate(uint64_t flags, VPIContext *ctx)
Create a context instance.
VPIStatus vpiContextSetCurrent(VPIContext ctx)
Sets the context for the calling thread.
VPIStatus vpiContextPush(VPIContext ctx)
Pushes the context to a per-thread context stack and sets this context as the current context for the...
void vpiContextDestroy(VPIContext ctx)
Destroy a context instance as well as all resources it owns.
VPIStatus vpiContextCreateWrapperCUDA(uint64_t flags, CUcontext cudaCtx, VPIContext *ctx)
Create a context instance that wraps a CUDA context.
VPIStatus vpiContextGetParallelFor(VPIContext ctx, VPIParallelForConfig *config)
Returns parameters set by vpiContextSetParallelFor.
VPIStatus vpiContextGetFlags(VPIContext ctx, uint64_t *flags)
Get the current context flags.
VPIStatus vpiContextGetCurrent(VPIContext *ctx)
Gets the context for the calling thread.
VPIStatus vpiContextPop(VPIContext *ctx)
Pops a context from a per-thread context stack and saves it to the ctx variable.
struct VPIContextImpl * VPIContext
A handle to a context.
Stores the ParallelFor configuration.