Open MPI seems to default to building with the GNU compiler set. Can I use other compilers?
Yes. Open MPI uses a standard Autoconf “configure” script to probe the current system and figure out how to build itself. One of the choices it makes it which compiler set to use. Since Autoconf is a GNU product, it defaults to the GNU compiler set. However, this is easily overridden on the configure command line. For example, to build Open MPI with the Intel compiler suite: shell$ ./configure CC=icc CXX=icpc F77=ifort FC=ifort … Note that you can include additional parameters to configure, implied by the “…” clause in the example above. In particular, 4 switches on the configure command line are used to specify the compiler suite: • CC: Specifies the C compiler • CXX: Specifies the C++ compiler • F77: Specifies the Fortran 77 compiler • FC: Specifies the Fortran 90 compiler NOTE: The Open MPI team recommends using a single compiler suite whenever possible. Unexpeced or undefined behavior can occur when you mix compiler suites in unsupported ways (e.g., mixing Fortran 77 and Fortra
Related Questions
- When I build with the Intel compiler suite, linking user MPI applications with the wrapper compilers results in warning messages. What do I do?
- Embedded compilers cost thousands of dollars, so why is the GNU 68K/Coldfire C/C++ Compiler Toolkit free?
- Open MPI seems to default to building with the GNU compiler set. Can I use other compilers?