Environment-Modules

ENVIRONMENT-MODULES

將各式環境切成模組,需要就載入,不需要就卸除

國網中心的高速計算環境皆已導入Module設定環境,對流及降水實驗室的運算伺服器 [VAPOR] 以及臺灣杉一號皆使用 Enviroment-Modules (簡稱 Modules ),臺灣杉二號與三號採用 Lmod ,作為主要的環境管理套件,讓計算開發環境設定更加簡單方便。 module 為二者通用命令,指令皆相通,且 Lmod 可以直接讀取 modules 的 modulefiles 腳本設定, env-modules 的使用者可以毫無困難切換到 Lmod 環境下使用。 Lmod 另提供 ml 指令,讓操作更加簡潔。

 chevron_right  The Environment Modules documentation portal.

  chevron_right  國家網路中心臺灣杉二號使用手冊-環境模組

Modules receipe / cookbook

各式風味的環境模組

modules 可以使用一種或混用多種風格讓管理員建立給使用者。包含比較常見的 modulepath ,以路徑作為選項引導使用者,限制使用者只能選到該限制下一定能執行的模組,從而避免環境錯誤。臺灣杉一和三號以及 [VAPOR] 是以編譯器使用 modulepath 管理,而函式庫、套件以大雜燴混合的方式呈現。並於模組尾端標註該函式庫或套件是使用哪一種編譯器編譯完成的。

Modules in different machines

expand  modules in Taiwania-3

expand  modules in [VAPOR] 

[USER@VAPOR ***]$ module avail------------- /work3/NWP2024SP/env-modules -------------Apps/ncl/6.6.2-gcc  # NCL, compiled by gcc-4.8.5Compilers/intel/2023.1.0 # Intel CPP/Fortran/TBB/MKL/MPI componentsCompilers/python/3.10.12 # Python within miniforgeLibraries/netcdf/classic/22.01 # NetCDF/Grib2 Libraries compiled by Intel
---------- /aracbox/intel/oneapi/modulefiles -----------advisor/2023.1.0        icc/2023.1.0advisor/latest          icc/latestccl/2021.9.0            icc32/2023.1.0ccl/latest              icc32/latestclck/2021.7.3           init_opencl/2023.1.0clck/latest             init_opencl/latestcompiler-rt/2023.1.0    inspector/2023.1.0compiler-rt/latest      inspector/latestcompiler-rt32/2023.1.0  intel_ipp_ia32/2021.8.0compiler-rt32/latest    intel_ipp_ia32/latestcompiler/2023.1.0       intel_ipp_intel64/2021.8.0compiler/latest         intel_ipp_intel64/latestcompiler32/2023.1.0     intel_ippcp_ia32/2021.7.0compiler32/latest       intel_ippcp_ia32/latestdal/2023.1.0            intel_ippcp_intel64/2021.7.0dal/latest              intel_ippcp_intel64/latestdebugger/2023.1.0       itac/2021.9.0debugger/latest         itac/latestdev-utilities/2021.9.0  mkl/2023.1.0dev-utilities/latest    mkl/latestdnnl-cpu-gomp/2023.1.0  mkl32/2023.1.0dnnl-cpu-gomp/latest    mkl32/latestdnnl-cpu-iomp/2023.1.0  mpi/2021.9.0dnnl-cpu-iomp/latest    mpi/latestdnnl-cpu-tbb/2023.1.0   oclfpga/2023.1.0dnnl-cpu-tbb/latest     oclfpga/latestdnnl/2023.1.0           tbb/2021.9.0dnnl/latest             tbb/latestdpct/2023.1.0           tbb32/2021.9.0dpct/latest             tbb32/latestdpl/2022.1.0            vtune/2023.1.0dpl/latest              vtune/latest

Frequently Used Commands

module list

列出已載入的modulefiles 

module purge

移除所有已載入的modulefiles 

module avail

列出目前可以使用的 modulefiles

module whatis/help

查詢模組說明

module load/add

載入modulefiles

module unload

移除載入的特定modulefile