【问题标题】:Automatic Offloading with Intel Python 2019 and Xeon Phi (KNC)使用 Intel Python 2019 和 Xeon Phi (KNC) 自动卸载
【发布时间】:2019-11-14 14:13:17
【问题描述】:

我目前正在尝试使用 Intel Python 2019 和 Xeon Phi X100 KNC (SC3120A) 卡进行自动卸载。为了测试卸载,我正在尝试这个基准: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 文件如下所示:

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/en-us/articles/using-intel-python-with-coprocessor-cards

我似乎在这里遗漏了一些基本的东西。 Python 3.6 能用吗?英特尔提供的 micperf 基准测试包是例如为 Python 2 编写的,所以我目前无法尝试。我真的很想将卡片的计算能力用于我的 Python 代码。您知道这里有什么帮助或我可以检查什么吗?

【问题讨论】:

    标签: python xeon-phi intel-python


    【解决方案1】:

    英特尔 Python 2019 使用不支持至强融核 CPU 系列的英特尔 MKL v 2019。在这里你看到相同的讨论 -https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/814784

    【讨论】:

    • 谢谢!我完全删除了所有英特尔库的 2019 版本,并通过 yum 除了 Parallel Studio 2017 安装了 intelpython3-2017.3-052(包含 Python 3.5)。现在基准测试按预期自动卸载。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-14
    相关资源
    最近更新 更多