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

Calculate number of jobs from available memory #27

Merged
merged 4 commits into from
Jan 17, 2025

Conversation

jafingerhut
Copy link
Contributor

No description provided.

@jafingerhut
Copy link
Contributor Author

I tested running p4studio with the --jobs <n> option, and it appears to limit the maximum number of parallel jobs to less than the number of CPU cores returned by nproc as documented, which is good.

These proposed changes to batch-install.sh calculate the largest number of parallel jobs to use, in the range of 1 to nproc, that is expected not to use more than the amount of memory available on the system.

@jafingerhut jafingerhut merged commit 0b6d7a7 into p4lang:main Jan 17, 2025
3 checks passed
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