Intel® Math Kernel Library 2018 Developer Reference - C
Retrieves the amount of total and free memory for the specified coprocessor or host CPU.
int mkl_mic_get_meminfo (MKL_MIC_TARGET_TYPE target_type, int target_number, int* totalmem, int* freemem);
Name |
Type |
Description |
---|---|---|
target_type |
MKL_MIC_TARGET_TYPE |
Type of the target device. Use one of the following values:
|
target_number |
int |
The device to retrieve the memory information for. Takes the following values:
If target_type = MKL_TARGET_HOST, the function ignores the target_number parameter, which may have any value. |
Name |
Type |
Description |
---|---|---|
totalmem |
int* |
The total amount of memory on the target device in kilobytes. |
freemem |
int* |
The amount of free memory available on the target device in kilobytes. |
Use this function to retrieve the amount of total and free memory (in kilobytes) available on an offload device or host CPU.
Name |
Type |
Description |
---|---|---|
ierr |
int |
Result status: = 0 Indicates that the memory information for the target device is successfully returned. < 0 Indicates a failure to return the information. |