The module environment
The Environment Modules package is a tool that simplifies shell initialization and lets users easily modify their environment. Modules can be loaded and unloaded during shell startup (i.e. in .bash_profile), in queue submission scripts, or dynamically during an interactive shell session. Loading a module simply changes environment variables.
An experimental Spack install is also available.
Common module commands include:
module list: lists currently loaded modulesmodule load XYZ: loads the default version of the XYZ modulemodule load XYZ/1.0.0: loads the 1.0.0 version of the XYZ modulemodule unload: unloads the XYZ modulemodule purge: unloads all currently loaded modulesmodule av: lists all available modulesmodule av XYZ: lists all available version of the XYZ modulemodule save NAME: saves the current module state to a name of your choicemodule restore NAME: restores a module state previously saved (using files in ~/.module)
Dependencies
While loading some modules, their dependencies must be loaded as well. For instance, loading fftw module requires at least one compiler module (such as gnu_comp or intel_comp) to be loaded.
If you do not have the right dependencies loaded, you will be warned, and the module will refuse to load.
For example, hdf5, parallel_hdf5 and fftw need a compiler to be loaded first, and parmetis also needs an MPI module:
module load gnu_comp/14.1.0 openmpi/5.0.3 parmetis/4.0.3
Some modules only appear after loading another one. For example, compiler, mpi, tbb and compiler-rt only appear after loading intel_comp:
module load intel_comp/2025.3.0 compiler-rt tbb umf compiler mpi
For a list of what is installed, and which compiler and MPI modules each library works with, see the list of modules.
For more information, type man module or go to the project website.
If you are unsure what a good combination of modules is for a specific software tool, please ask cosma-support, or view the code pages.
The module save and restore commands are good ways of quickly swapping between favourite module environments.
Old (retired) modules can be accessed by first using module load old-modules. However please note that these may or may not work.