Forum Discussion
Altera_Forum
Honored Contributor
8 years agoReal time Counter in Kernel
Hi, I want to define a real time counter and print his result . Can I define Real time clock "i" in kernel and print the result of counter?. In Other hand, I thought that I define a counter ...
Altera_Forum
Honored Contributor
8 years agoThere is no clock in OpenCL and there is no guarantee that your accumulation will happen once every clock. You will not be able to get clock-accurate timing results in OpenCL. However, you can get very accurate timing results (but not clock-accurate) by using OpenCL's built-in profiler:
https://stackoverflow.com/questions/23550912/measuring-execution-time-of-opencl-kernels