App Icon MPICH 3.3.1 (CentOS 7)

 Documentation Launch at CHI@TACC  Launch at CHI@UC 

Description

This appliance is built on top of CC-CentOS7. It includes all Chameleon utilities, such as cc-checks, cc-snapshot, gnocchi collection agent, and cc-cloudfuse.

To run MPI programs, execute the following command, assuming you have compiled a program called mpi.out:

mpiexec -n <nprocs> -hostfile hosts ./mpi.out

To compile an MPI program, use a command such as this one:

mpicc -o hello_world hello_world.c

A simple program to compute the value of pi by numerical integration is included. You can run this program with:

mpiexec -n 4 cpi

Output should look like:

Process 0 of 4 is on mpich.novalocal
Process 1 of 4 is on mpich.novalocal
Process 3 of 4 is on mpich.novalocal
Process 2 of 4 is on mpich.novalocal
pi is approximately 3.1415926544231239, Error is 0.0000000008333307
wall clock time = 0.000164

There are many options for mpiexec, by which multiple executables can be run, hosts can be specified, separate command-line arguments and environment variables can be passed to different processes, and working directories and search paths for executables can be specified.

For more details, run:

mpiexec --help

Keywords

MPI MPICH

Image IDs

CHI@TACC:  5c46d59e-1b15-4c69-b63a-f7c2fadab5cb
CHI@UC:  a8747942-1bb8-46d0-9a9d-b648734d3154

Author

Name: Ken Raffenetti
Contact:  raffenet@mcs.anl.gov

Support

Name: Ken Raffenetti
Contact:  raffenet@mcs.anl.gov

Version: 2003
Created By:  raffenet on July 8, 2019, 9:33 a.m.
Updated By:  zzhen on June 15, 2022, 8:13 p.m.