Basic HTML version of Foils prepared 10 Oct 1995

Foil 8 MPI Conventions

From Fox Presentation Fall 1995 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Geoffrey C. Fox


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 MPI datatype 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 a status (error) code
5 Fortran routines are really subroutines and have returned status code as argument
  • Please check on status codes although this is often skipped!

in Table To:


© on Tue Oct 7 1997