Adding psm as a dependency of mvapich2. (#8674)

This commit is contained in:
Jon Rood 2018-07-10 18:32:50 -06:00 committed by Adam J. Stewart
parent 3c4ef576d9
commit a1bfa8eca0

View File

@ -119,6 +119,7 @@ class Mvapich2(AutotoolsPackage):
depends_on('bison', type='build')
depends_on('libpciaccess', when=(sys.platform != 'darwin'))
depends_on('cuda', when='+cuda')
depends_on('psm', when='fabrics=psm')
filter_compiler_wrappers(
'mpicc', 'mpicxx', 'mpif77', 'mpif90', 'mpifort', relative_root='bin'
@ -163,7 +164,10 @@ def network_options(self):
opts = []
# From here on I can suppose that only one variant has been selected
if 'fabrics=psm' in self.spec:
opts = ["--with-device=ch3:psm"]
opts = [
"--with-device=ch3:psm",
"--with-psm={0}".format(self.spec['psm'].prefix)
]
elif 'fabrics=sock' in self.spec:
opts = ["--with-device=ch3:sock"]
elif 'fabrics=nemesistcpib' in self.spec: