Visible to Intel only — GUID: GUID-390867EA-9DD8-4CBE-93B6-CE11251C050D
Visible to Intel only — GUID: GUID-390867EA-9DD8-4CBE-93B6-CE11251C050D
Setting Environment Variables
When the installation of Intel® oneAPI Math Kernel Library (oneMKL) for macOS* is complete, set environment variables INCLUDE, MKLROOT, LD_LIBRARY_PATH, LIBRARY_PATH, CPATH, NLSPATH, and PKG_CONFIG_PATH using the …vars script (either setvars or oneapi-vars, depending on your installation).
The scripts accept the oneMKL-specific parameters, explained in the following table:
Setting Specified |
Required |
Possible Values |
Comment |
---|---|---|---|
Architecture |
Yes, |
intel64 |
|
Use of Intel® oneAPI Math Kernel Library (oneMKL) 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 setvars.sh intel64 mod ilp64
sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel 64 architecture, ILP64 programming interface, and Fotran modules.The command setvars.sh intel64 mod
sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel 64 architecture, LP64 interface, and Fotran modules.
Supply the parameter specifying the architecture first, if it is needed. Values of the other two parameters can be listed in any order.