Remove pmi from the fabric list. (#7226)

This commit is contained in:
健美猫 2018-03-26 19:14:51 +08:00 committed by Massimiliano Culpo
parent aeb73f958f
commit 658896a7a5

View file

@ -181,7 +181,7 @@ class Openmpi(AutotoolsPackage):
'fabrics', 'fabrics',
default=None if _verbs_dir() is None else 'verbs', default=None if _verbs_dir() is None else 'verbs',
description='List of fabrics that are enabled', description='List of fabrics that are enabled',
values=('psm', 'psm2', 'pmi', 'verbs', 'mxm'), values=('psm', 'psm2', 'verbs', 'mxm'),
multi=True multi=True
) )
@ -200,6 +200,7 @@ class Openmpi(AutotoolsPackage):
description='Enable MPI_THREAD_MULTIPLE support') description='Enable MPI_THREAD_MULTIPLE support')
variant('cuda', default=False, description='Enable CUDA support') variant('cuda', default=False, description='Enable CUDA support')
variant('ucx', default=False, description='Enable UCX support') variant('ucx', default=False, description='Enable UCX support')
variant('pmi', default=False, description='Enable PMI support')
provides('mpi') provides('mpi')
provides('mpi@:2.2', when='@1.6.5') provides('mpi@:2.2', when='@1.6.5')
@ -220,8 +221,10 @@ class Openmpi(AutotoolsPackage):
conflicts('+cuda', when='@:1.6') # CUDA support was added in 1.7 conflicts('+cuda', when='@:1.6') # CUDA support was added in 1.7
conflicts('fabrics=psm2', when='@:1.8') # PSM2 support was added in 1.10.0 conflicts('fabrics=psm2', when='@:1.8') # PSM2 support was added in 1.10.0
conflicts('fabrics=pmi', when='@:1.5.4') # PMI support was added in 1.5.5
conflicts('fabrics=mxm', when='@:1.5.3') # MXM support was added in 1.5.4 conflicts('fabrics=mxm', when='@:1.5.3') # MXM support was added in 1.5.4
conflicts('+pmi', when='@:1.5.4') # PMI support was added in 1.5.5
conflicts('schedulers=slurm ~pmi', when='@1.5.4:',
msg='+pmi is required for openmpi(>=1.5.5) to work with SLURM.')
filter_compiler_wrappers('openmpi/*-wrapper-data*', relative_root='share') filter_compiler_wrappers('openmpi/*-wrapper-data*', relative_root='share')
@ -317,9 +320,12 @@ def configure_args(self):
# for Open-MPI 2.0:, C++ bindings are disabled by default. # for Open-MPI 2.0:, C++ bindings are disabled by default.
config_args.extend(['--enable-mpi-cxx']) config_args.extend(['--enable-mpi-cxx'])
# Fabrics and schedulers # Fabrics
config_args.extend(self.with_or_without('fabrics')) config_args.extend(self.with_or_without('fabrics'))
# Schedulers
config_args.extend(self.with_or_without('schedulers')) config_args.extend(self.with_or_without('schedulers'))
# PMI
config_args.extend(self.with_or_without('pmi'))
# Hwloc support # Hwloc support
if spec.satisfies('@1.5.2:'): if spec.satisfies('@1.5.2:'):