Developer Reference

  • 2021.1
  • 12/04/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

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.