Compiling MPI Programs
OpenMPI and Intel MPI (IMPI) are implementations of the Message-Passing Interface (MPI) standard. Libraries for these MPI implementations and compilers for C, C++, and Fortran are available on all clusters.
| Language | Header Files |
|---|---|
| Fortran 77 |
|
| Fortran 90 |
|
| Fortran 95 |
|
| C |
|
| C++ |
|
Here are a few sample programs using MPI:
To see the available MPI libraries:
$ module avail openmpi
$ module avail impi
| Language | Intel MPI | OpenMPI |
|---|---|---|
| Fortran 77 |
|
|
| Fortran 90 |
|
|
| Fortran 95 |
|
|
| C |
|
|
| C++ |
|
|
The Intel and GNU compilers will not output anything for a successful compilation. Also, the Intel compiler does not recognize the suffix ".f95".
Here is some more documentation from other sources on the MPI libraries: