Header left.png

Difference between revisions of "Lmod"

From Systems Group
Jump to: navigation, search
(Commands)
Line 32: Line 32:
 
  example:
 
  example:
 
  module unload miniconda
 
  module unload miniconda
 +
 +
 +
Display currently loaded modules.
 +
 +
module list
 +
 +
example:
 +
module list
 +
Currently Loaded Modules:
 +
1) python/3.8.12  2) tensorflow/2.1

Revision as of 18:20, 21 April 2022

Lmod is a Lua-based module system. Environment Modules provide a convenient way to dynamically change the users' environment through modulefiles.

Commands

Display modules available for users to load.

module avail

example:
module avail
------------------------------------------------------ /path/to/modulefiles ------------------------------------------------------
  R/4.0.3                pandas/1.3.5         pytorch/1.4                selene-sdk/0.1.3         
  deepcpg/1.0.7          pyfasta/0.5.2        pyyaml/5.1.1               selene-sdk/0.4.1           
  keras/2.2.4            python/3.7.4         samtools/1.9               tensorflow/1.13.1
  miniconda/4.11.0  (D) 


Load package.

module load packagename/x.x.x

example:
module load miniconda                    #loads default package when version is not specified
module load selene-sdk/0.4.1             #load a specific module
module load python/3.8.12 tensorflow/2.1 #load multiple packages at the same time


Unload package.

module unload packagename

example:
module unload miniconda


Display currently loaded modules.

module list

example:
module list
Currently Loaded Modules:
1) python/3.8.12   2) tensorflow/2.1