Intel® Math Kernel Library 2018 Update 1 Developer Guide
To use Automatic Offload:
To set the environment variables for Automatic Offload mode, described in Automatic Offload Controls, use the appropriate commands:
set MKL_MIC_ENABLE=1
set OFFLOAD_DEVICES=<list>
For example: set OFFLOAD_DEVICES=1,3
set OFFLOAD_ENABLE_ORSL=1
set MKL_HOST_WORKDIVISION=<value>
For example: set MKL_HOST_WORKDIVISION=0.2
set MKL_MIC_WORKDIVISION=<value>
set MKL_MIC_<number>_WORKDIVISION=<value>
For example: set MKL_MIC_2_WORKDIVISION=0.33
set MKL_MIC_MAX_MEMORY=<value>
set MKL_MIC_<number>_MAX_MEMORY=<value>
For example: set MKL_MIC_0_MAX_MEMORY=2G
set MKL_MIC_REGISTER_MEMORY=1
set MKL_MIC_RESOURCE_LIMIT=<value>
For example: set MKL_MIC_RESOURCE_LIMIT=0.34
set MIC_OMP_NUM_THREADS=<value>
set MIC_<number>_OMP_NUM_THREADS=<value>
For example: set MIC_0_OMP_NUM_THREADS=240
set OFFLOAD_REPORT=<level>
For example: set OFFLOAD_REPORT=2
set MKL_MIC_THRESHOLDS_?GEMM="<N>,<M>,<K>"
For example: set MKL_MIC_THRESHOLDS_?GEMM="2000,1000,500"