<?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 i.mx6q darknet opencl error: out of resource in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6q-darknet-opencl-error-out-of-resource/m-p/826695#M127102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm&amp;nbsp;porting&amp;nbsp;&lt;A class="link-titled" href="https://github.com/lincolnhard/darknet-clblast" title="https://github.com/lincolnhard/darknet-clblast"&gt;GitHub - lincolnhard/darknet-clblast: Run darknet using OpenCL backend with CLBlast sgemm&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;on i.mx6q board, I got&amp;nbsp;some&amp;nbsp;errors, here's the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;r$ ./clb-darknet detect cfg/yolov2-tiny.cfg yolov2-tiny.weights data/dog.jpg &amp;gt; run.log&lt;BR /&gt;layer filters size input output&lt;BR /&gt; 0 conv 16 3 x 3 / 1 416 x 416 x 3 -&amp;gt; 416 x 416 x 16&lt;BR /&gt; 1 max 2 x 2 / 2 416 x 416 x 16 -&amp;gt; 208 x 208 x 16&lt;BR /&gt; 2 conv 32 3 x 3 / 1 208 x 208 x 16 -&amp;gt; 208 x 208 x 32&lt;BR /&gt; 3 max 2 x 2 / 2 208 x 208 x 32 -&amp;gt; 104 x 104 x 32&lt;BR /&gt; 4 conv 64 3 x 3 / 1 104 x 104 x 32 -&amp;gt; 104 x 104 x 64&lt;BR /&gt; 5 max 2 x 2 / 2 104 x 104 x 64 -&amp;gt; 52 x 52 x 64&lt;BR /&gt; 6 conv 128 3 x 3 / 1 52 x 52 x 64 -&amp;gt; 52 x 52 x 128&lt;BR /&gt; 7 max 2 x 2 / 2 52 x 52 x 128 -&amp;gt; 26 x 26 x 128&lt;BR /&gt; 8 conv 256 3 x 3 / 1 26 x 26 x 128 -&amp;gt; 26 x 26 x 256&lt;BR /&gt; 9 max 2 x 2 / 2 26 x 26 x 256 -&amp;gt; 13 x 13 x 256&lt;BR /&gt; 10 conv 512 3 x 3 / 1 13 x 13 x 256 -&amp;gt; 13 x 13 x 512&lt;BR /&gt; 11 max 2 x 2 / 1 13 x 13 x 512 -&amp;gt; 13 x 13 x 512&lt;BR /&gt; 12 conv 1024 3 x 3 / 1 13 x 13 x 512 -&amp;gt; 13 x 13 x1024&lt;BR /&gt; 13 conv 512 3 x 3 / 1 13 x 13 x1024 -&amp;gt; 13 x 13 x 512&lt;BR /&gt; 14 conv 425 1 x 1 / 1 13 x 13 x 512 -&amp;gt; 13 x 13 x 425&lt;BR /&gt; 15 detection&lt;BR /&gt;mask_scale: Using default '1.000000'&lt;BR /&gt;Loading weights from yolov2-tiny.weights...Done!&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clEnqueueNDRangeKernel: -54&lt;BR /&gt;CLBlast: OpenCL error: clEnqueueNDRangeKernel: -54&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;the opencl error -5 means 'out of resource'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I traced the code that caused the problem was the attached file 'xgemm_direct_part3.opencl'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any document about i.mx6q gpu for opencl resource limitation?&lt;/P&gt;&lt;P&gt;How can I optimize the xgemm opencl code to use less resources?&lt;/P&gt;&lt;P&gt;Any suggestion would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2018 10:48:44 GMT</pubDate>
    <dc:creator>chris_lee</dc:creator>
    <dc:date>2018-08-07T10:48:44Z</dc:date>
    <item>
      <title>i.mx6q darknet opencl error: out of resource</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6q-darknet-opencl-error-out-of-resource/m-p/826695#M127102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm&amp;nbsp;porting&amp;nbsp;&lt;A class="link-titled" href="https://github.com/lincolnhard/darknet-clblast" title="https://github.com/lincolnhard/darknet-clblast"&gt;GitHub - lincolnhard/darknet-clblast: Run darknet using OpenCL backend with CLBlast sgemm&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;on i.mx6q board, I got&amp;nbsp;some&amp;nbsp;errors, here's the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;r$ ./clb-darknet detect cfg/yolov2-tiny.cfg yolov2-tiny.weights data/dog.jpg &amp;gt; run.log&lt;BR /&gt;layer filters size input output&lt;BR /&gt; 0 conv 16 3 x 3 / 1 416 x 416 x 3 -&amp;gt; 416 x 416 x 16&lt;BR /&gt; 1 max 2 x 2 / 2 416 x 416 x 16 -&amp;gt; 208 x 208 x 16&lt;BR /&gt; 2 conv 32 3 x 3 / 1 208 x 208 x 16 -&amp;gt; 208 x 208 x 32&lt;BR /&gt; 3 max 2 x 2 / 2 208 x 208 x 32 -&amp;gt; 104 x 104 x 32&lt;BR /&gt; 4 conv 64 3 x 3 / 1 104 x 104 x 32 -&amp;gt; 104 x 104 x 64&lt;BR /&gt; 5 max 2 x 2 / 2 104 x 104 x 64 -&amp;gt; 52 x 52 x 64&lt;BR /&gt; 6 conv 128 3 x 3 / 1 52 x 52 x 64 -&amp;gt; 52 x 52 x 128&lt;BR /&gt; 7 max 2 x 2 / 2 52 x 52 x 128 -&amp;gt; 26 x 26 x 128&lt;BR /&gt; 8 conv 256 3 x 3 / 1 26 x 26 x 128 -&amp;gt; 26 x 26 x 256&lt;BR /&gt; 9 max 2 x 2 / 2 26 x 26 x 256 -&amp;gt; 13 x 13 x 256&lt;BR /&gt; 10 conv 512 3 x 3 / 1 13 x 13 x 256 -&amp;gt; 13 x 13 x 512&lt;BR /&gt; 11 max 2 x 2 / 1 13 x 13 x 512 -&amp;gt; 13 x 13 x 512&lt;BR /&gt; 12 conv 1024 3 x 3 / 1 13 x 13 x 512 -&amp;gt; 13 x 13 x1024&lt;BR /&gt; 13 conv 512 3 x 3 / 1 13 x 13 x1024 -&amp;gt; 13 x 13 x 512&lt;BR /&gt; 14 conv 425 1 x 1 / 1 13 x 13 x 512 -&amp;gt; 13 x 13 x 425&lt;BR /&gt; 15 detection&lt;BR /&gt;mask_scale: Using default '1.000000'&lt;BR /&gt;Loading weights from yolov2-tiny.weights...Done!&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;BR /&gt;CLBlast: OpenCL error: clEnqueueNDRangeKernel: -54&lt;BR /&gt;CLBlast: OpenCL error: clEnqueueNDRangeKernel: -54&lt;BR /&gt;CLBlast: OpenCL error: clCreateKernel: -5&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;the opencl error -5 means 'out of resource'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I traced the code that caused the problem was the attached file 'xgemm_direct_part3.opencl'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any document about i.mx6q gpu for opencl resource limitation?&lt;/P&gt;&lt;P&gt;How can I optimize the xgemm opencl code to use less resources?&lt;/P&gt;&lt;P&gt;Any suggestion would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6q-darknet-opencl-error-out-of-resource/m-p/826695#M127102</guid>
      <dc:creator>chris_lee</dc:creator>
      <dc:date>2018-08-07T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6q darknet opencl error: out of resource</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6q-darknet-opencl-error-out-of-resource/m-p/826696#M127103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of GPU tools. There is a GPU Demo Framework SDK which you can find on the link below (please note you may need to login to download).&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=FSL_GPU_SDK_2.3&amp;amp;appType=license&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product"&gt;https://www.nxp.com/webapp/Download?colCode=FSL_GPU_SDK_2.3&amp;amp;appType=license&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a profiler tool for the GPU available on the link below (for Kernel 4.1.15)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX6_L4-1-15_2-0-0_GPU-TOOL&amp;amp;appType=license&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product"&gt;https://www.nxp.com/webapp/Download?colCode=IMX6_L4-1-15_2-0-0_GPU-TOOL&amp;amp;appType=license&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darknet is not currently supported on the i.MX6Q BSP. Maybe some Community users can comment on this but perhaps you should ask this question in forums more focused on Darknet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 21:51:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6q-darknet-opencl-error-out-of-resource/m-p/826696#M127103</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2018-08-20T21:51:24Z</dc:date>
    </item>
  </channel>
</rss>

