Technical Solutions
How can I set MATLAB 7.3 (R2006b) to run the Intel BLAS in multi-threaded mode, and what is the associated performance improvement?
Date Last Modified: 03 Apr 2009
| Solution ID: | 1-34HE9M | |
| Product: | MATLAB | |
| Reported in Release: | R2006b | |
| Platform: | All Platforms | |
| Operating System: | All OS |
Subject:
How can I set MATLAB 7.3 (R2006b) to run the Intel BLAS in multi-threaded mode, and what is the associated performance improvement?
Problem Description:
I have a PC that runs on a multi-core processor, and I would like one session of MATLAB to take advantage of the multiple processors.
Solution:
For MATLAB 7.3 (R2006b) and previous releases: On Linux machines, the environment variables can be set using the “setenv” or “export” commands: or Note: On the Linux OS, MATLAB has to be run with the "-nojvm" option for multi-threading to work. After setting the appropriate environmental variables, start MATLAB and ensure that the BLAS version and the number of threads have been set correctly. To do this, execute the following code at the MATLAB Command Prompt:
getenv BLAS_VERSION
getenv OMP_NUM_THREADS
As of MATLAB 7.4 (R2007a), MATLAB can be multi-threaded for certain applications. Multi-threading in MATLAB 7.4 (R2007a) can be set via MATLAB's preferences. For more information, see the Related Solution below, or enter the following at the MATLAB command prompt:
|
Related Solutions:
- What is BLAS and how can I change the BLAS version MATLAB uses?
- Is MATLAB supported on the Intel® Core™ 2 Duo family of processors?
- How can I override the default BLAS library used by MATLAB on Windows machines with Intel processors?
|
|
Store