Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Speeding Up Simulation with the Basic Linear Algebra Subprograms (BLAS) Library

How Embedded MATLAB Function Blocks Use the BLAS Library

The Basic Linear Algebra Subprograms (BLAS) Library is a library of external linear algebra routines optimized for fast computation of low-level matrix operations. By default, Embedded MATLAB Function blocks call BLAS library routines to speed simulation whenever possible, based on heuristics implemented in the Embedded MATLAB subset. These heuristics are described in How Embedded MATLAB Functions Use the BLAS Library in the Embedded MATLAB documentation.

When to Disable BLAS Library Support

Consider disabling BLAS library support for Embedded MATLAB Function blocks when:

How to Disable BLAS Library Support

Embedded MATLAB Function blocks enable BLAS library support by default, but you can disable this feature explicitly for all Embedded MATLAB Function blocks in your Simulink model. Follow these steps:

  1. Open your Embedded MATLAB Function block.

  2. In the Embedded MATLAB Editor, select Tools > Open Simulation Target.

    The Configuration Parameters dialog box opens with Simulation Target selected.

  3. Under the Embedded MATLAB and Stateflow panel, clear the Use BLAS library for faster simulation check box and click Apply.

Supported Compilers

Embedded MATLAB function blocks use the BLAS library on all C compilers except:

The default MATLAB compiler, lcc, supports the BLAS library. To install a different C compiler, use the mex -setup command, as described in Building MEX-Files in the MATLAB External Interfaces documentation.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS