mpich

Version:

3.3.2 (gcc), 3.4.2 (gcc), 4.2.1 (gcc), 3.3.2 (intel), 3.3.2 (pgi)

Category:

mpi

Cluster:

Loki

Author / Distributor

https://www.mpich.org/

Description

MPICH is a high-performance and widely portable implementation of the Message Passing Interface (MPI) standard (MPI-1, MPI-2 and MPI-3)

Documentation

$ mpirun --help

Usage: mpirun [options] [program] [args]

Common options:
  -n, -np <num>       Number of processes
  -host <list>        Comma-separated list of hosts
  -env <var> <value>  Set environment variable for all processes
  -ppn <num>          Processes per node
  -prepend-rank       Prepend rank to output

Compiler wrappers:
  mpicc     - C compiler
  mpicxx    - C++ compiler
  mpif77    - Fortran 77 compiler
  mpif90    - Fortran 90 compiler

Full documentation:
  https://www.mpich.org/documentation/

Examples/Usage

  • List available modules:

    $ module avail mpich
    
  • Load the mpich module:

    $ module load mpi/MPICH/3.3.2-GCC-10.2.0
    
  • Check the loaded modules:

    $ module list
    
  • Unload the mpich module:

    $ module unload mpi/MPICH/3.3.2-GCC-10.2.0
    
  • Compile and run a C MPI program:

    mpicc -o hello_mpi hello.c
    mpirun -n 4 ./hello_mpi
    

Installation

Source code is obtained from MPICH