Intel® Math Kernel Library 2018 Developer Reference - C

mkl_mic_get_flags

Retrieves flags that control the behavior of computations in the Automatic Offload mode.

Syntax

int mkl_mic_get_flags (void);

Include Files

Description

This function retrieves flags that control the behavior of computations in the Automatic Offload (AO) mode. These flags are either the default flags for the AO mode or the flags set in a call to the mkl_mic_set_flags function.

Note

Depending on the flags set, the AO program may silently return to the calling program in the case of an AO error. To check whether the AO call is successful, call the mkl_mic_get_status function and check whether the return value is non-negative. For more details of mkl_mic_get_status and in particular, for a sequence of function calls that enables checking the status of an AO call, see mkl_mic_get_status.

Return Values

Name

Type

Description

flags

int

The flags returned, which can be one of the following:

  • MKL_MIC_DEFAULT_FLAGS - The default AO mode, when computations fall back to host in the case of any AO error, such as lack of memory or other resources on the Intel Xeon Phi coprocessor.

  • MKL_MIC_DISABLE_HOST_FALLBACK - The mode when computations do not fall back to host in the case of an AO error, but the AO function immediately returns control to the calling program without completing the computations.

See Also