instrumented the code for opencl