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
I was trying to use this profile to submit a job using SLURM's --ntasks-per-node, and found that I needed to modify RESOURCE_MAPPING in slurm-submit.py in order to do so.
Hi @whophil , I've been looking into this today for myself. I just found out you can pass threads to your rule outside of the resources section, and it appears that it will get passed to SLURM as cpus-per-task. On my cluster, I check resource allocation of this job (example below), and 8 CPUs have been allocated. Not sure if this is helpful or if you have already solved it, but I figured I'd mention it in case.
If you already know the exact Slurm flags you want to define, an alternative is to use my smk-simple-slurm profile. You can directly edit the example config.yaml to pass --ntasks-per-node to sbatch, and also to set a default value for this resource. And the same applies to any other Slurm flag you might want to use.
Disclaimer: I am very new to Snakemake
I was trying to use this profile to submit a job using SLURM's
--ntasks-per-node
, and found that I needed to modifyRESOURCE_MAPPING
inslurm-submit.py
in order to do so.slurm/{{cookiecutter.profile_name}}/slurm-submit.py
Lines 40 to 46 in 8ee65d6
Other flags I often use which are not mapped include:
--cpus-per-task
,--threads-per-core
Is there any reason not to do this? If not, would a PR with said change be accepted?
The text was updated successfully, but these errors were encountered: