Intel® Math Kernel Library 2018 Developer Reference - C
Returns the number of Intel Xeon Phi coprocessors on the system when called on the host CPU.
int mkl_mic_get_device_count();
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.
Call this function only on the host CPU.
Name |
Type |
Description |
---|---|---|
ndevices |
int |
The number of Intel Xeon Phi coprocessors available on the system. Equals zero if there are none. |