Using Intel® Distribution for Python* with the Xeon Phi™ Coprocessor

The Intel® Distribution for Python* mkl-mic package allows Automatic Offload (AO) of workloads to Intel® Xeon Phi™ Coprocessors.

AO is currently only available on Linux* platforms.

Follow these steps to enable AO:

  1. Install the mkl-mic package into your environment
    • ​If using the Intel® Distribution for Python*, run the following command:
      conda install mkl-mic
    • ​If using Anaconda* or Miniconda* with numpy and mkl packages already installed, run the following command:
      conda install mkl-mic intelpython -c intel --no-update-deps
  2. Source the script located in your python bin directory:

Execution of certain python workloads will now automatically be offloaded to Intel® Xeon Phi™ coprocessors. For more information on which operations are considered for AO, see this article.

Other optional settings:

  • AO will transparently fall back to execution on the host CPU if AO is not available. To have operations report an error if AO is not occurring, set MKL_MIC_DISABLE_HOST_FALLBACK=1 in your environment.
  • To see reports of AO activity sent to stdout, set OFFLOAD_REPORT=1 in your environment. OFFLOAD_REPORT=2 will give you greater detail.
For more complete information about compiler optimizations, see our Optimization Notice.