<?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 HD4400 clEnqueueCopyBufferRect issue? in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047384#M3979</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;we've detected suspicious behaviour of&amp;nbsp;clEnqueueWriteBufferRect/&lt;WBR /&gt;clEnqueueCopyBufferRect functions which is demonstrated with simple test case attached. The test case depends on OpenCL API only. This work correctly on AMD Tahiti but not on Intel HD4400, HD4600.&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;The problem is in copying rectangle of interest with some specific parameters from whole image, which is kept in cl buffer.&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;The short description of test case:&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;1. create opencl buffer for whole image (not initialized)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;2. copy to this buffer data a from aligned host memory rectangle with some specific parameters (using clEnqueueWriteBufferRect)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;3. create opencl buffer for size of rectangle used on previous step (not initialized)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;4. copy gpu data for the rectangle from whole image cl buffer to this rectangle-only cl buffer (using clEnqueueCopyBufferRect)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;5. map rectangle-only cl buffer to host memory&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;6. compare content of original host data for rectangle with content of this mapped memory. It is expected to be exactly the same but it is not on our environment (HD4400).&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;Below is sample output&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;on AMD system:&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;
	&lt;DIV style="font-size: 12.8000001907349px;"&gt;&amp;nbsp;&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;C:\project\vdudnik\iocl-bug\&lt;WBR /&gt;build\Debug&amp;gt;iocl-bug.exe&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;AMD Accelerated Parallel Processing&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;OpenCL 1.2 AMD-APP (1445.5)&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Advanced Micro Devices, Inc.&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Tahiti&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;no mismatch found, test PASSED&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;on Intel system:&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;
	&lt;DIV style="font-size: 12.8000001907349px;"&gt;C:\dev\iocl-bug\build\Debug&amp;gt;&lt;WBR /&gt;iocl-bug.exe&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Intel(R) OpenCL&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;OpenCL 1.2&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Intel(R) Corporation&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Intel(R) HD Graphics 4400&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 0 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 1 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 2 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 3 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 4 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 0 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 1 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 2 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 3 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 4 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 5 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 6 X 2 ], expected = 4, actual = 0&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 7 X 2 ], expected = 4, actual = 0&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;show only few first mismatches.., test FAILED&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;To build this test case CMake 3.1+ is required.&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; Vladimir&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2015 17:23:37 GMT</pubDate>
    <dc:creator>Vladimir_D_Intel1</dc:creator>
    <dc:date>2015-08-10T17:23:37Z</dc:date>
    <item>
      <title>HD4400 clEnqueueCopyBufferRect issue?</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047384#M3979</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;we've detected suspicious behaviour of&amp;nbsp;clEnqueueWriteBufferRect/&lt;WBR /&gt;clEnqueueCopyBufferRect functions which is demonstrated with simple test case attached. The test case depends on OpenCL API only. This work correctly on AMD Tahiti but not on Intel HD4400, HD4600.&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;The problem is in copying rectangle of interest with some specific parameters from whole image, which is kept in cl buffer.&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;The short description of test case:&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;1. create opencl buffer for whole image (not initialized)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;2. copy to this buffer data a from aligned host memory rectangle with some specific parameters (using clEnqueueWriteBufferRect)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;3. create opencl buffer for size of rectangle used on previous step (not initialized)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;4. copy gpu data for the rectangle from whole image cl buffer to this rectangle-only cl buffer (using clEnqueueCopyBufferRect)&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;5. map rectangle-only cl buffer to host memory&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;6. compare content of original host data for rectangle with content of this mapped memory. It is expected to be exactly the same but it is not on our environment (HD4400).&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;Below is sample output&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;on AMD system:&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;
	&lt;DIV style="font-size: 12.8000001907349px;"&gt;&amp;nbsp;&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;C:\project\vdudnik\iocl-bug\&lt;WBR /&gt;build\Debug&amp;gt;iocl-bug.exe&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;AMD Accelerated Parallel Processing&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;OpenCL 1.2 AMD-APP (1445.5)&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Advanced Micro Devices, Inc.&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Tahiti&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;no mismatch found, test PASSED&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;on Intel system:&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;
	&lt;DIV style="font-size: 12.8000001907349px;"&gt;C:\dev\iocl-bug\build\Debug&amp;gt;&lt;WBR /&gt;iocl-bug.exe&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Intel(R) OpenCL&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;OpenCL 1.2&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Intel(R) Corporation&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;Intel(R) HD Graphics 4400&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 0 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 1 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 2 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 3 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 4 X 1 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 0 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 1 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 2 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 3 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 4 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 5 X 2 ], expected = 4, actual = 55&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 6 X 2 ], expected = 4, actual = 0&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;detetcted mismatch: [ 7 X 2 ], expected = 4, actual = 0&lt;/DIV&gt;

	&lt;DIV style="font-size: 12.8000001907349px;"&gt;show only few first mismatches.., test FAILED&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: normal;"&gt;To build this test case CMake 3.1+ is required.&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; Vladimir&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 17:23:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047384#M3979</guid>
      <dc:creator>Vladimir_D_Intel1</dc:creator>
      <dc:date>2015-08-10T17:23:37Z</dc:date>
    </item>
    <item>
      <title>Hi Vladimir,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047385#M3980</link>
      <description>&lt;P&gt;Hi Vladimir,&lt;/P&gt;

&lt;P&gt;Before I attempt to reproduce this, couple of questions:&lt;/P&gt;

&lt;P&gt;1. What OS version are you using?&lt;/P&gt;

&lt;P&gt;2. What version of the graphics driver are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 22:09:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047385#M3980</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-08-10T22:09:46Z</dc:date>
    </item>
    <item>
      <title>Hi Robert,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047386#M3981</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;

&lt;P&gt;We've used Windows 7 Service Pack 1, x64&lt;/P&gt;

&lt;P&gt;Video driver version is 10.18.14.4139 WHQL Win7 64&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Vladimir&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 22:21:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047386#M3981</guid>
      <dc:creator>Vladimir_D_Intel1</dc:creator>
      <dc:date>2015-08-10T22:21:10Z</dc:date>
    </item>
    <item>
      <title>Hi Vladimir,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047387#M3982</link>
      <description>&lt;P&gt;Hi Vladimir,&lt;/P&gt;

&lt;P&gt;I just reproduced your problem on a newer driver and OS. I will take a closer look at the code and file a bug if there is an issue on our side. Thank you for reporting this problem!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 22:43:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047387#M3982</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-08-10T22:43:49Z</dc:date>
    </item>
    <item>
      <title>Ok, thanks.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047388#M3983</link>
      <description>&lt;P&gt;Ok, thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 22:50:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/HD4400-clEnqueueCopyBufferRect-issue/m-p/1047388#M3983</guid>
      <dc:creator>Vladimir_D_Intel1</dc:creator>
      <dc:date>2015-08-10T22:50:00Z</dc:date>
    </item>
  </channel>
</rss>

