diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 3f3d59dfa7..f520568f73 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -495,6 +495,7 @@ class Openmpi(AutotoolsPackage, CudaPackage): # Variants to use internal packages variant("internal-hwloc", default=False, description="Use internal hwloc") variant("internal-pmix", default=False, description="Use internal pmix") + variant("openshmem", default=False, description="Enable building OpenSHMEM") provides("mpi") provides("mpi@:2.2", when="@1.6.5") @@ -1039,6 +1040,9 @@ def configure_args(self): # Workaround compiler issues config_args.append("CFLAGS=-O1") + if "+openshmem" in spec: + config_args.append("--enable-oshmem") + if "+wrapper-rpath" in spec: config_args.append("--enable-wrapper-rpath")