From f055a484458e4efa70e12e67640096b2609e126b Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Tue, 11 May 2021 12:16:09 -0600 Subject: 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 --- lib/spack/spack/platforms/cray.py | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3-70-g09d2