Header left.png

Difference between revisions of "Lmod"

From Systems Group
Jump to: navigation, search
(Commands)
(Troubleshooting)
 
(19 intermediate revisions by one user not shown)
Line 3: Line 3:
 
== Commands ==
 
== Commands ==
  
Display modules available for users to load.
+
'''Display modules available for users to load'''
  
 
  module avail
 
  module avail
+
 
example:
+
 
  module avail
 
  module avail
 
  ------------------------------------------------------ /path/to/modulefiles ------------------------------------------------------
 
  ------------------------------------------------------ /path/to/modulefiles ------------------------------------------------------
  R/4.0.3            pandas/1.3.5        pytorch/1.4                selene-sdk/0.1.3       
+
miniconda3    
  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    
+
  
  
Load package.
+
'''Load a package'''
  
  module load ''packagename''
+
  module load ''packagename/x.x.x''
+
example:
+
module load miniconda
+
  
Unload package.
+
module load miniconda3                      #loads default package when version not specified
 +
 
 +
 
 +
 
 +
'''Unload a package'''
  
 
  module unload ''packagename''
 
  module unload ''packagename''
   
+
 
  example:
+
  module unload miniconda3                    #unload single package
  module unload miniconda
+
 
 +
 
 +
 
 +
'''Display currently loaded modules'''
 +
 
 +
  module list
 +
 
 +
module list
 +
Currently Loaded Modules:
 +
1) miniconda3
 +
 
 +
== Current available packages ==
 +
 
 +
*Miniconda is a lightweight version of Anaconda. Miniconda allows you to manage and tailor your virtual environments for your needs. More information about managing conda virtual enviroments can be found here https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html .
 +
 
 +
miniconda3
 +
 
 +
== Troubleshooting ==
 +
'''Packages are not shown when issuing module avail'''
 +
module use /mnt/lmod_modules/Linux/
 +
 
 +
'''Disk Quota Exceeded'''
 +
This is likely caused by your home directory exceeding storage requirements. If you have any unused virtual environments and/or files (large datasets), you would need to delete them. **Backup your data to your own storage devices (i.e flash drive)**

Latest revision as of 15:06, 11 April 2023

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
module avail
------------------------------------------------------ /path/to/modulefiles ------------------------------------------------------
miniconda3   


Load a package

module load packagename/x.x.x
module load miniconda3                      #loads default package when version not specified


Unload a package

module unload packagename
module unload miniconda3                    #unload single package


Display currently loaded modules

module list
module list
Currently Loaded Modules:
1) miniconda3

Current available packages

miniconda3

Troubleshooting

Packages are not shown when issuing module avail

module use /mnt/lmod_modules/Linux/

Disk Quota Exceeded

This is likely caused by your home directory exceeding storage requirements. If you have any unused virtual environments and/or files (large datasets), you would need to delete them. **Backup your data to your own storage devices (i.e flash drive)**