Closed garlick closed 1 year ago
Generated src/shell/plugins/Makefile contains:
PMIX_LIBS = -L/opt/ompi-v5.0.0rc9/lib -Wl,-rpath -Wl,/opt/ompi-v5.0.0rc9/lib -Wl,--enable-new-dtags -lpmix
This is likely because we find both pmix and ompi using pkg-config
PKG_CHECK_MODULES([PMIX], [pmix >= 4.0.0])
...
PKG_CHECK_MODULES([OMPI], [ompi >= 3.0.0], [
...
and have to set PKG_CONFIG_PATH to the ompi directory in order to find it.
Openmpi is only needed here for testing. And we've pulled in stuff like the osu mpi benchmarks just so we can test openmpi with this plugin. Posilby that was as misstep.
Idea: drop the openmpi testing here and create a new mpi-test flux repo whose CI could test flux + flux-pmix + target MPI, where the target MPI is varied in CI.
As of #73, flux-pmix does not require openmpi to build, so this is avoidable by building without openmpi present, or by installing openpmix to a non side-installed path as we do in CI.
Problem: when building flux-pmix with a side installed version of ompi, the shell plugin is installed with an rpath pointing to ompi's libpmix.so:
This is despite having another version of openpmix installed in a default system location.