Intel® Math Kernel Library 2018 Developer Reference - C

mkl_mic_get_resource_limit

For computations in the Automatic Offload mode, retrieves the maximum fraction of available Intel Xeon Phi coprocessor computational resources (cores) that the calling process can use.

Syntax

int mkl_mic_get_resource_limit (double* fraction);

Include Files

Output Parameters

Name

Type

Description

fraction

double*

The fractional amount of Intel Xeon Phi coprocessor computational resources that the calling process can use for Automatic Offload (AO).

Possible values: 0.0 fraction 1.0.

Description

If you are using Intel MKL in the AO mode, the mkl_mic_get_resource_limit function retrieves the fractional amount of Intel Xeon Phi coprocessor computational resources that can be used by the calling process.

Return Values

Name

Type

Description

ierr

int

Result status:

= 0   Indicates that the fraction is successfully returned.

< 0   Indicates a failure to return the fraction.

See Also