...
Interface: DshUtils.get_platform()
Visibility: Public
Change Control: Stable
Synopsis: Modifications to include Cray platform detection changes
Details
- If "<path to xthostname>/etc/xthostname" and "<path to cname>/proc/cray_xt/cname" these both files exist on a platform then it's an actual Cray cluster and it will return a string as 'cray'.
- If only "<path to xthostname>/etc/xthostname" file exists on a platform then it's a Cray simulator and it will return a string as 'craysim'.
...
- Call DshUtils.get_platform(), if hostname specified then call it by passing hostname as a parameter.
- Return True if platform is Actual Cray cluster
- Return False if platform is not an Actual Cray cluster
...
- Call DshUtils.get_platform(), if hostname specified then call it by passing hostname as a parameter.
- Return True if platform is Cray simulator
- Return False if platform is not a Cray simulator
...