mpich: re-enable building of the older versions (#30766)
* mpich: enable building @3.4:3.4.3 ~cuda * mpich: add dependency on mxm
This commit is contained in:
parent
0d2eae8da0
commit
067800bc31
@ -192,6 +192,7 @@ class Mpich(AutotoolsPackage, CudaPackage, ROCmPackage):
|
|||||||
depends_on('libfabric@:1.6', when='device=ch3 netmod=ofi')
|
depends_on('libfabric@:1.6', when='device=ch3 netmod=ofi')
|
||||||
|
|
||||||
depends_on('ucx', when='netmod=ucx')
|
depends_on('ucx', when='netmod=ucx')
|
||||||
|
depends_on('mxm', when='netmod=mxm')
|
||||||
|
|
||||||
# The dependencies on libpciaccess and libxml2 come from the embedded
|
# The dependencies on libpciaccess and libxml2 come from the embedded
|
||||||
# hwloc, which, before version 3.3, was used only for Hydra.
|
# hwloc, which, before version 3.3, was used only for Hydra.
|
||||||
@ -508,7 +509,12 @@ def configure_args(self):
|
|||||||
elif 'pmi=cray' in spec:
|
elif 'pmi=cray' in spec:
|
||||||
config_args.append('--with-pmi=cray')
|
config_args.append('--with-pmi=cray')
|
||||||
|
|
||||||
config_args += self.with_or_without('cuda', activation_value='prefix')
|
if '+cuda' in spec:
|
||||||
|
config_args.append('--with-cuda={0}'.format(spec['cuda'].prefix))
|
||||||
|
elif spec.satisfies('@:3.3,3.4.4:'):
|
||||||
|
# Versions from 3.4 to 3.4.3 cannot handle --without-cuda
|
||||||
|
# (see https://github.com/pmodels/mpich/pull/5060):
|
||||||
|
config_args.append('--without-cuda')
|
||||||
|
|
||||||
if '+rocm' in spec:
|
if '+rocm' in spec:
|
||||||
config_args.append('--with-hip={0}'.format(spec['hip'].prefix))
|
config_args.append('--with-hip={0}'.format(spec['hip'].prefix))
|
||||||
|
Loading…
Reference in New Issue
Block a user