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

Adds --cores option to limit to num_cores #19

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

kdmukai
Copy link
Contributor

@kdmukai kdmukai commented Jan 10, 2023

Additional usage option:

  -c, --cores <NUM_CORES>
          Number of processor cores to use [default: 8]

note: actual default number of cores will depend on each machine

Validates against actual number of processor cores onboard. Must range from > 0 to <= num_cpus::get().

Rationale: Would be nice to keep grinding in the background while running other processor-heavy tasks (e.g. Docker) by keeping some cores free.

@grunch
Copy link
Owner

grunch commented Jan 12, 2023

Great contribution! makes sense to have this, thanks

@grunch grunch merged commit ebf84b8 into grunch:main Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants