H.P.C.

What are Environment Modules?

The Environment Modules package provides for the dynamic modification of a user's environment via modulefiles. Each modulefile contains the information needed to configure the shell for an application. Once the Modules package is initialized, the environment can be modified on a per-module basis using the module command which interprets modulefiles. Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH, MANPATH, and etc. modulefiles may be shared by many users on a system and users may have their own collection to supplement or replace the shared modulefiles. Modules can be loaded and unloaded dynamically and atomically, in a clean fashion. All popular shells are supported, including bash, ksh, zsh, sh, csh, tcsh, as well as some scripting languages such as Perl and python. Modules are useful in managing different versions of applications. Modules can also be bundled into metamodules that will load an entire suite of different applications. Examples of usage:

  • Environment Modules helps to dynamically load/unload environment variables such as PATH, LD_LIBRARY_PATH, etc.
  • Based on module files written in TCL language
  • Environment Modules are shell independent
  • Help to Maintain different versions of the same software
# module avl

$ apps/anaconda3 Loads Anaconda3
$ apps/matlab Loads Matlab Loads Matlab
$ apps/namd/intel/2020.4.912/2.15 Loads Namd with the CPU version
$ apps/namd/intel/2020.4.912/2.15-gpu Loads Namd with the GPU version
$ apps/openfoam/gcc-8.3.0/8 Loads OpenFOAM with gcc
$ apps/openfoam/gcc-8.3.0/8intel Loads OpenFOAM with Intel
$ apps/WRF/intel/2020.4.192/4.2/sm_dm Loads WRF
$ compilers/gcc/8.3.0 Loads GCC compiler
$ compilers/intel/2020.4.912 Loads Intel compiler
$ compilers/intel/2020.4.912_ofoam Loads Intel compiler for OpenFOAM
$ compilers/mpich/gcc-4.8.5/3.4.1 Loads mpich
$ compilers/nvidia/cuda/11.2 Loads NVIDIA CUDA drivers
$ compilers/openmpi/gcc-4.8.5/4.1.0 Loads openmpi


Central Computting Facilities MANIT Bhopal