CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches

The API used by Clients to add OpenCL Kernels as vx_kernel. More...

Functions

VX_API_ENTRY vx_kernel VX_API_CALL vxAddOpenCLAsSourceKernel (vx_context context, vx_char name[VX_MAX_KERNEL_NAME], vx_enum enumeration, char *source[], size_t line_lengths[], size_t num_lines, char symbol_name[], vx_uint32 numParams, vx_kernel_input_validate_f input, vx_kernel_output_validate_f output)
 Adds an OpenCL Kernel as source code into the OpenVX implementation.
 
VX_API_ENTRY vx_kernel VX_API_CALL vxAddOpenCLAsBinaryKernel (vx_context context, vx_char name[VX_MAX_KERNEL_NAME], vx_enum enumeration, cl_program program, char symbol_name[], vx_uint32 numParams, vx_kernel_input_validate_f input, vx_kernel_output_validate_f output)
 Adds an OpenCL Kernel as binary program into the OpenVX implementation.
 

Detailed Description

The API used by Clients to add OpenCL Kernels as vx_kernel.

Function Documentation

◆ vxAddOpenCLAsBinaryKernel()

VX_API_ENTRY vx_kernel VX_API_CALL vxAddOpenCLAsBinaryKernel ( vx_context context,
vx_char name[VX_MAX_KERNEL_NAME],
vx_enum enumeration,
cl_program program,
char symbol_name[],
vx_uint32 numParams,
vx_kernel_input_validate_f input,
vx_kernel_output_validate_f output )

#include <vx_khr_opencl.h>

Adds an OpenCL Kernel as binary program into the OpenVX implementation.

Parameters
[in]contextThe OpenVX Context.
[in]nameThe name of the kernel in OpenVX nomenclature.
[in]enumerationThe OpenVX kernel enumeration used to identify this kernel.
[in]programThe OpenCL Program which contains the kernel (either pre-compiled or compiled by user).
[in]symbol_nameThe name of the kernel to call in the program.
[in]numParamsThe number of parameters to the OpenVX kernel.
[in]inputThe input validator.
[in]outputThe output validator.
See also
vxAddParameterToKernel to configure the specific parameter attributes.

◆ vxAddOpenCLAsSourceKernel()

VX_API_ENTRY vx_kernel VX_API_CALL vxAddOpenCLAsSourceKernel ( vx_context context,
vx_char name[VX_MAX_KERNEL_NAME],
vx_enum enumeration,
char * source[],
size_t line_lengths[],
size_t num_lines,
char symbol_name[],
vx_uint32 numParams,
vx_kernel_input_validate_f input,
vx_kernel_output_validate_f output )

#include <vx_khr_opencl.h>

Adds an OpenCL Kernel as source code into the OpenVX implementation.

Parameters
[in]contextThe OpenVX Context.
[in]nameThe name of the kernel in OpenVX nomenclature.
[in]enumerationThe OpenVX kernel enumeration used to identify this kernel.
[in]sourceThe array of source line pointers.
[in]line_lengthsThe array of lines lengths for each line of source.
[in]num_linesthe number of lines in both the sources array and line_lengths array.
[in]symbol_nameThe name of the kernel to call in the program.
[in]numParamsThe number of parameters to the OpenVX kernel.
[in]inputThe input validator.
[in]outputThe output validator.
See also
vxAddParameterToKernel to configure the specific parameter attributes.