Scripted HTML version of Foils prepared 11 November 1996

Foil 8 MPI Conventions

From CPS615-Initial Lecture on MPI ending with discussion of basic MPI_SEND Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 31 October 96. by Geoffrey C. Fox *
Secs 125.2
All MPI routines are prefixed by MPI_
  • C is always MPI_Xnnnnn(parameters) : C is case sensitive
  • Fortran is case insensitive but we will write MPI_XNNNNN(parameters)
MPI constants are in upper case as MPI datatype MPI_FLOAT for floating point number in C
Specify overall constants with
  • #include "mpi.h" in C programs
    • include "mpif.h" in Fortran
C routines are actually integer functions and always return a status (error) code
Fortran routines are really subroutines and have returned status code as argument
  • Please check on status codes although this is often skipped!



© 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 Fri Aug 15 1997