OpenCL code for GLM