<?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.MX8MQ] Android 13 can't use GPU Delegate to inference AI model in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MQ-Android-13-can-t-use-GPU-Delegate-to-inference-AI-model/m-p/1908208#M226150</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NXP reference design code base:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;i.MX8MQ&lt;/FONT&gt; platform / &lt;FONT color="#0000FF"&gt;Android 13&lt;/FONT&gt;.0.0_2.0.0 (L6.1.22_2.0.0 BSP)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We try to run a Image classification APK to evaluate GPU performance on i.MX8MQ,&amp;nbsp;but GPU is not supported on i.MX8MQ.&lt;/P&gt;&lt;P&gt;For example, if we run &lt;A title="TFLClassify_mobilenet.apk" href="https://drive.google.com/file/d/1ZHXTsNmTqCCtLQ6B8fqefKiJTb-uFfSZ/view?usp=sharing" target="_blank" rel="noopener"&gt;TFLClassify_mobilenet.apk(download link)&lt;/A&gt; on i.MX8MQ(Anldroid 13), the&amp;nbsp;log message will show &lt;FONT color="#FF0000"&gt;TFL Classify: This device is GPU Incompatible&lt;/FONT&gt; as the picture below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LogTFL_1.png" style="width: 796px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288473iD1A44BB59F66F3D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="LogTFL_1.png" alt="LogTFL_1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;LogTFL_1.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The source code also shows below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sourcecode.png" style="width: 629px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288470iF527CF60C356E289/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcecode.png" alt="sourcecode.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;sourcecode.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We also run benchmark to check GPU-delegate that can support on i.MX8MQ.&lt;BR /&gt;Please see the attached &lt;STRONG&gt;benchmark--use_gpu=true.txt&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;INFO: Use gpu: [1]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;INFO: Created TensorFlow Lite delegate for GPU.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;INFO: GPU delegate created.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We thought we should check first if i.MX8MQ supports GPU delegate as the picture below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add_GPU_Delegate.png" style="width: 732px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288471iE582EBFE9AA384C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add_GPU_Delegate.png" alt="Add_GPU_Delegate.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Add_GPU_Delegate.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;isSupported&lt;/FONT&gt;&lt;/STRONG&gt; always returns &lt;STRONG&gt;FALSE&lt;/STRONG&gt; on i.MX8MQ, we are assuming i.MX8MQ has not supported GPU Delegate yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to enable GPU Delegate so that &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;isSupported&lt;/FONT&gt;&lt;/STRONG&gt; can return &lt;STRONG&gt;TRUE&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;or could you please give us a sample code/apk that can support GPU-delegate for Android 13 on i.MX8MQ?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 03:04:09 GMT</pubDate>
    <dc:creator>KyleChang</dc:creator>
    <dc:date>2024-07-15T03:04:09Z</dc:date>
    <item>
      <title>[i.MX8MQ] Android 13 can't use GPU Delegate to inference AI model</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MQ-Android-13-can-t-use-GPU-Delegate-to-inference-AI-model/m-p/1908208#M226150</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NXP reference design code base:&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;i.MX8MQ&lt;/FONT&gt; platform / &lt;FONT color="#0000FF"&gt;Android 13&lt;/FONT&gt;.0.0_2.0.0 (L6.1.22_2.0.0 BSP)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We try to run a Image classification APK to evaluate GPU performance on i.MX8MQ,&amp;nbsp;but GPU is not supported on i.MX8MQ.&lt;/P&gt;&lt;P&gt;For example, if we run &lt;A title="TFLClassify_mobilenet.apk" href="https://drive.google.com/file/d/1ZHXTsNmTqCCtLQ6B8fqefKiJTb-uFfSZ/view?usp=sharing" target="_blank" rel="noopener"&gt;TFLClassify_mobilenet.apk(download link)&lt;/A&gt; on i.MX8MQ(Anldroid 13), the&amp;nbsp;log message will show &lt;FONT color="#FF0000"&gt;TFL Classify: This device is GPU Incompatible&lt;/FONT&gt; as the picture below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LogTFL_1.png" style="width: 796px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288473iD1A44BB59F66F3D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="LogTFL_1.png" alt="LogTFL_1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;LogTFL_1.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The source code also shows below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sourcecode.png" style="width: 629px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288470iF527CF60C356E289/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcecode.png" alt="sourcecode.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;sourcecode.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We also run benchmark to check GPU-delegate that can support on i.MX8MQ.&lt;BR /&gt;Please see the attached &lt;STRONG&gt;benchmark--use_gpu=true.txt&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#999999"&gt;INFO: Use gpu: [1]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;INFO: Created TensorFlow Lite delegate for GPU.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;INFO: GPU delegate created.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We thought we should check first if i.MX8MQ supports GPU delegate as the picture below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add_GPU_Delegate.png" style="width: 732px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288471iE582EBFE9AA384C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add_GPU_Delegate.png" alt="Add_GPU_Delegate.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Add_GPU_Delegate.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;isSupported&lt;/FONT&gt;&lt;/STRONG&gt; always returns &lt;STRONG&gt;FALSE&lt;/STRONG&gt; on i.MX8MQ, we are assuming i.MX8MQ has not supported GPU Delegate yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to enable GPU Delegate so that &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;isSupported&lt;/FONT&gt;&lt;/STRONG&gt; can return &lt;STRONG&gt;TRUE&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;or could you please give us a sample code/apk that can support GPU-delegate for Android 13 on i.MX8MQ?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 03:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MQ-Android-13-can-t-use-GPU-Delegate-to-inference-AI-model/m-p/1908208#M226150</guid>
      <dc:creator>KyleChang</dc:creator>
      <dc:date>2024-07-15T03:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX8MQ] Android 13 can't use GPU Delegate to inference AI model</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MQ-Android-13-can-t-use-GPU-Delegate-to-inference-AI-model/m-p/1909641#M226224</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;We are scheduling the Android 14 enablement for VX Delegate in August.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 09:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MQ-Android-13-can-t-use-GPU-Delegate-to-inference-AI-model/m-p/1909641#M226224</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-07-16T09:35:12Z</dc:date>
    </item>
  </channel>
</rss>

