diff options
author | Greg Becker <becker33@llnl.gov> | 2020-07-23 13:20:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 13:20:03 -0700 |
commit | 44bc176d08797ba8f1a08e49778c5a1eb317c5c5 (patch) | |
tree | 6b7923e01f2dbb4d73853479cf727790e0b6e88f /lib | |
parent | 3c145b42bc62cd9747657447da548ea95647e3e1 (diff) | |
download | spack-44bc176d08797ba8f1a08e49778c5a1eb317c5c5.tar.gz spack-44bc176d08797ba8f1a08e49778c5a1eb317c5c5.tar.bz2 spack-44bc176d08797ba8f1a08e49778c5a1eb317c5c5.tar.xz spack-44bc176d08797ba8f1a08e49778c5a1eb317c5c5.zip |
cray: detect shasta os properly (#17467)
Fixes #17299
Cray Shasta systems appear to use an unmodified Sles or other Linux operating system on the backend (like Cray "Cluster" systems and unlike Cray "XC40" systems that use CNL).
This updates the CNL version detection to properly note that this is the underlying OS instead of CNL and delegate to LinuxDistro.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/operating_systems/cray_backend.py | 3 | ||||
-rw-r--r-- | lib/spack/spack/platforms/cray.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/operating_systems/cray_backend.py b/lib/spack/spack/operating_systems/cray_backend.py index eaf8360c2c..5f113eba0b 100644 --- a/lib/spack/spack/operating_systems/cray_backend.py +++ b/lib/spack/spack/operating_systems/cray_backend.py @@ -97,6 +97,9 @@ class CrayBackend(LinuxDistro): def _detect_crayos_version(cls): if os.path.isfile(_cle_release_file): release_attrs = read_cle_release_file() + if 'RELEASE' not in release_attrs: + # This Cray system uses a base OS not CLE/CNL + return None v = spack.version.Version(release_attrs['RELEASE']) return v[0] elif os.path.isfile(_clerelease_file): diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py index 9c8770c368..c6d367e9a6 100644 --- a/lib/spack/spack/platforms/cray.py +++ b/lib/spack/spack/platforms/cray.py @@ -20,7 +20,7 @@ from spack.util.module_cmd import module _craype_name_to_target_name = { 'x86-cascadelake': 'cascadelake', 'x86-naples': 'zen', - 'x86-rome': 'zen', # Cheating because we have the wrong modules on rzcrayz + 'x86-rome': 'zen2', 'x86-skylake': 'skylake_avx512', 'mic-knl': 'mic_knl', 'interlagos': 'bulldozer', |