-
Notifications
You must be signed in to change notification settings - Fork 25
ENH: Added -j auto for build cmd#314
Open
ganesh-k13 wants to merge 2 commits intoscientific-python:main from
Open
ENH: Added -j auto for build cmd #314ganesh-k13 wants to merge 2 commits intoscientific-python:main from
-j auto for build cmd #314ganesh-k13 wants to merge 2 commits intoscientific-python:main from
Conversation
Member
stefanv
commented
Feb 11, 2026
I think Meson has this built-in, if you set -j 0? But, it also seems to be on by default (I just checked, and NumPy compilation uses all cores).
Contributor
Author
ganesh-k13
commented
Feb 11, 2026
Oh, my laptop was always using a single core, not sure why. Maybe an issue from my end, let me take a look.
Contributor
rgommers
commented
Feb 11, 2026
This shouldn't be needed indeed. By default, ninja will use 2*n_cpu + 2 build processes (e.g., if your machine has 12 physical cores, it'll use max 26 processes). It isn't even possible to change that with an environment variable, only by explicitly passing -j1. So please look at how ninja gets invoked on your machine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
-j autoforspin buildTesting
We can speed up CI jobs for all NumPy workflows post this using
-j auto