Developer Reference

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

mkl_get_max_threads

Gets the number of OpenMP* threads targeted for parallelism.

Syntax

int
mkl_get_max_threads
(
void
);
Include Files
  • mkl.h
Description
This function returns the number of OpenMP threads available for
Intel® oneAPI Math Kernel Library
to use in internal parallel regions.
Return Values
Name
Type
Description
nt
int
The maximum number of threads for
Intel® oneAPI Math Kernel Library
functions to use in internal parallel regions.

Example

#include "mkl.h" … if (1 == mkl_get_max_threads()) puts("Intel MKL does not employ threading");

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