Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • If platform is an actual Cray cluster or Cray ALPS simulator:
    • If select statement is present in attrs then for each select chunk:
      • If it does not contain 'vntype then assign vntype value as '' or 'host' or 'vnode' then add 'vntype=cray_compute' to each select chunkIf vntype present in select statement then do not modify itthat particular chunk.

Interface:Job.set_attributes()
Visibility: Public
Change Control: Stable
Synopsis: Overriding parent set_attributes method with additional checks and modifications specific to Cray.
Details:

  • Initialise default attributes.
  • If platform is an actual Cray cluster or Cray ALPS simulator:
    • if 'Resource_List.vntype' is already set and select is defined inside attribute dictionary then:
      • Remove 'Resource_List.vntype' .
      • If vntype is not present in select For each select chunk, if it does not contain 'vntype' or 'host' or 'vnode' then:
        • Add 'vntype to each select =cray_compute' to that particular chunk.
        • Example: 

Let suppose we have a select

...

statements as below:

Case 1: 

select=1:ncpus=1+2:ncpus=2+1:ncpus=3

...

This will become:
select=1:ncpus=1:vntype=cray_compute+2:ncpus=2:vntype=cray_compute+1:ncpus=3:vntype=cray_compute

...


...

Case 2:

select=1:ncpus=1:host=abc+2:ncpus=2:vnode=xyz+1:ncpus=3
This will become:
select=1:ncpus=1:

...

host=

...

abc+2:ncpus=2:vnode=xyz+1:ncpus=3

...

:vntype=cray_compute

  • Initialise custom attributes.

...