TIOVX User Guide

Detailed Description

APIs for working with compute kernels, target selection, and execution control.

Functions

VX_API_ENTRY vx_status VX_API_CALL tivxAddKernelTarget (vx_kernel kernel, const char *target_name)
 Associate a target with a kernel. More...
 
VX_API_ENTRY vx_status VX_API_CALL tivxSetKernelSinkDepth (vx_kernel kernel, uint32_t num_sink_bufs)
 Set the number of sink buffers. More...
 

Function Documentation

◆ tivxAddKernelTarget()

VX_API_ENTRY vx_status VX_API_CALL tivxAddKernelTarget ( vx_kernel  kernel,
const char *  target_name 
)

Associate a target with a kernel.

Call multiple times for each supported target

If given target is not valid on current platform then error VX_ERROR_NOT_SUPPORTED is returned.

Typically VX_ERROR_NOT_SUPPORTED error should be ignored for this API, since this code is typically kept same across platforms

During graph verify however if user asks to run the kernel on a target not supported by this platform it results in a error and graph cannot execute.

◆ tivxSetKernelSinkDepth()

VX_API_ENTRY vx_status VX_API_CALL tivxSetKernelSinkDepth ( vx_kernel  kernel,
uint32_t  num_sink_bufs 
)

Set the number of sink buffers.

Parameters
[in]kernelKernel reference
[in]num_sink_bufsNumber of sink buffers
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSNo errors.
VX_ERROR_INVALID_REFERENCEkernel is not a valid reference