<?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 Barrier error, when using __local qualified memory in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Barrier-error-when-using-local-qualified-memory/m-p/927758#M1514</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;"aftrer using barrier function the value in memory, which is qualified as __local, is changed."&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I could narrow down the range.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	The problem comes from using barrier when I read and write some data in memory(array), which is qualified as __local.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	I didn't see there is some limitation&amp;nbsp; the memory area must be used as only reading or writing.&lt;/P&gt;

&lt;P&gt;But it seems to be operated that there is the cache and when local memory is read, that is saved in cache and flush when I use barrier, which argument is&amp;nbsp; "CLK_LOCAL_MEM_FENCE"&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	The original descritption of "CLK_LOCAL_MEM_FENCE"is like below&lt;/P&gt;

&lt;P&gt;CLK_LOCAL_MEM_FENCE: The barrier function&lt;BR /&gt;
	will either flush any variables stored in local memory or queue a memory fence to ensure&lt;BR /&gt;
	correct ordering of memory operations to local memory.&lt;/P&gt;

&lt;P&gt;But I don't know this phonomina is from my mis-operation or potential bug.&lt;BR /&gt;
	Is there anyone who give some solution?&lt;/P&gt;

&lt;P&gt;I attached another documents and new test kernel.&lt;/P&gt;

&lt;P&gt;file names are "Barrier Error2.docx" and "BitonicSort_Kernels.cl" which is placed in Bitonic_APU.zip file.&lt;BR /&gt;
	and the function for testing is "TEST_BARRIER_0" in BitonicSort_Kernel.cl&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2014 22:25:38 GMT</pubDate>
    <dc:creator>KI_JU_L_</dc:creator>
    <dc:date>2014-02-25T22:25:38Z</dc:date>
    <item>
      <title>Barrier error, when using __local qualified memory</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Barrier-error-when-using-local-qualified-memory/m-p/927758#M1514</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;"aftrer using barrier function the value in memory, which is qualified as __local, is changed."&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I could narrow down the range.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	The problem comes from using barrier when I read and write some data in memory(array), which is qualified as __local.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	I didn't see there is some limitation&amp;nbsp; the memory area must be used as only reading or writing.&lt;/P&gt;

&lt;P&gt;But it seems to be operated that there is the cache and when local memory is read, that is saved in cache and flush when I use barrier, which argument is&amp;nbsp; "CLK_LOCAL_MEM_FENCE"&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	The original descritption of "CLK_LOCAL_MEM_FENCE"is like below&lt;/P&gt;

&lt;P&gt;CLK_LOCAL_MEM_FENCE: The barrier function&lt;BR /&gt;
	will either flush any variables stored in local memory or queue a memory fence to ensure&lt;BR /&gt;
	correct ordering of memory operations to local memory.&lt;/P&gt;

&lt;P&gt;But I don't know this phonomina is from my mis-operation or potential bug.&lt;BR /&gt;
	Is there anyone who give some solution?&lt;/P&gt;

&lt;P&gt;I attached another documents and new test kernel.&lt;/P&gt;

&lt;P&gt;file names are "Barrier Error2.docx" and "BitonicSort_Kernels.cl" which is placed in Bitonic_APU.zip file.&lt;BR /&gt;
	and the function for testing is "TEST_BARRIER_0" in BitonicSort_Kernel.cl&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 22:25:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Barrier-error-when-using-local-qualified-memory/m-p/927758#M1514</guid>
      <dc:creator>KI_JU_L_</dc:creator>
      <dc:date>2014-02-25T22:25:38Z</dc:date>
    </item>
    <item>
      <title>My Processor is Intel i-5</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Barrier-error-when-using-local-qualified-memory/m-p/927759#M1515</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is my environment&lt;/P&gt;

&lt;P&gt;Processor&amp;nbsp;: Intel i-5-2410M @2.3GHz&lt;/P&gt;

&lt;P&gt;version of SDK : 2013 R3&lt;/P&gt;

&lt;P&gt;and using Visual studio 2010&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 22:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Barrier-error-when-using-local-qualified-memory/m-p/927759#M1515</guid>
      <dc:creator>KI_JU_L_</dc:creator>
      <dc:date>2014-02-25T22:48:00Z</dc:date>
    </item>
  </channel>
</rss>

