<?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 OpenCL Compiler Bug Report in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-Compiler-Bug-Report/m-p/813143#M932</link>
    <description>It isn't a bug ; from OpenCL specifications 1.1.36, 6.3 Operators:&lt;BR /&gt;&lt;BR /&gt;"g. The logical operators and (&amp;amp;&amp;amp;), or (||) operate on all scalar and vector built-in types except&lt;BR /&gt; the built-in scalar and vector float types."&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Jun 2011 17:20:06 GMT</pubDate>
    <dc:creator>Romain_D_</dc:creator>
    <dc:date>2011-06-01T17:20:06Z</dc:date>
    <item>
      <title>OpenCL Compiler Bug Report</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-Compiler-Bug-Report/m-p/813142#M931</link>
      <description>Hi,&lt;BR /&gt;The compiler is failing with the following simple kernel:&lt;BR /&gt;&lt;BR /&gt;__kernel void test()&lt;BR /&gt;{&lt;BR /&gt; float3 a;&lt;BR /&gt; if (a.s0 &amp;amp;&amp;amp; a.s1 &amp;amp;&amp;amp; a.s2)&lt;BR /&gt; {&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;with an error of&lt;BR /&gt;&lt;BR /&gt;Build Failed!&lt;BR /&gt;:4:14: error: invalid operands to binary expression ('float' and 'float')&lt;BR /&gt;&lt;BR /&gt;I'd have expected this to compile OK. It fails in both offline and online compilers. Also fails with || (logical or)&lt;BR /&gt;Works correctly with the AMD CPU and GPU compiler.&lt;BR /&gt;&lt;BR /&gt;The workaround is to change the if statement to&lt;BR /&gt;&lt;BR /&gt;if (a.s0 != 0 &amp;amp;&amp;amp; a.s1 != 0 &amp;amp;&amp;amp; a.s2 != 0)&lt;BR /&gt;&lt;BR /&gt;I'm using Intel OpenCL SDK 1.1&lt;BR /&gt;&lt;BR /&gt;Can you please confirm this is a bug and report it to development?&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 01 Jun 2011 17:11:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-Compiler-Bug-Report/m-p/813142#M931</guid>
      <dc:creator>Steve_Youngs</dc:creator>
      <dc:date>2011-06-01T17:11:21Z</dc:date>
    </item>
    <item>
      <title>OpenCL Compiler Bug Report</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-Compiler-Bug-Report/m-p/813143#M932</link>
      <description>It isn't a bug ; from OpenCL specifications 1.1.36, 6.3 Operators:&lt;BR /&gt;&lt;BR /&gt;"g. The logical operators and (&amp;amp;&amp;amp;), or (||) operate on all scalar and vector built-in types except&lt;BR /&gt; the built-in scalar and vector float types."&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2011 17:20:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-Compiler-Bug-Report/m-p/813143#M932</guid>
      <dc:creator>Romain_D_</dc:creator>
      <dc:date>2011-06-01T17:20:06Z</dc:date>
    </item>
    <item>
      <title>OpenCL Compiler Bug Report</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-Compiler-Bug-Report/m-p/813144#M933</link>
      <description>Thanks for the clarification Romain. I'll redirect my bug report to AMD for allowing it!&lt;BR /&gt;&lt;BR /&gt;Steve.</description>
      <pubDate>Wed, 01 Jun 2011 17:53:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-Compiler-Bug-Report/m-p/813144#M933</guid>
      <dc:creator>Steve_Youngs</dc:creator>
      <dc:date>2011-06-01T17:53:48Z</dc:date>
    </item>
  </channel>
</rss>

