本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
启用 Intel MPI
英特尔 MPI 在AWS ParallelCluster AMI 上提供alinux2
centos7
ubuntu1804
、、和ubuntu2004
值的base_os设置。要使用英特尔 MPI,您必须承认并接受英特尔简化软件许可module load intelmpi
。模块的确切名称随每次更新发生变化。要查看哪些模块可用,请运行 module
avail
。输出如下所示。
$
module avail
----------------------------------------- /usr/share/Modules/modulefiles ------------------------------------------ dot libfabric-aws/1.8.1amzn1.3 module-info null use.own module-git modules openmpi/4.0.2 ------------------------------------------------ /etc/modulefiles ------------------------------------------------- --------------------------------- /opt/intel/impi/2019.7.217/intel64/modulefiles ---------------------------------- intelmpi
$
module load intelmpi
要查看加载了哪些模块,请运行module list
。
$
module list
Currently Loaded Modulefiles: 1) intelmpi
要验证是否已启用 Intel MPI,请运行 mpirun --version
。
$
mpirun --version
Intel(R) MPI Library for Linux* OS, Version 2019 Update 7 Build 20200312 (id: 5dc2dd3e9) Copyright 2003-2020, Intel Corporation.
加载 Intel MPI 模块后,将更改多个路径以使用 Intel MPI 工具。要运行英特尔 MPI 工具编译的代码,请先加载英特尔 MPI 模块。
注意
英特尔 MPI 与AWS基于 Graviton 的实例不兼容。
注意
在 2.5.5.5.5.5.5.5.5.5.5.0AWS ParallelCluster 版本之前,英特尔 MPI 不适用于中国(北京)和中国(宁夏)区域的AWS ParallelCluster AMI。