<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sorry for the delayed reply.  in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Reimplementing-work-group-scan-exclusive-add/m-p/1102265#M5170</link>
    <description>&lt;P&gt;Sorry for the delayed reply.&amp;nbsp;&amp;nbsp; You may need to use an older runtime only supporting CPU OpenCL 1.2 to avoid this problem.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/opencl-drivers"&gt;https://software.intel.com/en-us/articles/opencl-drivers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;(See the CPU runtimes section.&amp;nbsp; OpenCL 2.0 was introduced for the 16.1 runtimes.)&lt;/P&gt;

&lt;P&gt;I'm checking for other alternatives and will get back to you if I find any.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Sep 2016 01:53:10 GMT</pubDate>
    <dc:creator>Jeffrey_M_Intel1</dc:creator>
    <dc:date>2016-09-10T01:53:10Z</dc:date>
    <item>
      <title>Reimplementing work_group_scan_exclusive_add</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Reimplementing-work-group-scan-exclusive-add/m-p/1102264#M5169</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have reimplemented the function &lt;STRONG&gt;&lt;EM&gt;work_group_scan_exclusive_add&lt;/EM&gt;&lt;/STRONG&gt;, which is supported by OpenCL 2.0. My OpenCL source code looks like this:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#if __OPENCL_VERSION__ &amp;lt; 200
inline uint work_group_scan_exclusive_add(const uint value)
{
...
}
#endif&lt;/PRE&gt;

&lt;P&gt;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:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;error: redeclaration of 'work_group_scan_exclusive_add' must have the 'overloadable' attribute&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Why is the function&lt;EM&gt; &lt;STRONG&gt;work_group_scan_exclusive_add&lt;/STRONG&gt;&lt;/EM&gt; already defined for the OpenCL 1.2 CPU device?&lt;BR /&gt;
	How it is possible to circumevent this compile error ?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Mathias&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 21:59:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Reimplementing-work-group-scan-exclusive-add/m-p/1102264#M5169</guid>
      <dc:creator>Mathias_M_1</dc:creator>
      <dc:date>2016-08-18T21:59:56Z</dc:date>
    </item>
    <item>
      <title>Sorry for the delayed reply. </title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Reimplementing-work-group-scan-exclusive-add/m-p/1102265#M5170</link>
      <description>&lt;P&gt;Sorry for the delayed reply.&amp;nbsp;&amp;nbsp; You may need to use an older runtime only supporting CPU OpenCL 1.2 to avoid this problem.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/opencl-drivers"&gt;https://software.intel.com/en-us/articles/opencl-drivers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;(See the CPU runtimes section.&amp;nbsp; OpenCL 2.0 was introduced for the 16.1 runtimes.)&lt;/P&gt;

&lt;P&gt;I'm checking for other alternatives and will get back to you if I find any.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2016 01:53:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Reimplementing-work-group-scan-exclusive-add/m-p/1102265#M5170</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2016-09-10T01:53:10Z</dc:date>
    </item>
    <item>
      <title>After further internal</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Reimplementing-work-group-scan-exclusive-add/m-p/1102266#M5171</link>
      <description>&lt;P&gt;After further internal discussion we're going to investigate this as a bug. &amp;nbsp;As a workaround the overloadable attribute might help:&lt;/P&gt;

&lt;P&gt;__kernel&amp;nbsp;__attribute__((overloadable)) uint work_group_scan_exclusive_add(const uint value)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 05:57:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Reimplementing-work-group-scan-exclusive-add/m-p/1102266#M5171</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2016-09-14T05:57:58Z</dc:date>
    </item>
  </channel>
</rss>

