Math Kernel Library Developer Guide

Setting Environment Variables

When the installation of Intel® oneAPI Math Kernel Library formacOS* is complete, set the INCLUDE, MKLROOT, DYLD_LIBRARY_PATH, MANPATH, LIBRARY_PATH, CPATH, and NLSPATH environment variables in the command shell using one of the script files in the binsubdirectory of the Intel® oneAPI Math Kernel Library installation directory.

Choose the script corresponding to your command shell:

Shell

Script File

C

vars.sh

Bash

vars.sh

The scripts 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 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