Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of 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 (oneMKL) to use in internal parallel regions.

Return Values

Name

Type

Description

nt

int

The maximum number of threads for Intel® oneAPI Math Kernel Library (oneMKL) functions to use in internal parallel regions.

Example

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