Developer Guide

Developer Guide for Intel® oneAPI Math Kernel Library Windows*

ID 766692
Date 7/13/2023
Public

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

Document Table of Contents

Setting Environment Variables

When the installation of Intel® oneAPI Math Kernel Library (oneMKL) for Windows* is complete, set environment variables INCLUDE, MKLROOT, LD_LIBRARY_PATH, LIBRARY_PATH, CPATH, NLSPATH, and PKG_CONFIG_PATH using the setvars script.

The script accepts the oneMKL-specific 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 (oneMKL) Fortran modules precompiled with the Intel®Visual 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 ia32
    sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel 32 architecture.

  • The command setvars 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 intel64 mod
    sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel 64 architecture, LP64 interface, and Fotran modules.

NOTE:

Supply the parameter specifying the architecture first, if it is needed. Values of the other two parameters can be listed in any order.