opencl kernel code for mac