Setting Environment Variables

When the installation of Intel MKL for Windows* OS is complete, set the PATH, LIB, and INCLUDE environment variables in the command shell using one of the script files in the bin subdirectory of the Intel MKL installation directory: The environment variable MIC_LD_LIBRARY_PATH specifies locations of shared objects for Intel® Many Integrated Core (Intel® MIC) Architecture.

ia32\mklvars_ia32.bat

for the IA-32 architecture,

intel64\mklvars_intel64.bat

for the Intel® 64 architecture,

mklvars.bat

for all supported architectures.

Running the Scripts

The parameters of the scripts specify the following:

  • Architecture.
  • Use of Intel MKL Fortran modules precompiled with the Intel® Visual Fortran compiler. Supply this parameter only if you are using this compiler.
  • Programming interface (LP64 or ILP64).

Usage and values of these parameters depend on the script. The following table lists values of the script parameters.

Script
 

Architecture
(required,
when applicable)

Use of Fortran
Modules (optional)

Interface
(optional)

mklvars_ia32

n/a

mod

n/a

mklvars_intel64

n/a

mod

lp64, default
ilp64

mklvars

ia32
intel64

mic

mod

lp64, default
ilp64

Not applicable.

For example:

  • The command
    mklvars ia32
    sets the environment for Intel MKL to use the IA-32 architecture.
  • The command
    mklvars intel64 mod ilp64
    sets the environment for Intel MKL to use the Intel 64 architecture, ILP64 programming interface, and Fortran modules.
  • The command
    mklvars intel64 mod
    sets the environment for Intel MKL to use the Intel 64 architecture, LP64 interface, and Fortran modules.
  • The command
    mklvars mic lp64
    sets the environment for Intel MKL to use the Intel MIC Architecture and LP64 programming interface.

Note

Supply the parameter specifying the architecture first, if it is needed. Values of the other two parameters can be listed in any order.

For more complete information about compiler optimizations, see our Optimization Notice.