<?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中的主题 Re: eiQ - Distributed CNN inference</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1331442#M179299</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1941"&gt;@Yuri&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;MX 8QuadMax.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 04:56:51 GMT</pubDate>
    <dc:creator>nullbyte91</dc:creator>
    <dc:date>2021-08-30T04:56:51Z</dc:date>
    <item>
      <title>eiQ - Distributed CNN inference</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1331291#M179275</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Is it possible to distribute the CNN inference engine to both CPU and GPU using ARMNN/TFLite?&lt;BR /&gt;We have our custom network that can run both CPU and GPU. We are looking for an option to distribute the inference engine to both CPU and GPU to get higher FPS.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jegathesan S&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 06:11:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1331291#M179275</guid>
      <dc:creator>nullbyte91</dc:creator>
      <dc:date>2021-08-29T06:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: eiQ - Distributed CNN inference</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1331434#M179298</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190764"&gt;@nullbyte91&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; What i.MX device is used in the case?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 04:44:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1331434#M179298</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2021-08-30T04:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: eiQ - Distributed CNN inference</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1331442#M179299</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1941"&gt;@Yuri&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;MX 8QuadMax.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 04:56:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1331442#M179299</guid>
      <dc:creator>nullbyte91</dc:creator>
      <dc:date>2021-08-30T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: eiQ - Distributed CNN inference</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1332155#M179362</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190764"&gt;@nullbyte91&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; from app team:&lt;/P&gt;
&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #333f48; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp; In short, there is no such option in eIQ that can support a CNN to run on both CPU and GPU at the same time.&amp;nbsp;&lt;/P&gt;
&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #333f48; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp; However, it's possible from the application level to achieve that. As you can find in the eIQ demo, we can switch CPU/GPU inference in this application:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imxsupport/pyeiq/tree/eiq/apps/switch_video/switch_video.py?h=v3.0.0" target="_blank"&gt;https://source.codeaurora.org/external/imxsupport/pyeiq/tree/eiq/apps/switch_video/switch_video.py?h=v3.0.0&lt;/A&gt;&lt;/P&gt;
&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #333f48; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&amp;nbsp; Let's assume that GPU inference will take 0.1s to finish one frame and CPU inference will take 0.5s to finish one frame. We can give frame 6, 12 to CPU inference thread to calculate and frame 1-5, 7-11 to GPU inference thread to calculate. By the end of 1 second, we will have totally 12 frames finished inference. Comparing to use GPU only, it can raise FPS from 10 to 12.&lt;/P&gt;
&lt;P style="box-sizing: border-box; margin: 0px 0px 15px; color: #333f48; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But in reality, it's not easy to keep perfect sync between CPU and GPU. And usually GPU is much faster ,comparing to CPU, to run CNN inference. Therefore it may not be worthy to include CPU but adding this SW complexity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Yuri,&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 04:27:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/eiQ-Distributed-CNN-inference/m-p/1332155#M179362</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2021-08-31T04:27:28Z</dc:date>
    </item>
  </channel>
</rss>

