Forum Discussion
Vishvas
New Contributor
6 years agoKernel execution time
In my program the execution time of the kernel is more than the execution time of the entire program
In the output screen (Attached Screenshot) 'Execution time of kernel' is measured using 'clGetEv...
- 6 years ago
It is possible that the OS is reading the CPU clock incorrectly and setting the wrong value for "CLOCKS_PER_SEC". You can try with the high-precision "clock_gettime" function to see if it makes a difference. You can find the function information here:
https://linux.die.net/man/3/clock_gettime
And an example implementation here:
https://github.com/zohourih/FPGAMemBench/blob/master/common/timer.h
AnilErinch_A_Intel
Frequent Contributor
6 years agoHi ,
Please let us know whether the issue is resolved using clock_gettime. If not we can look in to further possibilities.
Thanks and Regards
Anil
- Vishvas6 years ago
New Contributor
I had some issues implementing it, but I was able to complete it now
Thanks a lot for your help!