<?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 Re: Local memory from OpenCL on imx6q in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Local-memory-from-OpenCL-on-imx6q/m-p/798266#M123471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I had read this in the graphics user guide. My question is about what is not covered in the guide: How can I get local memory type to be CL_LOCAL instead of CL_GLOBAL ? What happens to this 1kB memory in case it is CL_GLOBAL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 12:37:42 GMT</pubDate>
    <dc:creator>aballier</dc:creator>
    <dc:date>2018-10-25T12:37:42Z</dc:date>
    <item>
      <title>Local memory from OpenCL on imx6q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Local-memory-from-OpenCL-on-imx6q/m-p/798264#M123469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to make use of the 1kB local memory from OpenCL on the imx6q ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The i.MX Graphics User’s Guide states:&lt;/P&gt;&lt;P&gt;&amp;gt; if local memory type is CL_GLOBAL, the local memory is emulated using global memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that is exactly what I have here (with imx-gpu-viv_6.2.4.p1.6 drivers). Initial benchmarks show that there is no gain (or rather a performance loss) when trying to use local from OpenCL, and that the 1kB limit does not apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some option to change the local memory type ? How is this cache used in the case local memory is emulated by global memory ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 11:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Local-memory-from-OpenCL-on-imx6q/m-p/798264#M123469</guid>
      <dc:creator>aballier</dc:creator>
      <dc:date>2018-10-16T11:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Local memory from OpenCL on imx6q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Local-memory-from-OpenCL-on-imx6q/m-p/798265#M123470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the OpenCL Embedded Profile specification defines the minimum requirement for local &lt;BR /&gt;memory to be 1KB to pass conformance testing. Based on algorithm analysis and profiling &lt;BR /&gt;different image and computer vision algorithms, it was found that a 1KB local memory size &lt;BR /&gt;was too small to benefit those algorithms. In most cases, those algorithms actually slowed &lt;BR /&gt;down when using 1KB local memory. To increase performance recommended not using &lt;BR /&gt;local memory since it is more efficient to transfer larger chunks of data from system memory &lt;BR /&gt;to keep the OpenCL pipeline full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If local memory type is CL_GLOBAL, the local memory is emulated using global memory, &lt;BR /&gt;and the performance will be the same as global memory. There is extra overhead on data &lt;BR /&gt;copy from global to local, which will slow down the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 00:38:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Local-memory-from-OpenCL-on-imx6q/m-p/798265#M123470</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-10-25T00:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Local memory from OpenCL on imx6q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Local-memory-from-OpenCL-on-imx6q/m-p/798266#M123471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I had read this in the graphics user guide. My question is about what is not covered in the guide: How can I get local memory type to be CL_LOCAL instead of CL_GLOBAL ? What happens to this 1kB memory in case it is CL_GLOBAL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:37:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Local-memory-from-OpenCL-on-imx6q/m-p/798266#M123471</guid>
      <dc:creator>aballier</dc:creator>
      <dc:date>2018-10-25T12:37:42Z</dc:date>
    </item>
  </channel>
</rss>

