Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Automatic Offloading with Intel Python 2019 and Xeon Phi (KNC)

Pfannemüller__Martin
1,312 Views

I am currently trying to get automatic offloading working using Intel Python 2019 and a Xeon Phi X100 KNC (SC3120A) card. For testing the offloading I am trying this benchmark: https://github.com/accre/Intel-Xeon-Phi/blob/master/Python/automatic-offloading/bmark.py

However, I cannot get it to work. The code is simply executed on the host CPU. I am using MPSS 3.8.6 and Intel Parallel Studio 2017 (last version with X100 support) on CentOS. miccheck passes and I can also use SSH to run crosscompiled code directly on the card. I am using Intel Python 3.6 My .bashrc file looks like that:

export PATH=$PATH:/opt/intel/intelpython3/bin/libfabric/

source /opt/intel/bin/compilervars.sh intel64
source /opt/intel/intelpython3/bin/activate root
source /opt/intel/intelpython3/bin/mklmicvars.sh

export USE_DAAL4PY_SKLEARN=YES
export OFFLOAD_DEVICES=0
export MKL_MIC_DISABLE_HOST_FALLBACK=1

I also followed this page and installed mkl-mic: https://software.intel.com/en-us/articles/using-intel-python-with-coprocessor-cards

It seems that I am missing something fundamental here. Does Python 3.6 work at all? The micperf packages are e.g. written for Python 2, so I cannot try them currently. I really would like to leverage the computational power of the card for my Python code.

Thanks for any help and answer.

0 Kudos
1 Reply
Pfannemüller__Martin
1,312 Views
0 Kudos
Reply