_slurm
MemMBType = Annotated[PositiveInt | NonEmptyStr, AfterValidator(slurm_mem_to_MB)]
module-attribute
¶
Memory expressed in MB.
BatchingConfigSet
¶
Bases: BaseModel
Options to configure the batching strategy (that is, how to combine several tasks in a single SLURM job).
| ATTRIBUTE | DESCRIPTION |
|---|---|
target_cpus_per_job |
TYPE:
|
max_cpus_per_job |
TYPE:
|
target_mem_per_job |
TYPE:
|
max_mem_per_job |
TYPE:
|
target_num_jobs |
TYPE:
|
max_num_jobs |
TYPE:
|
Source code in fractal_server/runner/config/_slurm.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
JobRunnerConfigSLURM
¶
Bases: BaseModel
Runner-configuration specifications, for a slurm_sudo or
slurm_ssh resource.
Note: this is a common class, which is processed and transformed into more specific configuration objects during job execution.
Valid JSON example
{
"default_slurm_config": {
"partition": "partition-name",
"cpus_per_task": 1,
"mem": "100M"
},
"gpu_slurm_config": {
"partition": "gpu",
"extra_lines": [
"#SBATCH --gres=gpu:v100:1"
]
},
"user_local_exports": {
"CELLPOSE_LOCAL_MODELS_PATH": "CELLPOSE_LOCAL_MODELS_PATH",
"NAPARI_CONFIG": "napari_config.json"
},
"batching_config": {
"target_cpus_per_job": 1,
"max_cpus_per_job": 1,
"target_mem_per_job": 200,
"max_mem_per_job": 500,
"target_num_jobs": 2,
"max_num_jobs": 4
}
}
| ATTRIBUTE | DESCRIPTION |
|---|---|
default_slurm_config |
Common default options for all tasks.
TYPE:
|
gpu_slurm_config |
Default configuration for all GPU tasks.
TYPE:
|
batching_config |
Configuration of the batching strategy.
TYPE:
|
user_local_exports |
Key-value pairs to be included as
TYPE:
|
Source code in fractal_server/runner/config/_slurm.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
SlurmConfigSet
¶
Bases: BaseModel
Options for the default or gpu SLURM config.
| ATTRIBUTE | DESCRIPTION |
|---|---|
partition |
TYPE:
|
cpus_per_task |
TYPE:
|
mem |
TYPE:
|
constraint |
TYPE:
|
gres |
TYPE:
|
time |
TYPE:
|
exclude |
TYPE:
|
nodelist |
TYPE:
|
account |
TYPE:
|
extra_lines |
TYPE:
|
gpus |
TYPE:
|
Source code in fractal_server/runner/config/_slurm.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |