mpich: add variant +xpmem to specify use of xpmem (#43293)
Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
This commit is contained in:
parent
cbe9b3d01c
commit
1c3c21d9c7
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user