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

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 07:17:53

问题


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 benchmark packages provided by Intel 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. Do you have any idea what could help here or what I could check?


回答1:


Intel Python 2019 uses Intel MKL v 2019 which doesn't support Xeon Phi CPU family. Here you see the same discussion -https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/814784



来源:https://stackoverflow.com/questions/58858787/automatic-offloading-with-intel-python-2019-and-xeon-phi-knc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!