Forum Discussion
Altera_Forum
Honored Contributor
8 years agoTry moving clSetKernelArg and checkError outside of the timing region and only time clEnqueueTask and clFinish.
You can also use OpenCL's built-in profiler that allows you to accurately measure kernel execution time, and see if you would still see any variance in the run time.