Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 12/16/2022
Public

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

Document Table of Contents

mkl_set_env_mode

Sets up the mode that ignores environment settings specific to Intel® oneAPI Math Kernel Library.

Syntax

current_mode = mkl_set_env_mode( mode )

Fortran Include Files/Modules
  • Include file: mkl.fi
  • Module (compiled): mkl_service.mod
  • Module (source): mkl_service.f90
Input Parameters

Name

Type

Description

mode

INTEGER*4

Specifies what mode to set. For details, see Description. Possible values:

  • 0 - Do nothing.

    Use this value to query the current environment mode.

  • 1 - Make Intel® oneAPI Math Kernel Library ignore environment settings specific to the library.

Description

In the default environment mode, Intel® oneAPI Math Kernel Library can control its behavior using environment variables for threading, memory management, Conditional Numerical Reproducibility, automatic offload, and so on. Themkl_set_env_mode function sets up the environment mode that ignores all settings specified by Intel® oneAPI Math Kernel Library environment variables exceptMIC_LD_LIBRARY_PATH and MKLROOT.

Return Values

Name

Type

Description

current_mode

INTEGER*4

Environment mode that was used before the function call:

  • 0 - Default

  • 1 - Ignore environment settings specific to Intel® oneAPI Math Kernel Library.