make implementation of CL kernels simpler.