OpenMPI: tell it where libcuda.so is (#36784)

starting with the 5.0.x release stream the cuda related configury
items in Open MPI once again need --with-cuda-libdir so that
libcuda.so can be found at configure time, otherwise no cuda
support unless someone copies libcuda.so to
$CUDA_HOME/lib64

related to #36760

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
This commit is contained in:
Howard Pritchard 2023-04-15 06:53:15 -06:00 committed by GitHub
parent cf817bdd4e
commit cad16f5d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1007,6 +1007,11 @@ def configure_args(self):
config_args.append(
"--with-cuda-libdir={0}".format(spec["cuda"].libs.directories[0])
)
if spec.satisfies("@5.0:"):
# And then it returned
config_args.append(
"--with-cuda-libdir={0}".format(spec["cuda"].libs.directories[0] + "/stubs")
)
if spec.satisfies("@1.7.2"):
# There was a bug in 1.7.2 when --enable-static is used
config_args.append("--enable-mca-no-build=pml-bfo")