# mkl_domain_get_max_threads

Inquires about the number of threads targeted for parallelism in different domains.

## Syntax

Fortran:

call integer mkl_domain_get_max_threads( mask )

C:

int mkl_domain_get_max_threads( int mask );

## Input Parameters

Name | Type | Description
--- | --- | ---
mask | FORTRAN: INTEGER C: int | The name of the targeted domain

## Description

This function allows the user of different domains of Intel MKL to inquire what number of threads is being used as a hint. The inquiery does not imply that this is the actual number of threads used. The number may vary depending on the value of the MKL_DYNAMIC variable and/or problem size, system resources, etc. But the function returns the value that MKL is targeting for the given domain.

The currently supported domains are:

- MKL_BLAS - BLAS domain
- MKL_FFT - FFT domain (excluding cluster FFT)
- MKL_VML - vector math library
- MKL_ALL - another way to do what mkl_get_max_threads does.

The user must enter a valid domain.

See Intel MKL User’s Guide for implementation details.

## Return Values

Returns the hint at the number of threads for the given domain.

Parent topic: Threading Control Functions