Basic HTML version of Foils prepared August 29 98

Foil 5 Compiling and Linking (in MPICH)

From Designing and Building Parallel Programs 3: MPI Message Passing System DoD Modernization Tutorial -- 1995-1998. by Ian Foster, Gina Goff, Ehtesham Hayder, Chuck Koelbel


Special compiler commands for simple programs
  • mpicc -o first first.c mpif77 -o firstf firstf.f
Options enable MPI profiling features
  • -mpilog: Generate log files of MPI calls
  • -mpitrace: Trace execution of MPI calls
  • -mpianim: Real-time animation (on some systems)
Standard makefiles for larger programs
  • See /usr/local/mpi/examples/Makefile.in



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 11 1999