<?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>i.MX Processorsのトピックi.MX6 OpenCL Zero Copy Buffer Usage is Slow</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OpenCL-Zero-Copy-Buffer-Usage-is-Slow/m-p/438434#M67277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Issue description:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Reference Board: SMARC-sAMX6i &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Kernel version: 3.10.17-rel1.0+g232293e&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-weight: inherit; font-family: inherit; line-height: 1.5; font-style: inherit;"&gt;Problem Description: using CL_MEM_ALLOC_HOST_PTR, clEnqueueMapBuffer and clEnqueueUnmapMemObject properly should allow fast sharing of data between host and device, but instead it provides very slow access to the mapped memory.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Intel provides some examples of using zero copy buffers in OpenCL: &lt;A href="https://software.intel.com/en-us/articles/getting-the-most-from-opencl-12-how-to-increase-performance-by-minimizing-buffer-copies-on-intel-processor-graphics" title="https://software.intel.com/en-us/articles/getting-the-most-from-opencl-12-how-to-increase-performance-by-minimizing-buffer-copies-on-intel-processor-graphics"&gt;Getting the Most from OpenCL™ 1.2: How to Increase Performance by Minimizing Buffer Copies on Intel® Processor Graphics …&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-weight: inherit; font-family: inherit; line-height: 1.5; font-style: inherit;"&gt;always reproducible when using CL_MEM_ALLOC_HOST_PTR, clEnqueueMapBuffer and clEnqueueUnmapMemObject&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: inherit; font-family: inherit; line-height: 1.5; font-style: inherit;"&gt;I am noticing terrible performance using zero copy buffers on the i.MX6 as can be seen in the following benchmarks: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# host and device use separate buffers&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;NEON&amp;nbsp;&amp;nbsp; framerate : 100.069185&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;OpenCL framerate : 751.673579&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;# host and device use same buffer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;NEON&amp;nbsp;&amp;nbsp; framerate : 40.988317&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;OpenCL framerate : 48.976948&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;I believe that the host pointer allocated by the Vivante driver is uncached and causing the terrible performance we are seeing.&amp;nbsp; This is highly unfortunate in the case where CPU and GPU shared memory could be leveraged for greater performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 13:09:10 GMT</pubDate>
    <dc:creator>smrhein</dc:creator>
    <dc:date>2015-08-13T13:09:10Z</dc:date>
    <item>
      <title>i.MX6 OpenCL Zero Copy Buffer Usage is Slow</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OpenCL-Zero-Copy-Buffer-Usage-is-Slow/m-p/438434#M67277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Issue description:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Reference Board: SMARC-sAMX6i &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Kernel version: 3.10.17-rel1.0+g232293e&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-weight: inherit; font-family: inherit; line-height: 1.5; font-style: inherit;"&gt;Problem Description: using CL_MEM_ALLOC_HOST_PTR, clEnqueueMapBuffer and clEnqueueUnmapMemObject properly should allow fast sharing of data between host and device, but instead it provides very slow access to the mapped memory.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #333333;"&gt;Intel provides some examples of using zero copy buffers in OpenCL: &lt;A href="https://software.intel.com/en-us/articles/getting-the-most-from-opencl-12-how-to-increase-performance-by-minimizing-buffer-copies-on-intel-processor-graphics" title="https://software.intel.com/en-us/articles/getting-the-most-from-opencl-12-how-to-increase-performance-by-minimizing-buffer-copies-on-intel-processor-graphics"&gt;Getting the Most from OpenCL™ 1.2: How to Increase Performance by Minimizing Buffer Copies on Intel® Processor Graphics …&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-weight: inherit; font-family: inherit; line-height: 1.5; font-style: inherit;"&gt;always reproducible when using CL_MEM_ALLOC_HOST_PTR, clEnqueueMapBuffer and clEnqueueUnmapMemObject&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-weight: inherit; font-family: inherit; line-height: 1.5; font-style: inherit;"&gt;I am noticing terrible performance using zero copy buffers on the i.MX6 as can be seen in the following benchmarks: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# host and device use separate buffers&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;NEON&amp;nbsp;&amp;nbsp; framerate : 100.069185&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;OpenCL framerate : 751.673579&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;# host and device use same buffer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;NEON&amp;nbsp;&amp;nbsp; framerate : 40.988317&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;OpenCL framerate : 48.976948&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;I believe that the host pointer allocated by the Vivante driver is uncached and causing the terrible performance we are seeing.&amp;nbsp; This is highly unfortunate in the case where CPU and GPU shared memory could be leveraged for greater performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 13:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-OpenCL-Zero-Copy-Buffer-Usage-is-Slow/m-p/438434#M67277</guid>
      <dc:creator>smrhein</dc:creator>
      <dc:date>2015-08-13T13:09:10Z</dc:date>
    </item>
  </channel>
</rss>

