Skip to content

cuda: libmpi.so.0 links libcuda.so which causes link issues when cuda is not installed #8884

Closed
@AboorvaDevarajan

Description

@AboorvaDevarajan

Background information

What version of Open MPI are you using? (e.g., v3.0.5, v4.0.2, git branch name and hash, etc.)

ompi - master

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

git clone

If you are building/installing from a git clone, please copy-n-paste the output from git submodule status.

$ git submodule status
 e46276629146e13c2f08ee9f71ba8133b4a0a7d7 3rd-party/openpmix (v1.1.3-2960-ge462766)
 b6ddc6e36dc88d1599f130886c915909327b0b8d 3rd-party/prrte (dev-31155-gb6ddc6e)

Details of the problem

Build

./autogen.pl
./configure --prefix=`pwd`/ompi-install --disable-nvml --disable-gl --disable-man-pages --enable-mca-no-build=btl-uct --enable-mpi1-compatibility  --with-cuda=/usr/local/cuda 
make -j40 install
$ ldd `pwd`/ompi-install/libmpi.so.0 | grep cuda
        libcuda.so.1 => /lib64/libcuda.so.1 (0x00007f904f39b000)

Looks like libmpi.so is linking libcuda.so this causes linker issues when the same ompi build is used in a node without cuda support.

This change in behavior / dependency is recently introduced here:
#8740

https://github.com/open-mpi/ompi/blob/master/3rd-party/romio341/mpl/configure.ac#L990

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions