mpich: add variant +xpmem to specify use of xpmem (#43293)
Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
This commit is contained in:
		@@ -137,6 +137,9 @@ class Mpich(AutotoolsPackage, CudaPackage, ROCmPackage):
 | 
				
			|||||||
    )
 | 
					    )
 | 
				
			||||||
    depends_on("hcoll", when="+hcoll")
 | 
					    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
 | 
					    # Todo: cuda can be a conditional variant, but it does not seem to work when
 | 
				
			||||||
    # overriding the variant from CudaPackage.
 | 
					    # overriding the variant from CudaPackage.
 | 
				
			||||||
    conflicts("+cuda", when="@:3.3")
 | 
					    conflicts("+cuda", when="@:3.3")
 | 
				
			||||||
@@ -627,6 +630,9 @@ def configure_args(self):
 | 
				
			|||||||
        if "+hcoll" in spec:
 | 
					        if "+hcoll" in spec:
 | 
				
			||||||
            config_args.append("--with-hcoll=" + spec["hcoll"].prefix)
 | 
					            config_args.append("--with-hcoll=" + spec["hcoll"].prefix)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if "+xpmem" in spec:
 | 
				
			||||||
 | 
					            config_args.append("--with-xpmem=" + spec["xpmem"].prefix)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return config_args
 | 
					        return config_args
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @run_after("install")
 | 
					    @run_after("install")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user