Target Release | 17.2.1 | ||||||||
---|---|---|---|---|---|---|---|---|---|
JIRA |
| ||||||||
Document status | Initial version | ||||||||
Document owner | |||||||||
Designer | |||||||||
Developers | |||||||||
QA | |||||||||
Forum Discussion | http://community.pbspro.org/t/pp-741-need-a-default-job-specific-to-cray-in-ptl/500 |
Interface:Job()
Visibility: Public
Change Control: Stable
Synopsis: Modifications to handle Cray specific default job parameters
Details:
...
to assign value to 'vntype' attribute of a job, when platform is Cray.
Details:
- If platform is an actual Cray cluster or Cray ALPS simulator then perform below:
- If "Aprun_parameter" set, then assign "Aprun_parameter" value to "Aprun_param", else assign default value as "-n 1 sleep 100" to "Aprun_param".
- If "Resource_List.select" not present in job attributes passed by the user, then assign default value as "1:ncpus=1:vntype=cray_compute" to "Resource_List.select".
- If vntype specified and value is "cray_compute" then call Job.cray_script() passing "Aprun_param" as a parameter to it, else run default sleep 100.
...
- :
- Set vntype value as 'cray_compute'.
Interface: Server.submit()
Visibility: Public
Change Control: Stable
Synopsis: Modifications to add cleanup for Cray job specific parametersconsider aprun command if the platform is Cray.
Details:
- If platform is an actual Cray cluster or Cray ALPS simulator then perform below:
- Prefix job executable with "aprun -B".
- If
"Resource_List.vntype" is set, then unset it.- If "script" is set, then make it None.
...
- Call Job.create_script() by passing script body containing aprun with "Aprun_param" value.
- user is creating job script using 'create_script' inside test case then do not prefix "aprun -B", also user will have a full control over a job script same as how existing PTL works.
- Assign requested users home directory path to 'submit_dir'.