Modules

Overview

  • Time: 15 min

  1. Learn how to use modules to manage software on HPC systems.

  2. Understand how to load and unload modules.

Note

  1. python3/3.11.0

  2. papi/7.0.1

  3. openmpi/4.0.1

  4. cuda/12.3.2

  5. gcc/14.2.0

Finding Modules

Modules are how we manage software in most HPC machines. We can see all the available modules using the command

1module avail

This command lists all the available modules on the system that starts with the letter “p”.

1module avail p*

Loading Modules

If we want to load a module python3/3.11.0 we can use the command

1module load python3/3.11.0

We can also load multiple modules at once.

1module load papi/7.0.1 openmpi/4.0.1

Unloading Modules

If we want to unload the module use the command

1module unload python3/3.11.0

We can unload all the modules using the command

1module purge

Key Points

  • module avail: This command lists all the available modules on the system.

  • module load <module_name>: This command loads a specific module, making its software available for use.

  • module unload <module_name>: This command unloads a specific module, removing its software from the environment.