Math Kernel Library Developer Guide
As an alternative, you can use modulefiles to set the environment on Linux*. When the installation of Intel® oneAPI Math Kernel Library 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 IA-32 architecture | $module load mkl32/<version> |
For Intel® oneAPI Math Kernel Library IA-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 IA-32 architecture | $module unload mkl32/<version> |
For Intel® oneAPI Math Kernel Library IA-64 architecture | $module unload mkl/<version> |