本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
Arm Performance Libraries
从 Amazon ParallelCluster 版本 2.10.1 开始,Arm Performance Librar Amazon ParallelCluster AMIs y 可在该设置的alinux2centos8ubuntu1804、、和ubuntu2004值上使用。base_osArm Performance Libraries 为 Arm 处理器上的高性能计算应用程序提供优化的标准核心数学库。要使用 Arm Performance Libraries,您必须确认并接受 Arm Performance Libraries(免费版)- 最终用户许可协议
要启用 Arm Performance Libraries,必须先加载 Arm Performance Libraries 模块。作为一项要求,Armpl-21.0.0 需要 GCC-9.3,当加载 armpl/21.0.0 模块时,也会加载 gcc/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 armplUse 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 listCurrently 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 Performance Libraries,请运行示例测试。
$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 Performance Libraries 模块后,将会更改多个路径以使用 Arm Performance Libraries 工具。要运行由 Arm Performance Libraries 工具编译的代码,请先加载 Arm Performance Libraries 模块。
注意
Amazon ParallelCluster 2.10.1 和 2.10.4 之间的版本使用。armpl/20.2.1