Intel® Math Kernel Library 2018 Developer Reference - C

mkl_mic_get_device_count

Returns the number of Intel Xeon Phi coprocessors on the system when called on the host CPU.

Syntax

int mkl_mic_get_device_count();

Include Files

Description

The mkl_get_device_count function returns the number of Intel Xeon Phi coprocessors on your system. You may need this number to specify a custom work-division scheme.

CAUTION

Call this function only on the host CPU.

Return Values

Name

Type

Description

ndevices

int

The number of Intel Xeon Phi coprocessors available on the system. Equals zero if there are none.

See Also