diff options
author | sknigh <sknigh@sandia.gov> | 2018-09-27 19:29:15 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2018-09-27 19:29:15 -0700 |
commit | 496bc3cd23fd0745f1b73faa680a12262b12a091 (patch) | |
tree | a8c947d99683775d3d3cf3f520c420b6cefd9cf8 | |
parent | 5047d86732782d2537f1e52f3c0d8f41d7918ecf (diff) | |
download | spack-496bc3cd23fd0745f1b73faa680a12262b12a091.tar.gz spack-496bc3cd23fd0745f1b73faa680a12262b12a091.tar.bz2 spack-496bc3cd23fd0745f1b73faa680a12262b12a091.tar.xz spack-496bc3cd23fd0745f1b73faa680a12262b12a091.zip |
Added legacylaunchers variant to openmpi (#9336)
Lots of programs still have mpiexec/mpirun baked in.
-rw-r--r-- | var/spack/repos/builtin/packages/openmpi/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 4550c611ad..01314a6600 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -223,6 +223,12 @@ class Openmpi(AutotoolsPackage): description='Memchecker support for debugging [degrades performance]' ) + variant( + 'legacylaunchers', + default=False, + description='Do not remove mpirun/mpiexec when building with slurm' + ) + provides('mpi') provides('mpi@:2.2', when='@1.6.5') provides('mpi@:3.0', when='@1.7.5:') @@ -463,7 +469,7 @@ class Openmpi(AutotoolsPackage): # 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: schedulers=slurm' in self.spec: + if '@1.6: ~legacylaunchers schedulers=slurm' in self.spec: os.remove(self.prefix.bin.mpirun) os.remove(self.prefix.bin.mpiexec) os.remove(self.prefix.bin.shmemrun) |