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.

Can I pass specific flags to the compilers / linker used to build Open MPI?

0
Posted

Can I pass specific flags to the compilers / linker used to build Open MPI?

0

Yes. Open MPI uses a standard Autoconf configure script to set itself up for building. As such, there are a number of command line options that can be passed to configure to customize flags that are passed to the underlying compiler to build Open MPI: • CFLAGS: Flags passed to the C compiler. • CXXFLAGS: Flags passed to the C++ compiler. • FFLAGS: Flags passed to the Fortran 77 compiler. • FCFLAGS: Flags passed to the Fortran 90 compiler. • LDFLAGS: Flags passed to the linker (not language-specific). This flag is rarely required; Open MPI will usually pick up all LDFLAGS that it needs by itself. • LIBS: Extra libraries to link to Open MPI (not language-specific). This flag is rarely required; Open MPI will usually pick up all LIBS that it needs by itself. • LD_LIBRARY_PATH: Note that we do not recommend setting LD_LIBRARY_PATH via configure, but it is worth noting that you should ensure that your LD_LIBRARY_PATH value is appropriate for your build. Some users have been tripped up, for

Related Questions

What is your question?

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

Experts123