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

Fix greedy cpu allocation #213

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

nickp60
Copy link

@nickp60 nickp60 commented Dec 4, 2024

Hello! I am trying to use carveme on a compute cluster, and two processes (multiprocessing.Pool() and diamond under the hood) default to using all available cores. As-is, I can't tell carveme to limit the resource usage. This PR adds 2 CLI args -- one for the number of multiprocessing jobs to create and another for the number of cores that each job can use. The default is to run one single-core job for each available CPU.

Happy to make any changes and discuss!

Thanks,

Nick

@nickp60 nickp60 marked this pull request as draft December 4, 2024 19:30
@nickp60 nickp60 marked this pull request as ready for review December 5, 2024 20:24
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.

1 participant