Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Reimplementing work_group_scan_exclusive_add

$
0
0

Hi there,

I have reimplemented the function work_group_scan_exclusive_add, which is supported by OpenCL 2.0. My OpenCL source code looks like this:

#if __OPENCL_VERSION__ < 200
inline uint work_group_scan_exclusive_add(const uint value)
{
...
}
#endif

When I try to compile this with the Intel OpenCL driver 6.4.0.25 (Windows 8.1 x64) for the OpenCL 1.2 CPU device, the following error message is generated by the intel OpenCL compiler:

 error: redeclaration of 'work_group_scan_exclusive_add' must have the 'overloadable' attribute

Why is the functionwork_group_scan_exclusive_add already defined for the OpenCL 1.2 CPU device?
How it is possible to circumevent this compile error ?

Best regards,
Mathias


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>