Intel® Math Kernel Library 2019 Developer Reference - C

mkl_get_max_threads

Gets the number of OpenMP* threads targeted for parallelism.

Syntax

int mkl_get_max_threads (void);

Include Files

Description

This function returns the number of OpenMP threads available for Intel MKL to use in internal parallel regions.

Return Values

Name

Type

Description

nt

int

The maximum number of threads for Intel MKL functions to use in internal parallel regions.

Example

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

See Also