MPI_STUBS
MPI Stub Libraries


MPI_STUBS is a set of C, C++, FORTRAN77 and FORTRAN90 routines that can look enough like the real MPI routines to satisfy the compiler and the linker/loader.

For very simple MPI programs that can run correctly on one process, the resulting executable program might even run, and might even be correct.

However, the main purpose of this library is simple to make it possible to compile and debug MPI programs on systems that do not actually support MPI.

By the way, the C++ version of the stub library is very very tiny; I just don't know my way around C++ well enough to fake this!

If your compiler supports MPI, then you may not need to copy the include file. Otherwise, copy the include file and the source code of the library, rename the include file to match the name of the include file you are invoking, and compile the library along with your program.

C Source Code:

C++ Source Code:

F77 Source Code:

F90 Source Code:


You can go up one level to the FSU MPI 2008 web page.

Last revised on 16 August 2008.