summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2024-03-20 15:43:45 -0700
committerGitHub <noreply@github.com>2024-03-20 15:43:45 -0700
commitde1f9593c618417b4a3fdd1f7544cb09609408a8 (patch)
tree054a539bcc28febedb1715920436886c713556cd /share
parent65fa71c1b4fb2cacb0adbcbcb685728ae61f8da3 (diff)
downloadspack-de1f9593c618417b4a3fdd1f7544cb09609408a8.tar.gz
spack-de1f9593c618417b4a3fdd1f7544cb09609408a8.tar.bz2
spack-de1f9593c618417b4a3fdd1f7544cb09609408a8.tar.xz
spack-de1f9593c618417b4a3fdd1f7544cb09609408a8.zip
cray: return false more readily in detection logic (#43150)
Often in containers, the files we use to detect whether a cray system supports new features are not available. Given that the cray containers only support the newer versions, and that these versions have been around for a while at this point and few sites don't support them, this PR changes the logic for detecting cray systems so that: 1. Don't even consider whether something is the `cray` platform if `opt/cray` is not in `MODULEPATH` 2. Only use the `cray` platform if we can read files in /opt/cray/pe and positively detect an older version 3. Otherwise, assume we're *not* on a cray (includes newer Cray PE's, which we treat as Linux)
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions