Developer Guide for Intel® oneAPI Math Kernel Library for Linux*
A newer version of this document is available. Customers should click here to go to the newest version.
Modulefiles to Set Environment Variables
As an alternative, you can use modulefiles to set the environment on Linux*. When the installation of Intel® oneAPI Math Kernel Library (oneMKL) for Linux* is complete, you need to set some environment variables. First, setup modulefiles and directories in <oneapi_root>:
$ ./modulefiles-setup.sh
$ module use modulefiles
Load modulefile:
Architecture |
Command |
|---|---|
For Intel® oneAPI Math Kernel Library (oneMKL) Intel® 64 architecture |
$module load mkl/<version> |
Unloading the module resets the modified environment variables to their original values and new variables that were created will be undefined. MKLROOT will be undefined on module unload.
Architecture |
Command |
|---|---|
For Intel® oneAPI Math Kernel Library (oneMKL) Intel® 64 architecture |
$module unload mkl/<version> |