Intel® Math Kernel Library 2018 Developer Reference - C
Enables/disables the mkl_malloc function running in Automatic Offload mode to register allocated memory.
void mkl_mic_register_memory (int control);
Name |
Type |
Description |
---|---|---|
control |
int |
Desired behavior of mkl_malloc. Possible values: 0 - not register allocated memory, default. 1 - register allocated memory if Automatic Offload (AO) mode is enabled. |
The mkl_mic_register_memory function enables or disables the mkl_malloc function to register allocated memory when mkl_malloc runs in AO mode.
Registration of memory may reduce the overhead introduced by the operating system during data transfers between Intel Xeon Phi coprocessors and the host CPU.
This function takes precedence over the MKL_MIC_REGISTER_MEMORY environment variable.
If AO mode is disabled, the function has no effect.