<?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 Weird bug on Intel OpenCL platform in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926769#M1507</link>
    <description>&lt;P&gt;Attached is an OpenCL kernel that triggers an awkward bug in Intel's OpenCL platform. On the same CPU it works on the AMD OpenCL platform, but not on the Intel OpenCL platform. This has been verified on multiple independent machines (all windows 7, both 32-bit and 64-bit). I have also added a tiny Netbeans project (with JOCL embedded) to provide full code to reproduce the bug. But if you don't use Netbeans, it's easy to reproduce anywhere by just feeding an empty float[100] to the kernel and reading it afterwards.&lt;/P&gt;
&lt;P&gt;What the program does is simply executing the same program 4 times. What should happen is obviously that you get always the same output. However, on the Intel platform, somehow suddenly the first execution yields a different result. Always consequently the first, always consequently the same wrong output, on different machines. But the kernel itself is pretty trivial and has no memory at all over different executions.&lt;/P&gt;
&lt;P&gt;I would classify this as a severe bug, since it doesn't just crash, but instead provides erroneous output without any notice!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2012 01:20:00 GMT</pubDate>
    <dc:creator>Peter_Vandendriessch</dc:creator>
    <dc:date>2012-10-17T01:20:00Z</dc:date>
    <item>
      <title>Weird bug on Intel OpenCL platform</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926769#M1507</link>
      <description>&lt;P&gt;Attached is an OpenCL kernel that triggers an awkward bug in Intel's OpenCL platform. On the same CPU it works on the AMD OpenCL platform, but not on the Intel OpenCL platform. This has been verified on multiple independent machines (all windows 7, both 32-bit and 64-bit). I have also added a tiny Netbeans project (with JOCL embedded) to provide full code to reproduce the bug. But if you don't use Netbeans, it's easy to reproduce anywhere by just feeding an empty float[100] to the kernel and reading it afterwards.&lt;/P&gt;
&lt;P&gt;What the program does is simply executing the same program 4 times. What should happen is obviously that you get always the same output. However, on the Intel platform, somehow suddenly the first execution yields a different result. Always consequently the first, always consequently the same wrong output, on different machines. But the kernel itself is pretty trivial and has no memory at all over different executions.&lt;/P&gt;
&lt;P&gt;I would classify this as a severe bug, since it doesn't just crash, but instead provides erroneous output without any notice!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 01:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926769#M1507</guid>
      <dc:creator>Peter_Vandendriessch</dc:creator>
      <dc:date>2012-10-17T01:20:00Z</dc:date>
    </item>
    <item>
      <title>I am trying to reproduce your</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926770#M1508</link>
      <description>I am trying to reproduce your issue and installed NetBeans and compiled the source files. It has been several years since I worked with Java so I am a bit rusty. I'll file a bug once I am able to debug it further. I will keep you posted.

Thanks,
Raghu</description>
      <pubDate>Fri, 19 Oct 2012 19:52:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926770#M1508</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-10-19T19:52:17Z</dc:date>
    </item>
    <item>
      <title>Thanks. Some info that I just</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926771#M1509</link>
      <description>Thanks. Some info that I just now realize may be relevant, on my system, platform 0 is AMD and platform 1 is Intel.
So, in JOCL.java on line 154, you may have to replace "final int platformIndex = 1;" by "final int platformIndex = 0;" if only the Intel platform is installed. Probably also if the Intel platform was installed first.</description>
      <pubDate>Fri, 19 Oct 2012 23:13:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926771#M1509</guid>
      <dc:creator>Peter_Vandendriessch</dc:creator>
      <dc:date>2012-10-19T23:13:04Z</dc:date>
    </item>
    <item>
      <title>Yup. I already made that</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926772#M1510</link>
      <description>Yup. I already made that change. I also realized that the size of the Lclassic array doesn't have to be 100. Even an array of size 1 produces different results. I am looking at your kernel to understand what you are doing. Just making sure...you get the same result for each iteration on other platforms right?</description>
      <pubDate>Fri, 19 Oct 2012 23:17:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926772#M1510</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-10-19T23:17:30Z</dc:date>
    </item>
    <item>
      <title>What I'm doing is randomly</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926773#M1511</link>
      <description>What I'm doing is randomly generating numbers and filling the array with it. I'm using &lt;A href="http://cas.ee.ic.ac.uk/people/dt10/research/rngs-gpu-mwc64x.html" target="_blank"&gt;http://cas.ee.ic.ac.uk/people/dt10/research/rngs-gpu-mwc64x.html&lt;/A&gt; with a small modification to soft-code the MWC64X_A variable, to avoid a bug in AMD's OpenCL compiler.

&lt;BLOCKQUOTE&gt;Raghupathi Muthyalampalli (Intel) wrote:&lt;BR /&gt;Just making sure...you get the same result for each iteration on other platforms right?&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
Yes. On AMD platform, the output is always the same, for both CPU and GPU. On Intel, the first row is different:

[0.0, 0.0, 0.0, 0.0, 0.5441741, 0.6534582, 0.9902577, 0.5279418, 0.7744405, 0.3976747, 0.734416, 0.0017434603, 0.22150545, 0.82592, 
[0.13983674, 0.39817378, 0.7858866, 0.90109515, 0.5441741, 0.6534582, 0.9902577, 0.5279418, 0.7744405, 0.3976747, 0.734416, 
[0.13983674, 0.39817378, 0.7858866, 0.90109515, 0.5441741, 0.6534582, 0.9902577, 0.5279418, 0.7744405, 0.3976747, 0.734416, 
[0.13983674, 0.39817378, 0.7858866, 0.90109515, 0.5441741, 0.6534582, 0.9902577, 0.5279418, 0.7744405, 0.3976747, 0.734416,</description>
      <pubDate>Fri, 26 Oct 2012 00:13:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926773#M1511</guid>
      <dc:creator>Peter_Vandendriessch</dc:creator>
      <dc:date>2012-10-26T00:13:17Z</dc:date>
    </item>
    <item>
      <title>Can you let me know what</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926774#M1512</link>
      <description>Can you let me know what version of the CPU runtime you have? I have verified that the later version (I am using an internal version) of the CPU runtime outputs correct values consistently.

Thanks,
Raghu</description>
      <pubDate>Fri, 26 Oct 2012 22:55:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926774#M1512</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-10-26T22:55:32Z</dc:date>
    </item>
    <item>
      <title>Quote:Raghupathi</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926775#M1513</link>
      <description>&lt;BLOCKQUOTE&gt;Raghupathi Muthyalampalli (Intel) wrote:&lt;BR /&gt;&lt;P&gt;Can you let me know what version of the CPU runtime you have? I have verified that the later version (I am using an internal version) of the CPU runtime outputs correct values consistently.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;
Raghu&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
I used the most recent version at the time of my initial post. I'm glad to hear that Intel has solved the problem in their newest internal version. When will this internal version be ready for download?</description>
      <pubDate>Sun, 28 Oct 2012 13:57:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Weird-bug-on-Intel-OpenCL-platform/m-p/926775#M1513</guid>
      <dc:creator>Peter_Vandendriessch</dc:creator>
      <dc:date>2012-10-28T13:57:58Z</dc:date>
    </item>
  </channel>
</rss>

