Forum Discussion
BWint9
New Contributor
7 years agoI get an error when building the OpenCL driver for CentOS 7 (5.1.9-1.el7.elrepo.x86_64). This driver build is related to the Arria 10 GX Development Kit.
The error is generated during the following build invocation : %> aocl install There is an unresolved reference to the function do_gettimeofday(...). Per internet search, I replaced the do_gettime...
BWint9
New Contributor
7 years agoI have attached updates to the device driver. These updates modify the timer resolution from usec to nsec. These changes resolved the issues I was having with the deprecated do_gettimeofday function.
Hiroto_K_Intel
New Contributor
7 years agoHello,
Firstly, we didn't evaluate kernel 5.x for the OpenCL kernel drivers and later your issue will be resolved for the future version.
On the other hand, I believe your workaround is good because it is based on the descriptions in Linux kernel site.
"truct timeval do_gettimeofday (void)
ktime_get_real_ts64() is a direct replacement, but consider using monotonic time (ktime_get_ts64()) and/or a ktime_t based interface (ktime_get()/ktime_get_real())."
Again, please note it is not fully tested now.