Forum Discussion
Altera_Forum
Honored Contributor
8 years agoDifferent Kernel Executions times
Hi! I'm getting a strange thing when executing a kernel multiples times (inside a loop). The first execution always take a long time compared to the others.. Example: Number of calls: 10...
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Try 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. --- Quote End --- Do you have any profiling tool to MS VS2012? or any reliable function to measure the executions times, i said this because im not confident about the function i encounter to measure the times.