Arm 效能程式庫 - AWS ParallelCluster

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

Arm 效能程式庫

從 2.10.1 AWS ParallelCluster 版開始,Arm Performance 程式庫可在 alinux2ubuntu1804、 和 base_os ubuntu2004設定值的 AWS ParallelCluster AMIs centos8上使用。Arm 效能程式庫為 Arm 處理器上的高效能運算應用程式提供最佳化的標準核心數學程式庫。若要使用 Arm Performance 程式庫,您必須確認並接受 Arm Performance 程式庫 (免費版本) - 最終使用者授權合約的條款。如需 Arm Performance 程式庫的詳細資訊,請參閱 Free Arm Performance 程式庫

若要啟用 Arm Performance 程式庫,您必須先載入 Arm Performance 程式庫模組。 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 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 Performance 程式庫是否已啟用,請執行範例測試。

$ 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 程式庫模組之後,多個路徑會變更為使用 Arm Performance 程式庫工具。若要執行由 Arm Performance 程式庫工具編譯的程式碼,請先載入 Arm Performance 程式庫模組。

注意

AWS ParallelCluster 2.10.1 和 2.10.4 之間的版本使用 armpl/20.2.1