Open MPI

The Open MPI compiler wrapper scripts listed in the table below add in all relevant compiler and link flags, and the invoke the underlying compiler, i.e. the compiler the Open MPI installation was built with.

Language

Wrapper script

Environment variable

C

mpicc

OMPI_CC

C++

mpiCC, mpicxx, mpic++

OMPI_CXX

Fortran

mpifort

OMPI_FC

It is possible to change the underlying compiler invoked when calling the compiler wrappers using the environment variables listed in the table. Use the option -showme to see the underlying compiler, the compile and link flags, and the libraries that are linked.