Skip to Main Content

Environment Modules

The user environment on the Kestrel cluster is modular. This provides users with a simple interface to change environment variables in job files to support multiple versions of software.

Compilers can be loaded and unloaded using the module commands (you can automate this by editing your .bashrc file:  module load gcc/4.8.1  loads version 4.8.1 of the gcc module.)

Module Commands:

  • module available – See current list of loaded environment modules

Image of a screenshot of the module available command

  • module load $modulename – Load specific module

Image of a screenshot of the module load command

  • module list – Shows a list of modules loaded in your profile

Image of a screenshot of the module list command

  • module unload $modulename – Remove specific module load from your session

Image of a screenshot of the module unload command

  • module swap $modulename – Used to swap modules (ex. module swap pgi/12.9 pgi/12.8)

Image of a screenshot of the module swap command

  • module show $modulename – Shows what environment variables are set by a module (ex. module show pgi/12.9)

Image of a screenshot of the module show command

Back to top