@@ -108,26 +108,25 @@ cdef class JobSubmitDescription:
108
108
cpu_frequency (Union[dict, str]):
109
109
CPU Frequency for the Job, same as --cpu-freq from sbatch.
110
110
111
- Examples:
112
- Specifying it as a dict:
111
+ For example, specifying it as a dict:
113
112
114
113
cpu_frequency = {
115
114
"min": "Low",
116
115
"max": "High",
117
116
"governor": "UserSpace"
118
117
}
119
118
120
- or like in sbatch with a string. For more info on that, check
121
- out the sbatch documentation for --cpu-freq.
119
+ or like in sbatch with a string. For more info on that, check
120
+ out the sbatch documentation for --cpu-freq.
122
121
123
- If you only want to set a Governor without any min or max, you
124
- can simply specify it as a standalone string:
122
+ If you only want to set a Governor without any min or max, you
123
+ can simply specify it as a standalone string:
125
124
126
125
cpu_frequency = "Performance"
127
126
or
128
127
cpu_frequency = {"governor": "Performance"}
129
128
130
- If you want to set a specific, fixed frequency, you can do:
129
+ If you want to set a specific, fixed frequency, you can do:
131
130
132
131
cpu_frequency = <frequency in kilohertz>
133
132
or either
@@ -136,21 +135,19 @@ cdef class JobSubmitDescription:
136
135
Amount of nodes needed for the job.
137
136
This is the same as -N/--nodes from sbatch.
138
137
139
- Examples:
140
- Providing min/max nodes as a dict:
138
+ For example, providing min/max nodes as a dict:
141
139
142
140
nodes = {
143
141
"min": 3,
144
142
"max": 6
145
143
}
146
144
147
- When no range is needed, you can also simply specify it as
148
- int:
145
+ When no range is needed, you can also simply specify it as int:
149
146
150
147
nodes = 3
151
148
152
- Other than that, a range can also be specified in a str like
153
- with sbatch:
149
+ Other than that, a range can also be specified in a str like with
150
+ sbatch:
154
151
155
152
nodes = "1-5"
156
153
deadline (str):
@@ -193,7 +190,9 @@ cdef class JobSubmitDescription:
193
190
This is the same as --mem-per-cpu from sbatch. This is mutually
194
191
exclusive with memory_per_node and memory_per_gpu.
195
192
193
+
196
194
Examples:
195
+
197
196
# 1 MiB
198
197
memory_per_cpu = 1024
199
198
@@ -207,7 +206,9 @@ cdef class JobSubmitDescription:
207
206
This is the same as --mem from sbatch. This is mutually exclusive
208
207
with memory_per_cpu and memory_per_gpu.
209
208
209
+
210
210
Examples:
211
+
211
212
# 1 MiB
212
213
memory_per_node = 1024
213
214
@@ -221,7 +222,9 @@ cdef class JobSubmitDescription:
221
222
This is the same as --mem-per-gpu from sbatch. This is mutually
222
223
exclusive with memory_per_node and memory_per_cpu.
223
224
225
+
224
226
Examples:
227
+
225
228
# 1 MiB
226
229
memory_per_gpu = 1024
227
230
@@ -235,12 +238,13 @@ cdef class JobSubmitDescription:
235
238
This is the same as --nice from sbatch.
236
239
log_files_open_mode (str):
237
240
Mode in which standard_output and standard_error log files should be opened.
241
+ This is the same as --open-mode from sbatch.
242
+
238
243
239
244
Valid options are:
240
- * append
241
- * truncate
242
245
243
- This is the same as --open-mode from sbatch.
246
+ * `append`
247
+ * `truncate`
244
248
overcommit (bool):
245
249
If the resources should be overcommitted.
246
250
This is the same as -O/--overcommit from sbatch.
@@ -254,15 +258,15 @@ cdef class JobSubmitDescription:
254
258
Interval for accounting info to be gathered.
255
259
This is the same as --acctg-freq from sbatch.
256
260
257
- Examples:
258
- Specifying it as a dict:
261
+
262
+ For example, specifying it as a dict:
259
263
260
264
accounting_gather_frequency = {
261
- energy=60,
262
- network=20,
265
+ " energy" =60,
266
+ " network" =20,
263
267
}
264
268
265
- or as a single string:
269
+ or as a single string:
266
270
267
271
accounting_gather_frequency = "energy=60,network=20"
268
272
qos (str):
@@ -283,34 +287,38 @@ cdef class JobSubmitDescription:
283
287
You can specify either a path to a script which will be loaded, or
284
288
you can pass the script as a string.
285
289
If the script is passed as a string, providing arguments to it
286
- (see " script_args" ) is not supported.
290
+ (see ` script_args` ) is not supported.
287
291
script_args (str):
288
292
Arguments passed to the batch script.
289
293
You can only set arguments if a file path was specified for
290
- " script" .
294
+ ` script` .
291
295
environment (Union[dict, str]):
292
296
Environment variables to be set for the Job.
293
297
This is the same as --export from sbatch.
294
298
resource_sharing (str):
295
299
Controls the resource sharing with other Jobs.
296
-
297
300
This property combines functionality of --oversubscribe and
298
301
--exclusive from sbatch.
299
302
303
+
300
304
Allowed values are are:
301
305
302
- * "oversubscribe" or "yes":
306
+ * `oversubscribe` or `yes`:
307
+
303
308
The Job allows resources to be shared with other running Jobs.
304
309
305
- * "user"
310
+ * `user`:
311
+
306
312
Only sharing resources with other Jobs that have the "user"
307
313
option set is allowed
308
314
309
- * "mcs"
315
+ * `mcs`:
316
+
310
317
Only sharing resources with other Jobs that have the "mcs"
311
318
option set is allowed.
312
319
313
- * "no" or "exclusive"
320
+ * `no` or `exclusive`:
321
+
314
322
No sharing of resources is allowed. (--exclusive from sbatch)
315
323
distribution (str):
316
324
Task distribution for the Job, same as --distribution from sbatch
@@ -327,12 +335,12 @@ cdef class JobSubmitDescription:
327
335
The amount of cpus required for each task.
328
336
329
337
This is the same as -c/--cpus-per-task from sbatch.
330
- This is mutually exclusive with cpus_per_gpu.
338
+ This is mutually exclusive with ` cpus_per_gpu` .
331
339
cpus_per_gpu (int):
332
340
The amount of cpus required for each allocated GPU.
333
341
334
342
This is the same as --cpus-per-gpu from sbatch.
335
- This is mutually exclusive with cpus_per_task.
343
+ This is mutually exclusive with ` cpus_per_task` .
336
344
sockets_per_node (int):
337
345
Restrict Job to nodes with atleast this many sockets.
338
346
This is the same as --sockets-per-node from sbatch.
@@ -344,23 +352,22 @@ cdef class JobSubmitDescription:
344
352
This is the same as --threads-per-core from sbatch.
345
353
gpus (Union[dict, str, int]):
346
354
GPUs for the Job to be allocated in total.
347
-
348
355
This is the same as -G/--gpus from sbatch.
349
356
Specifying the type of the GPU is optional.
350
357
351
- Examples:
352
- Specifying the GPU counts as a dict:
358
+
359
+ For example, specifying the GPU counts as a dict:
353
360
354
361
gpus = {
355
362
"tesla": 1,
356
363
"volta": 5,
357
364
}
358
365
359
- Or, for example, in string format:
366
+ Or, for example, in string format:
360
367
361
368
gpus = "tesla:1,volta:5"
362
369
363
- Or, if you don't care about the type of the GPU:
370
+ Or, if you don't care about the type of the GPU:
364
371
365
372
gpus = 6
366
373
gpus_per_socket (Union[dict, str, int]):
@@ -369,21 +376,21 @@ cdef class JobSubmitDescription:
369
376
This is the same as --gpus-per-socket from sbatch.
370
377
371
378
Specifying the type of the GPU is optional. Note that setting
372
- gpus_per_socket requires to also specify sockets_per_node.
379
+ ` gpus_per_socket` requires to also specify sockets_per_node.
373
380
374
- Examples:
375
- Specifying it as a dict:
381
+
382
+ For example, specifying it as a dict:
376
383
377
384
gpus_per_socket = {
378
385
"tesla": 1,
379
386
"volta": 5,
380
387
}
381
388
382
- Or, for example, in string format:
389
+ Or, for example, in string format:
383
390
384
391
gpus_per_socket = "tesla:1,volta:5"
385
392
386
- Or, if you don't care about the type of the GPU:
393
+ Or, if you don't care about the type of the GPU:
387
394
388
395
gpus_per_socket = 6
389
396
gpus_per_task (Union[dict, str, int]):
@@ -392,22 +399,21 @@ cdef class JobSubmitDescription:
392
399
This is the same as --gpus-per-task from sbatch.
393
400
394
401
Specifying the type of the GPU is optional. Note that setting
395
- " gpus_per_task" requires to also specify either one of " ntasks" or
396
- " gpus" .
402
+ ` gpus_per_task` requires to also specify either one of ` ntasks` or
403
+ ` gpus` .
397
404
398
- Examples:
399
- Specifying it as a dict:
405
+ For example, specifying it as a dict:
400
406
401
407
gpus_per_task = {
402
408
"tesla": 1,
403
409
"volta": 5,
404
410
}
405
411
406
- Or, for example, in string format:
412
+ Or, for example, in string format:
407
413
408
414
gpus_per_task = "tesla:1,volta:5"
409
415
410
- Or, if you don't care about the type of the GPU:
416
+ Or, if you don't care about the type of the GPU:
411
417
412
418
gpus_per_task = 6
413
419
gres_per_node (Union[dict, str]):
@@ -418,19 +424,18 @@ cdef class JobSubmitDescription:
418
424
Specifying the type (by seperating GRES name and type with a
419
425
semicolon) is optional.
420
426
421
- Examples:
422
- Specifying it as a dict:
427
+ For example, specifying it as a dict:
423
428
424
429
gres_per_node = {
425
430
"gpu:tesla": 1,
426
431
"gpu:volta": 5,
427
432
}
428
433
429
- Or, for example, in string format:
434
+ Or, for example, in string format:
430
435
431
436
gres_per_node = "gpu:tesla:1,gpu:volta:5"
432
437
433
- GPU Gres without a specific type:
438
+ GPU Gres without a specific type:
434
439
435
440
gres_per_node = "gpu:6"
436
441
gpu_binding (str):
@@ -458,12 +463,12 @@ cdef class JobSubmitDescription:
458
463
switches.
459
464
This is the same as --switches from sbatch.
460
465
461
- Examples:
462
- Specifying it as a dict:
466
+
467
+ For example, specifying it as a dict:
463
468
464
469
switches = { "count": 5, "max_wait_time": "00:10:00" }
465
470
466
- Or as a single string (sbatch-style):
471
+ Or as a single string (sbatch-style):
467
472
468
473
switches = "5@00:10:00"
469
474
signal (Union[dict, str]):
@@ -473,18 +478,18 @@ cdef class JobSubmitDescription:
473
478
The signal can both be specified with its name, e.g. "SIGKILL", or
474
479
as a number, e.g. 9
475
480
476
- Examples:
477
- Specifying it as a dict:
481
+
482
+ For example, specifying it as a dict:
478
483
479
484
signal = {
480
485
"signal": "SIGKILL",
481
486
"time": 120
482
487
}
483
488
484
- The above will send a "SIGKILL" signal 120 seconds before the
485
- Jobs' time limit is reached.
489
+ The above will send a "SIGKILL" signal 120 seconds before the
490
+ Jobs' time limit is reached.
486
491
487
- Or, specifying it as a string (sbatch-style):
492
+ Or, specifying it as a string (sbatch-style):
488
493
489
494
signal = "SIGKILL@120"
490
495
standard_in (str):
@@ -509,17 +514,21 @@ cdef class JobSubmitDescription:
509
514
Generic resource task binding options.
510
515
This is the --gres-flags option from sbatch.
511
516
517
+
512
518
Possible values are:
513
- * "enforce-binding"
514
- * "disable-binding"
519
+
520
+ * `enforce-binding`
521
+ * `disable-binding`
515
522
temporary_disk_per_node (Union[str, int]):
516
523
Amount of temporary disk space needed per node.
517
524
518
525
This is the same as --tmp from sbatch. You can specify units like
519
526
K|M|G|T (multiples of 1024).
520
527
If no unit is specified, the value will be assumed as Mebibytes.
521
528
529
+
522
530
Examples:
531
+
523
532
# 2048 MiB
524
533
tmp_disk_per_node = "2G"
525
534
0 commit comments