Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Adding libraries to wrapper compiler at run-time
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2010-07-15 10:16:28

On Jul 7, 2010, at 2:53 PM, Jeremiah Willcock wrote:

> The Open MPI FAQ shows how to add libraries to the Open MPI wrapper
> compilers when building them (using configure flags), but I would like to
> add flags for a specific run of the wrapper compiler. Setting OMPI_LIBS
> overrides the necessary MPI libraries, and it does not appear that there
> is an easy way to get just the flags that OMPI_LIBS contains by default
> (either using -showme:link or ompi_info). Is there a way to add to the
> default set of OMPI_LIBS rather than overriding it entirely? Thank you
> for your help.

Sorry for the high latency reply!

There isn't currently a better way to do this other than editing or extracting the information from the wrapper data text files directly (it might not be too hard to parse the information from the wrapper text file -- a little grep/awk/sed might do ya...?).

If you have a better suggestion, a patch would be welcome! :-)

Jeff Squyres
For corporate legal information go to: