flowcraft icon indicating copy to clipboard operation
flowcraft copied to clipboard

Automatically set local executor CPU limit

Open bfrgoncalves opened this issue 6 years ago • 1 comments

Currently, the default number of CPUs used by the local executor is as follows in the nextflow.config file:

executor {
  $local {
      cpus = 4
  }
}

It would be nice to change this behaviour to query for the total number of CPUs available and fill the variable according to it. It could then be replaced in the nextflow.config or set a new one in the resources.config file.

bfrgoncalves avatar Jan 08 '19 11:01 bfrgoncalves

But, remember not to use all the cpus available in a local installation but rather a subset of the available cpus (say half?).

tiagofilipe12 avatar Jan 08 '19 15:01 tiagofilipe12