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.
- 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.
- module load <module name>
- 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.
Your SLURM submission script should use 'srun' instead of 'mpirun'. See DRP_Cluster#Submitting_and_Managing_Jobs for example scripts.
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.
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.