On Jan 27, 2021, at 7:19 PM, Gilles Gouaillardet <gil...@rist.or.jp> wrote:
> 
> What I meant is the default Linux behavior is to first lookup dependencies in 
> the rpath, and then fallback to LD_LIBRARY_PATH
> *unless* -Wl,--enable-new-dtags was used at link time.
> 
> In the case of Open MPI, -Wl,--enable-new-dtags is added to the MPI wrappers,
> but Open MPI is *not* built with this option.

Oh, I see where I got confused: Open MPI (core and DSO components) is built 
with -rpath, but not --enable-new-dtags.

Hmm.  ...trying to remember why we would have made that choice...

I don't see any obvious reason cited in the git history.  Do you remember?

> That means, that by default, mca_pml_ucx.so and friends will get libuc?.so 
> libraries at runtime from rpath
> (and that cannot be overridden by LD_LIBRARY_PATH).

Gotcha.

-- 
Jeff Squyres
jsquy...@cisco.com

Reply via email to