mkl_get_dynamic

Returns current value of MKL_DYNAMIC variable.

Syntax

Fortran:

ret = mkl_get_dynamic()

C:

ret = mkl_get_dynamic();

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.

Description

This function returns the current value of the MKL_DYNAMIC variable. This variable can be changed by manipulating the MKL_DYNAMIC environment variable before the MKL run is launched or by calling mkl_set_dynamic(). Doing the latter has precedence over the former.

The function returns a value of 0 or 1: 1 indicates that MKL_DYNAMIC is true, 0 indicates that MKL_DYNAMIC is false. This variable indicates whether or not Intel MKL can dynamically change the number of threads. A value of false does not guarantee that the user's requested number of threads will be used. But it means that Intel MKL will attempt to use that value.

Note that if MKL is called from within a parallel region, MKL may not thread unless MKL_DYNAMIC is set to false, either with the environment variable or by this routine call.

See Intel MKL User's Guide for implementation details.

Return Values

1

Indicates MKL_DYNAMIC is true.

0

Indicates MKL_DYNAMIC is false.

See Also

Submit feedback on this help topic

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