Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Open MPI seems to default to building with the GNU compiler set. Can I use other compilers?

0
Posted

Open MPI seems to default to building with the GNU compiler set. Can I use other compilers?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123