<?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: Using lax_codegen with enable dynamic memory allocation in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/1878259#M9151</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233598"&gt;@OPSofiane&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All vectors/matrices in the LAX graph are statically allocated. It would be difficult, maybe impossible, to implement dynamic allocation from the MATLAB code. Could you tell as the approximate size of your vectors?&lt;/P&gt;
&lt;P&gt;If your algorithm allows you can execute multiple times the LAX graph on chunks of your vectors. Another option, not supported in our toolbox but it is in the Radar SDK, is to use DMA inside the LAX graph to transfer chunks of matrices/vector and process them. Check my answer also to your previous question posted here:&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SER45-LAX-memory/m-p/1878230#M9150" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SER45-LAX-memory/m-p/1878230#M9150&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 14:45:48 GMT</pubDate>
    <dc:creator>paulvlase</dc:creator>
    <dc:date>2024-05-30T14:45:48Z</dc:date>
    <item>
      <title>Using lax_codegen with enable dynamic memory allocation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/1877180#M9138</link>
      <description>&lt;P&gt;Hello to the mbd community&lt;/P&gt;&lt;P&gt;I am currently exploring the NXP_MBDToolbox_LAX. The code generated by lax_codegen is based on static allocation. I'd like to manage large vectors, how do I enable dynamic memory allocation with LAX_CODEGEN?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;OPSofiane&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 10:01:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/1877180#M9138</guid>
      <dc:creator>OPSofiane</dc:creator>
      <dc:date>2024-05-29T10:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using lax_codegen with enable dynamic memory allocation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/1878259#M9151</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233598"&gt;@OPSofiane&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All vectors/matrices in the LAX graph are statically allocated. It would be difficult, maybe impossible, to implement dynamic allocation from the MATLAB code. Could you tell as the approximate size of your vectors?&lt;/P&gt;
&lt;P&gt;If your algorithm allows you can execute multiple times the LAX graph on chunks of your vectors. Another option, not supported in our toolbox but it is in the Radar SDK, is to use DMA inside the LAX graph to transfer chunks of matrices/vector and process them. Check my answer also to your previous question posted here:&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SER45-LAX-memory/m-p/1878230#M9150" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SER45-LAX-memory/m-p/1878230#M9150&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 14:45:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/1878259#M9151</guid>
      <dc:creator>paulvlase</dc:creator>
      <dc:date>2024-05-30T14:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using lax_codegen with enable dynamic memory allocation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/1878643#M9157</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/527"&gt;@paul&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Here is an example of multiplication of two matrices: A(9216x600) and B(600 X1024). the block matrix multiplication can be a solution however I need to reduce the time transfere to and from Lax.&amp;nbsp;Regarding DMA, I need an example to understand and follow its application.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233598"&gt;@OPSofiane&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 06:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/1878643#M9157</guid>
      <dc:creator>OPSofiane</dc:creator>
      <dc:date>2024-05-31T06:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using lax_codegen with enable dynamic memory allocation</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/2043603#M9982</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233598"&gt;@OPSofiane&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have released a new version of MBDT for LAX toolbox, now renamed to MBDT for RADAR v1.0.0, at the end of 2024. You can find the release announcement here:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/NXP-Model-Based-Design-Toolbox-for-RADAR-version-1-0-0/ta-p/1986190" target="_blank" rel="noopener"&gt;NXP Model-Based Design Toolbox for RADAR - version 1.0.0 - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Based on your encountered problem we have included an example that multiplies large matrices, found in LAX_Examples\basic\multiplication\mul_large_matrix folder, and which also showcases how to transfer chunks of matrices via DMA.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's been a while since our lost message, but if you are still interested in using our toolbox, please download the latest version of MBDT for RADAR toolbox and check our mul_large_matrix example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:01:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Using-lax-codegen-with-enable-dynamic-memory-allocation/m-p/2043603#M9982</guid>
      <dc:creator>paulvlase</dc:creator>
      <dc:date>2025-02-13T17:01:50Z</dc:date>
    </item>
  </channel>
</rss>

