Basic HTML version of Foils prepared 19 September 98

Foil 23 MPI Conventions

From MPI Message Passing Interface Computational Science for Simulations -- Fall Semester 1998. by Geoffrey C. Fox, Nancy McCracken


1 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)
2 MPI constants are in upper case as are MPI datatypes, e.g. MPI_FLOAT for floating point number in C
3 Specify overall constants with
  • #include "mpi.h" in C programs
  • include "mpif.h" in Fortran
4 C routines are actually integer functions and always return an integer status (error) code
5 Fortran routines are really subroutines and have returned status code as last argument
  • Please check on status codes although this is often skipped!

in Table To:


© 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