Setting Environment Variables
Setting Environment Variables
When the installation of
for
Intel® oneAPI Math Kernel Library
macOS*
is complete, set environment variables
INCLUDE
,
MKLROOT
,
LD_LIBRARY_PATH
,
LIBRARY_PATH
,
CPATH
,
NLSPATH
, and
PKG_CONFIG_PATH
using the
setvars script.
The script
s
accept the oneMKL-specific 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 forsetvars.shintel64 mod ilp64to use the Intel 64 architecture, ILP64 programming interface, and Fotran modules.Intel® oneAPI Math Kernel Library
- The commandsets the environment forsetvars.shintel64 modto use the Intel 64 architecture, LP64 interface, and Fotran 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.