mschubert / clustermq

R package to send function calls as jobs on LSF, SGE, Slurm, PBS/Torque, or each via SSH
https://mschubert.github.io/clustermq/
Apache License 2.0
146 stars 27 forks source link

cores argument for Q function #211

Closed quirinmanz closed 3 years ago

quirinmanz commented 3 years ago

Hi,

quick question about the cores argument: I have been changing the template file to set the default cpus-per-task (using SLURM). Is there an argument in Q or register_dopar_cmq I missed to set it directly in the function call? That seems to work with memory.

Best, Quirin

mschubert commented 3 years ago

The memory argument to Q is a shortcut for template=list(memory=<mem>) (which only exists for memory, but not other template fields).

You can supply it using the template list, along with any field that may be present in your template. (Related: #209)