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( number );

Include Files

The FORTRAN 77 interface is specified in the mkl_service.fi include file and the C interface is specified in the mkl_service.h include file.

Input Parameters

Name

Type

Description

number

FORTRAN: INTEGER

C: int

Number of threads suggested by user

Description

This function allows you 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. Enter a positive integer. This routine takes precedence over the MKL_NUM_THREADS environment variable.

Note iconNote

Always remember to add #include "mkl.h" to use the C usage syntax.

See Intel MKL User's Guide for implementation details.

See Also

Submit feedback on this help topic

Copyright © 1994 - 2010, Intel Corporation. All rights reserved.