openmpi: restrict versions for launcher variants (#45624)
This commit is contained in:
		 Derek Ryan Strong
					Derek Ryan Strong
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							678c995415
						
					
				
				
					commit
					91412fb595
				
			| @@ -542,6 +542,7 @@ class Openmpi(AutotoolsPackage, CudaPackage): | ||||
|     variant( | ||||
|         "orterunprefix", | ||||
|         default=False, | ||||
|         when="@1.3:4", | ||||
|         description="Prefix Open MPI to PATH and LD_LIBRARY_PATH on local and remote hosts", | ||||
|     ) | ||||
|     # Adding support to build a debug version of OpenMPI that activates | ||||
| @@ -560,6 +561,7 @@ class Openmpi(AutotoolsPackage, CudaPackage): | ||||
|     variant( | ||||
|         "legacylaunchers", | ||||
|         default=False, | ||||
|         when="@1.6:4 schedulers=slurm", | ||||
|         description="Do not remove mpirun/mpiexec when building with slurm", | ||||
|     ) | ||||
|     # Variants to use internal packages | ||||
| @@ -1030,7 +1032,7 @@ def configure_args(self): | ||||
|             config_args.append("--enable-mca-no-build=plm-rsh") | ||||
| 
 | ||||
|         # Useful for ssh-based environments | ||||
|         if spec.satisfies("@1.3:"): | ||||
|         # For v4 and lower | ||||
|         if spec.satisfies("+orterunprefix"): | ||||
|             config_args.append("--enable-orterun-prefix-by-default") | ||||
| 
 | ||||
| @@ -1264,6 +1266,7 @@ def filter_pc_files(self): | ||||
|         if self.compiler.name == "nag": | ||||
|             x.filter("-Wl,--enable-new-dtags", "", string=True, backup=False) | ||||
| 
 | ||||
|     # For v4 and lower | ||||
|     @run_after("install") | ||||
|     def delete_mpirun_mpiexec(self): | ||||
|         # The preferred way to run an application when Slurm is the | ||||
| @@ -1273,7 +1276,7 @@ def delete_mpirun_mpiexec(self): | ||||
|         # applications via mpirun or mpiexec, and leaves srun as the | ||||
|         # only sensible choice (orterun is still present, but normal | ||||
|         # users don't know about that). | ||||
|         if "@1.6: ~legacylaunchers schedulers=slurm" in self.spec: | ||||
|         if self.spec.satisfies("~legacylaunchers schedulers=slurm"): | ||||
|             exe_list = [ | ||||
|                 self.prefix.bin.mpirun, | ||||
|                 self.prefix.bin.mpiexec, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user