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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,12 +274,9 @@ 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)
variants += ' device=' + match.group(1)
match = re.search(r'--with-device=ch.\S+(ucx|ofi|mxm|tcp)', output)
if match: