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:
parent
cf817bdd4e
commit
cad16f5d3d
1 changed files with 5 additions and 0 deletions
|
@ -1007,6 +1007,11 @@ def configure_args(self):
|
||||||
config_args.append(
|
config_args.append(
|
||||||
"--with-cuda-libdir={0}".format(spec["cuda"].libs.directories[0])
|
"--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"):
|
if spec.satisfies("@1.7.2"):
|
||||||
# There was a bug in 1.7.2 when --enable-static is used
|
# There was a bug in 1.7.2 when --enable-static is used
|
||||||
config_args.append("--enable-mca-no-build=pml-bfo")
|
config_args.append("--enable-mca-no-build=pml-bfo")
|
||||||
|
|
Loading…
Reference in a new issue