Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

mkl_set_env_mode

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

Syntax

int mkl_set_env_mode
(
int
mode
)
;
Include Files
  • mkl.h
Input Parameters
Name
Type
Description
mode
int
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. The
mkl_set_env_mode
function sets up the environment mode that ignores all settings specified by
Intel® oneAPI Math Kernel Library
environment variables except
MIC_LD_LIBRARY_PATH
and
MKLROOT
.
Return Values
Name
Type
Description
current_mode
int
Environment mode that was used before the function call:
  • 0 - Default
  • 1 - Ignore environment settings specific to
    Intel® oneAPI Math Kernel Library
    .

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804