mpich: Add ucx dependency (#13921)

This commit is contained in:
Ken Raffenetti 2019-11-27 16:34:46 -06:00 committed by Adam J. Stewart
parent 484dab6bac
commit 85ce22a0b8

View File

@ -94,6 +94,8 @@ class Mpich(AutotoolsPackage):
# See https://github.com/pmodels/mpich/issues/3665
depends_on('libfabric@:1.6', when='device=ch3 netmod=ofi')
depends_on('ucx', when='netmod=ucx')
depends_on('libpciaccess', when="+pci")
depends_on('libxml2')
@ -217,10 +219,13 @@ def configure_args(self):
config_args.append(device_config)
# Specify libfabric's path explicitly, otherwise configure might fall
# back to an embedded version of libfabric.
# Specify libfabric or ucx path explicitly, otherwise
# configure might fall back to an embedded version.
if 'netmod=ofi' in spec:
config_args.append('--with-libfabric={0}'.format(
spec['libfabric'].prefix))
if 'netmod=ucx' in spec:
config_args.append('--with-ucx={0}'.format(
spec['ucx'].prefix))
return config_args