summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDaryl W. Grunau <DarylGrunau@gmail.com>2021-10-28 15:19:19 -0600
committerGitHub <noreply@github.com>2021-10-28 23:19:19 +0200
commitd0e177e7118ebf1b55004e9ae34516af1266ad9a (patch)
treeabfb33e8995d13c6ef564b524cdf33c5265fb32e /var
parent7fd1d2b03f2d0c2266da5d76f5bdc71d84c54a02 (diff)
downloadspack-d0e177e7118ebf1b55004e9ae34516af1266ad9a.tar.gz
spack-d0e177e7118ebf1b55004e9ae34516af1266ad9a.tar.bz2
spack-d0e177e7118ebf1b55004e9ae34516af1266ad9a.tar.xz
spack-d0e177e7118ebf1b55004e9ae34516af1266ad9a.zip
depend on libevent when +pmix (#27020)
Co-authored-by: Daryl W. Grunau <dwg@lanl.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index c43b0578bb..6d3e12d6e5 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -314,6 +314,7 @@ class Openmpi(AutotoolsPackage):
depends_on('pbs', when='schedulers=tm')
depends_on('slurm', when='schedulers=slurm')
depends_on('pmix', when='+pmix')
+ depends_on('libevent', when='+pmix')
depends_on('openssh', type='run')
@@ -707,7 +708,7 @@ class Openmpi(AutotoolsPackage):
lustre_opt = '--with-lustre={0}'.format(spec['lustre'].prefix)
config_args.append(lustre_opt)
# external libevent
- if spec.satisfies('@4.0.0:'):
+ if spec.satisfies('@4.0.0:') or spec.satisfies('+pmix'):
config_args.append('--with-libevent={0}'.format(spec['libevent'].prefix))
# Hwloc support
if '~internal-hwloc' in spec and spec.satisfies('@1.5.2:'):