summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-03-28 08:52:37 -0500
committerGitHub <noreply@github.com>2021-03-28 09:52:37 -0400
commitd17b6c46017263826baa7348656d9f8dfea663d6 (patch)
tree5df069f0f4d488a4c9a13bc5155d64fa77a9ce72
parentf9be95cb2e0dc0ef34600f733b58646604a1c19c (diff)
downloadspack-d17b6c46017263826baa7348656d9f8dfea663d6.tar.gz
spack-d17b6c46017263826baa7348656d9f8dfea663d6.tar.bz2
spack-d17b6c46017263826baa7348656d9f8dfea663d6.tar.xz
spack-d17b6c46017263826baa7348656d9f8dfea663d6.zip
mpich: fix device detection (#22502)
-rw-r--r--var/spack/repos/builtin/packages/mpich/package.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py
index 44c94a6d8f..8fabb5718a 100644
--- a/var/spack/repos/builtin/packages/mpich/package.py
+++ b/var/spack/repos/builtin/packages/mpich/package.py
@@ -274,12 +274,9 @@ spack package at this time.''',
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: