--- title: 測試環境說明 | zh tags: Guide, TWNIA3, TW GA: --- <p style="text-align:right;">更新日期:Mar. 19, 2024</p> [TOC] ## 系統資訊 OS: [Rocky](https://rockylinux.org/) 8.5 Release(相容RedHat Enterprise 8/CentOS 8) x86_64 IP:203.145.216.52 ## 環境模組異動 環境模組採用[Lmod](https://lmod.readthedocs.io/en/latest/) 8.7.7,支援TCL與LUA語法。由於Taiwania 3具有二種CPU,原來系統將使用Intel與AMD CPU架構編譯的程式/函式庫環境模組放置於同一目錄,容易造成用戶誤用,因此新系統規劃幾個改善方式 1. 適用不同CPU的環境模組放置於不同的目錄。 不同CPU登入節點看到的環境模組會略有不同,即使名稱相同,實際對應的是不同CPU編譯的函式庫或程式。(目前AMD節點群環境模組暫未調整,待三月底再一併調整。) 2. 增加 CPU Arch的tag,使不便置於不同目錄之模組,可於module顯示提醒(I, A)。 3. 各領域軟體單獨列出,須要時再讀取載入,避免過於雜亂。 ``` [demo_user@lgn302 ~]$ ml av ---------------------------------------------------------- Software Modules ----------------------------------------------------------- abaqus ansoft biology gaussian lsdyna molpro orea schrodinger adf ansys chem lammps matlab nbo qchem tcad ----------------------------------------------------- Original and other Modules ------------------------------------------------------ old-module rcec twcc -------------------------------------------------- Compiler and MPI library Modules --------------------------------------------------- gcc/9.5.0 (I) gcc/11.4.0 (I) gcc/13.2.0 (I,D) intel/2020u4 intel/2022 intel/2024 (D) gcc/10.5.0 (I) gcc/12.3.0 (I) intel/2020u2 intel/2021 intel/2023 -------------------------------------------------- System and serial library Modules -------------------------------------------------- libfabric/1.20.0 xpmem ------------------------------------------------------------ Core Modules ------------------------------------------------------------- lmod settarg Where: I: built for Intel CPU D: Default Module If the avail list is too long consider trying: "module --default avail" or "ml -d av" to just list the default modules. "module overview" or "ml ov" to display the number of modules for each name. Use "module spider" to find all possible modules and extensions. Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys". ``` :::info * 多數套裝軟體未針對Intel與AMD CPU個別推出最佳化版本,因此套裝軟體原則上仍維持原來目錄即可。 * 軟體負責人若要增加新的環境設定模組,依之前的方式在原來的目錄增加即可。 * 若欲顯示特別針對Intel或AMD CPU設定的環境模組,請在modulefile中加入 add_property("arch","Intel") 或 add_property("arch","AMD")。<font color=red><b>勿加入原T3 使用的modulefile中。</b></font> * 由於和原來T3的modulefile架構略有不同,為避免影響目前T3用戶使用,測試原程式相容性者,請在登入新系統後或於job script中,執行module load old-module或ml old-module,即可顯示/使用原來Taiwania 3完整的module ::: :::success :new: * 若您負責的軟體同時可在CentOS 7和 Rocky 8.5中執行,由於新舊環境的Environment Module架構與環境略有不同,若要在同一個modulefile中設定,可加上作業系統版本的判斷,以下為作業系統版本判斷範例,請自行依需求修改。 * Tcl ``` #%Module -*- tcl -*- ## ## modulefile ## # 取得發行版本 set release [exec lsb_release -si] # 判斷發行版本 if {$release == "CentOS"} { module load compiler/intel/2021 ..... } elseif {$release == "Rocky"} { module load intel/2021 ..... } else { setenv OS "WhoKnows" } ``` * Lua ``` -- function get_command_output(command) -- Run a command and return the output with whitespace stripped from the end return string.gsub(capture(command), '%s+$', '') end -- function detect_OS() local distro = get_command_output("lsb_release -si") -- Main program if distro == "CentOS" then module load compiler/intel/2021 ... elseif distro == "Rocky" then module load intel/2021 ... else setenv ("OS", "WhoKnows") end ``` ::: ## 測試partition ### partition name: hetero * 僅能由203.145.216.52 (lgn302, t3-c2.nchc.org.tw)summit job * 每個job最多使用4個節點,最長執行2個小時。(可調整) * 每個節點最多使用56核心,720 GB記憶體。 ## 其他 * 若缺乏library或須其他MPI library,請告知!