Forum Discussion
Kernel execution time
- 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
Hi Vishvas,
Thanks for reaching out us.
Could you please let us know the node in which you are running the application, Is it in FPGA nodes of Devcloud?
Regards,
Chithra
The node is : s001-n139
And Device is Arria 10 Platform as shown in the screenshot
I compiled the OpenCL code into RTL and ran it on FPGA.
The issue I mentioned only occurs on FPGA, if I simulate it on CPU the timings are proper