本文介绍了使用Intel Python 2019和Xeon Phi(KNC)自动卸载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用Intel Python 2019和Xeon Phi X100 KNC(SC3120A)卡进行自动卸载.为了测试卸载,我正在尝试以下基准测试: https://github.com/accre/Intel-Xeon-Phi/blob/master/Python/automatic-offloading/bmark.py

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

但是,我无法使它正常工作.该代码仅在主机CPU上执行.我在CentOS上使用MPSS 3.8.6和Intel Parallel Studio 2017(支持X100的最新版本). miccheck通过,我也可以使用SSH在卡上直接运行交叉编译的代码.我正在使用Intel Python 3.6我的.bashrc文件如下所示:

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

我也关注了此页面并安装了mkl-mic: https://software.intel.com/zh-cn/articles/using-intel-python-with-coprocessor-cards

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

似乎我在这里缺少一些基本知识. Python 3.6完全可以使用吗?英特尔提供的micperf基准测试包例如是为Python 2编写的,因此我目前无法尝试.我真的很想在我的Python代码中利用卡的计算能力.您有什么办法可以帮助您解决我的问题吗?

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?

推荐答案

Intel Python 2019使用不支持Xeon Phi CPU家族的Intel MKL v 2019.在这里,您会看到相同的讨论- https://software.intel.com/zh-CN/forums/intel-math-kernel-library/topic/814784

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

这篇关于使用Intel Python 2019和Xeon Phi(KNC)自动卸载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 09:39