Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/spec_20/example1.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"nodelist": [
"node[186-189]"
],
"nslots": 32,
"starttime": 1676560542,
"expiration": 1676562342
}
Expand Down
26 changes: 18 additions & 8 deletions spec_20.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ R Format
the same. For example, :data:`nodelist` MAY contain one hostlist entry
for all the execution targets spread over multiple :data:`R_lite` entries.

.. data:: nslots

(*integer*, OPTIONAL) The total number of slots in an allocation from the
scheduler.

This will not be present if R is not such an allocation, e.g. for an
instance resource inventory. A conforming scheduler SHALL include this in
its allocations and if present it MUST be greater than ``0``.

.. data:: properties

(*dictionary of string*, OPTIONAL) Each key
Expand All @@ -189,7 +198,7 @@ R Format

(*number*, OPTIONAL) The start time at which the resource set is valid.

A value of `0.` SHALL be interpreted as "unset".
A value of ``0.`` SHALL be interpreted as "unset".

The value SHALL be expressed as the number of seconds elapsed since the
Unix Epoch (1970-01-01 00:00:00 UTC) with optional microsecond precision.
Expand All @@ -202,7 +211,7 @@ R Format
(*number*, OPTIONAL) The end or expiration time of the resource set,
after which it becomes invalid.

A value of `0.` SHALL be interpreted as "unset".
A value of ``0.`` SHALL be interpreted as "unset".

The value SHALL be expressed as the number of seconds elapsed since the
Unix Epoch (1970-01-01 00:00:00 UTC) with optional microsecond precision.
Expand Down Expand Up @@ -253,12 +262,13 @@ R Format
Example R
=========

The following is an example of a version 1 resource specification.
The example below indicates a resource set with the ranks 19
through 22. These ranks correspond to the nodes node186 through
node189. Each of the nodes contains 48 cores (0-47) and 8 gpus (0-7).
The :data:`starttime` and :data:`expiration` indicate the resources were valid
for about 30 minutes on February 16, 2023.
The following is an example of a version 1 resource specification. The example
below indicates a resource set with the ranks 19 through 22. These ranks
correspond to the nodes node186 through node189. Each of the nodes contains
48 cores (0-47) and 8 gpus (0-7). There are 32 slots in total, giving 8 slots
per node, which results in 1 gpu and 6 cores per slot. The :data:`starttime`
and :data:`expiration` indicate the resources were valid for about 30 minutes
on February 16, 2023.

.. literalinclude:: data/spec_20/example1.json
:language: json
Expand Down