mkl_domain_set_num_threads

Suggests the number of threads for a particular function domain.

Syntax

FORTRAN:

ierr = mkl_domain_set_num_threads( num, mask )

C:

ierr = mkl_domain_set_num_threads( num, mask );

Include Files

Input Parameters

Name

Type

Description

num

FORTRAN: INTEGER

C: int

Number of threads suggested by user

mask

FORTRAN: INTEGER

C: int

Name of the targeted domain

Description

This function allows you to request different domains of Intel MKL to use different numbers of threads. The currently supported domains are:

This is only a hint, and use of this number of threads is not guaranteed. Enter a valid domain and a positive integer for the number of threads. This routine has precedence over the MKL_DOMAIN_NUM_THREADS environment variable.

See Intel MKL User's Guide for implementation details.

Return Values

1(true)

Indicates no error, execution is successful.

0(false)

Indicates failure, possibly because the inputs were invalid.


Submit feedback on this help topic