openmpi: add openshmem variant (#39067)

This commit is contained in:
ajpowelsnl 2023-07-24 16:38:38 -06:00 committed by GitHub
parent f28a2ccee2
commit 1c3dc0bd5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")