<?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: Choosing where to run inference from application code - GPU/NPU in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2073540#M235834</link>
    <description>&lt;P&gt;My understanding is that the so called NPU/GPU driver is found in the Yocto directory `meta-freescale/recipes-graphics/imx-gpu-viv`, but the SRC_URI is given as `${FSL_MIRROR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}.bin` which at runtime resolves to `&lt;A href="https://www.nxp.com/lgfiles/NMG/MAD/YOCTO//imx-gpu-viv-6.4.11.p2.6-aarch64-bc7b6a2.bin`" target="_blank"&gt;https://www.nxp.com/lgfiles/NMG/MAD/YOCTO//imx-gpu-viv-6.4.11.p2.6-aarch64-bc7b6a2.bin`&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Looking in the forum I found this user asking for the source code (&lt;A href="https://community.nxp.com/t5/i-MX-Processors/GPU-source-code-with-opencl/m-p/1224323)" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/GPU-source-code-with-opencl/m-p/1224323)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It was not public in 2021, is it still not public now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2025 08:47:10 GMT</pubDate>
    <dc:creator>StefanoN</dc:creator>
    <dc:date>2025-04-03T08:47:10Z</dc:date>
    <item>
      <title>Choosing where to run inference from application code - GPU/NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2072868#M235787</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Normally inference is run on the GPU or NPU based on the USE_GPU_INFERENCE=0/1 env. variable, but I would like to make this choice in code. In the Machine Learning guide it says that that variable is "directly read by the HW acceleration driver".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StefanoN_0-1743595701752.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/331009i86CE6DB289BE5AC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StefanoN_0-1743595701752.png" alt="StefanoN_0-1743595701752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it feasible to modify the GPU/NPU unified driver to expose this functionality to high abstraction layers? Where can I find it?&lt;/P&gt;&lt;P&gt;If not, What else could I do?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 12:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2072868#M235787</guid>
      <dc:creator>StefanoN</dc:creator>
      <dc:date>2025-04-02T12:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing where to run inference from application code - GPU/NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2072976#M235794</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247766"&gt;@StefanoN&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately there is no way to do it different that we mentioned in our &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf" target="_self"&gt;MACHINE LEARNING USER GUIDE&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 15:40:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2072976#M235794</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-04-02T15:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing where to run inference from application code - GPU/NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2073294#M235817</link>
      <description>&lt;P&gt;I understand. Nonetheless can you help me locate the code for the unified driver?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 05:17:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2073294#M235817</guid>
      <dc:creator>StefanoN</dc:creator>
      <dc:date>2025-04-03T05:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing where to run inference from application code - GPU/NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2073540#M235834</link>
      <description>&lt;P&gt;My understanding is that the so called NPU/GPU driver is found in the Yocto directory `meta-freescale/recipes-graphics/imx-gpu-viv`, but the SRC_URI is given as `${FSL_MIRROR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}.bin` which at runtime resolves to `&lt;A href="https://www.nxp.com/lgfiles/NMG/MAD/YOCTO//imx-gpu-viv-6.4.11.p2.6-aarch64-bc7b6a2.bin`" target="_blank"&gt;https://www.nxp.com/lgfiles/NMG/MAD/YOCTO//imx-gpu-viv-6.4.11.p2.6-aarch64-bc7b6a2.bin`&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Looking in the forum I found this user asking for the source code (&lt;A href="https://community.nxp.com/t5/i-MX-Processors/GPU-source-code-with-opencl/m-p/1224323)" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/GPU-source-code-with-opencl/m-p/1224323)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It was not public in 2021, is it still not public now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 08:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2073540#M235834</guid>
      <dc:creator>StefanoN</dc:creator>
      <dc:date>2025-04-03T08:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing where to run inference from application code - GPU/NPU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2073775#M235851</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247766"&gt;@StefanoN&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The source code is not public yet, even for us due to the GPU is not an NXP IP, our vendor provides the compiled binary for us.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 13:58:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Choosing-where-to-run-inference-from-application-code-GPU-NPU/m-p/2073775#M235851</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2025-04-03T13:58:58Z</dc:date>
    </item>
  </channel>
</rss>

