spack.platforms package¶
Submodules¶
spack.platforms.cray module¶
-
class
spack.platforms.cray.
Cray
¶ Bases:
spack.architecture.Platform
-
classmethod
detect
()¶ 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 programming environment is not available via modules, then we will 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.
-
priority
= 10¶
-
classmethod
setup_platform_environment
(pkg, env)¶ Change the linker to default dynamic to be more similar to linux/standard linker behavior
-
classmethod
spack.platforms.darwin module¶
-
class
spack.platforms.darwin.
Darwin
¶ Bases:
spack.architecture.Platform
-
binary_formats
= ['macho']¶
-
classmethod
detect
()¶ Subclass is responsible for implementing this method. Returns True if the Platform class detects that it is the current platform and False if it’s not.
-
priority
= 89¶
-
spack.platforms.linux module¶
-
class
spack.platforms.linux.
Linux
¶ Bases:
spack.architecture.Platform
-
classmethod
detect
()¶ Subclass is responsible for implementing this method. Returns True if the Platform class detects that it is the current platform and False if it’s not.
-
priority
= 90¶
-
classmethod
spack.platforms.test module¶
-
class
spack.platforms.test.
Test
¶ Bases:
spack.architecture.Platform
-
back_end
= 'core2'¶
-
back_os
= 'debian6'¶
-
default
= 'core2'¶
-
default_os
= 'debian6'¶
-
classmethod
detect
()¶ Subclass is responsible for implementing this method. Returns True if the Platform class detects that it is the current platform and False if it’s not.
-
front_end
= 'x86_64'¶
-
front_os
= 'redhat6'¶
-
priority
= 1000000¶
-