<?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 I tried reproducing this on a in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945348#M1869</link>
    <description>&lt;P&gt;I tried reproducing this on a newer driver as well as the driver you mentioned without success. I am using the 2014 SDK though, but I do believe that this wont make any difference.&lt;/P&gt;

&lt;P&gt;Is the code you posted&amp;nbsp;the whole kernel or part of a bigger kernel? If its latter, then I suspect the bug is else where in your code.&lt;/P&gt;

&lt;P&gt;Raghu&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2014 18:54:04 GMT</pubDate>
    <dc:creator>Raghupathi_M_Intel</dc:creator>
    <dc:date>2014-03-13T18:54:04Z</dc:date>
    <item>
      <title>Bug in OpenCL driver on Intel HD Graphics?</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945347#M1868</link>
      <description>&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Hello.&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I found a curious bug in Intel OpenCL driver on&amp;nbsp;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Intel HD Graphics 4600 (Core i5 4570).&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Driver version: 10.18.10.3412&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Intel OpenCL SDK Version: 2013 R3 64-bit&lt;/P&gt;

&lt;P style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;I write following kernel:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;
    int gidx = get_global_id(0);
    int gidy = get_global_id(1);
    
    __local uchar temp[3];
    uchar r = 255;
    if (gidx == 0 &amp;amp;&amp;amp; gidy == 0)
    {
        temp[0] = 255;
        temp[1] = 34;
        temp[2] = 255;
        for (int i=0; i&amp;lt;3; i++)
        {
            printf("temp&lt;I&gt; = %d\n", temp&lt;I&gt;);
            printf("r = %d\n", r);
            r = min(r,temp&lt;I&gt;);
        }
    }&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;When I run it I get:&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13px;"&gt;
temp&lt;I&gt; = 255
r = 255
temp&lt;I&gt; = 34
r = 15
temp&lt;I&gt; = 255
r = 15&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;Variable 'r' have incorrect value (15 instead 34). What may cause the problem?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:29:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945347#M1868</guid>
      <dc:creator>Alexander_Karsakov</dc:creator>
      <dc:date>2014-03-13T13:29:17Z</dc:date>
    </item>
    <item>
      <title>I tried reproducing this on a</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945348#M1869</link>
      <description>&lt;P&gt;I tried reproducing this on a newer driver as well as the driver you mentioned without success. I am using the 2014 SDK though, but I do believe that this wont make any difference.&lt;/P&gt;

&lt;P&gt;Is the code you posted&amp;nbsp;the whole kernel or part of a bigger kernel? If its latter, then I suspect the bug is else where in your code.&lt;/P&gt;

&lt;P&gt;Raghu&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 18:54:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945348#M1869</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2014-03-13T18:54:04Z</dc:date>
    </item>
    <item>
      <title>This code is the whole kernel</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945349#M1870</link>
      <description>&lt;P&gt;This code is the whole kernel. This is simplified case from Erode function in OpenCV library. And it correct works on other platforms (Nvidia, AMD, Intel CPU).&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If I define:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;
#define OP_MIN((A),(B)) (A) &amp;lt; (B) ? (A) : (B)&lt;/PRE&gt;

&lt;P&gt;and replace min() for OP_MIN this example gives correct result (include Intel GPU), but works a little slower.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I will try to install new version of Intel OpenCL SDK to check it.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945349#M1870</guid>
      <dc:creator>Alexander_Karsakov</dc:creator>
      <dc:date>2014-03-14T05:56:00Z</dc:date>
    </item>
    <item>
      <title>Another strange detail: this</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945350#M1871</link>
      <description>&lt;P&gt;Another strange detail: this error occurs only with min() function.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Similar example with max() works correct:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;
    int gidx = get_global_id(0);
    int gidy = get_global_id(1);

    __local uchar temp[3];
    uchar r = 0;
    if (gidx == 0 &amp;amp;&amp;amp; gidy == 0)
    {
        temp[0] = 0;
        temp[1] = 34;
        temp[2] = 0;
        for (int i=0; i&amp;lt;3; i++)
        {
            printf("temp&lt;I&gt; = %d\n", temp&lt;I&gt;);
            printf("r = %d\n", r);
            r = max(r,temp&lt;I&gt;);
        }
    }&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:47:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945350#M1871</guid>
      <dc:creator>Alexander_Karsakov</dc:creator>
      <dc:date>2014-03-14T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Hi Raghu,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945351#M1872</link>
      <description>&lt;P&gt;Hi Raghu.&lt;/P&gt;

&lt;P&gt;I checked this code with Intel OpenCL SDK Version 2014. And this error still occurs for me.&amp;nbsp;&lt;BR /&gt;
	What do you suggest for solving this issue?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Alexander.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 07:42:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945351#M1872</guid>
      <dc:creator>Alexander_Karsakov</dc:creator>
      <dc:date>2014-03-17T07:42:06Z</dc:date>
    </item>
    <item>
      <title>Hi Raghu.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945352#M1873</link>
      <description>&lt;P&gt;Hi Raghu.&lt;/P&gt;

&lt;P&gt;I still wait for your response.&amp;nbsp;If it can help, here is a link to the original code of 'erode' function from OpenCV library -&amp;nbsp;&lt;A href="https://github.com/Itseez/opencv/blob/master/modules/imgproc/src/opencl/morph.cl"&gt;https://github.com/Itseez/opencv/blob/master/modules/imgproc/src/opencl/morph.cl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Alexander.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 07:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945352#M1873</guid>
      <dc:creator>Alexander_Karsakov</dc:creator>
      <dc:date>2014-03-20T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Hi Alexander,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945353#M1874</link>
      <description>&lt;P&gt;Hi Alexander,&lt;/P&gt;

&lt;P&gt;Did you update the driver or are you still using 10.18.10.3412?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Raghu&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 20:10:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945353#M1874</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2014-03-20T20:10:01Z</dc:date>
    </item>
    <item>
      <title>Hi Alexander,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945354#M1875</link>
      <description>&lt;P&gt;Hi Alexander,&lt;/P&gt;

&lt;P&gt;I retested this on another driver and was able to reproduce the behavior you are seeing. I will open a bug and let you know when the fix is in.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Raghu&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 21:48:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945354#M1875</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2014-03-20T21:48:07Z</dc:date>
    </item>
    <item>
      <title>After further debugging,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945355#M1876</link>
      <description>&lt;P&gt;After further debugging, looks like r gets truncated to 4 bits. This issue is fixed/not reproducible in the internal drivers. I dont have any info on when the next driver will be posted, but I'll keep you updated.&lt;/P&gt;

&lt;P&gt;Raghu&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 22:46:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945355#M1876</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2014-03-20T22:46:04Z</dc:date>
    </item>
    <item>
      <title>Hi Raghu,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945356#M1877</link>
      <description>&lt;P&gt;Hi Raghu,&lt;/P&gt;

&lt;P&gt;I updated to the latest beta driver (10.18.10.3496).&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;

&lt;P&gt;Alexander.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 04:44:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Bug-in-OpenCL-driver-on-Intel-HD-Graphics/m-p/945356#M1877</guid>
      <dc:creator>Alexander_Karsakov</dc:creator>
      <dc:date>2014-03-21T04:44:43Z</dc:date>
    </item>
  </channel>
</rss>

