mpich: add variant +xpmem to specify use of xpmem (#43293)

Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
This commit is contained in:
Howard Pritchard 2024-03-23 07:36:06 -06:00 committed by GitHub
parent cbe9b3d01c
commit 1c3c21d9c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,6 +137,9 @@ class Mpich(AutotoolsPackage, CudaPackage, ROCmPackage):
)
depends_on("hcoll", when="+hcoll")
variant("xpmem", default=False, when="@3.4:", description="Enable XPMEM support")
depends_on("xpmem", when="+xpmem")
# Todo: cuda can be a conditional variant, but it does not seem to work when
# overriding the variant from CudaPackage.
conflicts("+cuda", when="@:3.3")
@ -627,6 +630,9 @@ def configure_args(self):
if "+hcoll" in spec:
config_args.append("--with-hcoll=" + spec["hcoll"].prefix)
if "+xpmem" in spec:
config_args.append("--with-xpmem=" + spec["xpmem"].prefix)
return config_args
@run_after("install")