Developer Guide

Developer Guide for Intel® oneAPI Math Kernel Library Linux*

ID 766690
Date 10/31/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Scripts to Set Environment Variables

When the installation of Intel® oneAPI Math Kernel Library (oneMKL) for Linux* is complete, you can use the setvars.sh script in the installation directory to set environment variables MKLROOT, CPATH, LIBRARY_PATH, LD_LIBRARY_PATH, PATH, CMAKE_PREFIX_PATH, and PKG_CONFIG_PATH for oneMKL.

The scripts accept the oneMKL-specific parameters, explained in the following table:

Setting Specified

Required
(Yes/No)

Possible Values

Comment

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.

Use of the precompiled oneMKL Fortran modules for the LP64/ILP64 interface

No

lp64, default

ilp64

This parameter has effects only when the parameter mod is also supplied.

For example:

  • The command setvars.sh sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel® 64 architecture.

  • The command setvars.sh mod ilp64 sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel® 64 architecture and Fortran modules for the ILP64 interface.

  • The command setvars.sh mod sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel® 64 architecture and Fortran modules for the LP64 interface.