kernel) qualifier declares a function to be a kernel
that can be executed by an application on an OpenCL device(s).
The following rules apply to functions that are declared with this
It can be executed on the device only
It can be called by the host
It is just a regular function call if a
__kernelfunction is called by another kernel function.
Kernel functions with variables declared inside the function with the
kernel names are reserved for use as functions
qualifiers and shall not be used otherwise.
For more information, see the OpenCL C Specification
This page is extracted from the OpenCL C Specification. Fixes and changes should be made to the Specification, not directly.