mkl_get_max_threads
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 to use in internal parallel regions.
Intel® oneAPI Math Kernel Library
Return Values
Name | Type | Description |
---|---|---|
nt | int | The maximum number of threads for Intel® oneAPI Math Kernel Library |
Example
#include "mkl.h" … if (1 == mkl_get_max_threads()) puts("Intel MKL does not employ threading");