Skip to content

MPI library used is the one compiled with the application and not the one used for mpirun. #11269

Closed
@wckzhang

Description

@wckzhang

Moved ticket from - openpmix/openpmix#2898

[ec2-user@ip-10-0-0-28 ~]$ ~/ompi5install/bin/mpirun -np 1 ldd ~/osu4/libexec/osu-micro-benchmarks/mpi/pt2pt/osu_latency
<snip>
	libmpi.so.40 => /opt/amazon/openmpi/lib64/libmpi.so.40 (0x00007f6e0e757000)
<snip>
	libopen-pal.so.40 => /opt/amazon/openmpi/lib64/libopen-pal.so.40 (0x00007f6e0d358000)
<snip>
[ec2-user@ip-10-0-0-28 ~]$ ~/ompi5install/bin/mpirun -np 1 ldd ~/osu5/libexec/osu-micro-benchmarks/mpi/pt2pt/osu_latency
<snip>
	libmpi.so.80 => /home/ec2-user/ompi5install/lib/libmpi.so.80 (0x00007f325d42a000)
<snip>
	libopen-pal.so.80 => /home/ec2-user/ompi5install/lib/libopen-pal.so.80 (0x00007f325c08d000)
<snip>

Summary:
I compiled OMB against both Open MPI 5.0.x and 4.1.4. Since no ABI break should have occurred, I expected to be able to run the 5.0.x mpirun to launch the 4.1.4 compiled OMB. However, this did not work. The root cause of the issue is that the MPI library used will be the one the application compiles against. I'm not convinced this is the behavior that we want to have.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions