mpich: fix device detection (#22502)

This commit is contained in:
Adam J. Stewart
2021-03-28 08:52:37 -05:00
committed by GitHub
parent f9be95cb2e
commit d17b6c4601

View File

@@ -274,11 +274,8 @@ def is_disabled(text):
elif re.search(r'--with-pmix', output):
variants += ' pmi=pmix'
match = re.search(r'MPICH Device:\s+(\S+)', output)
match = re.search(r'MPICH Device:\s+(ch3|ch4)', output)
if match:
if match.group(1) == 'ch3:nemesis':
variants += ' device=ch3'
else:
variants += ' device=' + match.group(1)
match = re.search(r'--with-device=ch.\S+(ucx|ofi|mxm|tcp)', output)