openmpi: Add new variant: romio-filesystem=string (#43265)

Co-authored-by: loikki <loic.hausammann@id.ethz.ch>
This commit is contained in:
Loic Hausammann 2024-03-24 01:00:38 +01:00 committed by GitHub
parent fcb8ed6409
commit 1fd4353289
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -499,6 +499,26 @@ class Openmpi(AutotoolsPackage, CudaPackage):
variant("lustre", default=False, description="Lustre filesystem library support")
variant("romio", default=True, when="@:5", description="Enable ROMIO support")
variant("romio", default=False, when="@5:", description="Enable ROMIO support")
variant(
"romio-filesystem",
description="Add the filesystem to romio",
values=disjoint_sets(
(
"daos",
"nfs",
"ufs",
"pvfs2",
"testfs",
"xfs",
"panfs",
"lustre",
"gpfs",
"ime",
"quobytefs",
)
).with_non_feature_values("none"),
)
variant("rsh", default=True, description="Enable rsh (openssh) process lifecycle management")
variant(
"orterunprefix",
@ -1035,9 +1055,14 @@ def configure_args(self):
elif spec.satisfies("@1.7.4:"):
config_args.extend(["--disable-java", "--disable-mpi-java"])
# Romio
if "~romio" in spec:
config_args.append("--disable-io-romio")
if not spec.satisfies("romio-filesystem=none"):
args = "+".join(spec.variants["romio-filesystem"].value)
config_args.append(f"--with-io-romio-flags=--with-file-system={args}")
if "+gpfs" in spec:
config_args.append("--with-gpfs")
else: