diff options
author | Howard Pritchard <howardp@lanl.gov> | 2023-04-15 06:53:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 14:53:15 +0200 |
commit | cad16f5d3d2b5d4f65e3ddf5e95cc4f05bc31510 (patch) | |
tree | 55fe1e30632d75b7c21ffbf230798c2bdd61e7cb | |
parent | cf817bdd4edf968fbdb16df689f6eb214ac7981d (diff) | |
download | spack-cad16f5d3d2b5d4f65e3ddf5e95cc4f05bc31510.tar.gz spack-cad16f5d3d2b5d4f65e3ddf5e95cc4f05bc31510.tar.bz2 spack-cad16f5d3d2b5d4f65e3ddf5e95cc4f05bc31510.tar.xz spack-cad16f5d3d2b5d4f65e3ddf5e95cc4f05bc31510.zip |
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>
-rw-r--r-- | var/spack/repos/builtin/packages/openmpi/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 042938aa4b..7d2347a39d 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -1007,6 +1007,11 @@ class Openmpi(AutotoolsPackage, CudaPackage): 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") |