Skip to content

Commit 190cc35

Browse files
authored
Merge pull request #466 from sam-maloney/rfc20-nslots-in-Rv1
rfc20: add `nslots` to Rv1 spec
2 parents 15ac0f2 + 8da980e commit 190cc35

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

data/spec_20/example1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"nodelist": [
1414
"node[186-189]"
1515
],
16+
"nslots": 32,
1617
"starttime": 1676560542,
1718
"expiration": 1676562342
1819
}

spec_20.rst

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ R Format
164164
the same. For example, :data:`nodelist` MAY contain one hostlist entry
165165
for all the execution targets spread over multiple :data:`R_lite` entries.
166166

167+
.. data:: nslots
168+
169+
(*integer*, OPTIONAL) The total number of slots in an allocation from the
170+
scheduler.
171+
172+
This will not be present if R is not such an allocation, e.g. for an
173+
instance resource inventory. A conforming scheduler SHALL include this in
174+
its allocations and if present it MUST be greater than ``0``.
175+
167176
.. data:: properties
168177

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

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

192-
A value of `0.` SHALL be interpreted as "unset".
201+
A value of ``0.`` SHALL be interpreted as "unset".
193202

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

205-
A value of `0.` SHALL be interpreted as "unset".
214+
A value of ``0.`` SHALL be interpreted as "unset".
206215

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

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

263273
.. literalinclude:: data/spec_20/example1.json
264274
:language: json

0 commit comments

Comments
 (0)