Skip to content

Fix greedy cpu allocation#213

Open
nickp60 wants to merge 8 commits intocdanielmachado:masterfrom
nickp60:master
Open

Fix greedy cpu allocation#213
nickp60 wants to merge 8 commits intocdanielmachado:masterfrom
nickp60:master

Conversation

@nickp60
Copy link
Copy Markdown

@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