Lmod
In linux environment variables are values that can change and impact how programs behave on a computer system. They are name-value pairs that all processes can access within a particular user environment or shell session. These variables provide a flexible and convenient method for managing system-wide settings, configuring applications, and customizing system behavior.
Shabyt uses Environment modules (also know as LMOD) to dynamically set up environment variables for different software. Module commands set, change, or delete environment variables that are needed for a particular software. The ‘module load
‘ command will set PATH, LD_LIBRARY_PATH and other environment variables such that user may choose a desired version of applications or libraries more easily. More details can be found here.
Command | Description |
---|---|
module avail | List of available software |
module keyword [word] | Search for available modules matching the keyword |
module spider [word] | Show the details of any modules matching the keyword |
module whatis [module] | Show the short description about module |
module load [package1] [package2] | Load the environment for the default version of the modulefile |
module load [package]/[version] | Load the environment for the specified version of module |
module unload [package1] [package2] | Unload previously loaded packages |
module swap [moduleA] [moduleB] | Unload modulefile A and load modulefile B |
module list | List any currently loaded module(s) |
module purge | Unload all currently loaded modules |
Using module avail
To see what modules you can load into your environment, enter the command module avail
. With OpenMPI/4.1.6-GCC-13.2.0
loaded, this will print a large number of available modules:
[hpcadmin@ln01 ~]$ module load OpenMPI/4.1.6-GCC-13.2.0
[hpcadmin@ln01 ~]$ module list
Currently Loaded Modules:
1) GCCcore/13.2.0 5) numactl/2.0.16-GCCcore-13.2.0 9) hwloc/2.9.2-GCCcore-13.2.0 13) libfabric/1.19.0-GCCcore-13.2.0
2) zlib/1.2.13-GCCcore-13.2.0 6) XZ/5.4.4-GCCcore-13.2.0 10) OpenSSL/1.1 14) PMIx/4.2.6-GCCcore-13.2.0
3) binutils/2.40-GCCcore-13.2.0 7) libxml2/2.11.5-GCCcore-13.2.0 11) libevent/2.1.12-GCCcore-13.2.0 15) UCC/1.2.0-GCCcore-13.2.0
4) GCC/13.2.0 8) libpciaccess/0.17-GCCcore-13.2.0 12) UCX/1.15.0-GCCcore-13.2.0 16) OpenMPI/4.1.6-GCC-13.2.0