<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic intel python 2017.0.018 does not auto offload to the Phi-Co processor in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/intel-python-2017-0-018-does-not-auto-offload-to-the-Phi-Co/m-p/1099041#M456</link>
    <description>&lt;P&gt;I have been trying to get Anton's simple benchmark running on the Phi 31xx card. &amp;nbsp;I have been told that the latest Intel Python distribution will auto-offload - &amp;nbsp;It does not.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The user/environment can run the micperf &amp;nbsp;and micsmc shows that the Phi is operating. &amp;nbsp; I assume that if the micperf runs for a given user and shell environment then there is hope to get python running. Attached are some details about the environment - &amp;nbsp;-m TBB does provide a speed increase because the host processor goes full out - but micsmc &amp;nbsp;shows 0 activity on the phi card.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Your help in getting this working would be greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;Using l_python27_bu_2017.0.018
adasys@smarties:~$ which python
/home/adasys/intel/intelpython27/bin/python
adasys@smarties:~$ env |sort
&amp;lt;snip&amp;gt; 
LD_LIBRARY_PATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin:/home/adasys/compilers_and_libraries_2016.3.210/linux/mpirt/lib/intel64_lin
LIBRARY_PATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin


MIC_ENV_PREFIX=MIC
MIC_LD_LIBRARY_PATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin_mic
MIC_OMP_NUM_THREADS=120
MKL_MIC_ENABLE=1
NLSPATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/locale/%l_%t/%N
OFFLOAD_REPORT=2

PATH=/usr/src/micperf/micp/micp/scripts:/home/adasys/bin:/home/adasys/compilers_and_libraries_2016.3.210/linux/mpirt/bin/intel64_lin:/usr/src/micperf/micp/micp/scripts:/home/adasys/intel/intelpython27/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

PYTHONPATH=/usr/src/micperf/micp:


&amp;lt;snip&amp;gt;
adasys@smarties:~$ python /home/python/dask/bench.py 
21.0987641811
adasys@smarties:~$ python -m TBB /home/python/dask/bench.py                   
18.8681139946
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 19:15:52 GMT</pubDate>
    <dc:creator>Andrew_D_3</dc:creator>
    <dc:date>2016-06-16T19:15:52Z</dc:date>
    <item>
      <title>intel python 2017.0.018 does not auto offload to the Phi-Co processor</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/intel-python-2017-0-018-does-not-auto-offload-to-the-Phi-Co/m-p/1099041#M456</link>
      <description>&lt;P&gt;I have been trying to get Anton's simple benchmark running on the Phi 31xx card. &amp;nbsp;I have been told that the latest Intel Python distribution will auto-offload - &amp;nbsp;It does not.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The user/environment can run the micperf &amp;nbsp;and micsmc shows that the Phi is operating. &amp;nbsp; I assume that if the micperf runs for a given user and shell environment then there is hope to get python running. Attached are some details about the environment - &amp;nbsp;-m TBB does provide a speed increase because the host processor goes full out - but micsmc &amp;nbsp;shows 0 activity on the phi card.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Your help in getting this working would be greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;Using l_python27_bu_2017.0.018
adasys@smarties:~$ which python
/home/adasys/intel/intelpython27/bin/python
adasys@smarties:~$ env |sort
&amp;lt;snip&amp;gt; 
LD_LIBRARY_PATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin:/home/adasys/compilers_and_libraries_2016.3.210/linux/mpirt/lib/intel64_lin
LIBRARY_PATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin


MIC_ENV_PREFIX=MIC
MIC_LD_LIBRARY_PATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin_mic
MIC_OMP_NUM_THREADS=120
MKL_MIC_ENABLE=1
NLSPATH=/home/adasys/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/locale/%l_%t/%N
OFFLOAD_REPORT=2

PATH=/usr/src/micperf/micp/micp/scripts:/home/adasys/bin:/home/adasys/compilers_and_libraries_2016.3.210/linux/mpirt/bin/intel64_lin:/usr/src/micperf/micp/micp/scripts:/home/adasys/intel/intelpython27/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

PYTHONPATH=/usr/src/micperf/micp:


&amp;lt;snip&amp;gt;
adasys@smarties:~$ python /home/python/dask/bench.py 
21.0987641811
adasys@smarties:~$ python -m TBB /home/python/dask/bench.py                   
18.8681139946
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 19:15:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/intel-python-2017-0-018-does-not-auto-offload-to-the-Phi-Co/m-p/1099041#M456</guid>
      <dc:creator>Andrew_D_3</dc:creator>
      <dc:date>2016-06-16T19:15:52Z</dc:date>
    </item>
    <item>
      <title>Hi Andrew,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/intel-python-2017-0-018-does-not-auto-offload-to-the-Phi-Co/m-p/1099042#M457</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1413507" style="font-size: 11px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Andrew&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;Thank you for the question. TBB does not do any offloading, it manages software threads on the same CPUs where it was enabled.&lt;/P&gt;

&lt;P&gt;Auto-offloading is a separate story and is a property of Intel MKL which enables Numpy/Scipy and other dependent Python packages.&lt;/P&gt;

&lt;P&gt;Please refer to this blog for what functions are supported w.r.t. automatic offloading in Intel MKL:&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-automatic-offload-enabled-functions-for-intel-xeon-phi-coprocessors&lt;/P&gt;

&lt;P&gt;And please refer here for how to enable automatic offloading: &lt;A href="https://software.intel.com/en-us/node/528599" target="_blank"&gt;https://software.intel.com/en-us/node/528599&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, for Intel Distribution of Python, you need to install mkl_mic_rt (for Beta releases) or mkl_mic (for the Gold release) from&amp;nbsp;anaconda.org/intel&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	Anton&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 20:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/intel-python-2017-0-018-does-not-auto-offload-to-the-Phi-Co/m-p/1099042#M457</guid>
      <dc:creator>Anton_M_Intel</dc:creator>
      <dc:date>2016-06-16T20:00:00Z</dc:date>
    </item>
    <item>
      <title>Hi Anton,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/intel-python-2017-0-018-does-not-auto-offload-to-the-Phi-Co/m-p/1099043#M458</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Hi Anton,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you for the excellent info. &amp;nbsp;My question is about newer Intel Xeon Phi KNL x200 64-core CPU - not the x100 co-processor. &amp;nbsp;I am using a KNL x200 DAP workstation with Anaconda Intel Python 3_full installed on it. &amp;nbsp;What environment variables do I need to set to enable automatic off-load from Python 3 scripts?&lt;/P&gt;

&lt;P&gt;Current environment variables that I am using are :&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;ACCEPT_INTEL_PYTHON_EULA=yes&amp;nbsp;&lt;/LI&gt;
	&lt;LI&gt;MKL_MIC_ENABLE=1&lt;/LI&gt;
	&lt;LI&gt;MKL_DYNAMIC=true&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Are there any other environment variables that you would recommend setting? &amp;nbsp;Should I set&amp;nbsp;OMP_NUM_THREADS or MIC_OMP_NUM_THREADS values, or can they be discovered automatically?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 03:03:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/intel-python-2017-0-018-does-not-auto-offload-to-the-Phi-Co/m-p/1099043#M458</guid>
      <dc:creator>Randy_M_1</dc:creator>
      <dc:date>2017-08-25T03:03:37Z</dc:date>
    </item>
  </channel>
</rss>

