![]() |
TIOVX User Guide
|
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... | |
| 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.
| VX_API_ENTRY vx_status VX_API_CALL tivxSetKernelSinkDepth | ( | vx_kernel | kernel, |
| uint32_t | num_sink_bufs | ||
| ) |
Set the number of sink buffers.
| [in] | kernel | Kernel reference |
| [in] | num_sink_bufs | Number of sink buffers |
vx_status_e enumeration. | VX_SUCCESS | No errors. |
| VX_ERROR_INVALID_REFERENCE | kernel is not a valid reference |