Scripts to Set Environment Variables
Scripts to Set Environment Variables
When the installation of
for installation directory.
Intel® oneAPI Math Kernel Library
Linux*
is complete, set the
INCLUDE
, MKLROOT,
LD_LIBRARY_PATH,
MANPATH, LIBRARY_PATH, CPATH
,
environment variables in the command shell using
NLSPATH,
and
PKG_CONFIG_PATH
one of the script files
in the
bin
subdirectory of the
Intel® oneAPI Math Kernel Library
The environment variable
MIC_LD_LIBRARY_PATH
specifies locations of shared objects for Intel® Many Integrated Core Architecture (Intel® MIC Architecture).Choose the script corresponding to your command shell:
Shell
| Script File
|
---|---|
C
| vars.sh |
Bash
and Bourne (sh) | vars.sh |
The script
s
accept the parameters, explained in the following table:
Setting Specified
| Required(Yes/No)
| Possible Values
| Comment
|
---|---|---|---|
Architecture
| Yes,
when applicable
| intel64 | |
Use of
Intel® oneAPI Math Kernel Library | No
| mod | Supply this parameter only if you are using this compiler.
|
Programming interface (LP64 or ILP64)
| No
| lp64 , default
ilp64 |
For example:
- The commandsets the environment forvars.shintel64to use the Intel 64 architecture.Intel® oneAPI Math Kernel Library
- The commandsets the environment forvars.shintel64 mod ilp64to use the Intel 64 architecture, ILP64 programming interface, and Fortran modules.Intel® oneAPI Math Kernel Library
- The commandsets the environment forvars.shintel64 modto use the Intel 64 architecture, LP64 interface, and Fortran modules.Intel® oneAPI Math Kernel Library
Supply the parameter specifying the architecture first, if it is needed. Values of the other two parameters can be listed in any order.