1. Overview
This guide is intended to help Intel® Math Kernel Library (Intel® MKL) customers use the latest version of Intel® MKL for Windows* with The MathWorks* MATLAB*.
MATLAB is an interactive software program that performs mathematical computations and visualization. For more information about MATLAB visit www.mathworks.com/products/matlab.
Version Information
This note was created to help users of MATLAB R2008a make use of Intel MKL 10.0.x.
2. Dependencies
Software
This note applies to MATLAB R2008a and Intel MKL 10.0.x
Hardware
The note should work for all hardware configurations that meet the system requirements for both MATLAB R2008a and Intel MKL 10.0.x. This note has been tested on Intel® Core®2 Duo processors.
Operating System
This note should work for Windows* users of MATLAB.
3. Obtaining the Latest Version of Intel MKL
The latest release of the Intel Math Kernel Library is available at www.intel.com/software/products/mkl. You can download the latest Intel MKL if you have a valid license. You can also obtain the latest version by renewing your current license or registering for a free 30-day evaluation.
4. Building a Custom DLL
By default, MATLAB R2008a uses the uses the Intel MKL 9.1 Basic Linear Algebra Subroutines (BLAS) libraries to perform computations. To upgrade to the Intel MKL 10.0.x release, you need to create a DLL using the Intel MKL 10.x or later custom DLL builder located in MKL\10.0\tools\builder:
To start the Intel® Compiler Command Line Windows, from the Start Menu select Programs>> Intel(R) Software Development Tools >> Intel(R) Compiler [version] >> Build Environment for...
To Start the Microsoft® Compier, from the Start Menu seletc Programs>>Microsoft Visual Studio 2005(8)>> Visual Studio Tools>> Visual Studio 2005 Command Prompt
Build the custom DLL with the following command nmake ia32. For additional options such as customizing the name of the DLL, please refer to the Intel MKL User Guide (located at MKL\10.0\doc\userguide.pdf) section "Building Custom DLL".
5. MATLAB Configuration
Modify the system environment so that MATLAB uses the Intel MKL BLAS functions from the custom DLL. Set the BLAS_VERSION environment variable by following the steps on Windows XP:
Multiprocessor Performance
Intel MKL multi-threading mode is disabled by default. To benefit from Intel multi-core processors, enable multi-threading mode by following the steps above. Set the name of the environment variable to OMP_NUM_THREADS and set the value of the variable to the number of processors you want to use in your application.
6. Running MATLAB
Start MATLAB R2008a as you normally would and the Intel MKL BLAS library will be called.
7. Verifying Correctness
From MATLAB, run the command version -modules and check the output list to verify that the custom DLL is loaded.
8. Troubleshooting
The error "The specified module could not be found." occurs for two cases: