Math Kernel Library Developer Guide
When the installation of Intel® oneAPI Math Kernel Library forLinux* is complete, set the INCLUDE, MKLROOT, LD_LIBRARY_PATH, MANPATH, LIBRARY_PATH, CPATH, NLSPATH, and PKG_CONFIG_PATH environment variables in the command shell using one of the script files in the binsubdirectory of the Intel® oneAPI Math Kernel Library installation directory. 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 scripts accept the parameters, explained in the following table:
Setting Specified |
Required |
Possible Values |
Comment |
---|---|---|---|
Architecture |
Yes,
|
intel64 |
|
Use of Intel® oneAPI Math Kernel Library 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:
The command
vars.sh intel64
sets the environment for
Intel® oneAPI Math Kernel Library to use the Intel 64 architecture.
The command
vars.sh intel64 mod ilp64
sets the environment for
Intel® oneAPI Math Kernel Library to use the Intel 64 architecture, ILP64 programming interface, and Fortran modules.
The command
vars.sh intel64 mod
sets the environment for
Intel® oneAPI Math Kernel Library to use the Intel 64 architecture, LP64 interface, and Fortran modules.
Supply the parameter specifying the architecture first, if it is needed. Values of the other two parameters can be listed in any order.