summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2020-08-04 01:16:18 +0200
committerGitHub <noreply@github.com>2020-08-03 16:16:18 -0700
commit827ca72c2691622326d262f364448b8a715cd85b (patch)
tree8a95bedf201f37cb35b96cb9ff0e905cc0524eca
parenta67a0e3181a012fd11de5a53e50b1e5ef9be1512 (diff)
downloadspack-827ca72c2691622326d262f364448b8a715cd85b.tar.gz
spack-827ca72c2691622326d262f364448b8a715cd85b.tar.bz2
spack-827ca72c2691622326d262f364448b8a715cd85b.tar.xz
spack-827ca72c2691622326d262f364448b8a715cd85b.zip
Fix docs about containers on cray (#17431)
* For detecting Cray: CRAYPE_VERSION is not used, but MODULEPATH * Fix typo and write Cray with a capital
-rw-r--r--lib/spack/docs/getting_started.rst2
-rw-r--r--lib/spack/spack/platforms/cray.py12
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst
index 7b908465f5..550f2509e6 100644
--- a/lib/spack/docs/getting_started.rst
+++ b/lib/spack/docs/getting_started.rst
@@ -1247,6 +1247,6 @@ environment variables may be propagated into containers that are not
using the Cray programming environment.
To ensure that Spack does not autodetect the Cray programming
-environment, unset the environment variable ``CRAYPE_VERSION``. This
+environment, unset the environment variable ``MODULEPATH``. This
will cause Spack to treat a linux container on a Cray system as a base
linux distro.
diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py
index c6d367e9a6..684109f3e0 100644
--- a/lib/spack/spack/platforms/cray.py
+++ b/lib/spack/spack/platforms/cray.py
@@ -111,14 +111,14 @@ class Cray(Platform):
@classmethod
def detect(cls):
"""
- Detect whether this system is a cray machine.
+ Detect whether this system is a Cray machine.
- We detect the cray platform based on the availability through `module`
- of the cray programming environment. If this environment is available,
- we can use it to find compilers, target modules, etc. If the cray
+ We detect the Cray platform based on the availability through `module`
+ of the Cray programming environment. If this environment is available,
+ we can use it to find compilers, target modules, etc. If the Cray
programming environment is not available via modules, then we will
- treat it as a standard linux system, as the cray compiler wrappers
- and other componenets of the cray programming environment are
+ treat it as a standard linux system, as the Cray compiler wrappers
+ and other components of the Cray programming environment are
irrelevant without module support.
"""
return 'opt/cray' in os.environ.get('MODULEPATH', '')