summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHoward Pritchard <howardp@lanl.gov>2021-05-11 12:16:09 -0600
committerGitHub <noreply@github.com>2021-05-11 18:16:09 +0000
commitf055a484458e4efa70e12e67640096b2609e126b (patch)
treeff987b25d3a299f34cc3422a2c681634ecb59d47 /lib
parent0368f8ae51763a10ee9522a73b7b6187e797affc (diff)
downloadspack-f055a484458e4efa70e12e67640096b2609e126b.tar.gz
spack-f055a484458e4efa70e12e67640096b2609e126b.tar.bz2
spack-f055a484458e4efa70e12e67640096b2609e126b.tar.xz
spack-f055a484458e4efa70e12e67640096b2609e126b.zip
cray: fix parsing of module list (#23566)
The code for guessing cpu archtype based on craype modules names got confused, at least on LLNL RZ prototype systems. In particular a (L) or (D) at the end of a craype-x86-xxx or other cpu architecture module was geting the logic confused. With this patch, any white space + remaining characters in the moduel name are removed. Signed-off-by: Howard Pritchard <howardp@lanl.gov>
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/platforms/cray.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py
index a949042133..5eb0ee9310 100644
--- a/lib/spack/spack/platforms/cray.py
+++ b/lib/spack/spack/platforms/cray.py
@@ -169,6 +169,7 @@ class Cray(Platform):
for mod in modules:
if 'craype-' in mod:
name = mod[7:]
+ name = name.split()[0]
_n = name.replace('-', '_') # test for mic-knl/mic_knl
is_target_name = (name in archspec.cpu.TARGETS or
_n in archspec.cpu.TARGETS)