Re: [OMPI devel] How to build Open MPI so the UCX used can be changed at runtime?

2021-01-27 Thread Gilles Gouaillardet via devel
Jeff, 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*

Re: [OMPI devel] How to build Open MPI so the UCX used can be changed at runtime?

2021-01-27 Thread Tim Mattox via devel
Thank you for the suggestion of 'configure ... LDFLAGS="-Wl,--enable-new-dtags"'. I'm still reading up on its meaning, but wouldn't that change the behavior across all dependencies that are dynamically linked when I build Open MPI? I was specifically wanting *just* these UCX .so files to be

Re: [OMPI devel] How to build Open MPI so the UCX used can be changed at runtime?

2021-01-27 Thread Jeff Squyres (jsquyres) via devel
On Jan 27, 2021, at 2:00 AM, Gilles Gouaillardet via devel mailto:devel@lists.open-mpi.org>> wrote: Tim, a simple option is to configure ... LDFLAGS="-Wl,--enable-new-dtags" If Open MPI is built with this option, then LD_LIBRARY_PATH takes precedence over rpath (the default is the opposite