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

2021-01-26 Thread Gilles Gouaillardet via devel
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 as correctly pointed by Yossi in an earlier message) Cheers, Gilles On 1/27/2021 2:48 AM,

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

2021-01-26 Thread Tim Mattox via devel
Well, now it is a multi-line patch, and it is more hacky... but this works for me. Suggestions for a better thing to do to upstream this functionality would be appreciated. --- openmpi-4.1.0/config/ompi_check_ucx.m4.orig 2021-01-26 11:13:55.753451526 -0600 +++

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

2021-01-26 Thread Tim Mattox via devel
Ugh, apparently my one-line patch to openmpi-4.1.0/config/ompi_check_ucx.m4 wasn't sufficient on a fresh install... debugging... On Tue, Jan 26, 2021 at 10:16 AM Tim Mattox wrote: > > My environment modules were already setting LD_LIBRARY_PATH to point > to my UCX lib directory. > > The real

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

2021-01-26 Thread Tim Mattox via devel
My environment modules were already setting LD_LIBRARY_PATH to point to my UCX lib directory. The real problem was that OMPI's config/ompi_check_ucx.m4 was recording the full path to the UCX library if it wasn't found in a standard system location (e.g. /lib, /lib64, /usr/lib, etc.). That is