Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically set local executor CPU limit #189

Open
bfrgoncalves opened this issue Jan 8, 2019 · 1 comment
Open

Automatically set local executor CPU limit #189

bfrgoncalves opened this issue Jan 8, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@bfrgoncalves
Copy link
Collaborator

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 bfrgoncalves added the enhancement New feature or request label Jan 8, 2019
@tiagofilipe12
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants