Skip to Main Content Skip to Search
Product Documentation

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

How 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, MATLAB Function blocks call BLAS library routines to speed simulation whenever possible, except in these cases:

When to Disable BLAS Library Support

Consider disabling BLAS library support for MATLAB Function blocks when:

How to Disable BLAS Library Support

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

  1. Open your MATLAB Function block.

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

    The Configuration Parameters dialog box opens with Simulation Target selected.

  3. Clear the Use BLAS library for faster simulation check box and click Apply.

Supported Compilers

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

The default MATLAB compiler for Windows, 32–bit platforms, 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-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS