Forum Discussion
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