| Summary: | Set more useful defaults for BB_NUMBER_THREADS and PARALLEL_MAKE | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Evadeflow <evadeflow> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Undecided | CC: | poky.bs.watcher, poky.watcher |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Evadeflow
2012-10-06 15:12:49 UTC
Looking into this a bit more, I see that this info is readily available
from python:
>>> import multiprocessing
>>> multiprocessing.cpu_count()
4
So maybe adding Yet Another Variable isn't necessary. Instead, just set
values for BB_NUMBER_THREADS and PARALLEL_MAKE using a python snippet
that can be overridden by the user?
I don't think a NUM_CORES variable makes sense since that data is already available to the system as you later mention. I'm also reluctant to start doing magic things when the user making the build should probably make a concious choice about what settings to use. There is already an ehancement request about automatic settings of these variables so making this as a duplicate of that. *** This bug has been marked as a duplicate of bug 2528 *** |