Modules

From CCI User Wiki
Jump to: navigation, search

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

module avail
See what modules are available.
module load
Load a module.
module list
See what modules are currently loaded.
module show <module name>
See what changes will be made to your environment when you load a module.
module unload <module name>
Unload a loaded module.

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.