Add --enable-orterun-prefix-by-default configure option for OpenMPI (#34469)

This commit is contained in:
Jack Morrison 2022-12-16 19:59:24 -05:00 committed by GitHub
parent 9817593c1c
commit 5a985e33ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -474,6 +474,11 @@ class Openmpi(AutotoolsPackage, CudaPackage):
variant("lustre", default=False, description="Lustre filesystem library support")
variant("romio", default=True, description="Enable ROMIO support")
variant("rsh", default=True, description="Enable rsh (openssh) process lifecycle management")
variant(
"orterunprefix",
default=False,
description="Prefix Open MPI to PATH and LD_LIBRARY_PATH on local and remote hosts",
)
# Adding support to build a debug version of OpenMPI that activates
# Memchecker, as described here:
#
@ -928,6 +933,11 @@ def configure_args(self):
if spec.satisfies("~rsh"):
config_args.append("--enable-mca-no-build=plm-rsh")
# Useful for ssh-based environments
if spec.satisfies("@1.3:"):
if spec.satisfies("+orterunprefix"):
config_args.append("--enable-orterun-prefix-by-default")
# some scientific packages ignore deprecated/remove symbols. Re-enable
# them for now, for discussion see
# https://github.com/open-mpi/ompi/issues/6114#issuecomment-446279495