mvapich2 depends on slurm when built with process_managers=slurm (#12489)

This commit is contained in:
Jeffrey Salmond 2019-08-20 17:43:28 -04:00 committed by Adam J. Stewart
parent dbbccd1303
commit a41014ed9e

View file

@ -106,6 +106,7 @@ class Mvapich2(AutotoolsPackage):
depends_on('rdma-core', when='fabrics=nemesistcpib') depends_on('rdma-core', when='fabrics=nemesistcpib')
depends_on('rdma-core', when='fabrics=nemesisibtcp') depends_on('rdma-core', when='fabrics=nemesisibtcp')
depends_on('libfabric', when='fabrics=nemesisofi') depends_on('libfabric', when='fabrics=nemesisofi')
depends_on('slurm', when='process_managers=slurm')
conflicts('fabrics=psm2', when='@:2.1') # psm2 support was added at version 2.2 conflicts('fabrics=psm2', when='@:2.1') # psm2 support was added at version 2.2
@ -142,7 +143,8 @@ def process_manager_options(self):
if 'process_managers=slurm' in spec: if 'process_managers=slurm' in spec:
opts = [ opts = [
'--with-pmi=pmi2', '--with-pmi=pmi2',
'--with-pm=slurm' '--with-pm=slurm',
'--with-slurm={0}'.format(spec['slurm'].prefix),
] ]
return opts return opts