added some OpenCL code to Mode 3.