# mkl_set_num_threads

Suggests the number of threads to use.

## Syntax

Fortran:

call mkl_set_num_threads( number )

C:

void mkl_set_num_threads( int number );

## Input Parameters

Name | Type | Description
--- | --- | ---
number | FORTRAN: INTEGER C: int | Number of threads suggested by user

## Description

This function allows the user to request independently of OpenMP* how many threads MKL should use. This is just a hint, and it is not guaranteed that this number of threads will be used. The user must enter a positive integer. This routine takes precedence over the MKL_NUM_THREADS environment variable .

See Intel MKL User’s Guide for implementation details.

Parent topic: Threading Control Functions