Intel® Math Kernel Library 11.3 Update 4 Developer Guide

Scripts to Set Environment Variables

When the installation of Intel MKL for Linux* OS is complete, set the INCLUDE, MKLROOT, LD_LIBRARY_PATH, MIC_LD_LIBRARY_PATH, MANPATH, LIBRARY_PATH, CPATH, and NLSPATH 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.

Choose the script corresponding to your command shell:

Shell

Script File

C

mklvars.csh

Bash and Bourne (sh)

mklvars.sh

The scripts accept the parameters, explained in the following table:

Setting Specified

Required
(Yes/No)

Possible Values

Comment

Architecture

Yes,
when applicable

ia32

intel64

mic

Use of Intel MKL Fortran modules precompiled with the Intel® Fortran compiler

No

mod

Supply this parameter only if you are using this compiler.

Programming interface (LP64 or ILP64)

No

lp64, default

ilp64

For example:

Note

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

See Also