PP-740: Add Cray platform detection in PTL

PP-740: Add Cray platform detection in PTL

Target Release

17.2.1

JIRA

https://openpbs.atlassian.net/browse/PP-740

Document status

Initial version

Document owner

@Sanket Borle (Deactivated)

Designer

@Sanket Borle (Deactivated)

Developers

@Sanket Borle (Deactivated)

QA

@Kumar Jakkali (Deactivated)

@sarita kh (Deactivated)

Forum Discussion

http://community.pbspro.org/t/pp-740-add-cray-platform-detection-in-ptl/499



Interface: DshUtils.get_platform()
Visibility: Public
Change Control: Stable
Synopsis: Modifications to include Cray platform detection changes
Details

  • Assumption: "/etc/xthostname" will be present by default on Cray ALPS simulator.

  • If "/etc/xthostname" and "/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 "/etc/xthostname" file exists on a platform then it's a Cray simulator and it will return a string as 'craysim'.