openCL code from elazar