Skip to content

Modules

Modules are used to load common environments for compiling or executing particular applications. As long as they do not conflict, it is possible to load multiple modules to provide multiple libraries at the same time.

Useful Module commands

See what modules are available. module avail

Certain modules only show as available if a required module is loaded ahead of time. For example, on certain systems mpi modules may only appear after a compiler is loaded.

Search for a module module spider <module name>

Load a module. module load <module name>

See what modules are currently loaded. module list

See what changes will be made to your environment when you load a module. module show <module name>

Unload a loaded module. module unload <module name> or module unload all

Modules

MPI Modules

Your Slurm submission script should use 'srun' instead of 'mpirun'. See DRP_Cluster#Submitting_and_Managing_Jobs for example scripts.

MVAPICH2

You can configure your environment to compile and run under MVAPICH using the following command:

 module load gcc
 module load mvapich2 

This will setup the default versions of gcc and mvapich2. You can specify a specific version (from the list provided by 'module av') as needed.

OpenMPI

You can configure your environment to compile and run under OpenMPI using the following command:

 module load gcc
 module load openmpi

The same comment about versions made for MVAPICH2 applies here.