<?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 Thanks. Yes, I fixed this -  in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/clEnqueueCopyBufferRect-crashes-with-access-violation-in-cpu/m-p/979019#M2494</link>
    <description>&lt;P&gt;Thanks. Yes, I fixed this - &amp;nbsp;the error was here:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; color: rgb(96, 96, 96); line-height: 1.5;"&gt;&amp;nbsp;size_t region[] = { img_size.s[0] * sizeof(type_data), img_size.s[1] * sizeof(type_data) };&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;The y coordinate should not be multiplied by sizeof(type_data).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;So, nothing to do with bugs in the library.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2014 20:06:10 GMT</pubDate>
    <dc:creator>ABoxe</dc:creator>
    <dc:date>2014-04-17T20:06:10Z</dc:date>
    <item>
      <title>clEnqueueCopyBufferRect crashes with access violation in cpu_device32.dll</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clEnqueueCopyBufferRect-crashes-with-access-violation-in-cpu/m-p/979017#M2492</link>
      <description>&lt;P&gt;I have several calls to&amp;nbsp;clEnqueueCopyBufferRect to copy data between two device buffers.&lt;/P&gt;

&lt;P&gt;After a few calls, I get a crash with an access violation.&lt;/P&gt;

&lt;P&gt;I am using the 2014 beta sdk, targetting my Intel i7 cpu.&lt;/P&gt;

&lt;P&gt;Here is a code snippet:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;size_t bufferOffset[] = { 0, 0};&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:;"&gt;
		   // The region size must be given in bytes
			size_t region[] = { img_size.s[0] * sizeof(type_data), img_size.s[1] * sizeof(type_data) };

			clEnqueueCopyBufferRect ( oclObjects.queue, 	//copy command will be queued
				          (cl_mem)d_odata,		
						  (cl_mem)(d_idata),		
						  bufferOffset,	//offset associated with src_buffer
						  bufferOffset,     //offset associated with src_buffer
						  region,		//(width, height, depth) in bytes of the 2D or 3D rectangle being copied
						  tile_comp-&amp;gt;width * sizeof(type_data),   //length of each row in bytes
						  0, //length of each 2D slice in bytes 
						  tile_comp-&amp;gt;width * sizeof(type_data) ,   //length of each row in bytes
						  0, //length of each 2D slice in bytes
						  0,
						  NULL,
						  NULL);

			err = clEnqueueBarrier(oclObjects.queue);
			SAMPLE_CHECK_ERRORS(err);
						  &lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Aaron&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2014 01:37:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clEnqueueCopyBufferRect-crashes-with-access-violation-in-cpu/m-p/979017#M2492</guid>
      <dc:creator>ABoxe</dc:creator>
      <dc:date>2014-04-13T01:37:24Z</dc:date>
    </item>
    <item>
      <title>Sounds like you maybe writing</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clEnqueueCopyBufferRect-crashes-with-access-violation-in-cpu/m-p/979018#M2493</link>
      <description>&lt;P&gt;Sounds like you maybe writing beyond the buffer boundaries. Did you narrow it down to some issue in the runtime? Anyway you cannot create and attach a small reproducer?&lt;/P&gt;

&lt;P&gt;Raghu&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:12:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clEnqueueCopyBufferRect-crashes-with-access-violation-in-cpu/m-p/979018#M2493</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2014-04-17T18:12:50Z</dc:date>
    </item>
    <item>
      <title>Thanks. Yes, I fixed this -</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clEnqueueCopyBufferRect-crashes-with-access-violation-in-cpu/m-p/979019#M2494</link>
      <description>&lt;P&gt;Thanks. Yes, I fixed this - &amp;nbsp;the error was here:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; color: rgb(96, 96, 96); line-height: 1.5;"&gt;&amp;nbsp;size_t region[] = { img_size.s[0] * sizeof(type_data), img_size.s[1] * sizeof(type_data) };&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;The y coordinate should not be multiplied by sizeof(type_data).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;So, nothing to do with bugs in the library.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 20:06:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clEnqueueCopyBufferRect-crashes-with-access-violation-in-cpu/m-p/979019#M2494</guid>
      <dc:creator>ABoxe</dc:creator>
      <dc:date>2014-04-17T20:06:10Z</dc:date>
    </item>
  </channel>
</rss>

