<?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 Thank you!  Let me know what in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940207#M16914</link>
    <description>&lt;P&gt;Thank you!&amp;nbsp; Let me know what you find out, especially if you can suggest a workaround.&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2013 17:31:08 GMT</pubDate>
    <dc:creator>peastman</dc:creator>
    <dc:date>2013-07-12T17:31:08Z</dc:date>
    <item>
      <title>OpenCL error</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940203#M16910</link>
      <description>&lt;P&gt;I'm porting an OpenCL application to run on Xeon Phi.&amp;nbsp; I've encountered what I'm pretty sure is a bug in the compiler or runtime.&amp;nbsp; With some work, I've narrowed it down to the following minimal test case.&amp;nbsp; To observe the problem, just launch testKernel() using a single workgroup of 64 work units.&amp;nbsp; It repeatedly prints out&lt;/P&gt;
&lt;P&gt;1 &amp;lt;= 0????&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;void testFunction(__local short* a, __local int* b) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (get_local_id(0) == 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *a = 50;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; barrier(CLK_LOCAL_MEM_FENCE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; int c = *a/32;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (c &amp;gt; 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (get_local_id(0) == 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *b = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%d &amp;lt;= 0????\n", c);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;__kernel void testKernel() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; __local short a;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; __local int b;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; testFunction(&amp;amp;a, &amp;amp;b);&lt;BR /&gt;}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Any idea what the problem is, or how I can work around it?&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 22:24:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940203#M16910</guid>
      <dc:creator>peastman</dc:creator>
      <dc:date>2013-07-02T22:24:01Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940204#M16911</link>
      <description>Hi,

I will look into this issue. A couple of comments.
It would be better (faster to reproduce) if you could provide full source code, including host part.
There is a separate forum for OpenCL - &lt;A href="http://software.intel.com/en-us/forums/intel-opencl-sdk" target="_blank"&gt;http://software.intel.com/en-us/forums/intel-opencl-sdk&lt;/A&gt;, please use it for OpenCL related issues/questions.

Thanks,
Yuri</description>
      <pubDate>Wed, 10 Jul 2013 07:25:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940204#M16911</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2013-07-10T07:25:41Z</dc:date>
    </item>
    <item>
      <title>Hi Yuri,</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940205#M16912</link>
      <description>&lt;P&gt;Hi Yuri,&lt;/P&gt;
&lt;P&gt;Thanks for looking into it.&amp;nbsp; My contact at Intel specifically told me to post on this forum.&amp;nbsp; Do you want me to repost it on the other one?&lt;/P&gt;
&lt;P&gt;I don't have a simple, self contained host program for launching it.&amp;nbsp; I'm working from a very large code base.&amp;nbsp; But all it really needs to do is the generic boilerplate found in any OpenCL program: select the platform, figure out which device is the Xeon Phi, create a context, compile the kernel, and launch it.&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 17:53:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940205#M16912</guid>
      <dc:creator>peastman</dc:creator>
      <dc:date>2013-07-10T17:53:27Z</dc:date>
    </item>
    <item>
      <title>Hi Peter,</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940206#M16913</link>
      <description>Hi Peter,

No need to repost. I was able to reproduce the issue and I have submitted a ticket for it. I will inform you of the further investigation results.

Thanks,
Yuri</description>
      <pubDate>Fri, 12 Jul 2013 13:47:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940206#M16913</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2013-07-12T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Thank you!  Let me know what</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940207#M16914</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; Let me know what you find out, especially if you can suggest a workaround.&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2013 17:31:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenCL-error/m-p/940207#M16914</guid>
      <dc:creator>peastman</dc:creator>
      <dc:date>2013-07-12T17:31:08Z</dc:date>
    </item>
  </channel>
</rss>

