Reaching Others University at Buffalo - The State University of New York
Skip to Content

MPICH2

MPICH2 is an implementation of MPI (v2.x) that runs over Ethernet.

Category:  MPI

 

WARNING: The MPICH modules at UB CCR have not been tested in the SLURM environment. According to wiki.mpich.org these modules SHOULD work so long as the hydra process manager is used and jobs are launched according to the approach given below.

Compiler "wrappers" around the compiler suite (mpif90, mpicc, mpicxx).

Usage Notes:

Show the software versions:  module avail mpich2

Loading the module will set the path and any necessary variables:  module load mpich2/version

Job Startup

MPICH2 no longer recommends using (mulitpurpose) daemons to launch tasks.

To run under SLURM you should use a combination of salloc and mpiexec, which by default will use the new hydra process launcher. 

The following sample code for launching the tasks is written in bash:


salloc -N $SLURM_NNODES mpiexec ./a.out