Forum Discussion
zjinf
Occasional Contributor
6 years agoSeems that aocl (openCL ) can't recognize "__prefetching_load" attribute in aocl 19.2??
Hi inteler Environment: centos 7.5 aocl verison: 19.2.0.57 1 error: implicit declaration of function '__prefetching_load' is invalid in OpenCL ...
MEIYAN_L_Intel
Frequent Contributor
6 years agoHi,
The __prefetching_load() builtin is only available for the OpenCL SDK version 19.3 onward. A simple work around for 19.2 would be to replace
sum[k] += __prefetching_load(&a[j]);
with
sum[k] += a[j];
The old version of this code can be found here https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/archives/aocl-best-practices-guide-19-1.pdf in Chapter 1.3.
There is an documentation error in 19.2 version which use _prefetching_load which is wrong.
I had reported to the team about the documentation error as well.
Thanks