简体   繁体   English

使用 Intel Python 2019 和 Xeon Phi (KNC) 自动卸载

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

I am currently trying to get automatic offloading working using Intel Python 2019 and a Xeon Phi X100 KNC (SC3120A) card.我目前正在尝试使用 Intel Python 2019 和 Xeon Phi X100 KNC (SC3120A) 卡进行自动卸载。 For testing the offloading I am trying this benchmark: https://github.com/accre/Intel-Xeon-Phi/blob/master/Python/automatic-offloading/bmark.py为了测试卸载,我正在尝试这个基准: 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.代码只是在主机 CPU 上执行。 I am using MPSS 3.8.6 and Intel Parallel Studio 2017 (last version with X100 support) on CentOS.我在 CentOS 上使用 MPSS 3.8.6 和 Intel Parallel Studio 2017(支持 X100 的最新版本)。 miccheck passes and I can also use SSH to run crosscompiled code directly on the card. miccheck 通过,我也可以使用 SSH 直接在卡上运行交叉编译代码。 I am using Intel Python 3.6 My.bashrc file looks like that:我正在使用 Intel Python 3.6 My.bashrc 文件看起来像这样:

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我也关注了这个页面并安装了 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? Python 3.6 能正常工作吗? The micperf benchmark packages provided by Intel are eg written for Python 2, so I cannot try them currently.英特尔提供的 micperf 基准测试包是为 Python 2 编写的,所以我目前无法尝试。 I really would like to leverage the computational power of the card for my Python code.我真的很想为我的 Python 代码利用卡的计算能力。 Do you have any idea what could help here or what I could check?您知道这里有什么帮助或我可以检查什么吗?

Intel Python 2019 uses Intel MKL v 2019 which doesn't support Xeon Phi CPU family.英特尔 Python 2019 使用不支持至强融核 CPU 系列的英特尔 MKL v 2019。 Here you see the same discussion - https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/814784在这里您会看到相同的讨论 - https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/814784

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM