環境模組

透過module可以將多種版本的環境很簡單快速的切換

列出所有可用模塊
$module avail
-------------------------------------------------------- /usr/local/Modules/modulefiles --------------------------------------------------------
CUDA9.0  CUDA10.0  CUDA10.2  dot  GPU4ALL  GPU4CSE  GPU4PROG  module-git  module-info  modules  null  use.own
載入CUDA9.0模塊
$module add CUDA9.0
列出載入中模塊
$module list
Currently Loaded Modulefiles:
 1) CUDA9.0   2) dot
當載入相衝突模塊時會出現
ERROR: CUDA10.0 cannot be loaded due to a conflict.
HINT: Might try "module unload CUDA9.0" first.
請先卸載現有模塊
$module unload CUDA9.0
透過switch切換模塊
$module switch CUDA9.0 CUDA10.2

其他指令說明

ActionCommand
Show available modulesmodule avail
Add modulesmodule add
Remove a module oncemodule rm
Load the module every time you log onmodule initadd
Remove and prevent a module from loading on log onmodule initrm

如有需要增加其他模塊,請與系統管理員聯繫。