Intel® Math Kernel Library 2018 Developer Reference - C

mkl_mic_set_flags

Sets flags to control the behavior of computations in the Automatic Offload mode.

Syntax

int mkl_mic_set_flags (int flags);

Include Files

Input Parameters

Name

Type

Description

flags

int

The settings requested:

  • MKL_MIC_DEFAULT_FLAGS - The default Automatic Offload (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.

Description

This function sets flags to control the behavior of computations in the AO mode. 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

old_flags

int

The previously set flags.

See Also