CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The OpenVX OpenCL interop extension API. More...
Macros | |
#define | VX_MEMORY_TYPE_OPENCL_BUFFER (VX_ENUM_BASE(VX_ID_KHRONOS, VX_ENUM_MEMORY_TYPE) + 0x2) |
The constants added by OpenCL interop extension. | |
Functions | |
VX_API_ENTRY vx_context VX_API_CALL | vxCreateContextFromCL (cl_context opencl_context, cl_command_queue opencl_command_queue) |
Create an OpenVX context with specified OpenCL context and global coordination command queue. | |
The OpenVX OpenCL interop extension API.
#define VX_MEMORY_TYPE_OPENCL_BUFFER (VX_ENUM_BASE(VX_ID_KHRONOS, VX_ENUM_MEMORY_TYPE) + 0x2) |
#include <vx_khr_opencl_interop.h>
The constants added by OpenCL interop extension.
VX_API_ENTRY vx_context VX_API_CALL vxCreateContextFromCL | ( | cl_context | opencl_context, |
cl_command_queue | opencl_command_queue ) |
#include <vx_khr_opencl_interop.h>
Create an OpenVX context with specified OpenCL context and global coordination command queue.
This function creates a top-level object context for OpenVX and uses the OpenCL context and global coordination command queue created by the application for the interop.
This OpenCL context and global coordination command queue can be queried using the VX_CONTEXT_CL_CONTEXT and VX_CONTEXT_CL_COMMAND_QUEUE attributes of vx_context.
If the OpenVX context is created using vxCreateContext or vxCreateContextFromCL with opencl_context as NULL, the OpenCL context used by OpenVX is implementation dependent. If the opencl_command_queue is NULL, the global coordination command queue used by OpenVX is implementation dependent.
The global coordination command queue must be created using the OpenCL context used by OpenVX.
opencl_context | [in] The OpenCL context |
opencl_command_queue | [in] The global coordination command queue |
On | success, a valid vx_context object. Calling vxGetStatus with the return value as a parameter will return VX_SUCCESS if the function was successful. |