Developer Reference for Intel® oneAPI Math Kernel Library for C
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-87918C24-1FA2-411E-A27C-8413EACDB30F
Visible to Intel only — GUID: GUID-87918C24-1FA2-411E-A27C-8413EACDB30F
mkl_get_max_threads
Gets the number of OpenMP* threads targeted for parallelism.
int mkl_get_max_threads (void);
- mkl.h
This function returns the number of OpenMP threads available for Intel® oneAPI Math Kernel Library to use in internal parallel regions.
Name |
Type |
Description |
---|---|---|
nt |
int |
The maximum number of threads for Intel® oneAPI Math Kernel Library functions to use in internal parallel regions. |
#include "mkl.h" … if (1 == mkl_get_max_threads()) puts("Intel MKL does not employ threading");