|
2 | 2 |
|
3 | 3 | ## The general Idea
|
4 | 4 |
|
5 |
| -To use this plugin, log in to your cluster's head node (sometimes called the "login" node), activate your environment as usual and start Snakemake. Snakemake will then submit your jobs as cluster jobs. |
| 5 | +To use this plugin, log in to your cluster's head node (sometimes called the "login" node), activate your environment as usual, and start Snakemake. Snakemake will then submit your jobs as cluster jobs. |
6 | 6 |
|
7 | 7 | ## Specifying Account and Partition
|
8 | 8 |
|
@@ -86,6 +86,8 @@ other systems, e.g. by replacing `srun` with `mpiexec`:
|
86 | 86 | $ snakemake --set-resources calc_pi:mpi="mpiexec" ...
|
87 | 87 | ```
|
88 | 88 |
|
| 89 | +To submit "ordinary" MPI jobs, submitting with `tasks` (the MPI ranks) is sufficient. Alternatively, on some clusters, it might be convenient to just configure `nodes`. Consider using a combination of `tasks` and `cpus_per_task` for hybrid applications (those that use ranks (multiprocessing) and threads). A detailed topology layout can be achieved using the `slurm_extra` parameter (see below) using further flags like `--distribution`. |
| 90 | + |
89 | 91 | ## Running Jobs locally
|
90 | 92 |
|
91 | 93 | Not all Snakemake workflows are adapted for heterogeneous environments, particularly clusters. Users might want to avoid the submission of _all_ rules as cluster jobs. Non-cluster jobs should usually include _short_ jobs, e.g. internet downloads or plotting rules.
|
@@ -158,8 +160,7 @@ set-resources:
|
158 | 160 | ## Additional Custom Job Configuration
|
159 | 161 |
|
160 | 162 | SLURM installations can support custom plugins, which may add support
|
161 |
| -for additional flags to `sbatch`. In addition, there are various |
162 |
| -`sbatch` options not directly supported via the resource definitions |
| 163 | +for additional flags to `sbatch`. In addition, there are various batch options not directly supported via the resource definitions |
163 | 164 | shown above. You may use the `slurm_extra` resource to specify
|
164 | 165 | additional flags to `sbatch`:
|
165 | 166 |
|
@@ -210,7 +211,7 @@ shared-fs-usage:
|
210 | 211 | local-storage-prefix: "<your node local storage prefix>"
|
211 | 212 | ```
|
212 | 213 |
|
213 |
| -It will set the executor to be this SLURM executor, ensure sufficient file system latency and allow automatic stage-in of files using the [file system storage plugin](https://github.com/snakemake/snakemake-storage-plugin-fs). |
| 214 | +It will set the executor to be this SLURM executor, ensure sufficient file system latency, and allow automatic stage-in of files using the [file system storage plugin](https://github.com/snakemake/snakemake-storage-plugin-fs). |
214 | 215 |
|
215 | 216 | Note, that you need to set the `SNAKEMAKE_PROFILE` environment variable in your `~/.bashrc` file, e.g.:
|
216 | 217 |
|
|
0 commit comments