Developer Reference for Intel® oneAPI Math Kernel Library for C
mkl_set_threading_layer
Sets the threading layer for Intel® oneAPI Math Kernel Library (oneMKL) at run time. Use with the Single Dynamic Library (SDL).
Syntax
intmkl_set_threading_layer ( intrequired_threading );
Include Files
mkl.h
Input Parameters
Name |
Type |
Description |
|---|---|---|
required_threading |
int |
Determines the threading layer. Possible values:
|
Description
If you are using the Single Dynamic Library (SDL), the mkl_set_threading_layer function sets the specified threading layer for Intel® oneMKL at run time.
Call this function prior to calling any other Intel® oneMKL function in your application except mkl_set_interface_layer (Sets the interface layer for Intel® oneMKL at run time. Use with the Single Dynamic Library.) .
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® oneMKL Developer Guide Linux or Windows for the layered model concept and usage details of the SDL.
Return Values
Type |
Description |
|---|---|
int |
|