You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`partition`| string | No | SLURM partition to submit jobs to when `execution: slurm`. If omitted, the cluster default partition is used. |
33
+
|`slurm_header`| mapping | No | Arbitrary `#SBATCH` directives for `execution: slurm`, as `key: value` pairs using canonical `sbatch` long-option names (e.g. `partition`, `nodes`, `account`, `time`, `qos`, `mem-per-cpu`). `true` renders a bare flag (e.g. `exclusive: true` → `#SBATCH --exclusive`); `false`, `null`, or an empty string drops the entry. `cpus-per-task` is always derived from `ncores` and cannot be overridden. Unknown keys fail validation. |
34
+
|`slurm_prologue`| string | No | Shell commands (e.g. `module load ...`) run before the haddock3 execution line when `execution: slurm`. Do not include `cd <path>` or the `haddock3 ...` invocation — those are always generated automatically. When set, a version-check step is automatically added to the job script after the prologue to detect if it altered the haddock3 version in use. |
33
35
|`mol_suffixes`| array of strings | Yes | File suffixes used to identify molecule files. Must contain at least 2 suffixes (typically receptor and ligand). |
34
36
|`input_list`| string | Yes | Path to the input list file containing file paths for all targets. |
35
37
|`work_dir`| string | Yes | Directory where benchmark results will be stored. Created automatically if it doesn't exist. |
@@ -49,6 +51,29 @@ general:
49
51
work_dir: ./results
50
52
```
51
53
54
+
**SLURM example**, using `slurm_header` and `slurm_prologue`:
55
+
56
+
```yaml
57
+
general:
58
+
max_concurrent: 4
59
+
ncores: 96
60
+
execution: slurm
61
+
slurm_header:
62
+
partition: small
63
+
nodes: 1
64
+
account: project_XXXXXX
65
+
mem-per-cpu: 1500
66
+
time: "24:00:00"
67
+
qos: standard
68
+
exclusive: true
69
+
slurm_prologue: |
70
+
module load some-module
71
+
module load another-module
72
+
mol_suffixes: [_r_u, _l_u, _x_u]
73
+
input_list: docking/input_list.txt
74
+
work_dir: ./results
75
+
```
76
+
52
77
### Notes
53
78
54
79
- **Local execution**: When using `execution: local`, the total number of CPU cores required is `max_concurrent * ncores`. Ensure your system has enough cores.
@@ -339,6 +364,7 @@ When `execution: local`:
339
364
When `execution: slurm`:
340
365
341
366
- The `sbatch` and `sacct` commands must be available in the system PATH.
367
+
- **`slurm_header`**: Keys must be recognized `sbatch` long-option names; an unknown key fails validation. `cpus-per-task` is always derived from `ncores` and cannot be overridden.
0 commit comments