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

ci: improve parallel builds by basing on number of cores #4115

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Jan 18, 2024

With GitHub runners with more cores becoming available, adjust our CI scripts to do parallel builds with nprocs+2 instead of hard-coding. We use slightly more than the number of available cores because these builds and tests tend to be I/O bound, so they can be a little over-threaded to get maximum utilization.

With GitHub runners with more cores becoming available, adjust our CI
scripts to do parallel builds with nprocs+2 instead of hard-coding.
We use slightly more than the number of available cores because these
builds and tests tend to be I/O bound, so they can be a little
over-threaded to get maximum utilization.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz
Copy link
Collaborator Author

lgritz commented Jan 24, 2024

No objections for a week + only affects CI == merge

@lgritz lgritz merged commit ac5e4bf into AcademySoftwareFoundation:master Jan 24, 2024
25 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Jan 27, 2024
…wareFoundation#4115)

With GitHub runners with more cores becoming available, adjust our CI
scripts to do parallel builds with nprocs+2 instead of hard-coding. We
use slightly more than the number of available cores because these
builds and tests tend to be I/O bound, so they can be a little
over-threaded to get maximum utilization.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz deleted the lg-nproc branch January 27, 2024 05:46
1div0 pushed a commit to 1div0/OpenImageIO that referenced this pull request Feb 24, 2024
…wareFoundation#4115)

With GitHub runners with more cores becoming available, adjust our CI
scripts to do parallel builds with nprocs+2 instead of hard-coding. We
use slightly more than the number of available cores because these
builds and tests tend to be I/O bound, so they can be a little
over-threaded to get maximum utilization.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Peter Kovář <[email protected]>
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