snakemake-executor-plugin-slurm 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl

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.

@@ -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
- # MPI job
127
- if job.resources.get("mpi", False):
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"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snakemake-executor-plugin-slurm
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: A Snakemake executor plugin for submitting jobs to a SLURM cluster.
5
5
  Home-page: https://github.com/snakemake/snakemake-executor-plugin-slurm
6
6
  License: MIT
@@ -0,0 +1,5 @@
1
+ snakemake_executor_plugin_slurm/__init__.py,sha256=q25l-j-o7I4hjHIX8mIuyEqde4g_oz7_bjZuflcGTnU,20908
2
+ snakemake_executor_plugin_slurm-0.5.2.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
3
+ snakemake_executor_plugin_slurm-0.5.2.dist-info/METADATA,sha256=7dUfUtoxbgD-ZluaigOJJAqKwMw1XJOXjJ0RJvCMVyo,1380
4
+ snakemake_executor_plugin_slurm-0.5.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
5
+ snakemake_executor_plugin_slurm-0.5.2.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- snakemake_executor_plugin_slurm/__init__.py,sha256=Ws-zsZP80iCC6q78M0mHea0fQhD0FtktpmfbxkC-4AQ,20551
2
- snakemake_executor_plugin_slurm-0.5.1.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
3
- snakemake_executor_plugin_slurm-0.5.1.dist-info/METADATA,sha256=lkfe53yQkU9ZFupesBM4k8LG-lnx-U7pK5X8dl0E5XQ,1380
4
- snakemake_executor_plugin_slurm-0.5.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
5
- snakemake_executor_plugin_slurm-0.5.1.dist-info/RECORD,,