summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew W Elble <aweits@rit.edu>2021-04-06 03:40:33 -0400
committerGitHub <noreply@github.com>2021-04-06 09:40:33 +0200
commita57f56c5b927001deb02d295ed5c46b047757a4e (patch)
tree91158ec5b5cb08d0b39035f8a8846fe796a3f4f6 /var
parent023524365ce44f30e38c32d1f6ccecd8b8e7f3ea (diff)
downloadspack-a57f56c5b927001deb02d295ed5c46b047757a4e.tar.gz
spack-a57f56c5b927001deb02d295ed5c46b047757a4e.tar.bz2
spack-a57f56c5b927001deb02d295ed5c46b047757a4e.tar.xz
spack-a57f56c5b927001deb02d295ed5c46b047757a4e.zip
openmpi: allow to build with ^slurm ~pmi for >3.0.0 with PMIx (#22086)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 1b664ac88c..e529760b26 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -337,7 +337,7 @@ class Openmpi(AutotoolsPackage):
# knem support was added in 1.5
conflicts('fabrics=knem', when='@:1.4')
- conflicts('schedulers=slurm ~pmi', when='@1.5.4:',
+ conflicts('schedulers=slurm ~pmi', when='@1.5.4:2.999.999',
msg='+pmi is required for openmpi(>=1.5.5) to work with SLURM.')
conflicts('schedulers=loadleveler', when='@3.0.0:',
msg='The loadleveler scheduler is not supported with '
@@ -631,7 +631,11 @@ class Openmpi(AutotoolsPackage):
# for versions older than 3.0.3,3.1.3,4.0.0
# Presumably future versions after 11/2018 should support slurm+static
if spec.satisfies('schedulers=slurm'):
- config_args.append('--with-pmi={0}'.format(spec['slurm'].prefix))
+ if spec.satisfies('+pmi'):
+ config_args.append('--with-pmi={0}'.format(
+ spec['slurm'].prefix))
+ else:
+ config_args.extend(self.with_or_without('pmi'))
if spec.satisfies('@3.1.3:') or spec.satisfies('@3.0.3'):
if '+static' in spec:
config_args.append('--enable-static')