Developer Guide

Developer Guide for Intel® oneAPI Math Kernel Library Windows*

ID 766692
Date 10/31/2024
Public
Document Table of Contents

Setting Environment Variables

When the installation of Intel® oneAPI Math Kernel Library (oneMKL) for Windows* is complete, you can use the setvars.bat script in the installation directory to set environment variables MKLROOT, INCLUDE, LIB, PATH, CMAKE_PREFIX_PATH, and PKG_CONFIG_PATH for oneMKL.

The script accepts 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.bat sets the environment for Intel® oneAPI Math Kernel Library (oneMKL) to use the Intel® 64 architecture.

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