snakemake-executor-plugin-slurm 0.5.1__tar.gz → 0.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of snakemake-executor-plugin-slurm might be problematic. Click here for more details.
- {snakemake_executor_plugin_slurm-0.5.1 → snakemake_executor_plugin_slurm-0.5.2}/PKG-INFO +1 -1
- {snakemake_executor_plugin_slurm-0.5.1 → snakemake_executor_plugin_slurm-0.5.2}/pyproject.toml +1 -1
- {snakemake_executor_plugin_slurm-0.5.1 → snakemake_executor_plugin_slurm-0.5.2}/snakemake_executor_plugin_slurm/__init__.py +13 -4
- {snakemake_executor_plugin_slurm-0.5.1 → snakemake_executor_plugin_slurm-0.5.2}/LICENSE +0 -0
- {snakemake_executor_plugin_slurm-0.5.1 → snakemake_executor_plugin_slurm-0.5.2}/README.md +0 -0
|
@@ -123,14 +123,23 @@ class Executor(RemoteExecutor):
|
|
|
123
123
|
"- submitting without. This might or might not work on your cluster."
|
|
124
124
|
)
|
|
125
125
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if job.resources.get("nodes", False):
|
|
129
|
-
call += f" --nodes={job.resources.get('nodes', 1)}"
|
|
126
|
+
if job.resources.get("nodes", False):
|
|
127
|
+
call += f" --nodes={job.resources.get('nodes', 1)}"
|
|
130
128
|
|
|
131
129
|
# fixes #40 - set ntasks regarlless of mpi, because
|
|
132
130
|
# SLURM v22.05 will require it for all jobs
|
|
133
131
|
call += f" --ntasks={job.resources.get('tasks', 1)}"
|
|
132
|
+
# MPI job
|
|
133
|
+
if job.resources.get("mpi", False):
|
|
134
|
+
if not job.resources.get("tasks_per_node") and not job.resources.get(
|
|
135
|
+
"nodes"
|
|
136
|
+
):
|
|
137
|
+
self.logger.warning(
|
|
138
|
+
"MPI job detected, but no 'tasks_per_node' or 'nodes' "
|
|
139
|
+
"specified. Assuming 'tasks_per_node=1'."
|
|
140
|
+
"Probably not what you want."
|
|
141
|
+
)
|
|
142
|
+
|
|
134
143
|
call += f" --cpus-per-task={get_cpus_per_task(job)}"
|
|
135
144
|
|
|
136
145
|
if job.resources.get("slurm_extra"):
|
|
File without changes
|
|
File without changes
|