The Fortran language has evolved substantially from the Fortran 77 bindings defined in the MPI-1 (Message Passing Interface) standard. Fortran 90 introduced interface blocks (among other items); subsequently, the MPI-2 standard defined Fortran 90 bindings with explicit Fortran interfaces to MPI routines. In this paper, we describe the Open MPI implementation of these two sets of Fortran bindings and point out particular issues related to them. In particular, we note that strong typing of the Fortran 90 MPI interfaces with user-choice buffers leads to an explosion of interface declarations; each choice buffer must be expanded to all possible combinations of Fortran type, kind, and array dimension. Because of this (and other reasons outlined in this paper), we propose a new set of Fortran MPI bindings that uses the intrinsic ISO_C_BINDING module in Fortran 2003. These new bindings will allow MPI interfaces to be defined in Fortran that directly invoke their corresponding MPI C implementation routines – no additional layer of software to marshall parameters between Fortran and C is required.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Personal communication with compiler vendors. Meeting 168 of the J3 Fortran Standards Committee (August 2004)Google Scholar
  2. 2.
    Fortran, Final Committee Draft, J3/03-007R2. see (2003),
  3. 3.
    Garbriel, E., Fagg, G.E., Bosilica, G., Angskun, T., Dongarra, J.J., Squyres, J.M., Sahay, V., Kambadur, P., Barrett, B., Lumsdaine, A., Castain, R.H., Daniel, D.J., Graham, R.L., Woodall, T.S.: Open mpi: Goals, concept, and design of a next generation mpi implementation. In: Proceedings, 11th European PVM/MPI Users’ Group Meeting (2004)Google Scholar
  4. 4.
    Geist, A., Gropp, W., Huss-Lederman, S., Lumsdaine, A., Lusk, E., Saphir, W., Skjellum, T., Snir, M.: MPI-2: Extending the Message-Passing Interface. In: Euro-Par 1996 Parallel Processing, pp. 128–135. Springer, Heidelberg (1996)Google Scholar
  5. 5.
    Message Passing Interface Forum. MPI: A Message Passing Interface. In: Proc. of Supercomputing 1993, November 1993, pp. 878–883. IEEE Computer Society Press, Los Alamitos (1993)Google Scholar
  6. 6.
    Rasmussen, C.E., Sottile, M.J., Shende, S., Malony, A.D.: Bridging the language gap in scientific computing: The Chasm approach. Concurrency and Computation: Practice and Experience (2005)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2005

Authors and Affiliations

  • C. E. Rasmussen
    • 1
  • J. M. Squyres
    • 2
  1. 1.Advanced Computing LabLos Alamos National Laboratory 
  2. 2.Open Systems LaboratoryIndiana University 

Personalised recommendations