Arm 性能库 - AWS ParallelCluster

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

Arm 性能库

从AWS ParallelCluster版本 2.10.1 开始,Arm 性能库在 AWS ParallelCluster AMI 上可用alinux2centos8ubuntu1804、和ubuntu2004设置值。base_osArm 性能库为 Arm 处理器上的高性能计算应用程序提供优化的标准内核数学库。要使用 Arm 性能库,您必须承认并接受 Arm 性能库(免费版)-最终用户许可协议的条款。有关 Arm 性能库的更多信息,请参阅免费 Arm 性能库

要启用 Arm 性能库,必须先加载 Arm 性能库模块。 Armpl-21.0.0需要 GCC-9.3 作为要求,当你加载模块时,armpl/21.0.0gcc/9.3模块也会被加载。模块的确切名称随每次更新发生变化。要查看哪些模块可用,请运行 module avail。然后,你需要使用来安装最新版本。module load armpl输出如下所示。

$ module avail ------------------------------- /usr/share/Modules/modulefiles -------------------------------- armpl/21.0.0 dot libfabric-aws/1.11.1amzn1.0 module-git module-info modules null openmpi/4.1.0 use.own

要加载模块,请运行 module load modulename。您可以将其添加到用于运行 mpirun 的脚本中。

$ module load armpl Use of the free of charge version of Arm Performance Libraries is subject to the terms and conditions of the Arm Performance Libraries (free version) - End User License Agreement (EULA). A copy of the EULA can be found in the '/opt/arm/armpl/21.0.0/arm-performance-libraries_21.0_gcc-9.3/license_terms' folder

要查看加载了哪些模块,请运行module list

$ module list Currently Loaded Modulefiles: 1) /opt/arm/armpl/21.0.0/modulefiles/armpl/gcc-9.3 2) /opt/arm/armpl/21.0.0/modulefiles/armpl/21.0.0_gcc-9.3 3) armpl/21.0.0

要验证是否已启用 Arm 性能库,请运行示例测试。

$ sudo chmod 777 /opt/arm/armpl/21.0.0/armpl_21.0_gcc-9.3/examples $ cd /opt/arm/armpl/21.0.0/armpl_21.0_gcc-9.3/examples $ make ... Testing: no example difference files were generated. Test passed OK

加载 Arm 性能库模块后,将更改多条路径以使用 Arm 性能库工具。要运行由 Arm 性能库工具编译的代码,请先加载 Arm 性能库模块。

注意

AWS ParallelCluster2.10.1 和 2.10.4 之间的版本使用。armpl/20.2.1