Environment Modules

Last modified by Administrator on Thu, 02/13/2020, 4:58 PM

Environment modules are files needed to successfully/optimally run applications in HPC. These enable controlling/managing of applications in an HPC environment. With environment modules, we can have multiple versions of the same application without the compromising the operation system (OS).

Module Files

  • Module files are scripts that define the particular variables that need to be set per application.
  • Each application has its own module file.
  • Associated module files are available for packages installed in /opt/hpcc.

Commands

  1. View existing Module/s
    module avail

    1789185237.png

  2. Informative listing of modules
    module whatis

    1114124198.png

  3. Load preferred application and version
    module load <name>/version> or module add <name>/<version>

    NOTE: Packages will also load the module files of prerequisites when available.

    845022689.png

  4. View currently loaded module
    module list

    1339443741.png

  5. Remove specific module currently loaded
    module unload

    2002288290.png

  6. Remove all currently loaded modules
    module purge

    973573820.png

  7. Load Modules Automatically on Login

    Modules can be automatically loaded on a user's shell environment by adding the appropriate module commands into the ~/.bashrc file.

    NOTE: You can use the “Tab” key to autocomplete or view matching name/s or version/s.

Tags: