mkl_set_threading_layer

Sets the threading layer for Intel MKL at run time. Use with the Single Dynamic Library (SDL).

Syntax

FORTRAN:

threading = mkl_set_threading_layer( required_threading )

C:

threading = mkl_set_threading_layer( required_threading );

Include Files

Input Parameters

Name

Type

Description

required_threading

FORTRAN: INTEGER

C: int

Determines the threading layer. Possible values:

MKL_THREADING_INTEL for Intel threading.

MKL_THREADING_SEQUENTIAL for the sequential mode of Intel MKL.

MKL_THREADING_PGI for PGI threading on Windows* or Linux* operating system only.

MKL_THREADING_GNU for GNU threading on Linux* operating system only.

Description

If you are using the Single Dynamic Library (SDL), the mkl_set_threading_layer function sets the specified threading layer for Intel MKL at run time.

Call this function prior to calling any other Intel MKL function in your application except mkl_set_interface_layer.

You can call mkl_set_threading_layer and mkl_set_interface_layer in any order.

The mkl_set_threading_layer function takes precedence over the MKL_THREADING_LAYER environment variable.

See Intel MKL User's Guide for the layered model concept and usage details of SDL.


Submit feedback on this help topic