concept modifier in category opencl

appears as: modifiers
OpenCL in Action: How to Accelerate Graphics and Computation

This is an excerpt from Manning's book OpenCL in Action: How to Accelerate Graphics and Computation.

Table B.6. Shader code and kernel code—similarities and differences

Similarities

Differences

Shaders and kernels must be implemented as C functions that return void. Shader functions must be called main. Kernels can take any name, but must be preceded by the __kernel modifier.
Shaders and kernels process data in vectors and provide mathematical operators for vectors. Shaders support matrix data types. Kernels don’t.
Shaders and kernels are math-oriented—there are no strings, no pointers, and no access to stdio.h or similar routines from the C Standard Library. Shaders have built-in variables, some of which must receive values. Kernels don’t have built-in variables.
Shaders and kernels can execute functions that closely resemble those in traditional math.h. OpenCL variables have modifiers that identify where they’re stored on the device.